|
@@ -21,14 +21,14 @@
|
|
|
<div class="monitor-item">
|
|
|
<span class="monitor-title">累计流量:</span>
|
|
|
<span class="monitor-val"
|
|
|
- ><span class="val">{{ monitorData[groupNum - 1]['FluxTotal1'] ? monitorData[groupNum - 1]['FluxTotal1'].toFixed(2) : '-' }}</span
|
|
|
+ ><span class="val">{{ monitorData[groupNum - 1]['FluxTotal1'] ? parseFloat(monitorData[groupNum - 1]['FluxTotal1']).toFixed(2) : '-' }}</span
|
|
|
><span class="unit">m³/h</span></span
|
|
|
>
|
|
|
</div>
|
|
|
<div class="monitor-item">
|
|
|
<span class="monitor-title">氮气纯度:</span>
|
|
|
<span class="monitor-val"
|
|
|
- ><span class="val">{{ monitorData[groupNum - 1]['NitrogenPurity'] ? monitorData[groupNum - 1]['NitrogenPurity'].toFixed(2) : '-' }}</span
|
|
|
+ ><span class="val">{{ monitorData[groupNum - 1]['NitrogenPurity'] ? parseFloat(monitorData[groupNum - 1]['NitrogenPurity']).toFixed(2) : '-' }}</span
|
|
|
><span class="unit">%</span></span
|
|
|
>
|
|
|
</div>
|
|
@@ -75,7 +75,7 @@
|
|
|
<span class="state-title">{{ Object.values(data)[0] }} :</span>
|
|
|
<span class="state-val">{{
|
|
|
(monitorData.length > 0 && monitorData[groupNum - 1][Object.keys(data)[0]]) >= 0
|
|
|
- ? monitorData[groupNum - 1][Object.keys(data)[0]].toFixed(2)
|
|
|
+ ? parseFloat(monitorData[groupNum - 1][Object.keys(data)[0]]).toFixed(2)
|
|
|
: '-'
|
|
|
}}</span>
|
|
|
</div>
|
|
@@ -83,7 +83,7 @@
|
|
|
<span class="state-title">{{ Object.values(data)[1] }} :</span>
|
|
|
<span class="state-val">{{
|
|
|
(monitorData.length > 0 && monitorData[groupNum - 1][Object.keys(data)[1]]) >= 0
|
|
|
- ? monitorData[groupNum - 1][Object.keys(data)[1]].toFixed(2)
|
|
|
+ ? parseFloat(monitorData[groupNum - 1][Object.keys(data)[1]]).toFixed(2)
|
|
|
: '-'
|
|
|
}}</span>
|
|
|
</div>
|
|
@@ -270,6 +270,7 @@
|
|
|
async function getDataSource(systemID) {
|
|
|
const res = await getDevice({ devicetype: 'sys', systemID, type: 'all' });
|
|
|
console.log(res, 'res---------------');
|
|
|
+
|
|
|
if (res) {
|
|
|
const result = res;
|
|
|
if (!result || result.msgTxt.length < 1) return;
|
|
@@ -303,6 +304,7 @@
|
|
|
}
|
|
|
|
|
|
function handlerDevice(data, index) {
|
|
|
+ console.log(index,'index-------')
|
|
|
kzParam.data = data;
|
|
|
kzParam.activeIndex = index;
|
|
|
if (index == 1) {
|