Browse Source

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

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

Loading…
Cancel
Save