提示文案

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) {

View File

@@ -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')