This commit is contained in:
zhaoxinyu
2024-09-05 17:38:32 +08:00
parent f09d1598ef
commit a085addace
12 changed files with 13 additions and 10 deletions
@@ -479,7 +479,7 @@ layout("/mobile/platform.html"){
}
const paramArray = []
let valid = false
this.checked.forEach(item => {
for (const item of this.checked) {
if (item.leaveReason === '' || item.leaveReason === undefined) {
vant.Toast('请填写请假原因');
valid = true
@@ -494,7 +494,7 @@ layout("/mobile/platform.html"){
}
)
}
})
}
if (paramArray.length === 0) {
vant.Toast('请选择请假时间段');
return