Compare commits
No commits in common. "04263cd519da1d4b668068558c83a983f68c87f4" and "7439c9759a69f237831635bf739fd6afc4e6c591" have entirely different histories.
04263cd519
...
7439c9759a
|
@ -172,23 +172,16 @@ const disabledHours = ()=>{
|
||||||
}
|
}
|
||||||
// 限制分-返回被禁选的
|
// 限制分-返回被禁选的
|
||||||
const disabledMinute = (hour,role) => {
|
const disabledMinute = (hour,role) => {
|
||||||
if(form.time == null) return
|
|
||||||
if(getCurrentTime('YYYY-MM-DD') == form.day){
|
if(getCurrentTime('YYYY-MM-DD') == form.day){
|
||||||
const arrs = []
|
const arrs = []
|
||||||
if(role == 'start'){
|
if(role == 'start'){
|
||||||
let nowHour = new Date().getHours().toString().padStart(2, '0');
|
for (let i = 0; i < 60; i++) {
|
||||||
if(nowHour < hour){
|
if (new Date().getMinutes() <= i) continue;
|
||||||
return []
|
arrs.push(i)
|
||||||
}
|
|
||||||
else{
|
|
||||||
for (let i = 0; i < 60; i++) {
|
|
||||||
if (new Date().getMinutes() <= i) continue;
|
|
||||||
arrs.push(i)
|
|
||||||
}
|
|
||||||
return arrs;
|
|
||||||
}
|
}
|
||||||
|
return arrs;
|
||||||
}
|
}
|
||||||
if(role == 'end'){
|
else{
|
||||||
if(form.time[0]) return []
|
if(form.time[0]) return []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue