浏览代码

代办任务上传试卷弹窗新增科目信息

zhangjie 4 年之前
父节点
当前提交
fdfc604861

+ 7 - 1
src/modules/exam-center/components/UploadPaperDialog.vue

@@ -11,7 +11,13 @@
     @opened="visibleChange"
   >
     <div class="file-upload-body">
-      <el-form label-position="left">
+      <el-form
+        label-position="right"
+        :label-width="uploadType === 'paper' ? '80px' : '150px'"
+      >
+        <el-form-item label="科目名称:" v-if="attachment.courseNameCode">
+          <div>{{ attachment.courseNameCode }}</div>
+        </el-form-item>
         <el-form-item :label="`${curConfig.title}:`">
           <upload-file-view
             input-width="270px"

+ 4 - 2
src/modules/exam-center/views/WaitTaskDetail.vue

@@ -275,14 +275,16 @@ export default {
     toUpload(attachment) {
       this.curUploadType = "paper";
       this.curAttachment = {
-        ...attachment
+        ...attachment,
+        courseNameCode: this.task.courseNameCode
       };
       this.$refs.UploadPaperDialog.open();
     },
     toUploadPaperConfirm() {
       this.curUploadType = "paperConfirm";
       this.curAttachment = {
-        ...this.paperConfirmAttachmentId
+        ...this.paperConfirmAttachmentId,
+        courseNameCode: this.task.courseNameCode
       };
       this.$refs.UploadPaperDialog.open();
     },