From 5ea9fb929d3feff3a35f1473789d37af10351efd Mon Sep 17 00:00:00 2001 From: zhangyanli Date: Thu, 1 Feb 2024 16:41:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E6=82=A3=E6=8E=92=E6=9F=A5=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventory_management/components/list.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/hazard_investigation/inventory_management/components/list.vue b/src/views/hazard_investigation/inventory_management/components/list.vue index 8e34588..7aad582 100644 --- a/src/views/hazard_investigation/inventory_management/components/list.vue +++ b/src/views/hazard_investigation/inventory_management/components/list.vue @@ -381,7 +381,7 @@ const fnDisable = debounce( 1000, async (ID) => { await ElMessageBox.confirm("确定要禁用吗?", { type: "warning" }); - if (name === "risk") { + if (tabName.name === "risk") { await setInventoryManagementDisable({ ID }); } else { await setCustomDisable({ ID }); @@ -395,7 +395,7 @@ const fnEnable = debounce( 1000, async (ID) => { await ElMessageBox.confirm("确定要启用吗?", { type: "warning" }); - if (name === "risk") { + if (tabName.name === "risk") { await setInventoryManagementEnable({ ID }); } else { await setCustomEnable({ ID }); @@ -417,13 +417,13 @@ const fnBatchDelete = debounce( const DATA_IDS2 = []; selectionData.forEach((item) => { if (item.TYPE === "listType0006") { - if (name === "risk") { + if (tabName.name === "risk") { DATA_IDS1.push(item.LISTMANAGER_ID); } else { DATA_IDS1.push(item.CUSTOM_ID); } } else { - if (name === "risk") { + if (tabName.name === "risk") { DATA_IDS2.push(item.LISTMANAGER_ID); } else { DATA_IDS2.push(item.CUSTOM_ID); @@ -435,7 +435,7 @@ const fnBatchDelete = debounce( "临时清单会彻底被删除不可恢复,确定要删除吗?", { type: "warning" } ); - if (name === "risk") { + if (tabName.name === "risk") { await setInventoryManagementBatchDeleteTemporary({ DATA_IDS: DATA_IDS1.join(","), }); @@ -449,7 +449,7 @@ const fnBatchDelete = debounce( type: "warning", }); } - if (name === "risk") { + if (tabName.name === "risk") { await setInventoryManagementBatchDelete({ DATA_IDS: DATA_IDS2.join(","), });