From 27d489433acaf00588753ebc0587db4489374f57 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 24 Sep 2021 11:33:29 +0800
Subject: [PATCH] 保安公司删除调整, 保安登入页面修改
---
src/views/securityUnit/securityTraining.vue | 18 ++++++------------
1 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/src/views/securityUnit/securityTraining.vue b/src/views/securityUnit/securityTraining.vue
index 12384fb..45490f3 100644
--- a/src/views/securityUnit/securityTraining.vue
+++ b/src/views/securityUnit/securityTraining.vue
@@ -319,17 +319,10 @@
},
ids1() {
let ids1 = [];
- this.selectionList1.forEach((ele) => {
- ids1.push(ele.id);
+ this.selectionList.forEach((ele) => {
+ ids1.push(ele.departmentid);
});
return ids1.join(",");
- },
- ids2() {
- let ids2 = [];
- this.selectionList2.forEach((ele) => {
- ids2.push(ele.id);
- });
- return ids2.join(",");
},
haveID() {
return this.obj0.creditcode;
@@ -459,8 +452,8 @@
type: "warning",
})
.then(() => {
- console.log(this.ids);
- // return remove(this.ids);
+ // console.log(this.ids);
+ return remove(this.ids, this.ids1);
})
.then(() => {
this.onLoad(this.page);
@@ -469,7 +462,8 @@
message: "操作成功!",
});
this.$refs.crudrec.toggleSelection();
- });
+ })
+ .catch((res) => {});
},
refreshChange() {
this.onLoad(this.page, this.query);
--
Gitblit v1.9.3