提示文案
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -99,6 +99,7 @@ export default {
|
||||
}).then((res)=>{
|
||||
if(res?.departmentList) {
|
||||
this.deptListArr = res.departmentList
|
||||
uni.setStorageSync('deptList', this.deptListArr)
|
||||
}
|
||||
}).catch((err) => {
|
||||
this.$u.toast(err)
|
||||
@@ -131,8 +132,8 @@ export default {
|
||||
onShow() {
|
||||
// 网格或者部门
|
||||
this.selectedUser = uni.getStorageSync('girdSelect') || []
|
||||
this.deptListArr = uni.getStorageSync('deptList') || []
|
||||
|
||||
this.deptListArr = uni.getStorageSync('deptList') || []
|
||||
|
||||
// 添加时间
|
||||
this.startTime = uni.getStorageSync('startTime')
|
||||
this.endTime = uni.getStorageSync('endTime')
|
||||
|
||||
Reference in New Issue
Block a user