Compare commits
3 Commits
2ae200cc9e
...
ff97a2bef6
Author | SHA1 | Date |
---|---|---|
lyc | ff97a2bef6 | |
lyc | 05c567d1cd | |
lyc | 1a6abfaa50 |
|
@ -177,14 +177,19 @@ const disabledHours = ()=>{
|
|||
}
|
||||
}
|
||||
// 限制分-返回被禁选的
|
||||
const disabledMinute = () => {
|
||||
const disabledMinute = (hour,role) => {
|
||||
if(getCurrentTime('YYYY-MM-DD') == form.day){
|
||||
const arrs = []
|
||||
for (let i = 0; i < 60; i++) {
|
||||
if (new Date().getMinutes() <= i && form.time[0]) continue;
|
||||
arrs.push(i)
|
||||
if(role == 'start'){
|
||||
for (let i = 0; i < 60; i++) {
|
||||
if (new Date().getMinutes() <= i) continue;
|
||||
arrs.push(i)
|
||||
}
|
||||
return arrs;
|
||||
}
|
||||
else{
|
||||
if(form.time[0]) return []
|
||||
}
|
||||
return arrs;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue