fix: 注释页面中的打印
This commit is contained in:
@@ -150,14 +150,14 @@ export default {
|
|||||||
if (panels && panels.length > 0) {
|
if (panels && panels.length > 0) {
|
||||||
this.panel = panels[0]
|
this.panel = panels[0]
|
||||||
}
|
}
|
||||||
console.log(this.panel)
|
// console.log(this.panel)
|
||||||
if (this.panel.id) {
|
if (this.panel.id) {
|
||||||
if (this.panel.params) {
|
if (this.panel.params) {
|
||||||
this.panel.params = JSON.parse(this.panel.params)
|
this.panel.params = JSON.parse(this.panel.params)
|
||||||
} else {
|
} else {
|
||||||
this.panel.params = {}
|
this.panel.params = {}
|
||||||
}
|
}
|
||||||
console.log(this.panel)
|
// console.log(this.panel)
|
||||||
const allCharts = (await getChartList({ panelId: this.panel.id, pageSize: -1 })).map(chart => {
|
const allCharts = (await getChartList({ panelId: this.panel.id, pageSize: -1 })).map(chart => {
|
||||||
chart.i = chart.id
|
chart.i = chart.id
|
||||||
this.recursionParamsConvert(chart)
|
this.recursionParamsConvert(chart)
|
||||||
|
|||||||
@@ -180,7 +180,6 @@ export default {
|
|||||||
})
|
})
|
||||||
this.chartOption.yAxis[0].axisLabel.formatter = (value) => {
|
this.chartOption.yAxis[0].axisLabel.formatter = (value) => {
|
||||||
if (type === 'percent') {
|
if (type === 'percent') {
|
||||||
console.log(type)
|
|
||||||
return unitConvert(value, type)[0]
|
return unitConvert(value, type)[0]
|
||||||
} else {
|
} else {
|
||||||
return unitConvert(value, 'number').join('')
|
return unitConvert(value, 'number').join('')
|
||||||
|
|||||||
Reference in New Issue
Block a user