工作流路由重构

This commit is contained in:
Teo
2025-07-11 11:18:01 +08:00
parent ff8dd472de
commit 4a0962b117
6 changed files with 29 additions and 27 deletions

View File

@ -84,7 +84,7 @@
</template>
<script setup name="SpecialScheme" lang="ts">
import { listSpecialScheme,delSpecialScheme} from '@/api/design/specialScheme';
import { listSpecialScheme, delSpecialScheme } from '@/api/design/specialScheme';
import { SpecialSchemeVO } from '@/api/design/specialScheme/types';
import { useUserStoreHook } from '@/store/modules/user';
import { cancelProcessApply } from '@/api/workflow/instance';
@ -115,7 +115,7 @@ const data = reactive({
originalName: undefined,
status: undefined,
params: {}
},
}
});
const { queryParams } = toRefs(data);
@ -152,7 +152,7 @@ const handleSelectionChange = (selection: SpecialSchemeVO[]) => {
const handleAdd = () => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/workflows/specialScheme/indexEdit`,
path: `/test/specialScheme/indexEdit`,
query: {
type: 'add'
}
@ -163,7 +163,7 @@ const handleAdd = () => {
const handleUpdate = async (row?: SpecialSchemeVO) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/workflows/specialScheme/indexEdit`,
path: `/test/specialScheme/indexEdit`,
query: {
id: row.id,
type: 'update'
@ -186,7 +186,7 @@ const handleView = (row) => {
const handleViewInfo = (row) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/workflows/specialScheme/indexEdit`,
path: `/test/specialScheme/indexEdit`,
query: {
id: row.id,
type: 'view'