fix: 修稿 edit echart 的问题 以及 部分属性 保存未生效的问题

This commit is contained in:
zhangyu
2021-12-08 14:37:57 +08:00
parent 806bac5550
commit 69381b01bc
5 changed files with 21 additions and 15 deletions

View File

@@ -399,7 +399,6 @@ export default {
this.chart.panelId = this.showPanel.id
this.chart.panelName = this.showPanel.name
this.chart.param = JSON.parse(this.chart.param)
this.chart.datasource = 'metrics'
if (!this.chart.groupId || this.chart.groupId == -1) {
this.chart.groupId = ''
}
@@ -502,7 +501,7 @@ export default {
this.$get('visual/panel/chart?panelId=' + params.panelId + '&groupId=0' + '&pageSize=-1').then(response => {
if (response.code === 200) {
this.chartListLoading = false
this.dataList = chartData.data.list.map(item => {
this.dataList = response.data.list.map(item => {
return {
...item,
hide: item.name.indexOf(this.filter.searchName) === -1, // 搜索条件