From 0a02f01faea2a6f15672776c16feecf44afd08b8 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 14 Feb 2022 17:46:54 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1538=20fix=EF=BC=9A=20Asset=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E7=95=8C=E9=9D=A2=E9=94=81=E5=AE=9A=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E4=BE=9D=E7=84=B6=E5=8F=AF=E4=BB=A5=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/bottomBox/tabs/panelTabNew.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue index 7ac947f6f..7325f40d6 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue @@ -107,7 +107,6 @@ :data-list="dataList" :nowTimeType="nowTimeType" :from="from" - :panel-lock="panelLock" :time-range="searchTime" @edit-chart="editChart" @on-refresh-time="refreshTime" @@ -174,13 +173,15 @@ export default { }, delChartFlag () { return this.$store.getters.getDelChart + }, + panelLock () { + return this.$store.getters.getPanelLock } }, data () { return { fromRoute, panelTabLoading: false, - panelLock: true, showTopBtn: false, // top按钮 visible: false, chartListLoading: true, @@ -683,7 +684,7 @@ export default { this.tableHover = false }, panelLockChange (boolean) { - this.panelLock = boolean + this.$store.dispatch('dispatchPanelLock', { flag: boolean }) }, chartBySync () { this.panelTabLoading = true @@ -762,7 +763,7 @@ export default { this.disposeChart() } } - }, + } }, beforeDestroy () { document.querySelector('#tableList') && document.querySelector('#tableList').removeEventListener('mouseenter', this.tableListEnter)