时间表

wp1.0
fanluyan 2 years ago
parent a9dfc8bc51
commit 9807d8ff33

@ -130,10 +130,19 @@ export default {
this.ruleForm = JSON.parse(JSON.stringify(val)); this.ruleForm = JSON.parse(JSON.stringify(val));
console.log(this.ruleForm.listTime); console.log(this.ruleForm.listTime);
this.ruleForm.listTime.forEach((item) => { this.ruleForm.listTime.forEach((item) => {
this.$set(item, "startTime", this.$moment(item.startTime, "HH:mm")); this.$set(
this.$set(item, "endTime", this.$moment(item.endTime, "HH:mm")); item,
"startTime",
this.$moment(new Date(item.startTime), "HH:mm")
);
this.$set(
item,
"endTime",
this.$moment(new Date(item.endTime), "HH:mm")
);
//this.$set(item, "time", [item.startTime, item.endTime]); //this.$set(item, "time", [item.startTime, item.endTime]);
}); });
console.log();
}, },
handleTimeChange(value) { handleTimeChange(value) {
console.log(value); console.log(value);

@ -363,7 +363,7 @@ export default {
requestArr: [], //requestid requestArr: [], //requestid
sureloading: false, sureloading: false,
offsetnum: "", offsetnum: "",
setNum: Math.floor(Math.random() * 10), setNum: 0,
compareloading: false, compareloading: false,
timeProtocol: "", timeProtocol: "",
}; };
@ -1236,9 +1236,10 @@ export default {
this.isShowset = false; this.isShowset = false;
this.deviceListData = []; this.deviceListData = [];
this.checkList = ""; this.checkList = "";
this.sureloading = false;
// this.setNum = this.offsetnum; // this.setNum = this.offsetnum;
this.deviceList(); this.deviceList();
this.setNum = 0;
clearInterval(this.timers); clearInterval(this.timers);
this.timers = null; this.timers = null;
}, },

Loading…
Cancel
Save