From 6c4df8fb750e58528ebae1289026934ed21a4cb1 Mon Sep 17 00:00:00 2001 From: 13937891274 <kxc0822> Date: 星期三, 03 八月 2022 18:01:33 +0800 Subject: [PATCH] 数据对接 --- src/views/contingencyManagement/emergencyResources/emergencySupplies/index.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/contingencyManagement/emergencyResources/emergencySupplies/index.vue b/src/views/contingencyManagement/emergencyResources/emergencySupplies/index.vue index 5625061..ffd427a 100644 --- a/src/views/contingencyManagement/emergencyResources/emergencySupplies/index.vue +++ b/src/views/contingencyManagement/emergencyResources/emergencySupplies/index.vue @@ -167,7 +167,7 @@ for (let i = 0; i < valId.length; i++) { arr.push(valId[i].id); } - deletAll.value = arr.toString(); + deletAll.value = arr; // console.log(deletAll.value); if (val.length == 1) { warning.value = false; @@ -247,7 +247,9 @@ } }; // 删除用户 - const onRowDel = (data: any) => { + const onRowDel = (id: number) => { + let arr = []; + arr.push(id) ElMessageBox.confirm('确定删除所选项吗?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', @@ -255,7 +257,7 @@ }) .then(() => { emergencySuppliesApi() - .deleteEmergencySupplies(data) + .deleteEmergencySupplies(arr) .then((res) => { if (res.data.code == 200) { ElMessage({ -- Gitblit v1.9.2