From d1b058faa19088838b668d6c03dd71c2bcc7d5d3 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 09 Dec 2021 10:30:44 +0800
Subject: [PATCH] 用户角色控制修改

---
 src/views/securityUnit/selfRecruitedSecurityGuard.vue |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/src/views/securityUnit/selfRecruitedSecurityGuard.vue b/src/views/securityUnit/selfRecruitedSecurityGuard.vue
index 90eb866..c8cc879 100644
--- a/src/views/securityUnit/selfRecruitedSecurityGuard.vue
+++ b/src/views/securityUnit/selfRecruitedSecurityGuard.vue
@@ -1,6 +1,11 @@
 <template>
   <basic-container>
-    <div class="securityUnit">
+    <div
+      :class="[
+        'securityUnit',
+        $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+      ]"
+    >
       <avue-crud
         :option="option"
         :data="data"
@@ -158,6 +163,7 @@
         pageSize: 10,
         currentPage: 1,
         total: 0,
+        ...this.$store.state.control.changePageSize,
       },
 
       treeData: [],
@@ -268,6 +274,7 @@
         border: true,
 
         selection: true,
+        ...this.$store.state.control.clearOtherBut,
         column: [
           ...column,
           {
@@ -431,11 +438,14 @@
         this.$message.warning("请选择至少一条数据");
         return;
       }
-      this.$confirm("确定批量将选择数据删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
+      this.$confirm(
+        "该操作将会把保安员数据一并删除,不可恢复!确定将选择公司删除?",
+        {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning",
+        }
+      )
         .then(() => {
           // console.log(this.ids);
           return remove(this.ids, this.ids1).then((res) => {
@@ -510,7 +520,10 @@
     //   this.nobumen = 1;
     // },
     handleSubmit(form, done) {
-      console.log(form);
+      form["createUserId"] = this.userInfo.Id;
+      // console.log(form);
+      // done();
+      // return;
       adddata(form).then((res) => {
         if (res.data.success) {
           this.$message({
@@ -525,6 +538,7 @@
             message: "提交失败",
             type: "warning",
           });
+          done();
         }
       });
     },

--
Gitblit v1.9.3