|
@@ -1189,14 +1189,29 @@ export default {
|
|
let data = response.data;
|
|
let data = response.data;
|
|
if (data == null) {
|
|
if (data == null) {
|
|
// 新增受邀导师反馈记录
|
|
// 新增受邀导师反馈记录
|
|
- addFeedback(feedback);
|
|
|
|
|
|
+ addFeedback(feedback).then(response => {
|
|
|
|
+ getFeedbackByParams({
|
|
|
|
+ successorId: this.queryParams.successorId,
|
|
|
|
+ feedbackYear: this.queryParams.feedbackYear,
|
|
|
|
+ feedbackSeason: this.queryParams.feedbackSeason,
|
|
|
|
+ }).then(response => {
|
|
|
|
+ let data = response.data;
|
|
|
|
+ // 初始化导师标签页
|
|
|
|
+ this.mentorTabs = [];
|
|
|
|
+ this.activeName = data.mentorId;
|
|
|
|
+ listFeedback( { parentId: data.id } ).then(response => {
|
|
|
|
+ let data = response.rows;
|
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
|
+ this.mentorTabs.push({ name: data[i].mentorId, title: data[i].mentorName});
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
// 发送邮件提醒受邀导师
|
|
// 发送邮件提醒受邀导师
|
|
|
|
|
|
}
|
|
}
|
|
- // 刷新标签列表
|
|
|
|
-
|
|
|
|
this.msgSuccess("邀请成功,邮件已发送");
|
|
this.msgSuccess("邀请成功,邮件已发送");
|
|
},
|
|
},
|
|
/** 查询专项培训反馈列表 */
|
|
/** 查询专项培训反馈列表 */
|
|
@@ -1276,6 +1291,16 @@ export default {
|
|
this.mentorFeedback = data.mentorFeedback;
|
|
this.mentorFeedback = data.mentorFeedback;
|
|
// 刷新汇报附件
|
|
// 刷新汇报附件
|
|
this.initFileList(data.id);
|
|
this.initFileList(data.id);
|
|
|
|
+ // 初始化导师标签页
|
|
|
|
+ this.mentorTabs = [];
|
|
|
|
+ this.activeName = data.mentorId;
|
|
|
|
+ this.mentorTabs.push({ name: data.mentorId, title: data.mentorName});
|
|
|
|
+ listFeedback( { parentId: data.id } ).then(response => {
|
|
|
|
+ let data = response.rows;
|
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
|
+ this.mentorTabs.push({ name: data[i].mentorId, title: data[i].mentorName});
|
|
|
|
+ }
|
|
|
|
+ });
|
|
});
|
|
});
|
|
// 刷新问卷
|
|
// 刷新问卷
|
|
listAnswer( { feedbackId: this.feedbackId } ).then(response => {
|
|
listAnswer( { feedbackId: this.feedbackId } ).then(response => {
|
|
@@ -1297,6 +1322,7 @@ export default {
|
|
if (data[i].questionId == "17") { this.radio14 = data[i].answer; }
|
|
if (data[i].questionId == "17") { this.radio14 = data[i].answer; }
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+
|
|
},
|
|
},
|
|
/** 重置按钮操作 */
|
|
/** 重置按钮操作 */
|
|
resetQuery() {
|
|
resetQuery() {
|