-
+
-
-
+
+
{{
- $t('chart.preview')
- }}
+ $t('chart.preview')
+ }}
{{
- $t('dataset.confirm')
- }}
+ $t('dataset.confirm')
+ }}
@@ -481,8 +481,8 @@
size="mini"
@click="saveMoveDs(tDs)"
>{{
- $t('dataset.confirm')
- }}
+ $t('dataset.confirm')
+ }}
@@ -630,6 +630,10 @@ export default {
},
panelInfo() {
return this.$store.state.panel.panelInfo
+ },
+ watchChartTypeChangeObj() {
+ const { type, render } = this.view
+ return { type, render }
}
},
watch: {
@@ -649,8 +653,14 @@ export default {
this.searchPids = []
this.$refs.chartTreeRef.filter(this.filterText)
},
- chartType(val) {
- this.view.isPlugin = val && this.$refs['cu-chart-type'] && this.$refs['cu-chart-type'].currentIsPlugin(val)
+ // chartType(val) {
+ // this.view.isPlugin = val && this.$refs['cu-chart-type'] && this.$refs['cu-chart-type'].currentIsPlugin(val)
+ // },
+ watchChartTypeChangeObj(newVal, oldVal) {
+ if (newVal.type === oldVal.type && newVal.render === oldVal.render) {
+ return
+ }
+ this.view.isPlugin = this.$refs['cu-chart-type'] && this.$refs['cu-chart-type'].currentIsPlugin(newVal.type, newVal.render)
}
},
diff --git a/core/frontend/src/views/chart/view/ChartEdit.vue b/core/frontend/src/views/chart/view/ChartEdit.vue
index de2445b799..aac8ac29e4 100644
--- a/core/frontend/src/views/chart/view/ChartEdit.vue
+++ b/core/frontend/src/views/chart/view/ChartEdit.vue
@@ -924,6 +924,7 @@
:param="param"
:index="index"
:item="item"
+ :chart="chart"
:dimension-data="dimension"
:quota-data="quota"
@onItemChange="bubbleItemChange"
@@ -1323,8 +1324,8 @@
ref="itemForm"
label-width="80px"
:model="itemForm"
- @submit.native.prevent
:rules="itemFormRules"
+ @submit.native.prevent
>