From 6be85220858395453d5fc0c500ecc8aa6b219eb6 Mon Sep 17 00:00:00 2001 From: Dragon <> Date: Fri, 22 Mar 2024 00:26:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/modules/final.ts | 8 ++++++ src/views/final/content/Content.vue | 5 +++- src/views/task/content/Content.vue | 41 ++++++++++++++++++++++------- 3 files changed, 44 insertions(+), 10 deletions(-) diff --git a/src/router/modules/final.ts b/src/router/modules/final.ts index 83db1ed..9ede89c 100644 --- a/src/router/modules/final.ts +++ b/src/router/modules/final.ts @@ -34,6 +34,14 @@ const routes: Array = [ }, component: () => import('@/views/final/index.vue'), }, + { + path: 'final-detail', + name: 'final-detail', + meta: { + title: '任务终审详情', + }, + component: () => import('@/views/task/content/Content.vue'), + }, ], }, ] diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue index 11a361f..c97749e 100644 --- a/src/views/final/content/Content.vue +++ b/src/views/final/content/Content.vue @@ -14,6 +14,7 @@ import { watch, } from 'vue' import { rowPropKeys } from 'naive-ui/es/legacy-grid/src/Row' +import { useRoute, useRouter } from 'vue-router' import { Action, CustomTabelModal, @@ -42,6 +43,8 @@ import { getAllfieldList, getfieldList, savefield } from '@/api/home/filter' const dicStore = useDictionary() const izstatusList = ref([]) +const router = useRouter() +const route = useRoute() const reviewType = 0 const actionsColumns = { title: '操作', @@ -567,7 +570,7 @@ function validate(items: any[]) { } function goDetail(row) { - console.log(row) + router.push({ name: 'final-detail', query: { id: row.id, packageid: row.packageid } }) } function resetHandler() { diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index 172647b..a51a341 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -1,5 +1,11 @@