From 09a0617bda210d22b09a5519feb3fe770dadfbab Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期二, 24 十一月 2020 18:49:38 +0800 Subject: [PATCH] yolo类大图人脸抓拍详情添加分析服务器名称显示 --- src/components/LeftNav.vue | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/components/LeftNav.vue b/src/components/LeftNav.vue index 94dbe0d..575f5ad 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" @@ -234,7 +238,7 @@ size="small" clearable @input="querySearchAsync('dir')" - :style="'width:103px;'" + :style="'width:120px;'" > <i class="el-icon-search el-input__icon" @@ -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,12 @@ if (this.showCluster) { this.TreeDataPool.treeActiveName = "cluster" this.TreeDataPool.fetchClusterTree(); + findCluster().then(res => { + if (res.success) { + this.clusterName = res.data.clusterName; + } + + }) } }, methods: { @@ -519,6 +531,9 @@ this.timeout = setTimeout(() => { if (type === "camera") { this.TreeDataPool.fetchTreeData(); + } + if(type === "cluster"){ + this.TreeDataPool.fetchClusterTree(); } if (type === "dir") { this.DataStackPool.fetchFiles(); @@ -884,7 +899,7 @@ } .tree-edit { - z-index: 1; + z-index: 2; font-size: 16px; position: absolute; top: 56px; -- Gitblit v1.8.0