linwenxin il y a 5 mois
Parent
commit
a54b3beeb7
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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),