feat ;修改 chart 参数调整

This commit is contained in:
zhangyu
2021-12-06 15:25:09 +08:00
parent 39c94f5dec
commit 4477c3e195
6 changed files with 30 additions and 24 deletions

View File

@@ -163,15 +163,16 @@ export default {
Promise.all(arr).then(res => {
this.editChart.panelId = this.panelId
const params = JSON.parse(JSON.stringify(this.editChart))
delete params.panel
if (!params.groupId) {
params.groupId = -1
params.groupId = 0
}
delete params.panel
if (params.id) { // 修改
this.$put('visual/panel/chart', params).then(response => {
if (response.code === 200) {
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
this.esc(true)
this.$emit('on-create-success')
} else {
this.$message.error(response.msg)
}
@@ -181,6 +182,7 @@ export default {
if (response.code === 200) {
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
this.esc(true)
this.$emit('on-create-success')
} else {
this.$message.error(response.msg)
}