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/selfRecruitedSecurityGuard.vue |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/src/views/securityUnit/selfRecruitedSecurityGuard.vue b/src/views/securityUnit/selfRecruitedSecurityGuard.vue
index 95b401d..d404aec 100644
--- a/src/views/securityUnit/selfRecruitedSecurityGuard.vue
+++ b/src/views/securityUnit/selfRecruitedSecurityGuard.vue
@@ -336,17 +336,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;
@@ -476,8 +469,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);
@@ -486,7 +479,8 @@
             message: "操作成功!",
           });
           this.$refs.crudrec.toggleSelection();
-        });
+        })
+        .catch((res) => {});
     },
     refreshChange() {
       this.onLoad(this.page, this.query);

--
Gitblit v1.9.3