From 44dae1108f8bc7134fbbc39a09c581bf3c4e0bb2 Mon Sep 17 00:00:00 2001
From: 13937891274 <kxc0822>
Date: Thu, 04 Aug 2022 16:47:42 +0800
Subject: [PATCH] 数据对接
---
src/views/contingencyManagement/emergencyDrill/implementationOfEmergencyDrill/index.vue | 37 ++++++++++++++++++-------------------
1 files changed, 18 insertions(+), 19 deletions(-)
diff --git a/src/views/contingencyManagement/emergencyDrill/implementationOfEmergencyDrill/index.vue b/src/views/contingencyManagement/emergencyDrill/implementationOfEmergencyDrill/index.vue
index 5b487e3..222687e 100644
--- a/src/views/contingencyManagement/emergencyDrill/implementationOfEmergencyDrill/index.vue
+++ b/src/views/contingencyManagement/emergencyDrill/implementationOfEmergencyDrill/index.vue
@@ -188,7 +188,6 @@
const onRowDel = (id: number) => {
let arr = [];
arr.push(id)
- console.log(arr)
ElMessageBox.confirm('确定删除所选项吗?', '提示',{
confirmButtonText: '确认',
cancelButtonText: '取消',
@@ -215,6 +214,23 @@
});
})
.catch(() => {});
+ };
+ const danger = ref(true);
+ const deletAll = ref();
+ const handleSelectionChange = (val: any) => {
+ let valId = JSON.parse(JSON.stringify(val));
+ let arr = [];
+ for (let i = 0; i < valId.length; i++) {
+ arr.push(valId[i].id);
+ }
+ deletAll.value = arr;
+ if (val.length == 1) {
+ danger.value = false;
+ } else if (val.length == 0) {
+ danger.value = true;
+ } else {
+ danger.value = false;
+ }
};
// 多选删除
const onDeleteAll = () => {
@@ -260,24 +276,7 @@
listQuery.pageIndex = val;
listApi();
};
- const danger = ref(true);
- const deletAll = ref();
- const handleSelectionChange = (val: any) => {
- let valId = JSON.parse(JSON.stringify(val));
- let arr = [];
- for (let i = 0; i < valId.length; i++) {
- arr.push(valId[i].id);
- }
- deletAll.value = arr.toString();
- // console.log(deletAll.value);
- if (val.length == 1) {
- danger.value = false;
- } else if (val.length == 0) {
- danger.value = true;
- } else {
- danger.value = false;
- }
- };
+
onMounted(() => {
listApi();
});
--
Gitblit v1.9.2