|
|
@@ -96,16 +96,8 @@
|
|
|
</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="value"
|
|
|
- label="测点值"
|
|
|
- align="center"
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- prop="jud"
|
|
|
- label="限值"
|
|
|
- align="center"
|
|
|
- />
|
|
|
+ <el-table-column prop="value" label="测点值" align="center" />
|
|
|
+ <el-table-column prop="jud" label="限值" align="center" />
|
|
|
</el-table>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane
|
|
|
@@ -397,27 +389,46 @@ const funSubmit = (params) => {
|
|
|
|
|
|
tsArr.push(dayjs(o.ts).format("YYYY-MM-DD HH:mm:ss"));
|
|
|
|
|
|
- ygsdxz.push(ygsdxzValue > 0 ? Number(o.value).toFixed(2) : null);
|
|
|
- sfyg.push(sfygValue > 0 ? Number(sfygValue).toFixed(2) : null);
|
|
|
- llgl.push(llglValue > 0 ? Number(llglValue).toFixed(2) : null);
|
|
|
- pcsx.push(pcsxValue > 0 ? Number(pcsxValue).toFixed(2) : null);
|
|
|
- pcxx.push(pcxxValue > 0 ? Number(pcxxValue).toFixed(2) : null);
|
|
|
- bzgl.push(bzglValue > 0 ? Number(bzglValue).toFixed(2) : null);
|
|
|
- pjfs.push(pjfsValue > 0 ? Number(pjfsValue).toFixed(2) : null);
|
|
|
+ // ygsdxz.push(ygsdxzValue > 0 ? Number(o.value).toFixed(2) : null);
|
|
|
+ // sfyg.push(sfygValue > 0 ? Number(sfygValue).toFixed(2) : null);
|
|
|
+ // llgl.push(llglValue > 0 ? Number(llglValue).toFixed(2) : null);
|
|
|
+ // pcsx.push(pcsxValue > 0 ? Number(pcsxValue).toFixed(2) : null);
|
|
|
+ // pcxx.push(pcxxValue > 0 ? Number(pcxxValue).toFixed(2) : null);
|
|
|
+ // bzgl.push(bzglValue > 0 ? Number(bzglValue).toFixed(2) : null);
|
|
|
+ // pjfs.push(pjfsValue > 0 ? Number(pjfsValue).toFixed(2) : null);
|
|
|
+
|
|
|
+ ygsdxz.push(ygsdxzValue === 0 ? 0 : Number(o.value).toFixed(2));
|
|
|
+ sfyg.push(sfygValue === 0 ? 0 : Number(sfygValue).toFixed(2));
|
|
|
+ llgl.push(llglValue === 0 ? 0 : Number(llglValue).toFixed(2));
|
|
|
+ pcsx.push(pcsxValue === 0 ? 0 : Number(pcsxValue).toFixed(2));
|
|
|
+ pcxx.push(pcxxValue === 0 ? 0 : Number(pcxxValue).toFixed(2));
|
|
|
+ bzgl.push(bzglValue === 0 ? 0 : Number(bzglValue).toFixed(2));
|
|
|
+ pjfs.push(pjfsValue === 0 ? 0 : Number(pjfsValue).toFixed(2));
|
|
|
|
|
|
tableArr.push({
|
|
|
ts: dayjs(o.ts).format("YYYY-MM-DD HH:mm:ss"),
|
|
|
- ygsdxz: ygsdxzValue > 0 ? Number(o.value).toFixed(2) : "",
|
|
|
- sfyg: sfygValue > 0 ? Number(sfygValue).toFixed(2) : "",
|
|
|
- llgl: llglValue > 0 ? Number(llglValue).toFixed(2) : "",
|
|
|
- pcsx: pcsxValue > 0 ? Number(pcsxValue).toFixed(2) : "",
|
|
|
- pcxx: pcxxValue > 0 ? Number(pcxxValue).toFixed(2) : "",
|
|
|
- bzgl: bzglValue > 0 ? Number(bzglValue).toFixed(2) : "",
|
|
|
- pjfs: pjfsValue > 0 ? Number(pjfsValue).toFixed(2) : "",
|
|
|
+ // ygsdxz: ygsdxzValue > 0 ? Number(o.value).toFixed(2) : "",
|
|
|
+ // sfyg: sfygValue > 0 ? Number(sfygValue).toFixed(2) : "",
|
|
|
+ // llgl: llglValue > 0 ? Number(llglValue).toFixed(2) : "",
|
|
|
+ // pcsx: pcsxValue > 0 ? Number(pcsxValue).toFixed(2) : "",
|
|
|
+ // pcxx: pcxxValue > 0 ? Number(pcxxValue).toFixed(2) : "",
|
|
|
+ // bzgl: bzglValue > 0 ? Number(bzglValue).toFixed(2) : "",
|
|
|
+ // pjfs: pjfsValue > 0 ? Number(pjfsValue).toFixed(2) : "",
|
|
|
+ // cz:
|
|
|
+ // ygsdxzValue > 0 && sfygValue > 0
|
|
|
+ // ? (ygsdxzValue - sfygValue).toFixed(2)
|
|
|
+ // : "",
|
|
|
+ ygsdxz: ygsdxzValue === 0 ? 0 : Number(o.value).toFixed(2),
|
|
|
+ sfyg: sfygValue === 0 ? 0 : Number(sfygValue).toFixed(2),
|
|
|
+ llgl: llglValue === 0 ? 0 : Number(llglValue).toFixed(2),
|
|
|
+ pcsx: pcsxValue === 0 ? 0 : Number(pcsxValue).toFixed(2),
|
|
|
+ pcxx: pcxxValue === 0 ? 0 : Number(pcxxValue).toFixed(2),
|
|
|
+ bzgl: bzglValue === 0 ? 0 : Number(bzglValue).toFixed(2),
|
|
|
+ pjfs: pjfsValue === 0 ? 0 : Number(pjfsValue).toFixed(2),
|
|
|
cz:
|
|
|
- ygsdxzValue > 0 && sfygValue > 0
|
|
|
- ? (ygsdxzValue - sfygValue).toFixed(2)
|
|
|
- : "",
|
|
|
+ ygsdxzValue - sfygValue === 0
|
|
|
+ ? 0
|
|
|
+ : (ygsdxzValue - sfygValue).toFixed(2),
|
|
|
});
|
|
|
});
|
|
|
xAxisData.value = tableArr.map((o) => o.ts);
|
|
|
@@ -482,7 +493,7 @@ const funSubmit = (params) => {
|
|
|
},
|
|
|
large: true,
|
|
|
color: "#41a273",
|
|
|
- color: nxfStyle("理论功率") || "red",
|
|
|
+ color: nxfStyle("理论功率") || "red",
|
|
|
},
|
|
|
{
|
|
|
name: "偏差上限",
|
|
|
@@ -499,7 +510,7 @@ const funSubmit = (params) => {
|
|
|
symbol: "none",
|
|
|
large: true,
|
|
|
// color: "rgb(77, 119, 255)",
|
|
|
- color: nxfStyle("偏差上限") || "red",
|
|
|
+ color: nxfStyle("偏差上限") || "red",
|
|
|
},
|
|
|
{
|
|
|
name: "偏差下限",
|