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/securityAnalysis/child/situation.vue |   40 +++++++++++++++++++++++++++++-----------
 1 files changed, 29 insertions(+), 11 deletions(-)

diff --git a/src/views/securityAnalysis/child/situation.vue b/src/views/securityAnalysis/child/situation.vue
index 90af1cb..221ddf7 100644
--- a/src/views/securityAnalysis/child/situation.vue
+++ b/src/views/securityAnalysis/child/situation.vue
@@ -1,5 +1,10 @@
 <template>
-  <div class="certificateTJ">
+  <div
+    :class="[
+      'certificateTJ',
+      $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+    ]"
+  >
     <avue-crud
       :option="option1"
       :data="data1"
@@ -19,6 +24,20 @@
 export default {
   props: ["card"],
   data() {
+    var dicUrl =
+        "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+      search = true;
+    if (this.card.jurisdiction != "") {
+      dicUrl =
+        "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" +
+        this.card.jurisdiction;
+    } else if (this.card.jurisdiction == 1372091709474910209) {
+      // a = "";
+    }
+    // console.log(this.card);
+    if (this.card.deptId != "") {
+      search = false;
+    }
     return {
       securityid1: "",
       ExperienceVisible: false,
@@ -27,6 +46,7 @@
         pageSize: 10,
         currentPage: 1,
         total: 0,
+        ...this.$store.state.control.changePageSize,
       },
       query1: {},
       data1: [],
@@ -44,6 +64,7 @@
         stripe: true,
         // tip: false,
         index: true,
+        ...this.$store.state.control.clearOtherBut,
         // dialogClickModal: false,
         // headerAlign: "center",
         align: "center",
@@ -59,13 +80,12 @@
             search: true,
           },
           {
-            label: "所属保安公司",
+            label: "企业名称",
             searchLabelWidth: "110",
             // prop: "deptName",
             prop: "deptId",
             type: "tree",
-            dicUrl:
-              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+            dicUrl: dicUrl,
             props: {
               label: "title",
               value: "id",
@@ -74,7 +94,7 @@
             // slot: true,
             searchSpan: 4,
             display: false,
-            search: true,
+            search: search,
             minWidth: 220,
           },
           {
@@ -166,14 +186,12 @@
       if (this.card.jurisdiction == 1372091709474910209) {
         this.card.jurisdiction = "";
       }
-      // if (params.hold == undefined) {
-      //   params.hold = 1;
-      // }
+
       params = {
-        ...params,
-        ...this.query1,
-        status: 1,
         ...this.card,
+        ...params,
+        status: 1,
+        ...this.query1,
       };
       getList(page.currentPage, page.pageSize, params).then((res) => {
         // console.log(res.data.data.records);

--
Gitblit v1.9.3