From 91f0d30d745cd4cafa4939fd9667bbc59046ef71 Mon Sep 17 00:00:00 2001 From: zhangyanli Date: Mon, 5 Feb 2024 16:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B8=85=E5=8D=95=E7=AE=A1?= =?UTF-8?q?=E7=90=86bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/asyncRouter.js | 9 ++ .../components/list.vue | 16 ++-- .../delete_inventory_management/view.vue | 32 +++---- .../view_custom.vue | 86 +++++++++++++++++++ 4 files changed, 114 insertions(+), 29 deletions(-) create mode 100644 src/views/hazard_investigation/delete_inventory_management/view_custom.vue diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index eab67c3..1abe98a 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -398,6 +398,15 @@ export default [ }, component: "hazard_investigation/delete_inventory_management/view", }, + { + path: "/hazard_investigation/delete_inventory_management/view_custom", + meta: { + title: "查看", + activeMenu: "/hazard_investigation/delete_inventory_management", + }, + component: + "hazard_investigation/delete_inventory_management/view_custom", + }, ], }, { diff --git a/src/views/hazard_investigation/delete_inventory_management/components/list.vue b/src/views/hazard_investigation/delete_inventory_management/components/list.vue index 326d756..db522bf 100644 --- a/src/views/hazard_investigation/delete_inventory_management/components/list.vue +++ b/src/views/hazard_investigation/delete_inventory_management/components/list.vue @@ -138,13 +138,15 @@ text link @click=" - router.push({ - path: '/hazard_investigation/delete_inventory_management/view', - query: - name === 'risk' - ? { ID: row.LISTMANAGER_ID, type: '1' } - : { ID: row.CUSTOM_ID, type: '2' }, - }) + name === 'risk' + ? router.push({ + path: '/hazard_investigation/delete_inventory_management/view', + query: { LISTMANAGER_ID: row.LISTMANAGER_ID }, + }) + : router.push({ + path: '/hazard_investigation/delete_inventory_management/view_custom', + query: { CUSTOM_ID: row.CUSTOM_ID }, + }) " > 查看 diff --git a/src/views/hazard_investigation/delete_inventory_management/view.vue b/src/views/hazard_investigation/delete_inventory_management/view.vue index 1609923..26c9421 100644 --- a/src/views/hazard_investigation/delete_inventory_management/view.vue +++ b/src/views/hazard_investigation/delete_inventory_management/view.vue @@ -1,6 +1,6 @@