This commit is contained in:
yanran200730
2022-09-15 15:26:49 +08:00
parent 0fc014b17b
commit e16c1d6c85

View File

@@ -598,12 +598,10 @@ export default {
return this.$message.error('定时发送时间不得早于当前时间') return this.$message.error('定时发送时间不得早于当前时间')
} }
if (this.params.sendChannel === 'sendChannel' && new Date(this.dateForm.choiceTime).getTime() > new Date(this.dateForm.taskEndTime).getTime()) { if (this.params.sendChannel === '1' && new Date(this.dateForm.choiceTime).getTime() > new Date(this.form.taskEndTime).getTime()) {
return this.$message.error('定时发送时间不得晚于结束时间') return this.$message.error('定时发送时间不得晚于结束时间')
} }
taskEndTime
this.confirm(1) this.confirm(1)
} }
}) })
@@ -616,6 +614,10 @@ export default {
return this.$message.error('居民群数量不能为0') return this.$message.error('居民群数量不能为0')
} }
if (this.params.sendChannel === '1' && new Date(this.form.taskEndTime).getTime() < Date.now()) {
return this.$message.error('结束时间不得早于当前时间')
}
if (sendType === 1 && !this.dateForm.choiceTime) { if (sendType === 1 && !this.dateForm.choiceTime) {
this.isShowDate = true this.isShowDate = true
return false return false