|
@@ -76,7 +76,14 @@
|
|
|
<span>{{ parseTime(scope.row.courseDate, '{y}-{m}-{d}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="讲师签名" align="center" prop="trainerConfirm" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="讲师签名" align="center" prop="trainerConfirm" :show-overflow-tooltip="true" width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button v-if="scope.row.trainerConfirm==null&&(scope.row.planStatus==3||scope.row.planStatus==4||scope.row.planStatus==5)" type="text" @click="sign(scope.row)">
|
|
|
+ 签名
|
|
|
+ </el-button>
|
|
|
+ <span v-else >{{scope.row.trainerConfirm}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="考试评估方式" align="center" prop="examType" :show-overflow-tooltip="true" width="180"/>
|
|
|
<el-table-column label="评估结果" align="center" prop="assess" :show-overflow-tooltip="true" width="180"/>
|
|
|
<el-table-column label="学员签名" align="center" prop="studentConfirm" :show-overflow-tooltip="true" width="180"/>
|
|
@@ -93,7 +100,8 @@
|
|
|
<el-table-column label="第一次成绩" align="center" prop="score1" :show-overflow-tooltip="true" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="scope.row.score1 == null">
|
|
|
- <el-select v-model="scope.row.score1Tmp&&scope.row.planStatus==2" style="width: 130px" placeholder="请选择成绩">
|
|
|
+ <el-select v-model="scope.row.score1&&scope.row.planStatus==2" style="width: 130px"
|
|
|
+ placeholder="请选择成绩">
|
|
|
<el-option value="合格" label="合格" key="合格"/>
|
|
|
<el-option value="不合格" label="不合格" key="不合格"/>
|
|
|
</el-select>
|
|
@@ -441,6 +449,7 @@ import Treeselect from "@riophae/vue-treeselect";
|
|
|
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";
|
|
|
|
|
|
var timer = null;
|
|
|
export default {
|
|
@@ -455,6 +464,7 @@ export default {
|
|
|
// components: { Editor },
|
|
|
data() {
|
|
|
return {
|
|
|
+ staffId:null,
|
|
|
file: {
|
|
|
open: false,
|
|
|
data: {}
|
|
@@ -582,8 +592,30 @@ export default {
|
|
|
this.getDicts("training_bccnew_status").then(response => {
|
|
|
this.planStatusOptions = response.data;
|
|
|
});
|
|
|
+ this.getStaffId();
|
|
|
},
|
|
|
methods: {
|
|
|
+ getStaffId(){
|
|
|
+ getStaffId().then(res=>{
|
|
|
+ this.staffId = res.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
+ sign(row){
|
|
|
+ this.$confirm('签名即代表您已确认该学员此项课程的成绩', "注意", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function () {
|
|
|
+ return updateFirstplan({
|
|
|
+ id: row.id,
|
|
|
+ trainerConfirm:"1",
|
|
|
+ newId: row.newId
|
|
|
+ });
|
|
|
+ }).then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess("签名成功");
|
|
|
+ })
|
|
|
+ },
|
|
|
handleSee(row) {
|
|
|
// window.open(process.env.VUE_APP_BASE_API +'/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.fileUrl);//path是文件的全路径地址
|
|
|
this.pdf.open = true
|
|
@@ -720,7 +752,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
saveScore(row) {
|
|
|
- this.$confirm('成绩保存后不可修改!请确认成绩为' + ((row.score1Tmp ? row.score1Tmp : row.score2Tmp)==undefined?"":(row.score1Tmp ? row.score1Tmp : row.score2Tmp)), "警告", {
|
|
|
+ this.$confirm('成绩保存后不可修改!请确认成绩为' + ((row.score1Tmp ? row.score1Tmp : row.score2Tmp) == undefined ? "" : (row.score1Tmp ? row.score1Tmp : row.score2Tmp)), "警告", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|