Merge pull request 'lyc-dev' (#163) from lyc-dev into main
This commit is contained in:
commit
ff97a2bef6
|
@ -177,15 +177,20 @@ const disabledHours = ()=>{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 限制分-返回被禁选的
|
// 限制分-返回被禁选的
|
||||||
const disabledMinute = () => {
|
const disabledMinute = (hour,role) => {
|
||||||
if(getCurrentTime('YYYY-MM-DD') == form.day){
|
if(getCurrentTime('YYYY-MM-DD') == form.day){
|
||||||
const arrs = []
|
const arrs = []
|
||||||
|
if(role == 'start'){
|
||||||
for (let i = 0; i < 60; i++) {
|
for (let i = 0; i < 60; i++) {
|
||||||
if (new Date().getMinutes() <= i && form.time[0]) continue;
|
if (new Date().getMinutes() <= i) continue;
|
||||||
arrs.push(i)
|
arrs.push(i)
|
||||||
}
|
}
|
||||||
return arrs;
|
return arrs;
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
if(form.time[0]) return []
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue