|
@@ -134,6 +134,22 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
|
+ @click="handleComment(scope.row)"
|
|
|
|
|
+ v-hasPermi="['spec:plan:edit']"
|
|
|
|
|
+ v-if="scope.row.studyState == 3"
|
|
|
|
|
+ >评价</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-view"
|
|
|
|
|
+ v-hasPermi="['spec:plan:edit']"
|
|
|
|
|
+ @click="handleDetail(scope.row)"
|
|
|
|
|
+ v-if="scope.row.studyState == 2"
|
|
|
|
|
+ >详情</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="text"
|
|
type="text"
|
|
@@ -331,11 +347,56 @@
|
|
|
<el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
|
|
<el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <!-- 评价对话框 -->
|
|
|
|
|
+ <el-dialog v-dialogDrag :title="comment.title" :visible.sync="comment.open" width="700px" append-to-body>
|
|
|
|
|
+ <h3 style="margin-bottom:20px;text-align:center;">学员反馈</h3>
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ :data="tableData"
|
|
|
|
|
+ border
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="id"
|
|
|
|
|
+ label="编号"
|
|
|
|
|
+ width="50">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="question"
|
|
|
|
|
+ label="问题"
|
|
|
|
|
+ width="250">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="answer"
|
|
|
|
|
+ label="答案">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ <h3 style="margin-top:50px;margin-bottom:20px;text-align:center;">导师反馈</h3>
|
|
|
|
|
+ <el-form label-width="80px">
|
|
|
|
|
+ <el-form-item label="科目成绩">
|
|
|
|
|
+ <el-input v-model="commentParams.score" />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="综合评价">
|
|
|
|
|
+ <el-input v-model="commentParams.overallComment" type="textarea" rows="6"/>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button @click="handleAddComment()">{{ $t('提 交') }}</el-button>
|
|
|
|
|
+ <el-button @click="comment.open = false">{{ $t('返 回') }}</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <!-- 查看培训详情对话框 -->
|
|
|
|
|
+ <el-dialog v-dialogDrag :title="detail.title" :visible.sync="detail.open" width="700px" append-to-body>
|
|
|
|
|
+
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button @click="detail.open = false">{{ $t('返 回') }}</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
<plan-approve v-if="planApproveVisible" ref="planApprove" @refreshDataList="getList"></plan-approve>
|
|
<plan-approve v-if="planApproveVisible" ref="planApprove" @refreshDataList="getList"></plan-approve>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import { listFeedback, getFeedback, addFeedback, updateFeedback, delFeedback, exportFeedback } from "@/api/training/spec/feedback";
|
|
|
import { listPlan, getPlan, delPlan, addPlan, updatePlan, exportPlan, importTemplate, getSuccessorListByMentorId } from "@/api/training/spec/plan";
|
|
import { listPlan, getPlan, delPlan, addPlan, updatePlan, exportPlan, importTemplate, getSuccessorListByMentorId } from "@/api/training/spec/plan";
|
|
|
import { allFileList, delCommonfile } from "@/api/common/commonfile";
|
|
import { allFileList, delCommonfile } from "@/api/common/commonfile";
|
|
|
import { treeselect } from "@/api/system/dept";
|
|
import { treeselect } from "@/api/system/dept";
|
|
@@ -349,6 +410,26 @@ export default {
|
|
|
components: { Treeselect,PlanApprove },
|
|
components: { Treeselect,PlanApprove },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ commentParams: {
|
|
|
|
|
+ id: 0,
|
|
|
|
|
+ score: null,
|
|
|
|
|
+ overallComment: ""
|
|
|
|
|
+ },
|
|
|
|
|
+ // 查看培训详情参数
|
|
|
|
|
+ detail: {
|
|
|
|
|
+ // 是否显示弹出层(报告附件)
|
|
|
|
|
+ open: false,
|
|
|
|
|
+ // 弹出层标题(报告附件)
|
|
|
|
|
+ title: ""
|
|
|
|
|
+ },
|
|
|
|
|
+ // 评价参数
|
|
|
|
|
+ comment: {
|
|
|
|
|
+ id: 0,
|
|
|
|
|
+ // 是否显示弹出层(报告附件)
|
|
|
|
|
+ open: false,
|
|
|
|
|
+ // 弹出层标题(报告附件)
|
|
|
|
|
+ title: ""
|
|
|
|
|
+ },
|
|
|
// 遮罩层
|
|
// 遮罩层
|
|
|
loading: true,
|
|
loading: true,
|
|
|
planApproveVisible: false,
|
|
planApproveVisible: false,
|
|
@@ -446,7 +527,8 @@ export default {
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
pageTotalNum: 1,
|
|
pageTotalNum: 1,
|
|
|
loadedRatio: 0,
|
|
loadedRatio: 0,
|
|
|
- },
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ tableData: [],
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -468,6 +550,36 @@ export default {
|
|
|
this.getSuccessorOptions();
|
|
this.getSuccessorOptions();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ /** 评价提交处理 */
|
|
|
|
|
+ handleAddComment() {
|
|
|
|
|
+ this.commentParams.id = this.comment.id;
|
|
|
|
|
+ updatePlan(this.commentParams).then(response => {
|
|
|
|
|
+ this.comment.open = false;
|
|
|
|
|
+ this.msgSuccess("已结束学习");
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ /** 查看培训详情处理 */
|
|
|
|
|
+ handleDetail(row) {
|
|
|
|
|
+ this.detail.id = row.id;
|
|
|
|
|
+ this.detail.title = row.plantName + this.$t('详情');
|
|
|
|
|
+ this.detail.open = true;
|
|
|
|
|
+ },
|
|
|
|
|
+ /** 评价处理 */
|
|
|
|
|
+ handleComment(row) {
|
|
|
|
|
+ this.comment.id = row.id;
|
|
|
|
|
+ this.comment.title = row.plantName + this.$t('评价');
|
|
|
|
|
+ this.comment.open = true;
|
|
|
|
|
+ getFeedback(row.id).then(response => {
|
|
|
|
|
+ let feedbackObject = response.data;
|
|
|
|
|
+ let data1 = { id: 1, question: feedbackObject.question1, answer: feedbackObject.answer1};
|
|
|
|
|
+ let data2 = { id: 2, question: feedbackObject.question2, answer: feedbackObject.answer2};
|
|
|
|
|
+ let data3 = { id: 3, question: feedbackObject.question3, answer: feedbackObject.answer3};
|
|
|
|
|
+ this.tableData.push(data1);
|
|
|
|
|
+ this.tableData.push(data2);
|
|
|
|
|
+ this.tableData.push(data3);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
/** 文件下载处理 */
|
|
/** 文件下载处理 */
|
|
|
handleDownload(row) {
|
|
handleDownload(row) {
|
|
|
var name = row.fileName;
|
|
var name = row.fileName;
|