|
|
@@ -27,7 +27,7 @@ export default {
|
|
|
methods: {
|
|
|
getList(w_deviceid, prodnum) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- let special = ["FW01", '01'].includes(prodnum)
|
|
|
+ let special = ["FW01", '01', 'MT03'].includes(prodnum)
|
|
|
console.log("special", special)
|
|
|
this.$Http.basic({
|
|
|
"id": special ? 20230628084901 : 20230711165702,
|
|
|
@@ -38,14 +38,16 @@ export default {
|
|
|
console.log("设备实时数据查询", res)
|
|
|
if (this.cutoff(res.msg)) return resolve(0)
|
|
|
if (special) {
|
|
|
+ const params = res.data.params,
|
|
|
+ list = [];
|
|
|
if (["FW01", '01'].includes(prodnum)) {
|
|
|
- const params = res.data.params,
|
|
|
- list = [];
|
|
|
params.OpenDeg && list.push(params.OpenDeg)
|
|
|
params.Voltage && list.push(params.Voltage)
|
|
|
params.Longitude && list.push(params.Longitude)
|
|
|
params.Latitude && list.push(params.Latitude)
|
|
|
this.list = list;
|
|
|
+ } else if (["MT03"].includes(prodnum)) {
|
|
|
+ this.list = ["阀前压力", "阀后压力", "累计流量", "阀前压力采集", "阀后压力采集", "流量采集", "瞬时流量", '阀门开度'].map(v => params[v])
|
|
|
}
|
|
|
} else {
|
|
|
this.list = res.data;
|