|
|
@ -374,6 +374,7 @@ export default {
|
|
|
|
setNum: Math.floor(Math.random() * 10),
|
|
|
|
setNum: Math.floor(Math.random() * 10),
|
|
|
|
compareloading: false,
|
|
|
|
compareloading: false,
|
|
|
|
timeProtocol: "",
|
|
|
|
timeProtocol: "",
|
|
|
|
|
|
|
|
intervalNum: 1000, //时间间隔
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
@ -637,14 +638,21 @@ export default {
|
|
|
|
terminalid: this.selfacilityId,
|
|
|
|
terminalid: this.selfacilityId,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
console.log(res);
|
|
|
|
//console.log(res);
|
|
|
|
this.requestId = res.data.requestId;
|
|
|
|
this.requestId = res.data.requestId;
|
|
|
|
// this.realNewtime();
|
|
|
|
// this.realNewtime();
|
|
|
|
this.timer = window.setInterval(() => {
|
|
|
|
this.timer = window.setInterval(() => {
|
|
|
|
//console.log(this.requestList);
|
|
|
|
//console.log(this.requestList);
|
|
|
|
this.realNewtime();
|
|
|
|
this.realNewtime();
|
|
|
|
|
|
|
|
console.log("时间", this.timernum);
|
|
|
|
|
|
|
|
if (this.timernum < 2) {
|
|
|
|
|
|
|
|
this.intervalNum = 1000;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.intervalNum = 2000;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(this.intervalNum);
|
|
|
|
this.timernum++;
|
|
|
|
this.timernum++;
|
|
|
|
}, 2000);
|
|
|
|
}, this.intervalNum);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch((err) => {
|
|
|
|
this.$message.error("查询失败");
|
|
|
|
this.$message.error("查询失败");
|
|
|
@ -662,8 +670,8 @@ export default {
|
|
|
|
this.compareloading = false;
|
|
|
|
this.compareloading = false;
|
|
|
|
this.newshedulenr = res.data.list;
|
|
|
|
this.newshedulenr = res.data.list;
|
|
|
|
this.offsetnum = res.data.offset;
|
|
|
|
this.offsetnum = res.data.offset;
|
|
|
|
console.log("qqqqqqqqqqqqqqqqqqqqqq");
|
|
|
|
// console.log("qqqqqqqqqqqqqqqqqqqqqq");
|
|
|
|
console.log(this.offsetnum);
|
|
|
|
// console.log(this.offsetnum);
|
|
|
|
//湖南规约
|
|
|
|
//湖南规约
|
|
|
|
if (this.timeProtocol == "65283") {
|
|
|
|
if (this.timeProtocol == "65283") {
|
|
|
|
console.log("湖南规约");
|
|
|
|
console.log("湖南规约");
|
|
|
@ -707,7 +715,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log("222222222222222222");
|
|
|
|
console.log("222222222222222222");
|
|
|
|
console.log(hnarr);
|
|
|
|
// console.log(hnarr);
|
|
|
|
console.log("22222222222222222222222");
|
|
|
|
console.log("22222222222222222222222");
|
|
|
|
let dayArr = [];
|
|
|
|
let dayArr = [];
|
|
|
|
//根据开始时间结束时间生产数组
|
|
|
|
//根据开始时间结束时间生产数组
|
|
|
@ -737,7 +745,7 @@ export default {
|
|
|
|
this.$moment(new Date(endDay)).format("YYYY-MM-DD HH:mm")
|
|
|
|
this.$moment(new Date(endDay)).format("YYYY-MM-DD HH:mm")
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
console.log(dayArr);
|
|
|
|
//console.log(dayArr);
|
|
|
|
this.newshedulenr = dayArr;
|
|
|
|
this.newshedulenr = dayArr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -762,7 +770,7 @@ export default {
|
|
|
|
console.log(timeDate);
|
|
|
|
console.log(timeDate);
|
|
|
|
hnarr.push(timeDate);
|
|
|
|
hnarr.push(timeDate);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(hnarr);
|
|
|
|
// console.log(hnarr);
|
|
|
|
this.newshedulenr = hnarr;
|
|
|
|
this.newshedulenr = hnarr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.timernum = 0;
|
|
|
|
this.timernum = 0;
|
|
|
|