feat: panel页面 的删除 复制功能

This commit is contained in:
zhangyu
2021-12-08 16:20:03 +08:00
parent c4f7e2ede7
commit f587dd2ed1
6 changed files with 111 additions and 49 deletions

View File

@@ -171,8 +171,8 @@ export default {
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')
this.esc(true)
} else {
this.$message.error(response.msg)
}
@@ -181,8 +181,8 @@ export default {
this.$post('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')
this.esc(true)
} else {
this.$message.error(response.msg)
}