From 8c6cf205affbbc8ada74f00a7ca25ebca867e9ed Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 27 Sep 2021 11:44:44 +0800
Subject: [PATCH] 图表颜色

---
 src/views/securityAnalysis/child/situation.vue |   29 ++++++++++++++++++++---------
 1 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/src/views/securityAnalysis/child/situation.vue b/src/views/securityAnalysis/child/situation.vue
index 90af1cb..0ba7cd5 100644
--- a/src/views/securityAnalysis/child/situation.vue
+++ b/src/views/securityAnalysis/child/situation.vue
@@ -19,6 +19,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,
@@ -64,8 +78,7 @@
             // 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 +87,7 @@
             // slot: true,
             searchSpan: 4,
             display: false,
-            search: true,
+            search: search,
             minWidth: 220,
           },
           {
@@ -166,14 +179,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