|
@@ -160,6 +160,7 @@ function topAreaClick(index) {
|
|
|
echartDat.push({ id: '2', time: JSON.parse(choiceData[index].readData.expectInfo)['nowTime'], value: JSON.parse(choiceData[index].readData.expectInfo)['nowVal'] })
|
|
|
let unique = uniqueObjects(echartDat, 'time');
|
|
|
let setData = [...echartDatas.value, ...unique].sort((a,b)=>Date.parse(new Date(a.time)) - Date.parse(new Date(b.time)))
|
|
|
+ console.log(setData,'setData----------')
|
|
|
setData.forEach((m, n) => {
|
|
|
echartDataFc.xData.push(m.time);
|
|
|
if (unique.filter(t => t.time == m.time).length != 0 && m.id == '1') {
|
|
@@ -305,10 +306,10 @@ async function getWindDeviceList() {
|
|
|
label: '通信状态',
|
|
|
value: el.netStatus == '0' ? '断开' : '连接',
|
|
|
listR: [
|
|
|
- { id: 0, label: '安装位置', dw: '', value: el.strinstallpos },
|
|
|
- { id: 1, label: '粉尘浓度', dw: '(mg/m³)', value: el.dustval },
|
|
|
- { id: 2, label: '巷道湿度', dw: '(RH)', value: el.humidity },
|
|
|
- { id: 4, label: '巷道温度', dw: '(℃)', value: el.temperature },
|
|
|
+ { id: 0, label: '安装位置', dw: '', value: el.strinstallpos || '-' },
|
|
|
+ { id: 1, label: '粉尘浓度', dw: '(mg/m³)', value: el.dustval || '-' },
|
|
|
+ { id: 2, label: '巷道湿度', dw: '(RH)', value: el.humidity || '-' },
|
|
|
+ { id: 4, label: '巷道温度', dw: '(℃)', value: el.temperature || '-' },
|
|
|
{ id: 3, label: '是否报警', dw: '', value: el.warnFlag == '0' ? '正常' : el.warnFlag == 1 ? '报警' : el.warnFlag == 2 ? '断开' : '未监测' },
|
|
|
],
|
|
|
})
|
|
@@ -450,10 +451,11 @@ onUnmounted(() => {
|
|
|
margin: 5px 0px;
|
|
|
|
|
|
.content-title {
|
|
|
+ width: 85%;
|
|
|
position: absolute;
|
|
|
- top: 3px;
|
|
|
+ top: 2px;
|
|
|
left: 50%;
|
|
|
- transform: translate(-78%, 0);
|
|
|
+ transform: translate(-55%, 0);
|
|
|
font-size: 14px;
|
|
|
color: #fff;
|
|
|
}
|
|
@@ -503,10 +505,11 @@ onUnmounted(() => {
|
|
|
margin: 5px 0px;
|
|
|
|
|
|
.content-title {
|
|
|
+ width: 85%;
|
|
|
position: absolute;
|
|
|
- top: 3px;
|
|
|
+ top: 2px;
|
|
|
left: 50%;
|
|
|
- transform: translate(-60%, 0);
|
|
|
+ transform: translate(-50%, 0);
|
|
|
font-size: 14px;
|
|
|
color: #fff;
|
|
|
}
|