From a80e5d9e72bbf82fab82a2774cf39ac269fb8a43 Mon Sep 17 00:00:00 2001
From: wangjiahao <1522128093@qq.com>
Date: Mon, 21 Jun 2021 17:17:39 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8B=96=E6=8B=BD=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=E5=9B=9E=E9=80=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/canvas/custom-component/UserView.vue | 8 ++++----
frontend/src/views/panel/SubjectSetting/index.vue | 12 +++++++-----
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/frontend/src/components/canvas/custom-component/UserView.vue b/frontend/src/components/canvas/custom-component/UserView.vue
index f120c6dffe..2c9d282a7a 100644
--- a/frontend/src/components/canvas/custom-component/UserView.vue
+++ b/frontend/src/components/canvas/custom-component/UserView.vue
@@ -2,10 +2,10 @@
- {{ message.response.data.message }},{{ $t('chart.chart_show_error') }}
-
- {{ $t('chart.chart_error_tips') }}
-
+
{{ message.response.data.message }},{{ $t('chart.chart_show_error') }}
+
+ {{ $t('chart.chart_error_tips') }}
+
diff --git a/frontend/src/views/panel/SubjectSetting/index.vue b/frontend/src/views/panel/SubjectSetting/index.vue
index b9b89eb2d2..346105ab3d 100644
--- a/frontend/src/views/panel/SubjectSetting/index.vue
+++ b/frontend/src/views/panel/SubjectSetting/index.vue
@@ -27,7 +27,7 @@
-
+
@@ -58,9 +58,10 @@ export default {
return {
panelInfo: this.$store.state.panel.panelInfo,
activeNames: ['panel'],
- chart: null,
+ chart: {},
tableChart: null,
- collapseShow: true
+ collapseShow: true,
+ tableChartShow: true
}
},
computed: mapState([
@@ -75,10 +76,9 @@ export default {
this.collapseShow = false
this.$nextTick(() => (this.collapseShow = true))
})
+ this.init()
},
created() {
- debugger
- this.init()
},
methods: {
@@ -100,6 +100,8 @@ export default {
// 因为 table 的color 设置和view的共用 所以单独设置一个对象
this.tableChart = deepCopy(this.chart)
this.tableChart.customAttr.color = this.tableChart.customAttr.tableColor
+ this.tableChartShow = false
+ this.$nextTick(() => (this.tableChartShow = true))
},
handleChange(val) {
// console.log(val)