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 // loading
this.loading = false; this.loading = false;
}); });
}, 5000); }, 500);
} else { } else {
// this.$modal.msgError(""); // this.$modal.msgError("");
console.log("应该更新状态的"); console.log("应该更新状态的");

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

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

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

@ -382,10 +382,10 @@ export default {
Number(item.paramType) Number(item.paramType)
); );
}); });
// // ordernum // ordernum
// this.rightHostData.sort((a, b) => { this.rightHostData.sort((a, b) => {
// return Number(a.ordernum) - Number(b.ordernum); return Number(a.orderNum) - Number(b.orderNum);
// }); });
this.hostData.forEach((item) => { this.hostData.forEach((item) => {
// // 12 // // 12
// if (item.paramType === "12") { // if (item.paramType === "12") {
@ -497,10 +497,43 @@ export default {
hostListClass(paramType) { hostListClass(paramType) {
for (let i = 0; i < this.hostData.length; i++) { for (let i = 0; i < this.hostData.length; i++) {
const item = this.hostData[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) { if (item.paramType === paramType && Number(item.curValue) !== 0) {
return true; return true;
} }
} }
}
// //
return false; return false;
}, },

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

@ -1304,7 +1304,7 @@ export default {
// properties paramType === 2item.collectValue !== "0.00"便 // properties paramType === 2item.collectValue !== "0.00"便
for (let i = 0; i < properties.length; i++) { for (let i = 0; i < properties.length; i++) {
const item = properties[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; return true;
} }
} }

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

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

Loading…
Cancel
Save