فهرست منبع

feat: 批量新建命题任务

zhangjie 11 ماه پیش
والد
کامیت
fd7ef05582
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 2 1
      src/modules/exam/components/BatchAddExamTask.vue
  2. 1 1
      src/modules/exam/views/ExamTaskManage.vue

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

@@ -31,11 +31,11 @@
       </el-form-item>
       <el-form-item prop="batchNo" label="命题任务表:">
         <upload-file-view
+          v-if="modalIsShow"
           :upload-url="uploadExamTaskUrl"
           input-width="300px"
           @upload-success="uploadExamTaskSuccess"
           ref="ExamTaskUploadFileView"
-          v-if="modalIsShow"
         ></upload-file-view>
         <el-button
           type="success"
@@ -217,6 +217,7 @@ export default {
       };
       datas.users = this.tasks.map((task) => {
         return {
+          courseId: task.courseId,
           courseCode: task.courseCode,
           courseName: task.courseName,
           paperNumber: task.paperNumber,

+ 1 - 1
src/modules/exam/views/ExamTaskManage.vue

@@ -225,7 +225,7 @@
 
 <script>
 import ModifyExamTask from "../components/ModifyExamTask";
-import BatchAddExamTask from "../components/BatchAddExamTask";
+import BatchAddExamTask from "../components/BatchAddExamTask.vue";
 import { ABLE_TYPE, EXAM_TASK_STATUS } from "@/constants/enumerate";
 import pickerOptions from "@/constants/datePickerOptions";
 import { examTaskListPage, ableExamTask, deleteExamTask } from "../api";