浏览代码

feat: 接口调试

zhangjie 8 月之前
父节点
当前提交
42c87d3e15

+ 1 - 1
src/api.js

@@ -580,7 +580,7 @@ export const paperCheckListStudent = (datas) => {
   return $post(`/api/paperCheck/listStudent`, datas);
 };
 export const paperCheckHistoryStudent = (datas) => {
-  return $post(`/api/paperCheck/listStudent`, datas);
+  return $post(`/api/paperCheck/listHistory`, datas);
 };
 export const paperCheckProgress = (datas) => {
   // paperCheckId=

+ 3 - 1
src/assets/styles/iview-custom.less

@@ -204,9 +204,11 @@
   }
 }
 .btn-primary {
+  &.ivu-btn-text {
+    padding: 0;
+  }
   &.ivu-btn-text:not([disabled]) {
     color: @primary-color;
-    padding: 0;
     &:hover {
       font-weight: 600;
       color: @info-color;

+ 1 - 0
src/modules/grading/components/GradeAction.vue

@@ -1,6 +1,7 @@
 <template>
   <div class="grade-action">
     <div
+      v-if="!IS_ADMIN"
       :class="['action-history-mark', { 'mark-act': curPaperOrTask.mark }]"
       @click="toMark"
     >

+ 1 - 0
src/modules/grading/components/GradeActionRough.vue

@@ -1,6 +1,7 @@
 <template>
   <div class="grade-action">
     <div
+      v-if="!IS_ADMIN"
       :class="['action-history-mark', { 'mark-act': curPaperOrTask.mark }]"
       @click="toMark"
     >

+ 1 - 1
src/modules/inspection/paperCheck/TaskAction.vue

@@ -19,7 +19,7 @@
       </p>
       <p>
         <span>申请档位:</span>
-        <span>{{ curPaperOrTask.redoLevel }}</span>
+        <span>{{ curPaperOrTask.level }}</span>
       </p>
     </div>
 

+ 9 - 4
src/modules/inspection/paperCheck/TaskDetail.vue

@@ -176,11 +176,13 @@ export default {
       });
       this.total = res.totalCount;
       this.totalPage = res.pageCount;
+      this.current = res.page + 1;
     },
     async toPage(page) {
       this.current = page;
       await this.getList();
       this.pageNo = this.current;
+      console.log(this.pageNo);
     },
     changePage() {
       if (!this.pageNo) return;
@@ -195,12 +197,13 @@ export default {
       await this.toPage(this.current + 1);
     },
     // menu
-    toSwitchMenu(item) {
+    async toSwitchMenu(item) {
       this.curMenu = item.value;
       if (this.curMenu === "task") {
-        this.initData();
+        await this.initData();
       } else {
-        this.toPage(1);
+        await this.toPage(1);
+        this.selectPaper(0);
       }
     },
     // paper
@@ -217,6 +220,8 @@ export default {
       this.curPaperIndex = nindex;
       this.curPaper = this.papers[nindex] ? { ...this.papers[nindex] } : {};
 
+      if (this.curMenu === "history") return;
+
       this.updateProgress();
     },
     async toPrevPaper() {
@@ -269,7 +274,7 @@ export default {
             paperId: levelInfo.paperId,
             level: levelInfo.selectedLevel,
             userId: this.$ls.get("user", { id: "" }).id,
-            paperCheckId: this.curPaper.id,
+            paperCheckId: this.taskInfo.id,
           });
           this.$Message.success("申请改档成功!");
           await this.toNextPaper();

+ 1 - 0
src/modules/mark/components/MarkAction.vue

@@ -1,6 +1,7 @@
 <template>
   <div class="mark-action grade-action">
     <div
+      v-if="!IS_ADMIN"
       :class="['action-history-mark', { 'mark-act': curPaperOrTask.mark }]"
       @click="toMark"
     >