This commit is contained in:
yanran200730
2022-09-15 15:00:07 +08:00
parent 05aad4b68e
commit 0fc014b17b
2 changed files with 9 additions and 2 deletions

View File

@@ -596,9 +596,15 @@ export default {
if (valid) {
if (new Date(this.dateForm.choiceTime).getTime() < Date.now()) {
return this.$message.error('定时发送时间不得早于当前时间')
} else {
this.confirm(1)
}
if (this.params.sendChannel === 'sendChannel' && new Date(this.dateForm.choiceTime).getTime() > new Date(this.dateForm.taskEndTime).getTime()) {
return this.$message.error('定时发送时间不得晚于结束时间')
}
taskEndTime
this.confirm(1)
}
})
},