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(","), });