diff --git a/src/assets/css/components/views/charts/panel.scss b/src/assets/css/components/views/charts/panel.scss index 1d1f4802..3f62566d 100644 --- a/src/assets/css/components/views/charts/panel.scss +++ b/src/assets/css/components/views/charts/panel.scss @@ -1,5 +1,4 @@ .cn-panel2 { - position: relative; .panel__time { position: absolute; right: 10px; @@ -10,6 +9,7 @@ margin-left: 10px; } } + position: relative; .chart-list { &>.vue-grid-layout>.vue-grid-item, &>.dns-screen { &>.panel-chart { @@ -495,7 +495,18 @@ } } } - +.cn-panel2__whole-screen { + height: calc(100vh - 50px); + width: 100%; + padding: 20px 10px 0 10px; + transition: .2s all linear; + opacity: 1; +} +.cn-panel2__whole-screen.cn-panel2__whole-screen--collapse { + height: 0 !important; + padding-top: 0; + opacity: 0; +} .entity-detail-tool { display: flex; justify-content: space-between; diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue index 62cd54ef..9e85538e 100644 --- a/src/views/charts/Chart.vue +++ b/src/views/charts/Chart.vue @@ -21,7 +21,6 @@ :entity="entity" @getChartData="getChartData" @showLoading="showLoading" - @finishOneMap="finishOneMap" > -
-
-
- - -
- - - - +
+
+ +
-
-
-
-
+
+
+
+ + +
+
+
+
+ + +
+
+
- - diff --git a/src/views/charts/PanelChart.vue b/src/views/charts/PanelChart.vue index 028a2852..152e8d00 100644 --- a/src/views/charts/PanelChart.vue +++ b/src/views/charts/PanelChart.vue @@ -41,7 +41,6 @@ :time-filter="timeFilter" @getChartData="getChartData" @showLoading="showLoading" - @handleSpecialChartFinishState="handleSpecialChartFinishState" :tabHandleClickType="tabHandleClickType" >
@@ -151,8 +150,7 @@ export default { } ] // table的所有数据 }, - tabHandleClickType: '', - isFinish: false + tabHandleClickType: '' } }, computed: { @@ -266,38 +264,21 @@ export default { } }).finally(() => { this.loading = false - this.handleFinishState() }) } else if (this.isGroup || this.isTabs) { this.$refs.chart.$refs.chart.reload() - this.handleFinishState() } else if (this.isBlock) { if (!this.chartInfo.firstShow) { this.chartInfo.firstShow = true } else { this.$refs.chart.$refs.chart.reload() } - this.handleFinishState() } } catch (e) { console.error(e) setTimeout(() => { this.loading = false - this.handleFinishState() }, 200) - } finally { - this.handleFinishState() - } - }, - handleSpecialChartFinishState () { - this.$emit('finishOne') - }, - handleFinishState () { - if (!this.isMap) { - if (!this.isFinish) { - this.isFinish = true - this.$emit('finishOne') - } } }, handleQueryParams () { diff --git a/src/views/charts/PanelChartList.vue b/src/views/charts/PanelChartList.vue index 5d110976..93769027 100644 --- a/src/views/charts/PanelChartList.vue +++ b/src/views/charts/PanelChartList.vue @@ -1,18 +1,8 @@