From c0c79d9b58705a3c8c13ea9f23b1dd0f724a04af Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期一, 19 十月 2020 19:14:52 +0800 Subject: [PATCH] 搜索集群节点样式更新 --- src/pages/visual/index/home.vue | 19 +++++-------------- 1 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/pages/visual/index/home.vue b/src/pages/visual/index/home.vue index 720d531..8394bf6 100644 --- a/src/pages/visual/index/home.vue +++ b/src/pages/visual/index/home.vue @@ -48,18 +48,14 @@ </div> </div> <div v-if="radioType === '1'" id="category" class="category-parent"> - <category - v-if="CategoryData.isShow" - :xAxisData="CategoryData.xAxisArray" - :seriesData="CategoryData.seriesArray" - ></category> + <category :xAxisData="CategoryData.xAxisArray" :seriesData="CategoryData.seriesArray"></category> </div> <div v-if="radioType === '2'" class="div-realTime"> <realTimeList></realTimeList> </div> </div> <div v-if="radioType === '1'" id="category" class="category-parent"> - <category v-if="CategoryData.isShow"></category> + <category></category> </div> <div v-if="radioType === '2'" class="div-realTime"> <realTimeList></realTimeList> @@ -142,7 +138,7 @@ </div> </div> <div class="div-pie"> - <mutPie v-if="CategoryData.isShow"></mutPie> + <mutPie></mutPie> </div> <div class="bottom-title"> <span class="s-1">鎽勫儚鏈�</span> @@ -159,7 +155,6 @@ <div class="div-pie" v-if="CategoryData.dataStatus==='default'"> <span>棰勮浜嬩欢</span> <pie - v-if="CategoryData.isShow" :seriesName="CategoryData.pieName" :radiusType="radiusType" :seriesData="CategoryData.pieData" @@ -240,12 +235,8 @@ // 鐩戝惉绐楀彛 document.addEventListener("visibilitychange", this.visibilitychange, false); window.addEventListener('resize', this.windowSizeChange) - this.CategoryData.isShow = false; - this.$nextTick(() => { - // let height = document.getElementById('category').clientHeight - // console.log(height,'category鐨勯珮搴�') - this.CategoryData.isShow = true; - }) + + this.VideoPhotoData.capture(); this.timer = setInterval(() => { this.VideoPhotoData.capture() this.CategoryData.realTimeCapture(); -- Gitblit v1.8.0