From 6af1425ccb645671639f8f293407d6ad0d7a3adc Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期一, 08 八月 2022 11:37:01 +0800 Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/gtqtOut --- src/views/facilityManagement/InstrumentationInformation/index.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/facilityManagement/InstrumentationInformation/index.vue b/src/views/facilityManagement/InstrumentationInformation/index.vue index 55bcddd..e64297f 100644 --- a/src/views/facilityManagement/InstrumentationInformation/index.vue +++ b/src/views/facilityManagement/InstrumentationInformation/index.vue @@ -187,6 +187,8 @@ }; // 删除 const onDelete = (id: number) => { + let arr=[] + arr.push(id) ElMessageBox.confirm('确定删除所选项吗?', 'Warning', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -194,7 +196,7 @@ }) .then(() => { facilityManagementApi() - .getequipmentInfoDelete(id) + .getequipmentInfoDelete(arr) .then((res) => { if (res.data.code == 200) { ElMessage({ @@ -224,7 +226,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