工作流路由重构

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

@ -88,8 +88,8 @@
</template>
<script setup name="Drawing" lang="ts">
import { listDrawing,delDrawing, } from '@/api/design/drawing';
import { DrawingVO} from '@/api/design/drawing/types';
import { listDrawing, delDrawing } from '@/api/design/drawing';
import { DrawingVO } from '@/api/design/drawing/types';
import { useUserStoreHook } from '@/store/modules/user';
import { LeaveVO } from '@/api/workflow/leave/types';
import { cancelProcessApply } from '@/api/workflow/instance';
@ -124,7 +124,7 @@ const data = reactive({
originalName: undefined,
newest: undefined,
params: {}
},
}
});
const { queryParams } = toRefs(data);
@ -161,7 +161,7 @@ const handleSelectionChange = (selection: DrawingVO[]) => {
const handleAdd = () => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/workflows/drawing/indexEdit`,
path: `/test/drawing/indexEdit`,
query: {
type: 'add'
}
@ -172,7 +172,7 @@ const handleAdd = () => {
const handleUpdate = async (row?: DrawingVO) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/workflows/drawing/indexEdit`,
path: `/test/drawing/indexEdit`,
query: {
id: row.id,
type: 'update'
@ -198,7 +198,7 @@ const handleView = (row) => {
const handleViewInfo = (row?: LeaveVO) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/workflows/drawing/indexEdit`,
path: `/test/drawing/indexEdit`,
query: {
id: row.id,
type: 'view'