Commit d033ee93 authored by lshan's avatar lshan

修改

parent 8cbcee2a
...@@ -772,10 +772,15 @@ export default Vue.extend({ ...@@ -772,10 +772,15 @@ export default Vue.extend({
this.formData.openDays.push("7"); this.formData.openDays.push("7");
} }
const arr2 = transfterStrToDate(record.opening_hours); const arr2 = transfterStrToDate(record.opening_hours);
console.log(arr2,'arr2');
if (arr2?.length === 2) { if (arr2?.length === 2) {
const [startDate, endDate] = arr2; const [startDate, endDate] = arr2;
this.formData.startTime = moment(startDate); this.formData.startTime = moment(startDate,"HH:mm")
this.formData.endTime = moment(endDate); this.formData.endTime = moment(endDate,"HH:mm");
console.log(this.formData.startTime,'this.formData.startTime');
console.log(startDate,'is');
} }
const ret = await AddressService.getInstance().note(record.id); const ret = await AddressService.getInstance().note(record.id);
if (ret.code === 200) { if (ret.code === 200) {
...@@ -1046,6 +1051,8 @@ export default Vue.extend({ ...@@ -1046,6 +1051,8 @@ export default Vue.extend({
clickAddOutlet() { clickAddOutlet() {
this.formData.startTime = moment("00:00", "HH:mm"); this.formData.startTime = moment("00:00", "HH:mm");
this.formData.endTime = moment("23:00", "HH:mm"); this.formData.endTime = moment("23:00", "HH:mm");
console.log(this.formData.startTime,'this.formData.startTime');
(this.$refs.headerselect3 as any)?.init(); (this.$refs.headerselect3 as any)?.init();
this.visible = true; this.visible = true;
this.modalType = eModalType.create; this.modalType = eModalType.create;
......
...@@ -228,6 +228,6 @@ export default Vue.extend({ ...@@ -228,6 +228,6 @@ export default Vue.extend({
background: #fff; background: #fff;
} }
.hover:hover{ .hover:hover{
color: #43c46e; color: #4345c4;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment