Browse Source

api分流

Michael Wang 4 years ago
parent
commit
400ad2fe07

+ 1 - 1
src/features/OfflineExam/OfflineExamHome.vue

@@ -62,7 +62,7 @@ export default {
   methods: {
   methods: {
     async fetchData() {
     async fetchData() {
       const res = await this.$http.get(
       const res = await this.$http.get(
-        "/api/ecs_oe_admin/offlineExam/getOfflineCourse"
+        "/api/branch_ecs_oe_admin/offlineExam/getOfflineCourse"
       );
       );
 
 
       this.courses = res.data.map((c) => ({
       this.courses = res.data.map((c) => ({

+ 7 - 4
src/features/OfflineExam/OfflineExamList.vue

@@ -146,9 +146,12 @@ export default {
   methods: {
   methods: {
     async enterExam(course) {
     async enterExam(course) {
       // 若出错,直接报网络异常
       // 若出错,直接报网络异常
-      await this.$http.get("/api/ecs_oe_admin/offlineExam/startOfflineExam", {
-        params: { examStudentId: course.examStudentId },
-      });
+      await this.$http.get(
+        "/api/branch_ecs_oe_admin/offlineExam/startOfflineExam",
+        {
+          params: { examStudentId: course.examStudentId },
+        }
+      );
       this.$emit("reloadList");
       this.$emit("reloadList");
     },
     },
     previewPaper(course) {
     previewPaper(course) {
@@ -202,7 +205,7 @@ export default {
       }, 10 * 1000);
       }, 10 * 1000);
 
 
       window.location.href =
       window.location.href =
-        "/api/ecs_ques/paper/export/" +
+        "/api/branch_ecs_ques/paper/export/" +
         course.paperId +
         course.paperId +
         "/PAPER/" +
         "/PAPER/" +
         this.user.rootOrgId +
         this.user.rootOrgId +

+ 1 - 1
src/features/OfflineExam/OfflineExamUpload.vue

@@ -468,7 +468,7 @@ export default {
         closable: true,
         closable: true,
       });
       });
       await this.$http.post(
       await this.$http.post(
-        "/api/ecs_oe_admin/offlineExam/batchSubmitPaper",
+        "/api/branch_ecs_oe_admin/offlineExam/batchSubmitPaper",
         params,
         params,
         { headers: { "Content-Type": "multipart/form-data" } }
         { headers: { "Content-Type": "multipart/form-data" } }
       );
       );

+ 2 - 2
src/features/OfflineExam/OfflineExamUploadCug.vue

@@ -6,7 +6,7 @@
       :data="{ fileType: fileType }"
       :data="{ fileType: fileType }"
       :before-upload="handleBeforeUpload"
       :before-upload="handleBeforeUpload"
       :action="
       :action="
-        '/api/ecs_oe_admin/offlineExam/submitPaper?examRecordDataId=' +
+        '/api/branch_ecs_oe_admin/offlineExam/submitPaper?examRecordDataId=' +
         course.examRecordDataId
         course.examRecordDataId
       "
       "
       :max-size="1024 * 30"
       :max-size="1024 * 30"
@@ -343,7 +343,7 @@ export default {
 
 
                 return this.$http
                 return this.$http
                   .post(
                   .post(
-                    "/api/ecs_oe_admin/offlineExam/submitPaper?examRecordDataId=" +
+                    "/api/branch_ecs_oe_admin/offlineExam/submitPaper?examRecordDataId=" +
                       this.course.examRecordDataId,
                       this.course.examRecordDataId,
                     formData
                     formData
                   )
                   )

+ 5 - 5
src/features/OnlineExam/Examing/ExamPaper.vue

@@ -114,22 +114,22 @@ export default {
       ] = await Promise.all([
       ] = await Promise.all([
         this.$http.get("/api/ecs_exam_work/exam/" + this.examId),
         this.$http.get("/api/ecs_exam_work/exam/" + this.examId),
         this.$http.get(
         this.$http.get(
-          "/api/ecs_oe_admin/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=" +
+          "/api/branch_ecs_oe_admin/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=" +
             this.examRecordDataId +
             this.examRecordDataId +
             (this.fromCache ? "&fromCache=1" : "")
             (this.fromCache ? "&fromCache=1" : "")
         ),
         ),
         this.$http.get(
         this.$http.get(
-          "/api/ecs_oe_admin/examRecordQuestions/getExamRecordQuestions?examRecordDataId=" +
+          "/api/branch_ecs_oe_admin/examRecordQuestions/getExamRecordQuestions?examRecordDataId=" +
             this.examRecordDataId +
             this.examRecordDataId +
             (this.fromCache ? "&fromCache=1" : "")
             (this.fromCache ? "&fromCache=1" : "")
         ),
         ),
         this.$http.get(
         this.$http.get(
-          "/api/ecs_oe_admin/exam/record/data/findExamRecordDataEntity?examRecordDataId=" +
+          "/api/branch_ecs_oe_admin/exam/record/data/findExamRecordDataEntity?examRecordDataId=" +
             this.examRecordDataId +
             this.examRecordDataId +
             (this.fromCache ? "&fromCache=1" : "")
             (this.fromCache ? "&fromCache=1" : "")
         ),
         ),
         this.$http.get(
         this.$http.get(
-          "/api/ecs_oe_admin/practice/getPracticeDetailInfo?examRecordDataId=" +
+          "/api/branch_ecs_oe_admin/practice/getPracticeDetailInfo?examRecordDataId=" +
             this.examRecordDataId +
             this.examRecordDataId +
             (this.fromCache ? "&fromCache=1" : "")
             (this.fromCache ? "&fromCache=1" : "")
         ),
         ),
@@ -260,7 +260,7 @@ export default {
     },
     },
     async getQuestionContent(questionId, exam, courseInfo, examRecordData) {
     async getQuestionContent(questionId, exam, courseInfo, examRecordData) {
       const qContentRes = await this.$http.post(
       const qContentRes = await this.$http.post(
-        "/api/ecs_ques/default_question/question",
+        "/api/branch_ecs_ques/default_question/question",
         {
         {
           questionId: questionId,
           questionId: questionId,
           examId: this.exam.id,
           examId: this.exam.id,

+ 2 - 2
src/features/OnlineExam/OnlineExamHome.vue

@@ -161,9 +161,9 @@ export default {
       for (let i = 0; i < 4; i++) {
       for (let i = 0; i < 4; i++) {
         let url;
         let url;
         if (this.examType === "ONLINE") {
         if (this.examType === "ONLINE") {
-          url = "/api/ecs_oe_admin/examControl/queryExamList";
+          url = "/api/branch_ecs_oe_admin/examControl/queryExamList";
         } else if (this.examType === "ONLINE_HOMEWORK") {
         } else if (this.examType === "ONLINE_HOMEWORK") {
-          url = "/api/ecs_oe_admin/examControl/queryHomeworkList";
+          url = "/api/branch_ecs_oe_admin/examControl/queryHomeworkList";
         }
         }
         examListRes = await this.$http.get(url);
         examListRes = await this.$http.get(url);
         if (examListRes.status === 503) {
         if (examListRes.status === 503) {

+ 1 - 1
src/features/OnlineExam/OnlineExamResultList.vue

@@ -46,7 +46,7 @@ export default {
         try {
         try {
           const results = (
           const results = (
             await this.$http.get(
             await this.$http.get(
-              "/api/ecs_oe_admin/exam/score/queryObjectiveScoreList?examStudentId=" +
+              "/api/branch_ecs_oe_admin/exam/score/queryObjectiveScoreList?examStudentId=" +
                 this.examStudentId
                 this.examStudentId
             )
             )
           ).data;
           ).data;

+ 2 - 1
src/features/OnlinePractice/OnlinePracticeHome.vue

@@ -108,7 +108,8 @@ export default {
 
 
       try {
       try {
         const res = await this.$http.get(
         const res = await this.$http.get(
-          "/api/ecs_oe_admin/practice/queryPracticeCourseList?examId=" + examId
+          "/api/branch_ecs_oe_admin/practice/queryPracticeCourseList?examId=" +
+            examId
         );
         );
 
 
         this.courses = res.data;
         this.courses = res.data;

+ 1 - 1
src/features/OnlinePractice/OnlinePracticeRecordDetail.vue

@@ -142,7 +142,7 @@ export default {
   async created() {
   async created() {
     try {
     try {
       const res = await this.$http.get(
       const res = await this.$http.get(
-        "/api/ecs_oe_admin/practice/getPracticeDetailInfo?examRecordDataId=" +
+        "/api/branch_ecs_oe_admin/practice/getPracticeDetailInfo?examRecordDataId=" +
           this.$route.query.examRecordDataId +
           this.$route.query.examRecordDataId +
           (this.disableGoBack ? "&fromCache=1" : "")
           (this.disableGoBack ? "&fromCache=1" : "")
       );
       );

+ 1 - 1
src/features/OnlinePractice/OnlinePracticeRecordList.vue

@@ -131,7 +131,7 @@ export default {
   async created() {
   async created() {
     try {
     try {
       const res = await this.$http.get(
       const res = await this.$http.get(
-        "/api/ecs_oe_admin/practice/queryPracticeRecordList?examStudentId=" +
+        "/api/branch_ecs_oe_admin/practice/queryPracticeRecordList?examStudentId=" +
           this.$route.query.examStudentId
           this.$route.query.examStudentId
       );
       );
       this.recordList = (res.data || []).reverse();
       this.recordList = (res.data || []).reverse();

+ 1 - 1
src/utils/axios.js

@@ -158,7 +158,7 @@ qmInstance.interceptors.response.use(
     } else if (status == 503) {
     } else if (status == 503) {
       const deal503Apis = [
       const deal503Apis = [
         "/api/ecs_oe_student/examControl/checkExamInProgress",
         "/api/ecs_oe_student/examControl/checkExamInProgress",
-        "/api/ecs_oe_admin/examControl/queryExamList",
+        "/api/branch_ecs_oe_admin/examControl/queryExamList",
       ];
       ];
       if (deal503Apis.includes(error.config.url)) {
       if (deal503Apis.includes(error.config.url)) {
         return Promise.resolve({ status: 503 });
         return Promise.resolve({ status: 503 });