fix: 【系统设置】邮件设置提前小时数双向绑定无效问题修改

This commit is contained in:
韦荣超 2022-03-01 15:06:39 +08:00
parent 973d13b705
commit ce9d91e990

View File

@ -109,14 +109,20 @@ export default {
});
},
hoursChange(e) {
if (e % 0.5 !== 0) {
this.formData.task_remind_hours = 1;
let newNum = e * 10;
if (newNum % 5 !== 0) {
setTimeout(() => {
this.formData.task_remind_hours = 1;
})
$A.messageError('任务提醒只能是0.5的倍数');
}
},
hours2Change(e) {
if (e % 0.5 !== 0) {
this.formData.task_remind_hours2 = 1;
let newNum = e * 10;
if (newNum % 5 !== 0) {
setTimeout(() => {
this.formData.task_remind_hours2 = 1;
})
$A.messageError('第二次任务提醒只能是0.5的倍数');
}
}