xiatian преди 3 години
родител
ревизия
2bf9da019e

+ 5 - 1
src/modules/questions/views/EditOtherQuestion.vue

@@ -316,7 +316,11 @@ export default {
     }
     if (this.courseNo) {
       this.$http
-        .get(QUESTION_API + "/courseProperty/enable/" + this.courseNo)
+        .get(
+          QUESTION_API +
+            "/courseProperty/enable?courseCode=" +
+            encodeURIComponent(this.courseNo)
+        )
         .then((response) => {
           this.coursePropertyList = response.data;
         });

+ 5 - 1
src/modules/questions/views/EditPaper.vue

@@ -1772,7 +1772,11 @@ export default {
     //查询所有课程属性名
     initCourseProperty(courseCode) {
       this.$http
-        .get(QUESTION_API + "/courseProperty/enable/" + courseCode)
+        .get(
+          QUESTION_API +
+            "/courseProperty/enable?courseCode=" +
+            encodeURIComponent(courseCode)
+        )
         .then((response) => {
           this.coursePropertyList = response.data;
         });

+ 5 - 1
src/modules/questions/views/EditPaperPendingTrial.vue

@@ -1883,7 +1883,11 @@ export default {
     //查询所有课程属性名
     initCourseProperty(courseCode) {
       this.$http
-        .get(QUESTION_API + "/courseProperty/enable/" + courseCode)
+        .get(
+          QUESTION_API +
+            "/courseProperty/enable?courseCode=" +
+            encodeURIComponent(courseCode)
+        )
         .then((response) => {
           this.coursePropertyList = response.data;
         });

+ 10 - 2
src/modules/questions/views/EditSelectQuestion.vue

@@ -341,7 +341,11 @@ export default {
     }
     if (this.courseNo) {
       this.$http
-        .get(QUESTION_API + "/courseProperty/enable/" + this.courseNo)
+        .get(
+          QUESTION_API +
+            "/courseProperty/enable?courseCode=" +
+            encodeURIComponent(this.courseNo)
+        )
         .then((response) => {
           this.coursePropertyList = response.data;
         });
@@ -563,7 +567,11 @@ export default {
     initCourseProperty() {
       var code = this.quesModel.course.code;
       this.$http
-        .get(QUESTION_API + "/courseProperty/enable/" + code)
+        .get(
+          QUESTION_API +
+            "/courseProperty/enable?courseCode=" +
+            encodeURIComponent(code)
+        )
         .then((response) => {
           this.coursePropertyList = response.data;
         });

+ 6 - 2
src/modules/questions/views/InsertBluePaperStructure.vue

@@ -328,7 +328,9 @@ export default {
         this.blueStruct = blueStruct;
         this.$http
           .get(
-            QUESTION_API + "/courseProperty/enable/" + this.blueStruct.courseNo
+            QUESTION_API +
+              "/courseProperty/enable?courseCode=" +
+              encodeURIComponent(this.blueStruct.courseNo)
           )
           .then((response) => {
             this.coursePropertyList = response.data;
@@ -362,7 +364,9 @@ export default {
     getCoursePropertyList() {
       this.$http
         .get(
-          QUESTION_API + "/courseProperty/enable/" + this.blueStruct.courseNo
+          QUESTION_API +
+            "/courseProperty/enable?courseCode=" +
+            encodeURIComponent(this.blueStruct.courseNo)
         )
         .then((response) => {
           this.coursePropertyList = response.data;

+ 5 - 1
src/modules/questions/views/PaperBlue.vue

@@ -131,7 +131,11 @@ export default {
 
     init() {
       this.$http
-        .get(QUESTION_API + "/courseProperty/enable/" + this.courseCode)
+        .get(
+          QUESTION_API +
+            "/courseProperty/enable?courseCode=" +
+            encodeURIComponent(this.courseCode)
+        )
         .then((response) => {
           this.coursePropertyList = response.data;
         });

+ 5 - 3
src/modules/questions/views/Question.vue

@@ -476,8 +476,8 @@ export default {
             this.$http
               .get(
                 QUESTION_API +
-                  "/courseProperty/enable/" +
-                  this.formSearch.courseNo
+                  "/courseProperty/enable?courseCode=" +
+                  encodeURIComponent(this.formSearch.courseNo)
               )
               .then((response) => {
                 this.coursePropertyList = response.data;
@@ -549,7 +549,9 @@ export default {
       if (this.formSearch.courseNo) {
         this.$http
           .get(
-            QUESTION_API + "/courseProperty/enable/" + this.formSearch.courseNo
+            QUESTION_API +
+              "/courseProperty/enable?courseCode=" +
+              encodeURIComponent(this.formSearch.courseNo)
           )
           .then((response) => {
             this.coursePropertyList = response.data;

+ 5 - 1
src/modules/questions/views/ViewPaper.vue

@@ -669,7 +669,11 @@ export default {
     //查询所有课程属性名
     initCourseProperty(courseCode) {
       this.$http
-        .get(QUESTION_API + "/courseProperty/enable/" + courseCode)
+        .get(
+          QUESTION_API +
+            "/courseProperty/enable?courseCode=" +
+            encodeURIComponent(+courseCode)
+        )
         .then((response) => {
           this.coursePropertyList = response.data;
         });