Просмотр исходного кода

提交题库response.boyd的bug

weiwenhai 6 лет назад
Родитель
Сommit
8d77fcf1e4

+ 3 - 3
src/modules/questions/views/EditOtherQuestion.vue

@@ -355,7 +355,7 @@ export default {
       this.$http
         .get(QUESTION_API + "/courseProperty/code/" + code)
         .then(response => {
-          this.coursePropertyList = response.body;
+          this.coursePropertyList = response.data;
         });
     },
     //查询一级属性
@@ -379,7 +379,7 @@ export default {
       this.$http
         .get(QUESTION_API + "/property/second/" + this.firstPropertyId)
         .then(response => {
-          this.secondPropertyList = response.body;
+          this.secondPropertyList = response.data;
         });
     },
     //新增属性
@@ -500,7 +500,7 @@ export default {
       this.$http
         .get(QUESTION_API + "/courseProperty/enable/" + this.courseNo)
         .then(response => {
-          this.coursePropertyList = response.body;
+          this.coursePropertyList = response.data;
         });
     }
   },

+ 3 - 3
src/modules/questions/views/InsertBluePaperStructureInfo.vue

@@ -414,7 +414,7 @@ export default {
               this.$http
                 .get(QUESTION_API + "/property/" + blueStruct.coursePropertyId)
                 .then(response => {
-                  this.properties = response.body;
+                  this.properties = response.data;
                   this.init();
                 });
             } else {
@@ -478,7 +478,7 @@ export default {
         "&courseNo=" +
         this.blueStruct.courseNo;
       this.$http.get(url).then(response => {
-        this.quesNameList = response.body;
+        this.quesNameList = response.data;
       });
     },
     //查询来源大题名称
@@ -491,7 +491,7 @@ export default {
           "&courseNo=" +
           this.blueStruct.courseNo;
         this.$http.get(url).then(response => {
-          this.quesNameList = response.body;
+          this.quesNameList = response.data;
         });
       }
       this.paperDetailStruct.quesNames = [];

+ 1 - 1
src/modules/questions/views/Question.vue

@@ -475,7 +475,7 @@ export default {
           .delete(QUESTION_API + "/paper/deleteQuestion/" + row.id)
           .then(
             response => {
-              if (response.body.length > 0) {
+              if (response.data.length > 0) {
                 this.loading = false;
                 this.deleteInfo =
                   "该试题被试卷:" +