Browse Source

1.修改风柜系统监测-定时开关机参数问题

meizhou
selia-zx 4 days ago
parent
commit
eb9d523e1e
  1. 18
      src/views/aircAndWindc/awSysMonitor/index.vue

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

@ -840,8 +840,6 @@ export default {
if (res.code === 200) {
let handleList = res.rows;
this.delayList = [];
//
const chineseNumbers = ["一", "二", "三", "四", "五", "六", "日"];
handleList.forEach((element, index) => {
if (element.values && element.values.length > 0) {
//
@ -853,31 +851,29 @@ export default {
// console.log("${index}_", `${index}_`);
// console.log("child.pointName", child.pointName);
if (child.pointName) {
//
const chineseNumber = chineseNumbers[index];
// -
if (child.pointName == `星期${chineseNumber}开_时`) {
if (child.pointName.includes("开_时")) {
// console.log("-·························");
delayItem.delayOpenHour = child.curValue;
delayItem.delayOpenHourId = child.id;
}
// -
else if (
child.pointName.includes(`星期${chineseNumber}开_分`)
child.pointName.includes("开_分")
) {
delayItem.delayOpenMinute = child.curValue;
delayItem.delayOpenMinuteId = child.id;
}
// -
else if (
child.pointName.includes(`星期${chineseNumber}关_时`)
child.pointName.includes("关_时")
) {
delayItem.delayCloseHour = child.curValue;
delayItem.delayCloseHourId = child.id;
}
// -
else if (
child.pointName.includes(`星期${chineseNumber}关_分`)
child.pointName.includes("关_分")
) {
delayItem.delayCloseMinute = child.curValue;
delayItem.delayCloseMinuteId = child.id;
@ -944,6 +940,7 @@ export default {
item[propertyName] = inputValue;
},
handleSwitchEnter(item, name, event) {
console.log("item",item)
//
event.target.blur();
let id = "";
@ -987,7 +984,8 @@ export default {
}
)
.then(() => {
this.handleSwitchOperationConrol(id, value);
console.log("打印id",id)
// this.handleSwitchOperationConrol(id, value);
})
.catch(() => {
//
@ -1582,7 +1580,7 @@ export default {
}
}
.highlight {
background-color: rgb(118, 134, 145) !important; /* 定义高亮的背景颜色 */
background-color: #003863 !important; /* 定义高亮的背景颜色 */
color: #ffffff !important;
font-weight: bold;
}

Loading…
Cancel
Save