Browse Source

no message

linwenxin 4 months ago
parent
commit
a54b3beeb7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/setting/notification/networkNotification/index.vue

+ 4 - 0
src/views/setting/notification/networkNotification/index.vue

@@ -398,6 +398,10 @@ export default {
     formConfirm() {
       this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
         if (valid) {
+          if (this.formData.websits.length == 0) {
+            this.$message.warning('网点必须至少选择一个!')
+            return
+          }
           ;(this.formType ? noticeWebsitUpdate : noticeWebsitAdd)({
             ...this.formData,
             websitIds: this.formData.websits.map(item => item.websitId),