fix: 修改 复制 groupId = 0 的问题 以及 删除other的hexagon
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user