Commit 429ca7ba by zhangzhen

细节优化

parent 1712bd95
......@@ -477,10 +477,10 @@
}
},
onShow() {
if( Number(moment().format("HHmm")) > Number(this.startTime.split(":").join(''))){
this.startTime = moment().format("HH:mm"),
this.onSetEndTime();
}
// if( Number(moment().format("HHmm")) > Number(this.startTime.split(":").join(''))){
// this.startTime = moment().format("HH:mm"),
// this.onSetEndTime();
// }
},
methods: {
onGetDicts() {
......@@ -601,12 +601,9 @@
}else if(item.status === 0 && this.setStartTime.duration >= 0 && this.setStartTime.duration < this.duration && this.setStartTime.status){
this.setStartTime.duration += 1;
} else if(item.status === 0 && this.setStartTime.duration == this.duration && this.setStartTime.status){
//到这里就结束了
this.startTime = this.setStartTime.startTime;
this.setStartTime.duration+=1;
if(index>=24){
this.setStartTime.days = 2
this.days = 2;
}
}
if(index >= this.dateIntervalList.length-1){
if(!this.addM){
......@@ -703,10 +700,6 @@
let end = Number(this.endTime.split(":")[0])
let endM = Number(this.endTime.split(":")[1])
console.log(this.days,start,3333)
// 如果开始时间是第二天
if(this.setStartTime.days >=2 || this.days == 2){
start +=24
......@@ -1133,7 +1126,6 @@
},
// 将时间转换成完整日期
onSetDateTime(startTime, endTime) {
console.log(startTime, endTime,this.days,909090)
let obj = {
startDate: "",
endDate: ''
......
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