From dc14fbf78c19bbe343a79547260ead1e4bd9d24e Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期三, 21 十月 2020 20:18:57 +0800
Subject: [PATCH] 集群管理,统计查询(集群)更新

---
 src/components/LeftNav.vue |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/components/LeftNav.vue b/src/components/LeftNav.vue
index 94dbe0d..421a4e1 100644
--- a/src/components/LeftNav.vue
+++ b/src/components/LeftNav.vue
@@ -190,6 +190,10 @@
                 </el-input>
               </div>
             </div>
+            <div class="top-menu" style="margin:0 0 10px;text-align:left;">
+              <span class="iconfont iconjiqun" style="font-size:20px;"></span>
+              <span style="font-size:14px; margin-left: 5px;font-weight: 600;">{{clusterName}}</span>
+            </div>
             <div class="cluster-list">
               <tree-menu
                 ref="tree"
@@ -312,6 +316,7 @@
 import LocalVedioList from '@/components/subComponents/LocalVedioList';
 import FileUpload from '@/components/subComponents/FileUpload/index';
 import XLSX from 'xlsx'
+import { findCluster } from "@/api/clusterManage";
 
 export default {
   components: {
@@ -442,7 +447,8 @@
       fileUploadBox: false,
       loadingGBTree: false,
       importAreaId: "",
-      menuLoading: false
+      menuLoading: false,
+      clusterName: ''
     };
   },
   created() {
@@ -460,6 +466,13 @@
     if (this.showCluster) {
       this.TreeDataPool.treeActiveName = "cluster"
       this.TreeDataPool.fetchClusterTree();
+      findCluster().then(res => {
+        if (res.success) {
+          debugger
+          this.clusterName = res.data.clusterName;
+        }
+
+      })
     }
   },
   methods: {

--
Gitblit v1.8.0