zengyicheng 2 anni fa
parent
commit
3450995cbc
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      src/components/studyStudent.vue

+ 8 - 0
src/components/studyStudent.vue

@@ -5130,6 +5130,14 @@ export default {
         });
     },
     addSenWorks() {
+      for(var i =0;i<this.sentenceList.length;i++){
+        for(var j=0;j<this.sentenceList[i].chooseSenList.length;j++){
+          if(this.sentenceList[i].chooseSenList[j] == undefined || this.sentenceList[i].chooseSenList[j] == ''){
+            this.$message.error("请将答案填写完整!");
+            return;
+          }
+        }
+      }
       let params = [
         {
           uid: this.userid,