Commit 1ddbab01 authored by lshan's avatar lshan

mac时间

parent 27f3372c
......@@ -776,9 +776,16 @@ export default Vue.extend({
if (arr2?.length === 2) {
const [startDate, endDate] = arr2;
this.formData.startTime = moment(startDate)
this.formData.endTime = moment(endDate);
const starh=startDate.getHours()<10? '0'+startDate.getHours():startDate.getHours()
const starm=startDate.getMinutes()<10? '0'+startDate.getMinutes():startDate.getMinutes()
const endh=endDate.getHours()<10? '0'+endDate.getHours():endDate.getHours()
const endm=endDate.getMinutes()<10? '0'+endDate.getMinutes():endDate.getMinutes()
this.formData.startTime = moment(starh+':'+starm,"HH:mm")
this.formData.endTime = moment(endh+':'+endm,"HH:mm")
// this.formData.startTime = moment(startDate,"HH:mm")
// this.formData.endTime = moment(endDate);
console.log( this.formData.startTime,' this.formData.startTime');
}
const ret = await AddressService.getInstance().note(record.id);
if (ret.code === 200) {
......@@ -1049,10 +1056,12 @@ export default Vue.extend({
clickAddOutlet() {
this.formData.startTime = moment("00:00", "HH:mm");
this.formData.endTime = moment("23:00", "HH:mm");
(this.$refs.headerselect3 as any)?.init();
this.visible = true;
this.modalType = eModalType.create;
console.log(this.formData.startTime,' this.formData.startTime');
},
},
computed: {
......
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