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 @@