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/certificate.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/views/securityAnalysis/child/certificate.vue b/src/views/securityAnalysis/child/certificate.vue
index 6d21504..b5f2087 100644
--- a/src/views/securityAnalysis/child/certificate.vue
+++ b/src/views/securityAnalysis/child/certificate.vue
@@ -19,6 +19,19 @@
 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 = "";
+    }
+    if (this.card.deptId != "") {
+      search = false;
+    }
     return {
       securityid1: "",
       ExperienceVisible: false,
@@ -64,8 +77,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 +86,7 @@
             // slot: true,
             searchSpan: 5,
             display: false,
-            search: true,
+            search: search,
             minWidth: 220,
           },
           {

--
Gitblit v1.9.3