Эх сурвалжийг харах

王子文 专项培养 季度回顾
1) 问卷内容查询、新增、修改
2) 根据问卷内容估算各导师对该学员的评价,计算各导师季度评分,并计算季度总评分

wangggziwen 3 жил өмнө
parent
commit
3de9de88c6

+ 1 - 1
master/src/main/java/com/ruoyi/project/training/spec/controller/TStQuestionAnswerController.java

@@ -40,7 +40,7 @@ public class TStQuestionAnswerController extends BaseController
     @GetMapping
     public AjaxResult getInfo(TStQuestionAnswer tStQuestionAnswer)
     {
-        return AjaxResult.success(tStQuestionAnswerService.selectTStQuestionAnswerByPlanIdAndQuestionId(tStQuestionAnswer));
+        return AjaxResult.success(tStQuestionAnswerService.selectTStQuestionAnswer(tStQuestionAnswer));
     }
 
     /**

+ 2 - 1
master/src/main/java/com/ruoyi/project/training/spec/controller/TStSuccessorController.java

@@ -65,7 +65,8 @@ public class TStSuccessorController extends BaseController
             String mentorStaffId = item.getMentorStaffId();
             if (staffId.equals(mentorStaffId)) {    // 导师id=当前登录导师id
                 continue;
-            } else if (temp.equals(mentorStaffId)) {   // 导师id重复
+            } else
+                if (temp.equals(mentorStaffId)) {   // 导师id重复
                 continue;
             } else {
                 newList.add(item);

+ 11 - 0
master/src/main/java/com/ruoyi/project/training/spec/domain/TStFeedback.java

@@ -68,6 +68,10 @@ public class TStFeedback extends BaseEntity
     @Excel(name = "导师评分")
     private String feedbackScore;
 
+    /** 季度平均分 */
+    @Excel(name = "季度平均分")
+    private String overallScore;
+
     /** 反馈状态 */
     @Excel(name = "反馈状态")
     private Long feedbackStatus;
@@ -77,6 +81,13 @@ public class TStFeedback extends BaseEntity
     @Excel(name = "面试会议日期", width = 30, dateFormat = "yyyy-MM-dd")
     private Date meetingDate;
 
+    public String getOverallScore() {
+        return overallScore;
+    }
+    public void setOverallScore(String overallScore) {
+        this.overallScore = overallScore;
+    }
+
     public String getSuccessorName() {
         return successorName;
     }

+ 11 - 0
master/src/main/java/com/ruoyi/project/training/spec/domain/TStQuestionAnswer.java

@@ -22,6 +22,10 @@ public class TStQuestionAnswer extends BaseEntity
     @Excel(name = "培养计划id")
     private Long planId;
 
+    /** 培养计划id */
+    @Excel(name = "培养计划反馈id")
+    private Long feedbackId;
+
     /** 问题id */
     @Excel(name = "问题id")
     private Long questionId;
@@ -34,6 +38,13 @@ public class TStQuestionAnswer extends BaseEntity
     @Excel(name = "答案")
     private String answer;
 
