lsc 1 år sedan
förälder
incheckning
66b493dda8
29 ändrade filer med 83 tillägg och 68 borttagningar
  1. 1 1
      dist/index.html
  2. 0 0
      dist/static/css/app.edb8bbb9a91119fd422163bccdd10f91.css
  3. 0 0
      dist/static/css/app.edb8bbb9a91119fd422163bccdd10f91.css.map
  4. 0 0
      dist/static/js/app.f83dff5f61f946bc86fe.js
  5. 0 0
      dist/static/js/app.f83dff5f61f946bc86fe.js.map
  6. 0 0
      dist/static/js/manifest.571c38d63f24b1ae9e16.js.map
  7. 17 2
      src/common/axios.config.js
  8. 2 2
      src/components/pages/addCourseGM.vue
  9. 2 2
      src/components/pages/addCoursejiu.vue
  10. 1 1
      src/components/pages/course.vue
  11. 2 2
      src/components/pages/easy/addCourse.vue
  12. 6 6
      src/components/pages/kindStudentEva/test/component/popbox.vue
  13. 2 2
      src/components/pages/library.vue
  14. 2 2
      src/components/pages/library/fileBox.vue
  15. 2 2
      src/components/pages/newCourse/addCourse.vue
  16. 12 12
      src/components/pages/race/addRace.vue
  17. 5 5
      src/components/pages/student/addCourse.vue
  18. 5 5
      src/components/pages/student/addCourseJiu.vue
  19. 5 5
      src/components/pages/studio/addCourse.vue
  20. 2 2
      src/components/pages/synergyCourse/addCourse.vue
  21. 1 1
      src/components/pages/synergyCourse/group/group.vue
  22. 2 2
      src/components/pages/task/addCourse.vue
  23. 2 2
      src/components/pages/test/add/addTest.vue
  24. 2 2
      src/components/pages/test/add/addTestXin.vue
  25. 2 2
      src/components/pages/test/add/edit/check/file.vue
  26. 2 2
      src/components/pages/testStudent/view/component/file.vue
  27. 2 2
      src/components/pages/testStudent/view/preview.vue
  28. 2 2
      src/components/pages/trainCourse/addCourse.vue
  29. 2 2
      src/components/pages/trainCourse/easy/addCourse.vue

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: 'Source Han Sans SC', sans-serif;
-    }</style><link href=./static/css/app.d1eb8d523edf0b4b6c81fa09abf64596.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.11d8a4dfbebdec332b5f.js></script><script type=text/javascript src=./static/js/app.e58baf36591cda28c3f4.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.edb8bbb9a91119fd422163bccdd10f91.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.11d8a4dfbebdec332b5f.js></script><script type=text/javascript src=./static/js/app.f83dff5f61f946bc86fe.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/static/css/app.edb8bbb9a91119fd422163bccdd10f91.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/static/css/app.edb8bbb9a91119fd422163bccdd10f91.css.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/static/js/app.f83dff5f61f946bc86fe.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/static/js/app.f83dff5f61f946bc86fe.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/static/js/manifest.571c38d63f24b1ae9e16.js.map


+ 17 - 2
src/common/axios.config.js

