Переглянути джерело

rename DATA_PROCESS_API to MARKING_LOGIC_API

deason 2 роки тому
батько
коміт
e493bff7be

+ 1 - 1
src/constants/constants.js

@@ -1,7 +1,7 @@
 export const CORE_API = "/api/ecs_core"; //基础信息API
 export const EXAM_WORK_API = "/api/ecs_exam_work"; //考务信息API
 export const MARKING_API = "/api/ecs_marking"; //阅卷API
-export const DATA_PROCESS_API = "/api/ecs_marking/logic"; //数据中间层API
+export const MARKING_LOGIC_API = "/api/ecs_marking/logic"; //阅卷中间层API
 export const OE_API = "/api/ecs_oe"; //网考API
 export const QUESTION_API = "/api/ecs_ques"; //题库API
 export const EXCHANGE_API = "/api/ecs_outlet"; //接口机

+ 3 - 3
src/modules/marking/views/CourseDetail.vue

@@ -113,7 +113,7 @@
 </template>
 
 <script>
-import { DATA_PROCESS_API } from "@/constants/constants";
+import { MARKING_LOGIC_API } from "@/constants/constants";
 import { mapState } from "vuex";
 import LinkTitlesCustom from "@/components/LinkTitlesCustom.vue";
 export default {
@@ -170,7 +170,7 @@ export default {
       this.loading = true;
       this.$http
         .get(
-          DATA_PROCESS_API +
+          MARKING_LOGIC_API +
             "/markTasks/all/0/" +
             this.pageSize +
             "?workId=" +
@@ -189,7 +189,7 @@ export default {
       this.loading = true;
       this.$http
         .get(
-          DATA_PROCESS_API +
+          MARKING_LOGIC_API +
             "/markTasks/all/" +
             (this.currentPage - 1) +
             "/" +

+ 8 - 4
src/modules/marking/views/MarkPaperCheck.vue

@@ -291,7 +291,11 @@
 
 <script>
 import { mapState } from "vuex";
-import { CORE_API, MARKING_API, DATA_PROCESS_API } from "@/constants/constants";
+import {
+  CORE_API,
+  MARKING_API,
+  MARKING_LOGIC_API,
+} from "@/constants/constants";
 import "viewerjs/dist/viewer.css";
 import Viewer from "viewerjs";
 
@@ -456,7 +460,7 @@ export default {
     },
     getMarkWorks() {
       this.$http
-        .get(DATA_PROCESS_API + "/markWorks?status=1")
+        .get(MARKING_LOGIC_API + "/markWorks?status=1")
         .then((response) => {
           this.markWorkList = response.data;
           if (this.$route.query && this.$route.query.workId) {
@@ -496,7 +500,7 @@ export default {
 
       this.$http
         .get(
-          DATA_PROCESS_API +
+          MARKING_LOGIC_API +
             "/markUsers/assign?workId=" +
             this.formSearch.workId +
             "&courseCode="
@@ -554,7 +558,7 @@ export default {
       }
       this.loading = true;
       var url =
-        DATA_PROCESS_API +
+        MARKING_LOGIC_API +
         "/markResults/all/" +
         (this.currentPage - 1) +
         "/" +

+ 4 - 4
src/modules/marking/views/MarkSettingFast.vue

@@ -99,7 +99,7 @@
 </template>
 
 <script>
-import { MARKING_API, DATA_PROCESS_API } from "@/constants/constants";
+import { MARKING_API, MARKING_LOGIC_API } from "@/constants/constants";
 import { mapState } from "vuex";
 import LinkTitlesCustom from "@/components/LinkTitlesCustom.vue";
 export default {
@@ -173,7 +173,7 @@ export default {
           courseCode: this.courseCode,
         };
         this.loading = true;
-        this.$http.post(DATA_PROCESS_API + "/markTasks", this.markTasks).then(
+        this.$http.post(MARKING_LOGIC_API + "/markTasks", this.markTasks).then(
           () => {
             this.$notify({
               message: "快速设置成功",
@@ -239,7 +239,7 @@ export default {
       this.loading = true;
       this.$http
         .get(
-          DATA_PROCESS_API +
+          MARKING_LOGIC_API +
             "/markUsers?workId=" +
             this.workId +
             "&courseCode=" +
@@ -276,7 +276,7 @@ export default {
       this.loading = true;
       this.$http
         .get(
-          DATA_PROCESS_API +
+          MARKING_LOGIC_API +
             "/markUsers/assign?workId=" +
             this.workId +
             "&courseCode=" +

+ 2 - 2
src/modules/marking/views/MarkSettingMain.vue

@@ -253,7 +253,7 @@
 </template>
 
 <script>
-import { MARKING_API, DATA_PROCESS_API } from "@/constants/constants";
+import { MARKING_API, MARKING_LOGIC_API } from "@/constants/constants";
 import { mapState } from "vuex";
 import LinkTitlesCustom from "@/components/LinkTitlesCustom.vue";
 export default {
@@ -292,7 +292,7 @@ export default {
       },
       paperId: "",
       impDialog: false,
-      uploadAction: DATA_PROCESS_API + "/markTasks/import",
+      uploadAction: MARKING_LOGIC_API + "/markTasks/import",
       uploadHeaders: {},
       uploadData: { workId: "" },
       errMessages: [],

+ 2 - 2
src/modules/marking/views/MarkSettingWork.vue

@@ -83,7 +83,7 @@
 </template>
 
 <script>
-import { DATA_PROCESS_API, MARKING_API } from "@/constants/constants";
+import { MARKING_LOGIC_API, MARKING_API } from "@/constants/constants";
 import { mapState } from "vuex";
 export default {
   data() {
@@ -114,7 +114,7 @@ export default {
     initMarkWork() {
       this.loading = true;
       this.$http
-        .get(DATA_PROCESS_API + "/markWorks?userId=" + this.user.userId)
+        .get(MARKING_LOGIC_API + "/markWorks?userId=" + this.user.userId)
         .then((response) => {
           this.totalTableData = response.data;
           this.total = response.data.length;

+ 6 - 6
src/modules/marking/views/MarkWork.vue

@@ -267,7 +267,7 @@
 
 <script>
 import { mapState } from "vuex";
-import { MARKING_API, DATA_PROCESS_API } from "@/constants/constants";
+import { MARKING_API, MARKING_LOGIC_API } from "@/constants/constants";
 export default {
   data() {
     return {
@@ -363,7 +363,7 @@ export default {
     appendPaper(row) {
       this.loading = true;
       this.$http
-        .put(DATA_PROCESS_API + "/markWorks/append-paper/" + row.id)
+        .put(MARKING_LOGIC_API + "/markWorks/append-paper/" + row.id)
         .then(() => {
           this.$notify({
             message: "操作成功",
@@ -375,7 +375,7 @@ export default {
     },
     recreate(row) {
       this.loading = true;
-      this.$http.put(DATA_PROCESS_API + "/markWorks/" + row.id).then(() => {
+      this.$http.put(MARKING_LOGIC_API + "/markWorks/" + row.id).then(() => {
         this.$notify({
           message: "操作成功",
           type: "success",
@@ -404,7 +404,7 @@ export default {
         params = params + "&examType=" + this.formMarkWork.examType;
       }
       this.$http
-        .get(DATA_PROCESS_API + "/exam/all" + params)
+        .get(MARKING_LOGIC_API + "/exam/all" + params)
         .then((response) => {
           response.data.forEach((element, index) => {
             tempSelect[index] = {
@@ -420,7 +420,7 @@ export default {
       var orgId = this.user.rootOrgId;
       this.loading = true;
       this.$http
-        .get(DATA_PROCESS_API + "/markWorks?orgId=" + orgId)
+        .get(MARKING_LOGIC_API + "/markWorks?orgId=" + orgId)
         .then((response) => {
           console.log(response);
           this.totalTableData = response.data;
@@ -685,7 +685,7 @@ export default {
               );
           } else {
             this.$http
-              .post(DATA_PROCESS_API + "/markWorks", this.formMarkWork)
+              .post(MARKING_LOGIC_API + "/markWorks", this.formMarkWork)
               .then(
                 () => {
                   this.$notify({

+ 2 - 2
src/modules/marking/views/MarkWorkOverview.vue

@@ -168,7 +168,7 @@
 <script>
 import {
   MARKING_API,
-  DATA_PROCESS_API,
+  MARKING_LOGIC_API,
   QUESTION_API,
 } from "@/constants/constants";
 import { mapState } from "vuex";
@@ -428,7 +428,7 @@ export default {
     },
     getMarkWorks() {
       this.$http
-        .get(DATA_PROCESS_API + "/markWorks?status=1")
+        .get(MARKING_LOGIC_API + "/markWorks?status=1")
         .then((response) => {
           this.markWorkList = response.data;
           if (this.$route.query && this.$route.query.markId) {

+ 4 - 4
src/modules/marking/views/Marker.vue

@@ -144,7 +144,7 @@
 </template>
 
 <script>
-import { DATA_PROCESS_API } from "@/constants/constants";
+import { MARKING_LOGIC_API } from "@/constants/constants";
 import { mapState } from "vuex";
 export default {
   data() {
@@ -194,7 +194,7 @@ export default {
       var key = this.user.key;
       var token = this.user.token;
       let url =
-        DATA_PROCESS_API +
+        MARKING_LOGIC_API +
         "/markers/export?workId=" +
         this.formSearch.workId +
         "&$key=" +
@@ -247,7 +247,7 @@ export default {
       this.loading = true;
       this.$http
         .get(
-          DATA_PROCESS_API +
+          MARKING_LOGIC_API +
             "/markers/all/" +
             (this.currentPage - 1) +
             "/" +
@@ -286,7 +286,7 @@ export default {
     //获取创建成功的markWork列表
     getMarkWorks() {
       this.$http
-        .get(DATA_PROCESS_API + "/markWorks?status=1")
+        .get(MARKING_LOGIC_API + "/markWorks?status=1")
         .then((response) => {
           this.markWorkList = response.data;
           if (this.$route.query && this.$route.query.workId) {

+ 5 - 5
src/modules/marking/views/Marking.vue

@@ -262,7 +262,7 @@ import TpMain from "./TpMain.vue";
 import TpScoreBoard from "./TpScoreBoard.vue";
 import {
   MARKING_API,
-  DATA_PROCESS_API,
+  MARKING_LOGIC_API,
   QUESTION_API,
 } from "@/constants/constants";
 export default {
@@ -464,7 +464,7 @@ export default {
       var userId = this.user.userId;
       await self.$http
         .get(
-          DATA_PROCESS_API +
+          MARKING_LOGIC_API +
             "/markTasks?workId=" +
             self.workId +
             "&userId=" +
@@ -501,7 +501,7 @@ export default {
       var userId = this.user.userId;
       await self.$http
         .get(
-          DATA_PROCESS_API +
+          MARKING_LOGIC_API +
             "/markTasks?workId=" +
             self.workId +
             "&userId=" +
@@ -553,7 +553,7 @@ export default {
     async getPaper() {
       var self = this;
       await self.$http
-        .get(DATA_PROCESS_API + "/studentPapers?markTaskId=" + self.task.id)
+        .get(MARKING_LOGIC_API + "/studentPapers?markTaskId=" + self.task.id)
         .then((response) => {
           if (response.data.resultCode == "0") {
             self.studentPaper = response.data.data;
@@ -603,7 +603,7 @@ export default {
     async getMarkedPaper(studentPaperId) {
       var self = this;
       await self.$http
-        .get(DATA_PROCESS_API + "/studentPapers/" + studentPaperId)
+        .get(MARKING_LOGIC_API + "/studentPapers/" + studentPaperId)
         .then((response) => {
           self.studentPaper = response.data;
           self.examType = self.studentPaper.examType;

+ 2 - 2
src/modules/marking/views/ViewPaper.vue

@@ -17,7 +17,7 @@
 </template>
 <script>
 import { mapState } from "vuex";
-import { DATA_PROCESS_API } from "@/constants/constants";
+import { MARKING_LOGIC_API } from "@/constants/constants";
 import LinkTitlesCustom from "@/components/LinkTitlesCustom.vue";
 import "viewerjs/dist/viewer.css";
 import Viewer from "viewerjs";
@@ -85,7 +85,7 @@ export default {
     },
     getStudentPaper() {
       var url =
-        DATA_PROCESS_API + "/studentPapers/check/" + this.studentPaperId;
+        MARKING_LOGIC_API + "/studentPapers/check/" + this.studentPaperId;
       this.$http.get(url).then((response) => {
         console.log(response);
         this.html = response.data.studentSubjectiveHtml;

+ 2 - 2
src/modules/marking/views/export_task_list.vue

@@ -151,7 +151,7 @@
 
 <script>
 import { mapState } from "vuex";
-import { MARKING_API, DATA_PROCESS_API } from "@/constants/constants";
+import { MARKING_API, MARKING_LOGIC_API } from "@/constants/constants";
 
 export default {
   data() {
@@ -188,7 +188,7 @@ export default {
   methods: {
     getMarkWorks() {
       this.$http
-        .get(DATA_PROCESS_API + "/markWorks?status=1")
+        .get(MARKING_LOGIC_API + "/markWorks?status=1")
         .then((response) => {
           this.markWorkList = response.data;
           if (this.$route.query && this.$route.query.workId) {