fix:接口 visual/panel/chart/id 的返回数据格式变更
This commit is contained in:
@@ -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, '')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user