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(() => {