@@ -25,8 +25,23 @@ axios.interceptors.request.use((config) => {
         config.data = config.data//序列化post 参数
     } else if (config.data && config.data[0].post == '1' && config.method === 'post') {
         config.data = 'mode=' + (Object.values(config.data[0]).join(','))//序列化post 参数
-    } else if(config.method === 'post') {
-        config.data = qs.stringify(config.data)//序列化post 参数
+    } else if (config.method === 'post') {
+
+        const encoded = {};
+        for (const key in config.data[0]) {
+            if (Object.hasOwnProperty.call(config.data[0], key)) {
+            encoded[key] = encodeURIComponent(config.data[0][key]);
+            }
+        }
+        config.data = qs.stringify([encoded]) //序列化post 参数
+    }else {
+        const encoded = {};
+        for (const key in config.data) {
+            if (Object.hasOwnProperty.call(config.data, key)) {
+            encoded[key] = encodeURIComponent(config.data[key]);
+            }
+        }
+        config.data = encoded
     }
     return config;
 }, (error) => {

+ 2 - 2
src/components/pages/addCourseGM.vue

@@ -3336,7 +3336,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.cTemplate != "undefined" ? this.cTemplate : "",
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:
@@ -3494,7 +3494,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.myWord != "undefined" ? this.myWord : [],
           uid: this.userid,
           courseType: JSON.stringify(this.courseTypeId),

+ 2 - 2
src/components/pages/addCoursejiu.vue

@@ -6212,7 +6212,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.cTemplate != "undefined" ? this.cTemplate : "",
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:
@@ -6379,7 +6379,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.myWord != "undefined" ? this.myWord : [],
           uid: this.userid,
           courseType: JSON.stringify(this.courseTypeId),

+ 1 - 1
src/components/pages/course.vue

@@ -31,7 +31,7 @@
               <div type="primary" @click="goToCourse3()">极简式课程</div>
               <!-- <div type="primary" @click="goToCourse2()">任务式课程</div> -->
               <div type="primary" @click="goToCourse()">阶段式课程</div>
-              <div type="primary" @click="goToCourse4()">阶段式课程2</div>
+              <div type="primary" @click="goToCourse4()">高级模式</div>
             </div>
           </button>
         </div>

+ 2 - 2
src/components/pages/easy/addCourse.vue

@@ -6865,7 +6865,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.cTemplate != "undefined" ? this.cTemplate : "",
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:
@@ -7011,7 +7011,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.myWord != "undefined" ? this.myWord : [],
           uid: this.userid,
           courseType: JSON.stringify(this.courseTypeId),

+ 6 - 6
src/components/pages/kindStudentEva/test/component/popbox.vue

@@ -267,9 +267,9 @@ export default {
           contact: this.recordData.contact.join(","),
           type: this.recordData.type.join(","),
           timing: this.recordData.recordDate,
-          place: encodeURIComponent(this.recordData.place),
-          observeCon: encodeURIComponent(this.recordData.recordTit),
-          recordCon: encodeURIComponent(this.recordData.recordContent),
+          place: this.recordData.place,
+          observeCon: this.recordData.recordTit,
+          recordCon: this.recordData.recordContent,
           imgList: this.recordData.recordImg.join(","),
           term: this.recordData.term,
           pid: 1
@@ -334,9 +334,9 @@ export default {
           contact: this.recordData.contact.join(","),
           type: this.recordData.type.join(","),
           timing: this.recordData.recordDate,
-          place: encodeURIComponent(this.recordData.place),
-          observeCon: encodeURIComponent(this.recordData.recordTit),
-          recordCon: encodeURIComponent(this.recordData.recordContent),
+          place: this.recordData.place,
+          observeCon: this.recordData.recordTit,
+          recordCon: this.recordData.recordContent,
           imgList: this.recordData.recordImg.join(","),
           term: this.recordData.term,
           pid: 1

+ 2 - 2
src/components/pages/library.vue

@@ -179,7 +179,7 @@ export default {
       }
       let params = [{
         pid: pid,
-        name: encodeURIComponent(this.addInput),
+        name: this.addInput,
         uid: this.userid
       }];
       this.ajax
@@ -337,7 +337,7 @@ export default {
       }
       let params = [{
         id: id,
-        name: encodeURIComponent(this.renameInput)
+        name: this.renameInput
       }];
       this.ajax
         .post(this.$store.state.api + "updateSourceFileName", params)

+ 2 - 2
src/components/pages/library/fileBox.vue

@@ -535,8 +535,8 @@ export default {
                 id = this.typeArray[type[0]].child[type[1]].id
             }
             let params = [{
-                n: encodeURIComponent(file.name),
-                file: encodeURIComponent(file.url),
+                n: file.name,
+                file: file.url,
                 type: file.type,
                 pid: id,
                 uid: this.userid,

+ 2 - 2
src/components/pages/newCourse/addCourse.vue

@@ -10095,7 +10095,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.cTemplate != "undefined" ? this.cTemplate : "",
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:
@@ -10334,7 +10334,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.myWord != "undefined" ? this.myWord : [],
           uid: this.userid,
           courseType: JSON.stringify(this.courseTypeId),

+ 12 - 12
src/components/pages/race/addRace.vue

@@ -275,16 +275,16 @@ export default {
       let params = [
         {
           uid: this.userid,
-          info: JSON.stringify(this.raceInfo).replaceAll(/%/g, "%25"),
-          over: JSON.stringify(this.raceOverView).replaceAll(/%/g, "%25"),
-          pro: JSON.stringify(this.raceProcess).replaceAll(/%/g, "%25"),
-          act:JSON.stringify(this.raceProcess).replaceAll(/%/g, "%25"),
-          exc:JSON.stringify(this.raceExceva).replaceAll(/%/g, "%25"),
+          info: JSON.stringify(this.raceInfo),
+          over: JSON.stringify(this.raceOverView),
+          pro: JSON.stringify(this.raceProcess),
+          act:JSON.stringify(this.raceProcess),
+          exc:JSON.stringify(this.raceExceva),
           courseType: JSON.stringify(this.raceInfo.type).replaceAll(
             /%/g,
             "%25"
           ),
-          res: JSON.stringify(this.raceEffect).replaceAll(/%/g, "%25"),
+          res: JSON.stringify(this.raceEffect),
         },
       ];
       this.ajax
@@ -312,12 +312,12 @@ export default {
       let params = [
         {
           id: this.aid,
-          info: JSON.stringify(this.raceInfo).replaceAll(/%/g, "%25"),
-          over: JSON.stringify(this.raceOverView).replaceAll(/%/g, "%25"),
-          pro: JSON.stringify(this.raceProcess).replaceAll(/%/g, "%25"),
-          act:JSON.stringify(this.raceProcess).replaceAll(/%/g, "%25"),
-          exc:JSON.stringify(this.raceExceva).replaceAll(/%/g, "%25"),
-          res: JSON.stringify(this.raceEffect).replaceAll(/%/g, "%25"),
+          info: JSON.stringify(this.raceInfo),
+          over: JSON.stringify(this.raceOverView),
+          pro: JSON.stringify(this.raceProcess),
+          act:JSON.stringify(this.raceProcess),
+          exc:JSON.stringify(this.raceExceva),
+          res: JSON.stringify(this.raceEffect),
           courseType: JSON.stringify(this.raceInfo.type).replaceAll(
             /%/g,
             "%25"

+ 5 - 5
src/components/pages/student/addCourse.vue

@@ -5678,7 +5678,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.cTemplate != "undefined" ? this.cTemplate : "",
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:
@@ -5895,7 +5895,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.myWord != "undefined" ? this.myWord : [],
           uid: this.userid,
           courseType: JSON.stringify(this.courseTypeId),
@@ -8149,7 +8149,7 @@ export default {
           stage: this.unitIndex,
           task: this.taskCount,
           tool: this.toolIndex,
-          content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson.text),
           type: 10,
           atool: 48,
         },
@@ -8221,7 +8221,7 @@ export default {
           stage: this.unitIndex,
           task: this.taskCount,
           tool: this.toolIndex,
-          content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson.text),
           type: 12,
           atool: 52,
         },
@@ -8528,7 +8528,7 @@ export default {
           stage: this.unitIndex,
           task: this.taskCount,
           tool: this.toolIndex,
-          content: this.questionAnswer.replaceAll(/%/g, "%25"),
+          content: this.questionAnswer,
           type: 3,
           atool: 15,
         },

+ 5 - 5
src/components/pages/student/addCourseJiu.vue

@@ -5795,7 +5795,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.cTemplate != "undefined" ? this.cTemplate : "",
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:
@@ -5977,7 +5977,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.myWord != "undefined" ? this.myWord : [],
           uid: this.userid,
           courseType: JSON.stringify(this.courseTypeId),
@@ -8110,7 +8110,7 @@ export default {
           stage: this.unitIndex,
           task: this.taskCount,
           tool: this.toolIndex,
-          content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson.text),
           type: 10,
           atool: 48,
         },
@@ -8182,7 +8182,7 @@ export default {
           stage: this.unitIndex,
           task: this.taskCount,
           tool: this.toolIndex,
-          content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson.text),
           type: 12,
           atool: 52,
         },
@@ -8436,7 +8436,7 @@ export default {
           stage: this.unitIndex,
           task: this.taskCount,
           tool: this.toolIndex,
-          content: this.questionAnswer.replaceAll(/%/g, "%25"),
+          content: this.questionAnswer,
           type: 3,
           atool: 15,
         },

+ 5 - 5
src/components/pages/studio/addCourse.vue

@@ -6726,7 +6726,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.cTemplate != "undefined" ? this.cTemplate : "",
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:
@@ -6908,7 +6908,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.myWord != "undefined" ? this.myWord : [],
           uid: this.userid,
           courseType: JSON.stringify(this.courseTypeId),
@@ -8792,7 +8792,7 @@ export default {
           stage: this.unitIndex,
           task: this.taskCount,
           tool: this.toolIndex,
-          content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson.text),
           type: 10,
           atool: 48,
         },
@@ -8864,7 +8864,7 @@ export default {
           stage: this.unitIndex,
           task: this.taskCount,
           tool: this.toolIndex,
-          content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
+          content: JSON.stringify(this.tableJson.text),
           type: 12,
           atool: 52,
         },
@@ -9076,7 +9076,7 @@ export default {
           stage: this.unitIndex,
           task: this.taskCount,
           tool: this.toolIndex,
-          content: this.questionAnswer.replaceAll(/%/g, "%25"),
+          content: this.questionAnswer,
           type: 3,
           atool: 15,
         },

+ 2 - 2
src/components/pages/synergyCourse/addCourse.vue

@@ -4897,7 +4897,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.cTemplate != "undefined" ? this.cTemplate : "",
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:
@@ -5059,7 +5059,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.myWord != "undefined" ? this.myWord : [],
           uid: this.userid,
           courseType: JSON.stringify(this.courseTypeId),

+ 1 - 1
src/components/pages/synergyCourse/group/group.vue

@@ -678,7 +678,7 @@ export default {
             let params = [
                 {
                     cid: this.cid,
-                    group: JSON.stringify(this.groupJson2).replaceAll(/%/g, "%25"),
+                    group: JSON.stringify(this.groupJson2),
                     classid: this.classid,
                 },
             ];

+ 2 - 2
src/components/pages/task/addCourse.vue

@@ -10510,7 +10510,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.cTemplate != "undefined" ? this.cTemplate : "",
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:
@@ -10657,7 +10657,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.myWord != "undefined" ? this.myWord : [],
           uid: this.userid,
           courseType: JSON.stringify(this.courseTypeId),

+ 2 - 2
src/components/pages/test/add/addTest.vue

@@ -144,7 +144,7 @@ export default {
                     evaId: "",
                     astudent: this.juri,
                     see: this.see == true ? 1 : 0,
-                    chapters: JSON.stringify(this.cJson).replaceAll(/%/g, "%25"),
+                    chapters: JSON.stringify(this.cJson),
                     template: "",
                     courseType: JSON.stringify(this.testType),
                     ateacher: "",
@@ -198,7 +198,7 @@ export default {
                     evaId: "",
                     astudent: this.juri,
                     see: this.see == true ? 1 : 0,
-                    chapters: JSON.stringify(this.cJson).replaceAll(/%/g, "%25"),
+                    chapters: JSON.stringify(this.cJson),
                     uid: this.userid,
                     courseType: JSON.stringify(this.testType),
                     ateacher: "",

+ 2 - 2
src/components/pages/test/add/addTestXin.vue

@@ -144,7 +144,7 @@ export default {
                     evaId: "",
                     astudent: this.juri,
                     see: this.see == true ? 1 : 0,
-                    chapters: JSON.stringify(this.cJson).replaceAll(/%/g, "%25"),
+                    chapters: JSON.stringify(this.cJson),
                     template: "",
                     courseType: JSON.stringify(this.testType),
                     ateacher: "",
@@ -198,7 +198,7 @@ export default {
                     evaId: "",
                     astudent: this.juri,
                     see: this.see == true ? 1 : 0,
-                    chapters: JSON.stringify(this.cJson).replaceAll(/%/g, "%25"),
+                    chapters: JSON.stringify(this.cJson),
                     uid: this.userid,
                     courseType: JSON.stringify(this.testType),
                     ateacher: "",

+ 2 - 2
src/components/pages/test/add/edit/check/file.vue

@@ -384,8 +384,8 @@ export default {
         },
         addSource(file) {
             let params = [{
-                n: encodeURIComponent(file.name),
-                file: encodeURIComponent(file.url),
+                n: file.name,
+                file: file.url,
                 type: file.type,
                 pid: '0',
                 uid: this.userid,

+ 2 - 2
src/components/pages/testStudent/view/component/file.vue

@@ -467,8 +467,8 @@ export default {
         },
         addSource(file) {
             let params = [{
-                n: encodeURIComponent(file.name),
-                file: encodeURIComponent(file.url),
+                n: file.name,
+                file: file.url,
                 type: file.type,
                 pid: '0',
                 uid: this.userid,

+ 2 - 2
src/components/pages/testStudent/view/preview.vue

@@ -500,7 +500,7 @@ export default {
         {
           uid: (this.tid) ? this.tid : this.userid,
           cid: this.cid,
-          cjson: encodeURIComponent(JSON.stringify(cjson)),
+          cjson: JSON.stringify(cjson),
           type: '2',
         },
       ];
@@ -553,7 +553,7 @@ export default {
         {
           uid: (this.tid) ? this.tid : this.userid,
           cid: this.cid,
-          cjson: encodeURIComponent(JSON.stringify(cjson)),
+          cjson: JSON.stringify(cjson),
           type: '2',
         },
       ];

+ 2 - 2
src/components/pages/trainCourse/addCourse.vue

@@ -6558,7 +6558,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.cTemplate != "undefined" ? this.cTemplate : "",
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:
@@ -6795,7 +6795,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.myWord != "undefined" ? this.myWord : [],
           uid: this.userid,
           courseType: JSON.stringify(this.courseTypeId),

+ 2 - 2
src/components/pages/trainCourse/easy/addCourse.vue

@@ -6850,7 +6850,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.cTemplate != "undefined" ? this.cTemplate : "",
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:
@@ -6996,7 +6996,7 @@ export default {
           astudent:
             this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
           see: this.isTeacherSee == true ? 1 : 0,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           template: this.myWord != "undefined" ? this.myWord : [],
           uid: this.userid,
           courseType: JSON.stringify(this.courseTypeId),

Vissa filer visades inte eftersom för många filer har ändrats