fix: 修改复制chart 表达式未被复制的问题

This commit is contained in:
zhangyu
2021-12-23 19:37:52 +08:00
parent 0a08cdf6b4
commit 9e50b5c6f9

View File

@@ -417,6 +417,11 @@ export default {
this.chart.panelId = this.showPanel.id this.chart.panelId = this.showPanel.id
this.chart.panelName = this.showPanel.name this.chart.panelName = this.showPanel.name
this.chart.id = '' this.chart.id = ''
this.chart.elements.forEach((item) => {
item.id = ''
item.chartId = ''
delete item.seq
})
} else { } else {
this.rightBox.loading = true this.rightBox.loading = true
this.$get('visual/panel/chart/' + data.id).then(res => { this.$get('visual/panel/chart/' + data.id).then(res => {