From 56a18b83389ff12cf9d434f18654a1a283d0fc89 Mon Sep 17 00:00:00 2001 From: 13937891274 <kxc0822> Date: 星期一, 08 八月 2022 16:16:03 +0800 Subject: [PATCH] 多选树形修改 --- src/views/facilityManagement/ProductionEquipment/index.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/facilityManagement/ProductionEquipment/index.vue b/src/views/facilityManagement/ProductionEquipment/index.vue index ad83ac6..ab8551e 100644 --- a/src/views/facilityManagement/ProductionEquipment/index.vue +++ b/src/views/facilityManagement/ProductionEquipment/index.vue @@ -188,6 +188,8 @@ }; // 删除 const onDelete = (id: number) => { + let arr=[] + arr.push(id) ElMessageBox.confirm('确定删除所选项吗?', 'Warning', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -195,7 +197,7 @@ }) .then(() => { facilityManagementApi() - .getequipmentInfoDelete(id) + .getequipmentInfoDelete(arr) .then((res) => { if (res.data.code == 200) { ElMessage({ @@ -225,7 +227,7 @@ for (let i = 0; i < valId.length; i++) { arr.push(valId[i].id); } - deletAll.value = arr.toString(); + deletAll.value = arr if (val.length == 1) { warning.value = false; danger.value = false; -- Gitblit v1.9.2