dedsudiyu 2 år sedan
förälder
incheckning
6e2c550c9e
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      src/views/safetyCheck/checkConfiguration/configDialog.vue

+ 6 - 0
src/views/safetyCheck/checkConfiguration/configDialog.vue

@@ -262,6 +262,12 @@
           }
         }
         obj.sysUserVoList = obj.setStudent?this.dialogTableList:[]
+        if(obj.setStudent){
+          if(!obj.sysUserVoList[0]){
+            this.msgError('并未勾选任何学生')
+            return
+          }
+        }
         checkSetAdd(obj).then(response => {
           this.msgSuccess(response.msg);
           this.$parent.configButton(3)