Commit 81753bc4 by chenxin

fix: 群发 定时必填时间限制

parent 449ad3c2
......@@ -465,6 +465,10 @@ export default {
// 保存校验
async submit(formName) {
if (this.info.putOnType == 1 && !this.info.putOnTime) {
this.$tips({ type: 'warning', message: '请设置发送时间' });
return;
}
if (this.form.putOnType == 1 && new Date().getTime() + 1000 * 60 * 5 >= new Date(this.form.putOnTime)) {
this.$tips({ type: 'warning', message: '定时发送的时间点必须晚于当前时间5分钟后' });
return;
......
......@@ -207,6 +207,10 @@ export default {
},
//提交表单
async sendSms() {
if (this.info.sendType == 1 && !this.info.sendTime) {
this.$tips({ type: 'warning', message: '请设置发送时间' });
return;
}
if (this.info.sendType == 1 && new Date().getTime() + 1000 * 60 * 5 >= new Date(this.info.sendTime)) {
this.$tips({ type: 'warning', message: '定时发送的时间点必须晚于当前时间5分钟后' });
return;
......
......@@ -267,6 +267,10 @@ export default {
// console.log(this.info);
// // 这里强制获取人群筛选器的配置项
// await this.$refs.peopleFilter.confirmSet();
if (this.info.sendType == 1 && !this.info.sendTime) {
this.$tips({ type: 'warning', message: '请设置发送时间' });
return;
}
if (this.info.sendType == 1 && new Date().getTime() + 1000 * 60 * 5 >= new Date(this.info.sendTime)) {
this.$tips({ type: 'warning', message: '定时发送的时间点必须晚于当前时间5分钟后' });
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