wangggziwen преди 3 години
родител
ревизия
7f02c0ac45
променени са 1 файла, в които са добавени 29 реда и са изтрити 3 реда
  1. 29 3
      ui/src/views/training/spec/seasonalfeedback/index.vue

+ 29 - 3
ui/src/views/training/spec/seasonalfeedback/index.vue

@@ -1189,14 +1189,29 @@ export default {
           let data = response.data;
           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("邀请成功,邮件已发送");
     },
     /** 查询专项培训反馈列表 */
@@ -1276,6 +1291,16 @@ export default {
         this.mentorFeedback = data.mentorFeedback;
         // 刷新汇报附件
         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 => {
@@ -1297,6 +1322,7 @@ export default {
           if (data[i].questionId == "17") { this.radio14 = data[i].answer; }
         }
       });
+      
     },
     /** 重置按钮操作 */
     resetQuery() {