CN-103 曲线无数据时应显示no data

This commit is contained in:
hyx
2021-08-20 16:45:11 +08:00
parent 679ba0bb79
commit 4124aa428e
2 changed files with 48 additions and 88 deletions

View File

@@ -310,7 +310,7 @@ export default {
this.singleValue.value = response.data.result
}else {
this.isError = true;
this.errorInfo = response.message;
this.errorInfo = response.msg;
}
if (this.isSingleValueWithEcharts) { // 带曲线的单值图
const dom = document.getElementById(`chart${this.chartInfo.id}`)
@@ -332,7 +332,7 @@ export default {
})
}else {
this.isError = true;
this.errorInfo = response.message;
this.errorInfo = response.msg;
}
this.myChart.setOption(this.chartOption)
this.$nextTick(() => {
@@ -518,7 +518,7 @@ export default {
}
}else {
this.isError = true;
this.errorInfo = response.message;
this.errorInfo = response.msg;
}
}).finally(() => {
setTimeout(() => { this.loading = false }, 250)
@@ -627,7 +627,7 @@ export default {
}
}else {
this.isError = true;
this.errorInfo = response.message;
this.errorInfo = response.msg;
}
this.myChart.setOption(this.chartOption)
this.$nextTick(() => {
@@ -744,7 +744,7 @@ export default {
})
}else {
this.isError = true;
this.errorInfo = response.message;
this.errorInfo = response.msg;
}
this.myChart.setOption(this.chartOption)
this.$nextTick(() => {
@@ -802,13 +802,13 @@ export default {
this.pieTableData = response2.data.result
}else {
this.isError = true;
this.errorInfo = response.message;
this.errorInfo = response.msg;
}
})
}
}else {
this.isError = true;
this.errorInfo = response.message;
this.errorInfo = response.msg;
}
}).finally(() => {
setTimeout(() => { this.loading = false }, 250)
@@ -879,7 +879,7 @@ export default {
this.table.currentPageData = this.getTargetPageData(1, this.table.pageSize, this.table.tableData)
}else {
this.isError = true;
this.errorInfo = response.message;
this.errorInfo = response.msg;
}
}).finally(() => {
setTimeout(() => { this.loading = false }, 250)