From a9e4aae6628ee3568273cd8675d8730b8fe1e0b6 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 27 Jun 2022 14:37:00 +0800 Subject: [PATCH] 30355 --- .../wxwork/AppMassNotification/components/Add.vue | 7 +++++-- .../sanjianxi/apps/AppScoreRules/AppScoreRules.vue | 14 +++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/packages/wxwork/AppMassNotification/components/Add.vue b/packages/wxwork/AppMassNotification/components/Add.vue index e92ca511..18a79d83 100644 --- a/packages/wxwork/AppMassNotification/components/Add.vue +++ b/packages/wxwork/AppMassNotification/components/Add.vue @@ -25,7 +25,7 @@ - + @@ -147,9 +147,9 @@ export default { videos: [], files: [], rules: { + deptList: [{required: true, message: '请选择发送范围'}], content: [{required: true, message: '请输入群发内容'}], messageSource: [{required: true, message: '请选择群发方式'}], - deptList: [{required: true, message: '请选择发送范围'}], }, } }, @@ -188,6 +188,9 @@ export default { }) }, confirm() { + if(!this.form.deptList.length) { + return this.$message.error('请选择发送范围') + } this.$refs.form.validate((valid) => { if (valid) { this.form.fileList = [] diff --git a/project/sanjianxi/apps/AppScoreRules/AppScoreRules.vue b/project/sanjianxi/apps/AppScoreRules/AppScoreRules.vue index 87f996a1..b715e943 100644 --- a/project/sanjianxi/apps/AppScoreRules/AppScoreRules.vue +++ b/project/sanjianxi/apps/AppScoreRules/AppScoreRules.vue @@ -6,10 +6,9 @@