|
@@ -5,19 +5,22 @@
|
|
|
:visible.sync="modalIsShow"
|
|
|
:close-on-click-modal="false"
|
|
|
:close-on-press-escape="false"
|
|
|
+ top="20px"
|
|
|
append-to-body
|
|
|
width="900px"
|
|
|
+ @opened="getList"
|
|
|
>
|
|
|
<div slot="title">
|
|
|
- 文档<span class="color-gray ml-2"
|
|
|
+ 文档详情
|
|
|
+ <span class="color-gray ml-2"
|
|
|
>{{ course.courseName }}({{ course.courseCode }})</span
|
|
|
>
|
|
|
</div>
|
|
|
+ <div v-if="checkPrivilege('button', 'add')" class="box-justify mb-2">
|
|
|
+ <div></div>
|
|
|
+ <el-button type="primary" @click="toAdd">新建文档</el-button>
|
|
|
+ </div>
|
|
|
<div class="part-box part-box-pad">
|
|
|
- <div class="box-justify">
|
|
|
- <div></div>
|
|
|
- <el-button type="primary" @click="toAdd">新建文档</el-button>
|
|
|
- </div>
|
|
|
<el-table :data="dataList">
|
|
|
<el-table-column
|
|
|
type="index"
|
|
@@ -33,7 +36,7 @@
|
|
|
<el-table-column
|
|
|
class-name="action-column"
|
|
|
label="操作"
|
|
|
- width="140px"
|
|
|
+ width="120px"
|
|
|
fixed="right"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
@@ -92,6 +95,22 @@ import { downloadByApi } from "@/plugins/download";
|
|
|
import { documentListPage, documentDownload, documentDelete } from "../api";
|
|
|
import AddDocumentDialog from "./AddDocumentDialog.vue";
|
|
|
|
|
|
+/*
|
|
|
+SYLLABUS("课程教学大纲", 1),
|
|
|
+PROCESS_SCORE("过程考核成绩", 2),
|
|
|
+PAPER("试卷样卷", 3),
|
|
|
+ANSWER("试卷评阅标准", 4),
|
|
|
+PAPER_REPORT("试卷分析报告", 5),
|
|
|
+APPROVE_RECORD("试卷审批记录", 6),
|
|
|
+SCORE("学生期末考试成绩单", 7),
|
|
|
+SCORE_REPORT("学生期末考试成绩分析", 8),
|
|
|
+SHEET("学生答卷原图", 9),
|
|
|
+TRACK("学生答卷轨迹图", 10),
|
|
|
+SIGN("期末考试签到表", 11),
|
|
|
+CHECK_IN("期考考试考场记录单", 12),
|
|
|
+CUSTOM("自定义", 13),
|
|
|
+*/
|
|
|
+
|
|
|
export default {
|
|
|
name: "course-document-detail",
|
|
|
components: { AddDocumentDialog },
|
|
@@ -120,17 +139,26 @@ export default {
|
|
|
this.modalIsShow = true;
|
|
|
},
|
|
|
checkView(row) {
|
|
|
- return ["paper"].includes(row.code);
|
|
|
+ return [
|
|
|
+ "PAPER",
|
|
|
+ "ANSWER",
|
|
|
+ "PAPER_REPORT",
|
|
|
+ "APPROVE_RECORD",
|
|
|
+ "SCORE_REPORT",
|
|
|
+ "SIGN",
|
|
|
+ "CHECK_IN",
|
|
|
+ ].includes(row.code);
|
|
|
},
|
|
|
checkDelete(row) {
|
|
|
- return ["custom"].includes(row.code);
|
|
|
+ return ["CUSTOM"].includes(row.code);
|
|
|
},
|
|
|
checkUpload(row) {
|
|
|
- return ["dag"].includes(row.code);
|
|
|
+ return ["SYLLABUS", "PROCESS_SCORE"].includes(row.code);
|
|
|
},
|
|
|
async getList() {
|
|
|
const datas = {
|
|
|
- courseCode: this.course.courseCode,
|
|
|
+ examId: this.course.examId,
|
|
|
+ paperNumber: this.course.paperNumber,
|
|
|
};
|
|
|
const res = await documentListPage(datas);
|
|
|
this.dataList = res || [];
|