yangg 5 өдөр өмнө
parent
commit
2f39a61f01

+ 3 - 1
src/views/JobApplication/report/report.vue

@@ -1209,6 +1209,7 @@ export default {
       },
       exporting: false, // 添加导出状态控制
       radarChartInstance: null,
+      interview_progress: [],
       interviewRecords: [], // 存储问答记录
       followUpQuestions: [], // 存储追问题
       noTableHeight: 0,
@@ -1553,6 +1554,7 @@ export default {
           // 添加获取问答记录的逻辑
           if (data.data?.interview_progress) {
             this.interviewRecords = this.processInterviewRecords(data.data.interview_progress)
+            this.interview_progress = data.data.interview_progress
             console.log(this.interviewRecords)
           }
           
@@ -1578,7 +1580,7 @@ export default {
         const applicationId = this.$route.query.id || this.$route.params.id
         const baseUrl = window.location.origin;
         // 过滤出question_form不等于0和5的数据
-        const filteredRecords = this.interviewRecords.filter(record => 
+        const filteredRecords = this.interview_progress.filter(record => 
           record.question_form !== 0 && record.question_form !== 5
         )
         

+ 3 - 2
src/views/JobApplication/report/topic.vue

@@ -89,7 +89,7 @@ const fetchInterviewRecords = async () => {
     if (result.code === 2000 && result.data?.interview_progress) {
       // 处理面试记录
       const processedRecords = result.data.interview_progress
-        .filter((q: any) => q.video_answer || q.answer_data)
+        /* .filter((q: any) => q.video_answer || q.answer_data) */
         .map((q: any) => {
           const record: InterviewRecord = {
             question: q.question_text || '未提供问题',
@@ -171,6 +171,7 @@ const fetchInterviewRecords = async () => {
 
       // 设置最终结果
       interviewRecords.value = sortedMainQuestions
+      console.log(interviewRecords.value)
     } else {
       error.value = result.msg || '获取数据失败'
     }
@@ -346,7 +347,7 @@ onMounted(() => {
                           opt => opt.option_text
                         ).join(', ') || '未作答' }}
                       </div>
-                      <div v-if="record.question_form !== 4" class="w-10">
+                      <div v-if="record.question_form !== 4" class="w-1/2  text-right">
                         <span :class="[
                           'px-3 py-1 rounded-full text-sm',
                           record.answer_data?.selected_option_details?.every(