提示文案

This commit is contained in:
shijingjing
2023-03-03 13:50:33 +08:00
parent a1829b3bc0
commit 115ffb9ac3
2 changed files with 14 additions and 14 deletions

View File

@@ -405,6 +405,17 @@ export default {
confirm() {
if(this.flag) return
if(!this.form.taskTitle) {
return this.$u.toast('请输入任务名称')
}
if(!this.form.sendScope || !this.sum.length) {
return this.$u.toast('请选择发送范围')
}
if(!this.content || form.wxGroups.length) {
return this.$u.toast("请输入发送内容")
}
this.form.contents = []
// 文本
const firstContent = [
@@ -446,18 +457,6 @@ export default {
this.forms.contents = this.form.contents
this.forms.taskTitle = this.form.taskTitle
}
if(!this.form.taskTitle) {
return this.$u.toast('请输入任务名称')
}
if(!this.form.sendScope) {
return this.$u.toast('请选择发送范围')
}
if(!this.form.contents.length) {
return this.$u.toast("请输入发送内容")
}
if(this.enableExamine) { // 是否需要审批0否、1
if(!this.form.examines.length) {