|
@@ -398,7 +398,36 @@
|
|
|
</el-dialog>
|
|
|
<!-- 查看培训详情对话框 -->
|
|
|
<el-dialog v-dialogDrag :title="detail.title" :visible.sync="detail.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" readonly/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="综合评价">
|
|
|
+ <el-input v-model="commentParams.overallComment" type="textarea" rows="6" readonly/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="detail.open = false">{{ $t('返 回') }}</el-button>
|
|
|
</div>
|
|
@@ -578,12 +607,28 @@ export default {
|
|
|
},
|
|
|
/** 查看培训详情处理 */
|
|
|
handleDetail(row) {
|
|
|
+ this.tableData = [];
|
|
|
+ this.commentParams = {},
|
|
|
this.detail.id = row.id;
|
|
|
this.detail.title = row.plantName + this.$t('详情');
|
|
|
this.detail.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);
|
|
|
+ });
|
|
|
+ getPlan(row.id).then(response => {
|
|
|
+ this.commentParams.score = response.data.score;
|
|
|
+ this.commentParams.overallComment = response.data.overallComment;
|
|
|
+ });
|
|
|
},
|
|
|
/** 评价处理 */
|
|
|
handleComment(row) {
|
|
|
+ this.tableData = [];
|
|
|
this.comment.id = row.id;
|
|
|
this.comment.title = row.plantName + this.$t('评价');
|
|
|
this.comment.open = true;
|