|
@@ -726,13 +726,12 @@ export default {
|
|
|
feedback.successorId = this.queryParams.successorId;
|
|
|
feedback.feedbackYear = this.queryParams.feedbackYear;
|
|
|
feedback.feedbackSeason = this.queryParams.feedbackSeason;
|
|
|
- if (this.mentorId == tab.name) {
|
|
|
+ // 是子节点
|
|
|
+ if (this.mentorId != tab.name) {
|
|
|
+ // 设置父节点id
|
|
|
feedback.parentId = this.parentId;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ console.log(feedback);
|
|
|
// 根据标签页导师id获取反馈id
|
|
|
getFeedbackByParams(feedback).then(response => {
|
|
|
let data = response.data;
|
|
@@ -1216,7 +1215,7 @@ export default {
|
|
|
feedback.successorId = this.queryParams.successorId;
|
|
|
getFeedbackByParams(feedback).then(response => {
|
|
|
let data = response.data;
|
|
|
- if (data == null) {
|
|
|
+ if (data == null) { // 该导师没有受邀
|
|
|
// 新增受邀导师反馈记录
|
|
|
addFeedback(feedback).then(response => {
|
|
|
getFeedbackByParams({
|
|
@@ -1323,6 +1322,7 @@ export default {
|
|
|
let data = response.data;
|
|
|
this.feedbackId = data.id;
|
|
|
this.parentId = data.id;
|
|
|
+ this.mentorId = data.mentorId;
|
|
|
this.meetingDate = data.meetingDate;
|
|
|
this.resetLastDay();
|
|
|
this.mentorFeedback = data.mentorFeedback;
|