|
|
@ -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);
|
|
|
|