forked from github/dataease
fix(视图): 指标卡没有数值时显示横线
This commit is contained in:
parent
3513bad8b8
commit
f0041ac649
@ -259,6 +259,10 @@ export default {
|
|||||||
resultFormat() {
|
resultFormat() {
|
||||||
if (!this.chart.data) return
|
if (!this.chart.data) return
|
||||||
const value = this.chart.data.series[0].data[0]
|
const value = this.chart.data.series[0].data[0]
|
||||||
|
if (value === null || value === undefined) {
|
||||||
|
this.result = '-'
|
||||||
|
return
|
||||||
|
}
|
||||||
let yAxis = []
|
let yAxis = []
|
||||||
try {
|
try {
|
||||||
yAxis = JSON.parse(this.chart.yaxis)
|
yAxis = JSON.parse(this.chart.yaxis)
|
||||||
|
Loading…
Reference in New Issue
Block a user