+    public Long getFeedbackId() {
+        return feedbackId;
+    }
+    public void setFeedbackId(Long feedbackId) {
+        this.feedbackId = feedbackId;
+    }
+
     public void setId(Long id)
     {
         this.id = id;

+ 8 - 1
master/src/main/java/com/ruoyi/project/training/spec/mapper/TStQuestionAnswerMapper.java

@@ -12,6 +12,14 @@ import com.ruoyi.project.training.spec.domain.TStQuestionAnswer;
  */
 public interface TStQuestionAnswerMapper
 {
+    /**
+     * 查询专项培养反馈问题答案
+     *
+     * @param tStQuestionAnswer 专项培养反馈问题答案
+     * @return 专项培养反馈问题答案
+     */
+    public TStQuestionAnswer selectTStQuestionAnswer(TStQuestionAnswer tStQuestionAnswer);
+
     /**
      * 查询专项培养反馈问题答案
      *
@@ -34,7 +42,6 @@ public interface TStQuestionAnswerMapper
      * @param tStQuestionAnswer 专项培养反馈问题答案
      * @return 专项培养反馈问题答案集合
      */
-    @DataScope(deptAlias = "d")
     public List<TStQuestionAnswer> selectTStQuestionAnswerList(TStQuestionAnswer tStQuestionAnswer);
 
     /**

+ 8 - 0
master/src/main/java/com/ruoyi/project/training/spec/service/ITStQuestionAnswerService.java

@@ -11,6 +11,14 @@ import com.ruoyi.project.training.spec.domain.TStQuestionAnswer;
  */
 public interface ITStQuestionAnswerService
 {
+    /**
+     * 查询专项培养反馈问题答案
+     *
+     * @param tStQuestionAnswer 专项培养反馈问题答案
+     * @return 专项培养反馈问题答案
+     */
+    public TStQuestionAnswer selectTStQuestionAnswer(TStQuestionAnswer tStQuestionAnswer);
+
     /**
      * 查询专项培养反馈问题答案
      *

+ 5 - 0
master/src/main/java/com/ruoyi/project/training/spec/service/impl/TStQuestionAnswerServiceImpl.java

@@ -19,6 +19,11 @@ public class TStQuestionAnswerServiceImpl implements ITStQuestionAnswerService
     @Autowired
     private TStQuestionAnswerMapper tStQuestionAnswerMapper;
 
+    @Override
+    public TStQuestionAnswer selectTStQuestionAnswer(TStQuestionAnswer tStQuestionAnswer) {
+        return tStQuestionAnswerMapper.selectTStQuestionAnswer(tStQuestionAnswer);
+    }
+
     @Override
     public TStQuestionAnswer selectTStQuestionAnswerByPlanIdAndQuestionId(TStQuestionAnswer tStQuestionAnswer) {
         return tStQuestionAnswerMapper.selectTStQuestionAnswerByPlanIdAndQuestionId(tStQuestionAnswer);

+ 3 - 0
master/src/main/resources/mybatis/training/spec/TStFeedbackMapper.xml

@@ -18,6 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="successorFeedback"    column="successor_feedback"    />
         <result property="mentorFeedback"    column="mentor_feedback"    />
         <result property="feedbackScore"    column="feedback_score"    />
+        <result property="overallScore"    column="overall_score"    />
         <result property="feedbackStatus"    column="feedback_status"    />
         <result property="meetingDate"    column="meeting_date"    />
         <result property="deptName" column="dept_name" />
@@ -38,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             d.successor_feedback,
             d.mentor_feedback,
             d.feedback_score,
+            d.overall_score,
             d.feedback_status,
             d.meeting_date
         from
@@ -158,6 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="successorFeedback != null">successor_feedback = #{successorFeedback},</if>
             <if test="mentorFeedback != null">mentor_feedback = #{mentorFeedback},</if>
             <if test="feedbackScore != null">feedback_score = #{feedbackScore},</if>
+            <if test="overallScore != null and overallScore != ''">overall_score = #{overallScore},</if>
             <if test="feedbackStatus != null">feedback_status = #{feedbackStatus},</if>
             <if test="meetingDate != null">meeting_date = #{meetingDate},</if>
         </trim>

+ 17 - 5
master/src/main/resources/mybatis/training/spec/TStQuestionAnswerMapper.xml

@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <resultMap type="TStQuestionAnswer" id="TStQuestionAnswerResult">
         <result property="id"    column="id"    />
         <result property="planId"    column="plan_id"    />
+        <result property="feedbackId"    column="feedback_id"    />
         <result property="questionId"    column="question_id"    />
         <result property="question"    column="question"    />
         <result property="answer"    column="answer"    />
@@ -14,7 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectTStQuestionAnswerVo">
-        select d.id, d.plan_id, d.question_id, d.answer, b.QUESTION
+        select d.id, d.plan_id, d.FEEDBACK_ID, d.question_id, d.answer, b.QUESTION
         from t_st_question_answer d
         inner join T_ST_QUESTION_BANK b on d.QUESTION_ID=b.ID
     </sql>
@@ -23,19 +24,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectTStQuestionAnswerVo"/>
         <where>  
             <if test="planId != null "> and plan_id = #{planId}</if>
+            <if test="feedbackId != null "> and feedback_id = #{feedbackId}</if>
             <if test="questionId != null "> and question_id = #{questionId}</if>
             <if test="answer != null  and answer != ''"> and answer = #{answer}</if>
-            and d.del_flag = 0
         </where>
-        <!-- 数据范围过滤 -->
-        ${params.dataScope}
     </select>
 
     <select id="selectTStQuestionAnswerByPlanIdAndQuestionId" parameterType="TStQuestionAnswer" resultMap="TStQuestionAnswerResult">
         <include refid="selectTStQuestionAnswerVo"/>
         where plan_id = #{planId} and question_id = #{questionId}
     </select>
-    
+
+    <select id="selectTStQuestionAnswer" parameterType="TStQuestionAnswer" resultMap="TStQuestionAnswerResult">
+        <include refid="selectTStQuestionAnswerVo"/>
+        <where>
+            <if test="planId != null "> and plan_id = #{planId}</if>
+            <if test="feedbackId != null "> and feedback_id = #{feedbackId}</if>
+            <if test="questionId != null "> and question_id = #{questionId}</if>
+            <if test="answer != null  and answer != ''"> and answer = #{answer}</if>
+            <if test="feedbackId != null  and feedbackId != ''"> and feedback_id = #{feedbackId}</if>
+        </where>
+    </select>
+
     <select id="selectTStQuestionAnswerById" parameterType="Long" resultMap="TStQuestionAnswerResult">
         <include refid="selectTStQuestionAnswerVo"/>
         where id = #{id}
@@ -49,12 +59,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="id != null">id,</if>
             <if test="planId != null">plan_id,</if>
+            <if test="feedbackId != null">feedback_id,</if>
             <if test="questionId != null">question_id,</if>
             <if test="answer != null">answer,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},</if>
             <if test="planId != null">#{planId},</if>
+            <if test="feedbackId != null">#{feedbackId},</if>
             <if test="questionId != null">#{questionId},</if>
             <if test="answer != null">#{answer},</if>
          </trim>

+ 2 - 2
ui/src/api/training/spec/answer.js

@@ -1,7 +1,7 @@
 import request from '@/utils/request'
 
 // 查询专项培养反馈问题答案详细
-export function getAnswerByPlanIdAndQuestionId(query) {
+export function getAnswer(query) {
   return request({
     url: '/spec/answer/',
     method: 'get',
@@ -19,7 +19,7 @@ export function listAnswer(query) {
 }
 
 // 查询专项培养反馈问题答案详细
-export function getAnswer(id) {
+export function getAnswerById(id) {
   return request({
     url: '/spec/answer/' + id,
     method: 'get'

+ 0 - 2
ui/src/api/training/spec/feedback.js

@@ -54,8 +54,6 @@ export function listInvitedSuccessor(query) {
   })
 }
 
-
-
 // 查询 专项培养反馈详细
 export function getFeedbackByParams(query) {
   return request({

+ 7 - 7
ui/src/views/training/spec/myplan/index.vue

@@ -244,7 +244,7 @@
 
 <script>
 import { getFeedbackByPlanId } from "@/api/training/spec/feedback";
-import { updateAnswer, addAnswer, getAnswerByPlanIdAndQuestionId } from "@/api/training/spec/answer";
+import { updateAnswer, addAnswer, getAnswer } from "@/api/training/spec/answer";
 import { getPlan, delPlan, addPlan, updatePlan, updatePlan2, exportPlan, importTemplate, listPlanByStaffId } from "@/api/training/spec/plan";
 import { allFileList, delCommonfile } from "@/api/common/commonfile";
 import { treeselect } from "@/api/system/dept";
@@ -452,18 +452,18 @@ export default {
       feedback3.planId = row.id;
       feedback3.questionId = 3;
       // 获取答案
-      getAnswerByPlanIdAndQuestionId(feedback1).then(response => {
+      getAnswer(feedback1).then(response => {
         let data = response.data;
         if (data != null) {
           this.feedbackParams.answer1 = data.answer;
         }
-        return getAnswerByPlanIdAndQuestionId(feedback2);
+        return getAnswer(feedback2);
       }).then(response => {
         let data = response.data;
         if (data != null) {
           this.feedbackParams.answer2 = data.answer;
         }
-        return getAnswerByPlanIdAndQuestionId(feedback3);
+        return getAnswer(feedback3);
       }).then(response => {
         let data = response.data;
         if (data != null) {
@@ -496,7 +496,7 @@ export default {
       feedback3.questionId = 3;
       feedback3.answer = this.feedbackParams.answer3;
       // 根据计划id和问题id获取答案,有则修改,无则新增
-      getAnswerByPlanIdAndQuestionId(feedback1).then(response => {
+      getAnswer(feedback1).then(response => {
         let data = response.data;
         if (data != null) {
           feedback1.id = data.id;
@@ -505,7 +505,7 @@ export default {
           addAnswer(feedback1);
         }
       });
-      getAnswerByPlanIdAndQuestionId(feedback2).then(response => {
+      getAnswer(feedback2).then(response => {
         let data = response.data;
         if (data != null) {
           feedback2.id = data.id;
@@ -514,7 +514,7 @@ export default {
           addAnswer(feedback2);
         }
       });
-      getAnswerByPlanIdAndQuestionId(feedback3).then(response => {
+      getAnswer(feedback3).then(response => {
         let data = response.data;
         if (data != null) {
           feedback3.id = data.id;

+ 4 - 4
ui/src/views/training/spec/plan/index.vue

@@ -489,7 +489,7 @@
 <script>
 import { getFeedbackByPlanId } from "@/api/training/spec/feedback";
 import { addFeedback, updateFeedback } from "@/api/training/spec/feedback";
-import { getAnswerByPlanIdAndQuestionId } from "@/api/training/spec/answer";
+import { getAnswer } from "@/api/training/spec/answer";
 import { getPlan, listPlanByYearId, delPlan, addPlan, updatePlan, updatePlan2, exportPlan, importTemplate } from "@/api/training/spec/plan";
 import { allFileList, delCommonfile } from "@/api/common/commonfile";
 import { treeselect } from "@/api/system/dept";
@@ -899,18 +899,18 @@ export default {
       let answerObj2 = {};
       let answerObj3 = {};
       // 获取问题和答案
-      getAnswerByPlanIdAndQuestionId(feedback1).then(response => {
+      getAnswer(feedback1).then(response => {
         let data = response.data;
         if (data != null) {
           answerObj1 = { id: 1, question: data.question, answer: data.answer};
         }
-        return getAnswerByPlanIdAndQuestionId(feedback2);
+        return getAnswer(feedback2);
       }).then(response => {
         let data = response.data;
         if (data != null) {
           answerObj2 = { id: 2, question: data.question, answer: data.answer};
         }
-        return getAnswerByPlanIdAndQuestionId(feedback3);
+        return getAnswer(feedback3);
       }).then(response => {
         let data = response.data;
         if (data != null) {

+ 179 - 21
ui/src/views/training/spec/seasonalfeedback/index.vue

@@ -338,7 +338,13 @@
         </div>
         <!-- 保存按钮 -->
         <div style="text-align:center;margin: 20px auto;">
-          <el-button size="medium" type="success" @click="handleSave">保存</el-button>
+          <el-button 
+            size="medium" 
+            type="success" 
+            @click="handleSave"
+          >
+            保存
+          </el-button>
         </div>
       </el-tab-pane>
     </el-tabs>
@@ -391,10 +397,9 @@
 </template>
 
 <script>
-import { getFeedbackByPlanId } from "@/api/training/spec/feedback";
-import { getAnswerByPlanIdAndQuestionId } from "@/api/training/spec/answer";
+import { getAnswer, addAnswer, updateAnswer, listAnswer } from "@/api/training/spec/answer";
 import { allFileList, delCommonfile } from "@/api/common/commonfile";
-import { addFeedback, getFeedbackByParams, listInvitedSuccessor, updateFeedback } from "@/api/training/spec/feedback";
+import { addFeedback, getFeedbackByParams, listInvitedSuccessor, updateFeedback, listFeedback, getFeedbackByPlanId } from "@/api/training/spec/feedback";
 import { listMentors } from "@/api/training/spec/successor";
 import { listSuccessorsByMentorId, listPlanSeasonal } from "@/api/training/spec/plan";
 import { getToken } from "@/utils/auth";
@@ -407,11 +412,13 @@ export default {
   components: { Treeselect, Editor },
   data() {
     return {
+      // 导师标签
+      mentorTabs: [],
       // 详情对话框表格数据
       tableData: [],
       // 反馈id
       feedbackId: null,
-      // 会议日期快选项
+      // 会议日期快选项
       pickerOptions: {
         shortcuts: [{
           text: '今天',
@@ -638,23 +645,152 @@ export default {
     this.initPage();
   },
   methods: {
+    /** 获取导师标签页 */
+    getMentorTabs() {
+      // // 获取本导师反馈id
+      // getFeedbackByParams({
+      //     successorId: this.queryParams.successorId,
+      //     feedbackYear: this.queryParams.feedbackYear,
+      //     feedbackSeason: this.queryParams.feedbackSeason
+      // })
+      // .then(response => {
+      //   let data = response.data;
+      //   this.mentorTabs.push({ key: data.mentorStaffId, value: data.mentorStaffName });
+      //   // 获取parent_id为本导师反馈id的反馈记录
+      //   return listFeedback( { parentId: data.id } );
+      // })
+      // .then(response => {
+      //   let data = response.rows;
+      //   for (let i = 0; i < data.length; i++) {
+      //     this.mentorTabs.push({ key: data[i].mentorStaffId, value: data[i].mentorStaffName });
+      //   }
+      //   console.log(this.mentorTabs);
+      // });
+    },
+    /** 问卷判空 */
+    isEmpty() {
+      let radioArray =
+      [
+        this.radio1, this.radio2, this.radio3, this.radio4, this.radio5, this.radio6, this.radio7, 
+        this.radio8, this.radio9, this.radio10, this.radio11, this.radio12, this.radio13, this.radio14
+      ];
+      let isEmpty = false;
+      for (let i = 0; i < radioArray.length; i++) {
+        if (radioArray[i] == "") {
+          isEmpty = true;
+        }
+      }
+      return isEmpty;
+    },
+    /** 计算导师评分 */
+    calcFeedbackScore() {
+      let mentorFeedbackScore = 0; // 本导师评分
+      let invitedMentorFeedbackScoreSum = 0; // 受邀导师总分
+      let invitedMentorFeedbackScoreAvg = 0; // 受邀导师平均分
+      let invitedMentors = 0; // 受邀导师人数
+      let overallScore = 0;  // 季度平均分
+      let feedbackId = null;  // 本导师反馈id
+      // 获取问题答案列表
+      listAnswer( { feedbackId: this.feedbackId } )
+      .then(response => {
+        let data = response.rows;
+        // 计算导师评分
+        let total = 0;  // 总分
+        for (let i = 0; i < data.length; i++) {
+          if(data[i].answer == "1") {
+            total += 100;
+          }
+        }
+        let avg = total / 14; // 平均分
+        // 更新当前导师评分
+        return updateFeedback( { id: this.feedbackId, feedbackScore: avg } );
+      })
+      .then(() => {
+        // 获取本导师反馈
+        return getFeedbackByParams({
+          successorId: this.queryParams.successorId,
+          feedbackYear: this.queryParams.feedbackYear,
+          feedbackSeason: this.queryParams.feedbackSeason
+        })
+      })
+      .then(response => {
+        // 设置本导师反馈id
+        feedbackId = response.data.id;
+        // 设置导师评分
+        mentorFeedbackScore = response.data.feedbackScore;
+        // 获取受邀导师列表
+        return listFeedback( { parentId: feedbackId } );
+      })
+      .then(response => {
+        let data = response.rows;
+        for (let i = 0; i < data.length; i++) {
+          if (data[i].feedbackScore != null) {
+            invitedMentorFeedbackScoreSum += Number(data[i].feedbackScore);
+            invitedMentors += 1;
+          }
+        }
+        // 受邀导师平均分 = 总分 / 人数
+        invitedMentorFeedbackScoreAvg = invitedMentorFeedbackScoreSum / invitedMentors;
+        // 季度平均分 = 本导师评分 * 60% + 受邀导师平均分 * 40%
+        overallScore = mentorFeedbackScore * 0.6 + invitedMentorFeedbackScoreAvg * 0.4;
+        // 更新季度平均分
+        updateFeedback({ id: feedbackId, overallScore: overallScore });
+      });
+    },
+    /** 保存反馈问题 */
+    saveAnswer(questionId, answer) {
+      let answerObj = {};
+      answerObj.feedbackId = this.feedbackId;
+      answerObj.questionId = questionId;
+      getAnswer(answerObj).then(response => {
+        let data = response.data;
+        answerObj.answer = answer;
+          if (data != null) {
+            if (response.answer == data.answer) { // 答案一致
+              return;
+            } else {  // 答案不一致
+              answerObj.id = data.id;
+              updateAnswer(answerObj).then(response => {
+                // 计算导师评分
+                this.calcFeedbackScore();
+              });
+            }
+          } else {
+            addAnswer(answerObj).then(response => {
+            // 计算导师评分
+            this.calcFeedbackScore();
+            });
+          }
+      });
+    },
+    /** 保存导师反馈内容 */
+    saveMentorFeedback() {
+      let feedback = {};
+      feedback.id = this.feedbackId;
+      feedback.mentorFeedback = this.mentorFeedback;
+      updateFeedback(feedback);
+    },
     /** 保存按钮处理 */
     handleSave() {
-      // 判断当前登录用户是否是该学员导师
-
-      if (true) {
-        // 新增问卷内容
-
-        let feedback = {};
-        feedback.id = this.feedbackId;
-        feedback.mentorFeedback = this.mentorFeedback;
-        // 修改导师反馈内容
-        updateFeedback(feedback).then(response => {
-          this.msgSuccess("保存成功");
-        });
-      } else {
+      // 问卷判空
+      if (this.isEmpty()) {
+        this.$message.error('问卷不能为空')
+        return;
+      }
+      let radioArray =
+      [
+        this.radio1, this.radio2, this.radio3, this.radio4, this.radio5, this.radio6, this.radio7, 
+        this.radio8, this.radio9, this.radio10, this.radio11, this.radio12, this.radio13, this.radio14
+      ];
+      let questionArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14];
+      for (let i = 0; i < radioArray.length; i++) {
+        // 保存问卷内容
+        this.saveAnswer(questionArray[i]+3, radioArray[i]);
 
       }
+      // 保存导师反馈内容
+      this.saveMentorFeedback();
+      this.msgSuccess("保存成功");
     },
     /** 培养计划详情处理 */
     handleFeedback(row) {
@@ -680,18 +816,18 @@ export default {
       let answerObj2 = {};
       let answerObj3 = {};
       // 获取问题和答案
-      getAnswerByPlanIdAndQuestionId(feedback1).then(response => {
+      getAnswer(feedback1).then(response => {
         let data = response.data;
         if (data != null) {
           answerObj1 = { id: 1, question: data.question, answer: data.answer};
         }
-        return getAnswerByPlanIdAndQuestionId(feedback2);
+        return getAnswer(feedback2);
       }).then(response => {
         let data = response.data;
         if (data != null) {
           answerObj2 = { id: 2, question: data.question, answer: data.answer};
         }
-        return getAnswerByPlanIdAndQuestionId(feedback3);
+        return getAnswer(feedback3);
       }).then(response => {
         let data = response.data;
         if (data != null) {
@@ -802,6 +938,8 @@ export default {
       // 搜索条件默认为当年、当季度
       this.queryParams.feedbackYear = date.getFullYear().toString();
       this.queryParams.feedbackSeason = ( ( date.getMonth() + 2 ) / 3 ).toString();
+      // 获取导师标签列表
+      this.getMentorTabs();
       // 获取学员下拉列表
       this.getSuccessorOptions();
       // 获取导师下拉列表
@@ -883,6 +1021,26 @@ export default {
           this.mentorFeedback = data.mentorFeedback;
           // 初始化汇报附件
           this.initFileList(data.id);
+          // 获取14个问题的答案
+          listAnswer( { feedbackId: this.feedbackId } ).then(response => {
+            let data = response.rows;
+            for (let i = 0; i < data.length; i++) {
+              if (data[i].questionId == "4") { this.radio1 = data[i].answer; }
+              if (data[i].questionId == "5") { this.radio2 = data[i].answer; }
+              if (data[i].questionId == "6") { this.radio3 = data[i].answer; }
+              if (data[i].questionId == "7") { this.radio4 = data[i].answer; }
+              if (data[i].questionId == "8") { this.radio5 = data[i].answer; }
+              if (data[i].questionId == "9") { this.radio6 = data[i].answer; }
+              if (data[i].questionId == "10") { this.radio7 = data[i].answer; }
+              if (data[i].questionId == "11") { this.radio8 = data[i].answer; }
+              if (data[i].questionId == "12") { this.radio9 = data[i].answer; }
+              if (data[i].questionId == "13") { this.radio10 = data[i].answer; }
+              if (data[i].questionId == "14") { this.radio11 = data[i].answer; }
+              if (data[i].questionId == "15") { this.radio12 = data[i].answer; }
+              if (data[i].questionId == "16") { this.radio13 = data[i].answer; }
+              if (data[i].questionId == "17") { this.radio14 = data[i].answer; }
+            }
+          });
         });
         // 获取作为受邀导师的学员列表
         return listInvitedSuccessor(null);