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)