时间表

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

@ -130,10 +130,19 @@ export default {
this.ruleForm = JSON.parse(JSON.stringify(val));
console.log(this.ruleForm.listTime);
this.ruleForm.listTime.forEach((item) => {
this.$set(item, "startTime", this.$moment(item.startTime, "HH:mm"));
this.$set(item, "endTime", this.$moment(item.endTime, "HH:mm"));
this.$set(
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]);
});
console.log();
},
handleTimeChange(value) {
console.log(value);

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

Loading…
Cancel
Save