|
@@ -198,6 +198,20 @@
|
|
@click="handleStudy(file.data)"
|
|
@click="handleStudy(file.data)"
|
|
>查看附件
|
|
>查看附件
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="primary"
|
|
|
|
+ icon="el-icon-view"
|
|
|
|
+ @click="handlePaperDetail(file.data)"
|
|
|
|
+ >考试明细</el-button>
|
|
|
|
+ </el-dialog>
|
|
|
|
+
|
|
|
|
+ <el-dialog :visible.sync="open" 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>
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" element-loading-background="rgba(0,0,0,0.2)"
|
|
<el-dialog :close-on-click-modal="false" element-loading-background="rgba(0,0,0,0.2)"
|
|
@@ -312,14 +326,17 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import {listExam} from "@/api/training/elearn/exam";
|
|
import {listExam} from "@/api/training/elearn/exam";
|
|
import {allFileList, delCommonfile} from "@/api/common/commonfile";
|
|
import {allFileList, delCommonfile} from "@/api/common/commonfile";
|
|
import {getStaffId} from "@/api/plant/staffmgr";
|
|
import {getStaffId} from "@/api/plant/staffmgr";
|
|
|
|
+import MyPaperList from "@/views/training/elearn/userExam/paper.vue";
|
|
|
|
|
|
var timer = null;
|
|
var timer = null;
|
|
export default {
|
|
export default {
|
|
name: "Firstplan-t-Bccnew",
|
|
name: "Firstplan-t-Bccnew",
|
|
- components: {Treeselect},
|
|
|
|
|
|
+ components: {MyPaperList, Treeselect},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
staffId: null,
|
|
staffId: null,
|
|
|
|
+ examId: null,
|
|
|
|
+ studentStaffId: null,
|
|
file: {
|
|
file: {
|
|
open: false,
|
|
open: false,
|
|
data: {}
|
|
data: {}
|
|
@@ -452,6 +469,12 @@ export default {
|
|
this.getStaffId();
|
|
this.getStaffId();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handlePaperDetail(row){
|
|
|
|
+ console.log(row)
|
|
|
|
+ this.examId = row.examId+""
|
|
|
|
+ this.studentStaffId = row.staffId
|
|
|
|
+ this.open = true
|
|
|
|
+ },
|
|
getStaffId() {
|
|
getStaffId() {
|
|
getStaffId().then(res => {
|
|
getStaffId().then(res => {
|
|
this.staffId = res.data;
|
|
this.staffId = res.data;
|