处理Anaysis Sources Alarms 无数据时的状态显示问题
This commit is contained in:
parent
94977a59c7
commit
a20853ad51
|
@ -109,9 +109,11 @@ export default {
|
|||
.then((res) => {
|
||||
this.spinning = false
|
||||
if (res.success) {
|
||||
this.pieData = res.result.pieData
|
||||
this.pieTotal = res.result.pieTotal
|
||||
this.drawRightChart()
|
||||
if (res.result.pieTotal > 0) {
|
||||
this.pieData = res.result.pieData
|
||||
this.pieTotal = res.result.pieTotal
|
||||
this.drawRightChart()
|
||||
}
|
||||
} else {
|
||||
this.$message.warning('This operation fails. Contact your system administrator')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user