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

卷库和审核查看详情数据区分

zhangjie 4 роки тому
батько
коміт
83c3d5cde5

+ 5 - 2
src/modules/exam/api.js

@@ -57,8 +57,11 @@ export const taskApplyAuditHistory = examTaskId => {
 export const taskApplyListPage = datas => {
   return $postParam("/api/admin/exam/task/apply_list", datas);
 };
-export const taskApplyDetail = examTaskId => {
-  return $postParam("/api/admin/exam/task/apply_get_one", { examTaskId });
+export const taskApplyDetail = (examTaskId, source = "") => {
+  return $postParam("/api/admin/exam/task/apply_get_one", {
+    examTaskId,
+    source
+  });
 };
 export const updateTaskApply = datas => {
   return $post("/api/admin/exam/task/apply_save", datas);

+ 4 - 1
src/modules/exam/components/ApplyContent.vue

@@ -285,7 +285,10 @@ export default {
   },
   methods: {
     async initData() {
-      const data = await taskApplyDetail(this.examTask.id);
+      const data = await taskApplyDetail(
+        this.examTask.id,
+        this.examTask.source
+      );
       this.curTaskApply = this.$objAssign(initTaskApply, data || {});
       this.curTaskApply.examTaskId = this.examTask.id;
       this.curTaskApply.courseCode = this.examTask.courseCode;

+ 2 - 1
src/modules/exam/components/ModifyTaskApply.vue

@@ -140,7 +140,8 @@ const initModalForm = {
   userId: "",
   userName: "",
   auditStatus: "",
-  reviewStatus: ""
+  reviewStatus: "",
+  source: ""
 };
 
 const STEPS = [

+ 2 - 2
src/modules/exam/views/TaskReviewManage.vue

@@ -412,12 +412,12 @@ export default {
       }
     },
     toEdit(row) {
-      this.curExamTask = row;
+      this.curExamTask = { ...row, source: "REVIEW" };
       this.editType = "AUDIT";
       this.$refs.ModifyTaskApply.open();
     },
     toPreview(row) {
-      this.curExamTask = row;
+      this.curExamTask = { ...row, source: "REVIEW" };
       this.editType = "PREVIEW";
       this.$refs.ModifyTaskApply.open();
     },