fix: 修改 复制 groupId = 0 的问题 以及 删除other的hexagon

This commit is contained in:
zhangyu
2021-12-29 18:12:40 +08:00
parent 3ca8fa34e1
commit 11ce32e73e
3 changed files with 6 additions and 4 deletions

View File

@@ -378,6 +378,9 @@ export default {
if (this.chart.datasource !== 'metrics' && this.chart.datasource !== 'log') {
delete this.chart.elements
}
if (!this.chart.groupId || this.chart.groupId == -1) {
this.chart.groupId = ''
}
} else {
this.rightBox.loading = true
this.$get('visual/panel/chart/' + data.id).then(res => {

View File

@@ -201,10 +201,6 @@ export default {
id: 'topology',
name: this.$t('dashboard.panel.chartForm.typeVal.topology.label')
},
{
id: 'hexagon',
name: this.$t('dashboard.panel.chartForm.typeVal.hexagonFigure.label')
},
{
id: 'clock',
name: this.$t('dashboard.panel.chartForm.typeVal.clock.label')

View File

@@ -429,6 +429,9 @@ export default {
if (this.chart.datasource !== 'metrics' && this.chart.datasource !== 'log') {
delete this.chart.elements
}
if (!this.chart.groupId || this.chart.groupId == -1) {
this.chart.groupId = ''
}
} else {
this.rightBox.loading = true
this.$get('visual/panel/chart/' + data.id).then(res => {