fix: 修改删除chart报错的问题

This commit is contained in:
zhangyu
2021-12-14 18:57:21 +08:00
parent dccf99f3eb
commit 8452916491

View File

@@ -471,6 +471,9 @@ export default {
this.$message.error(response.msg) this.$message.error(response.msg)
} }
}) })
}).catch(() => {
this.chart = {}
this.$store.dispatch('clearPanel')
}) })
}, },
delChartOk () { delChartOk () {
@@ -523,7 +526,7 @@ export default {
this.filter.id = this.$refs.pickTime.$refs.timePicker.showTime.id this.filter.id = this.$refs.pickTime.$refs.timePicker.showTime.id
this.getTableData() this.getTableData()
this.getData(this.filter) this.getData(this.filter)
this.$store.dispatch('dispatchPanelTime',{ this.$store.dispatch('dispatchPanelTime', {
time: this.searchTime, time: this.searchTime,
nowTimeType: this.nowTimeType nowTimeType: this.nowTimeType
}) })
@@ -766,7 +769,7 @@ export default {
}, },
created () { created () {
this.getTableData() this.getTableData()
this.$store.dispatch('dispatchPanelTime',{ this.$store.dispatch('dispatchPanelTime', {
time: this.searchTime, time: this.searchTime,
nowTimeType: { nowTimeType: {
id: 4, id: 4,