Browse Source

监控界面、主机详情、温湿度图表优化

meizhou
mh 5 days ago
parent
commit
ee447e1d7f
  1. 2
      src/views/aircAndWindc/awSysMonitor/index.vue
  2. 3
      src/views/centerairC/sysControl/index.vue
  3. 41
      src/views/centerairC/sysMonitor/hostDetails.vue
  4. 2
      src/views/centerairC/sysMonitor/monitorCenter.vue
  5. 28
      src/views/temSys/temMonitor/index.vue

2
src/views/aircAndWindc/awSysMonitor/index.vue

@ -984,7 +984,7 @@ export default {
// loading
this.loading = false;
});
}, 5000);
}, 500);
} else {
// this.$modal.msgError("");
console.log("应该更新状态的");

3
src/views/centerairC/sysControl/index.vue

@ -188,7 +188,8 @@ export default {
//
else if (
child.paramType === "2" &&
!child.name.includes("阀")
!child.name.includes("阀") &&
child.name.includes("启停")
) {
deviceItem.controlText =
Number(child.value) == 0 ? false : true;

41
src/views/centerairC/sysMonitor/hostDetails.vue

@ -382,10 +382,10 @@ export default {
Number(item.paramType)
);
});
// // ordernum
// this.rightHostData.sort((a, b) => {
// return Number(a.ordernum) - Number(b.ordernum);
// });
// ordernum
this.rightHostData.sort((a, b) => {
return Number(a.orderNum) - Number(b.orderNum);
});
this.hostData.forEach((item) => {
// // 12
// if (item.paramType === "12") {
@ -497,10 +497,43 @@ export default {
hostListClass(paramType) {
for (let i = 0; i < this.hostData.length; i++) {
const item = this.hostData[i];
if (item.paramType === paramType && typeof item.curValue === "string" && /[\u4e00-\u9fa5]/.test(item.curValue)) {
switch (item.paramType) {
case "1": //
if (item.curValue === '运行') {
return true;
}
break;
case "2": //
if (item.curValue === '启动' && item.otherName.includes('启停')) {
return true;
}
break;
case "5": //
if (item.curValue === '正常') {
return true;
}
break;
case "6": //
if (item.curValue === '自动') {
return true;
}
break;
case "22": //
if (item.curValue === '远程') {
return true;
}
break;
default:
return false;
break;
}
} else {
if (item.paramType === paramType && Number(item.curValue) !== 0) {
return true;
}
}
}
//
return false;
},

2
src/views/centerairC/sysMonitor/monitorCenter.vue

@ -1304,7 +1304,7 @@ export default {
// properties paramType === 2item.collectValue !== "0.00"便
for (let i = 0; i < properties.length; i++) {
const item = properties[i];
if (item.paramType === "2" && Number(item.collectValue) !== 0) {
if (item.paramType === "2" && Number(item.collectValue) !== 0 && item.collectName.includes('启停')) {
return true;
}
}

28
src/views/temSys/temMonitor/index.vue

@ -559,19 +559,15 @@ export default {
type: "line",
//
symbolSize: 8,
data: this.chartData1,
name: "度",
data: this.chartData2,
name: "湿度",
//线
itemStyle: {
color: "#1a69f1", //线
},
lineStyle: {
color: "#1a69f1", //线
color: "#00CED1", //线
},
smooth: false,
// 线
showSymbol: true,
//
areaStyle: {
color: {
type: "linear",
@ -582,11 +578,11 @@ export default {
colorStops: [
{
offset: 0,
color: "rgba(26, 105, 241, 0.5)", //
color: "rgba(0, 206, 209, 0.5)", //
},
{
offset: 1,
color: "rgba(26, 105, 241, 0)", //
color: "rgba(0, 206, 209, 0)", //
},
],
global: false, // false
@ -597,15 +593,19 @@ export default {
type: "line",
//
symbolSize: 8,
data: this.chartData2,
name: "湿度",
data: this.chartData1,
name: "度",
//线
itemStyle: {
color: "#00CED1", //线
color: "#1a69f1", //线
},
lineStyle: {
color: "#1a69f1", //线
},
smooth: false,
// 线
showSymbol: true,
//
areaStyle: {
color: {
type: "linear",
@ -616,11 +616,11 @@ export default {
colorStops: [
{
offset: 0,
color: "rgba(0, 206, 209, 0.5)", //
color: "rgba(26, 105, 241, 0.5)", //
},
{
offset: 1,
color: "rgba(0, 206, 209, 0)", //
color: "rgba(26, 105, 241, 0)", //
},
],
global: false, // false

Loading…
Cancel
Save