From 93b600affb6da753b02f2d9787f4ff343d8f74a6 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 2 Jul 2025 15:25:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=9F=E8=B8=AA=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E7=BC=96=E5=8F=B7=E7=9A=84=E4=BC=A0=E5=85=A5=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/traceManage/task/analyze.vue | 4 +++- src/views/traceManage/task/components/TaskInfoIcon.vue | 4 ++-- src/views/traceManage/task/data.vue | 4 +++- src/views/traceManage/task/index.vue | 8 ++++---- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/views/traceManage/task/analyze.vue b/src/views/traceManage/task/analyze.vue index 2e426606..9ebca001 100644 --- a/src/views/traceManage/task/analyze.vue +++ b/src/views/traceManage/task/analyze.vue @@ -31,6 +31,8 @@ const wk = new wkUtil.WK(); /**跟踪编号 */ const traceId = ref(route.query.traceId as string); +/**任务编号 */ +const id = ref(route.query.id as string); /**关闭跳转 */ function fnClose() { @@ -588,7 +590,7 @@ onBeforeUnmount(() => { {{ traceId }} - + diff --git a/src/views/traceManage/task/components/TaskInfoIcon.vue b/src/views/traceManage/task/components/TaskInfoIcon.vue index 093be150..cbebadc5 100644 --- a/src/views/traceManage/task/components/TaskInfoIcon.vue +++ b/src/views/traceManage/task/components/TaskInfoIcon.vue @@ -9,7 +9,7 @@ const { t } = useI18n(); const { getDict } = useDictStore(); const props = defineProps({ - traceId: { + id: { type: [String, Number], required: true, }, @@ -50,7 +50,7 @@ onMounted(() => { }) .finally(() => { // 获取信息 - fnGetTaskInfo(props.traceId); + fnGetTaskInfo(props.id); }); }); diff --git a/src/views/traceManage/task/data.vue b/src/views/traceManage/task/data.vue index ff7d0ddf..00fc8512 100644 --- a/src/views/traceManage/task/data.vue +++ b/src/views/traceManage/task/data.vue @@ -23,6 +23,8 @@ const route = useRoute(); /**跟踪编号 */ const traceId = ref(route.query.traceId as string); +/**任务编号 */ +const id = ref(route.query.id as string); /**关闭跳转 */ function fnClose() { @@ -431,7 +433,7 @@ onMounted(() => { {{ traceId }} - + diff --git a/src/views/traceManage/task/index.vue b/src/views/traceManage/task/index.vue index 34341a1b..17797f25 100644 --- a/src/views/traceManage/task/index.vue +++ b/src/views/traceManage/task/index.vue @@ -592,10 +592,10 @@ function fnModalCancel() { } /**跳转内嵌详情页面 */ -function fnRecordView(traceId: any, type: 'analyze' | 'data') { +function fnRecordView(record: any, type: 'analyze' | 'data') { router.push({ path: `${route.path}${MENU_PATH_INLINE}/${type}`, - query: { traceId }, + query: { traceId: record.traceId, id: record.id }, }); } @@ -809,7 +809,7 @@ onMounted(() => { @@ -822,7 +822,7 @@ onMounted(() => {