|
@@ -76,10 +76,10 @@ function topAreaClick(index) {
|
|
|
echartDataFc.aveValue.data.length = 0
|
|
|
echartDataFc.xData.length = 0
|
|
|
centerAreaListB.push(
|
|
|
- { content: choiceData[index].readData.dustval },
|
|
|
- { content: choiceData[index].readData.totalDust },
|
|
|
- { content: choiceData[index].readData.breathWeighted },
|
|
|
- { content: choiceData[index].readData.atomizingState },
|
|
|
+ { content: choiceData[index].readData.dustval || '/' },
|
|
|
+ { content: choiceData[index].readData.totalDust || '/' },
|
|
|
+ { content: choiceData[index].readData.breathWeighted || '/' },
|
|
|
+ { content: choiceData[index].readData.atomizingState || '/' },
|
|
|
)
|
|
|
choiceData[index].history.forEach(el => {
|
|
|
echartDataFc.maxData.data.push(el.dustval)
|
|
@@ -98,10 +98,10 @@ watch(() => props.listData, (val) => {
|
|
|
topAreaList.push({
|
|
|
title: el.strinstallpos,
|
|
|
content: [
|
|
|
- { ids: 0, label: '温度(°C)', value: el.readData.temperature, },
|
|
|
- { ids: 1, label: '粉尘浓度(%)', value: el.readData.dustval, },
|
|
|
- { ids: 2, label: '喷雾水压', value: el.readData.waterPressure, },
|
|
|
- { ids: 3, label: '喷雾状态', value: el.readData.atomizingState, },
|
|
|
+ { ids: 0, label: '温度(°C)', value: el.readData.temperature || '/', },
|
|
|
+ { ids: 1, label: '粉尘浓度(%)', value: el.readData.dustval || '/', },
|
|
|
+ { ids: 2, label: '喷雾水压', value: el.readData.waterPressure || '/', },
|
|
|
+ { ids: 3, label: '喷雾状态', value: el.readData.atomizingState || '/', },
|
|
|
],
|
|
|
},)
|
|
|
})
|
|
@@ -113,10 +113,10 @@ watch(() => props.listData, (val) => {
|
|
|
echartDataFc.xData.length = 0
|
|
|
if (choiceData[activeIndex.value]) {
|
|
|
centerAreaListB.push(
|
|
|
- { content: choiceData[activeIndex.value].readData.dustval },
|
|
|
- { content: choiceData[activeIndex.value].readData.totalDust },
|
|
|
- { content: choiceData[activeIndex.value].readData.breathWeighted },
|
|
|
- { content: choiceData[activeIndex.value].readData.atomizingState },
|
|
|
+ { content: choiceData[activeIndex.value].readData.dustval || '/' },
|
|
|
+ { content: choiceData[activeIndex.value].readData.totalDust || '/' },
|
|
|
+ { content: choiceData[activeIndex.value].readData.breathWeighted || '/'},
|
|
|
+ { content: choiceData[activeIndex.value].readData.atomizingState || '/' },
|
|
|
)
|
|
|
|
|
|
choiceData[activeIndex.value].history.forEach(el => {
|
|
@@ -130,10 +130,10 @@ watch(() => props.listData, (val) => {
|
|
|
} else {
|
|
|
activeIndex.value = 0
|
|
|
centerAreaListB.push(
|
|
|
- { content: choiceData[activeIndex.value].readData.dustval },
|
|
|
- { content: choiceData[activeIndex.value].readData.totalDust },
|
|
|
- { content: choiceData[activeIndex.value].readData.breathWeighted },
|
|
|
- { content: choiceData[activeIndex.value].readData.atomizingState },
|
|
|
+ { content: choiceData[activeIndex.value].readData.dustval || '/' },
|
|
|
+ { content: choiceData[activeIndex.value].readData.totalDust || '/' },
|
|
|
+ { content: choiceData[activeIndex.value].readData.breathWeighted || '/' },
|
|
|
+ { content: choiceData[activeIndex.value].readData.atomizingState || '/' },
|
|
|
)
|
|
|
choiceData[activeIndex.value].history.forEach(el => {
|
|
|
echartDataFc.maxData.data.push(el.dustval)
|
|
@@ -172,6 +172,8 @@ watch(() => props.listData, (val) => {
|
|
|
margin: 0px 20px;
|
|
|
|
|
|
.top-title {
|
|
|
+ width: 80%;
|
|
|
+ text-align: center;
|
|
|
position: absolute;
|
|
|
left: 50%;
|
|
|
top: 6px;
|
|
@@ -225,6 +227,8 @@ watch(() => props.listData, (val) => {
|
|
|
margin: 0px 20px;
|
|
|
|
|
|
.top-title {
|
|
|
+ width: 80%;
|
|
|
+ text-align: center;
|
|
|
position: absolute;
|
|
|
left: 50%;
|
|
|
top: 6px;
|