Commit 071f9094 by caoyanzhi

update: 添加保存校验

parent 5af0adad
......@@ -749,6 +749,13 @@ export default {
this.$tips({ type: 'warning', message: '执行时间得大于当前时间至少10min' });
return;
}
const time = this.form.execTime.split(' ')[1].split(':');
const flag = Number(time[0]) < 9 || (Number(time[0]) == 23 && Number(time[2]) > 0);
if (this.hasRealTime && flag) {
// 非实时分组人群,当前时段
this.$tips({ type: 'warning', message: '当前时段不可选择非实时分组人群,请修改执行时间或者适用人群' });
return;
}
} else if (this.form.execType !== 1) {
this.$tips({ type: 'warning', message: '请填写执行时间' });
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment