|
@@ -331,6 +331,18 @@
|
|
|
@click="handleStudy(file.data)"
|
|
|
>查看附件
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-view"
|
|
|
+ @click="handlePaperDetail(file.data)"
|
|
|
+ >考试明细</el-button>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <el-dialog :visible.sync="paperopen" title="考试明细" width="60%" append-to-body>
|
|
|
+ <div class="el-dialog-div">
|
|
|
+ <my-paper-list :exam-id="examId" :staff-id="studentStaffId" />
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" element-loading-background="rgba(0,0,0,0.2)"
|
|
@@ -445,11 +457,12 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import {listExam} from "@/api/training/elearn/exam";
|
|
|
import {allFileList, delCommonfile} from "@/api/common/commonfile";
|
|
|
import {getStaffId} from "@/api/plant/staffmgr";
|
|
|
+import MyPaperList from "@/views/training/elearn/userExam/paper.vue";
|
|
|
|
|
|
var timer = null;
|
|
|
export default {
|
|
|
name: "FirstplanBccnew",
|
|
|
- components: {Treeselect},
|
|
|
+ components: {MyPaperList, Treeselect},
|
|
|
props: {
|
|
|
newId: {
|
|
|
default: null
|
|
@@ -460,6 +473,8 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
staffId:null,
|
|
|
+ examId: null,
|
|
|
+ studentStaffId: null,
|
|
|
file: {
|
|
|
open: false,
|
|
|
data: {}
|
|
@@ -500,8 +515,9 @@ export default {
|
|
|
},
|
|
|
pType: 'trainingFirst',
|
|
|
pId: null,
|
|
|
- form: {}
|
|
|
+ form: {},
|
|
|
},
|
|
|
+ paperopen:false,
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 选中数组
|
|
@@ -590,6 +606,12 @@ export default {
|
|
|
this.getStaffId();
|
|
|
},
|
|
|
methods: {
|
|
|
+ handlePaperDetail(row){
|
|
|
+ console.log(row)
|
|
|
+ this.examId = row.examId+""
|
|
|
+ this.studentStaffId = row.staffId
|
|
|
+ this.paperopen = true
|
|
|
+ },
|
|
|
getStaffId(){
|
|
|
getStaffId().then(res=>{
|
|
|
this.staffId = res.data;
|