dedsudiyu 2 роки тому
батько
коміт
6e2c550c9e

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