跳转变更详情,然后返回原页面修改

This commit is contained in:
2026-09-20 11:31:28 +08:00
parent 1d8e0c321b
commit 0bf469d37d
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import { changeLedgerListApi } from '@/service/api/changeLedger';
const { routerPushByKey } = useRouterPush(); const { routerPushByKey } = useRouterPush();
const themeStore = useThemeStore(); const themeStore = useThemeStore();
const props = defineProps(['self']) const props = defineProps(['self', 'keyValue'])
const loading = ref<boolean>(false); const loading = ref<boolean>(false);
// 组织树 // 组织树
@@ -170,7 +170,7 @@ const sortChoose = (val:string) => {
// 跳转详情 // 跳转详情
const jumpTo = (r:any) => { const jumpTo = (r:any) => {
routerPushByKey("details_index",{ query: { id: r?.id?.toString(),status:r?.status?.toString() || '',key:'changeledger_mychanges' } }); routerPushByKey("details_index",{ query: { id: r?.id?.toString(),status:r?.status?.toString() || '',key:props.keyValue } });
} }
// 打开进度 // 打开进度
const openProgress = (r: any) => { const openProgress = (r: any) => {
+1 -1
View File
@@ -4,6 +4,6 @@ import List from "../modules/list.vue";
<template> <template>
<div> <div>
<List self="1" /> <List self="1" keyValue="changeledger_mychanges" />
</div> </div>
</template> </template>
@@ -4,6 +4,6 @@ import List from "../modules/list.vue";
<template> <template>
<div> <div>
<List self="" /> <List self="" keyValue="changeledger_workshopchanges" />
</div> </div>
</template> </template>