fix:接口 visual/panel/chart/id 的返回数据格式变更

This commit is contained in:
zhangyu
2022-03-02 10:46:57 +08:00
parent ec71a59e42
commit ff32ea7dc1
4 changed files with 4 additions and 4 deletions

View File

@@ -849,7 +849,7 @@ export default {
if (this.$refs['editChart' + chartItem.id] && this.$refs['editChart' + chartItem.id].length > 0) {
if (filterType === 'refresh') {
this.$get('visual/panel/chart/' + chartItem.id).then(res => {
const data = res.data.data
const data = res.data
data.param = JSON.parse(data.param)
this.$refs['editChart' + chartItem.id][0].setData(data, null,
this.filter.panelId, null, '')

View File

@@ -377,7 +377,7 @@ export default {
this.$get('visual/panel/chart/' + data.id).then(res => {
this.rightBox.loading = false
if (res.code === 200) {
const chartData = res.data.data
const chartData = res.data
this.chart = JSON.parse(JSON.stringify(chartData))
this.chart.panelId = this.showPanel.id
this.chart.panelName = this.showPanel.name

View File

@@ -234,7 +234,7 @@ export default {
this.$get('visual/panel/chart/' + data.id).then(res => {
this.rightBox.loading = false
if (res.code === 200) {
const chartData = res.data.data
const chartData = res.data
this.object = JSON.parse(JSON.stringify(chartData))
this.object.panelId = this.showPanel.id
this.object.panelName = this.showPanel.name

View File

@@ -438,7 +438,7 @@ export default {
this.$get('visual/panel/chart/' + data.id).then(res => {
this.rightBox.loading = false
if (res.code === 200) {
const chartData = res.data.data
const chartData = res.data
this.chart = JSON.parse(JSON.stringify(chartData))
this.chart.panelId = this.showPanel.id
this.chart.panelName = this.showPanel.name