ソースを参照

fix: 修改文件预览

xiaweibo 1 ヶ月 前
コミット
bfde76e841

+ 2 - 2
src/views/production-safety/safetyAssessment/evaluationSystem/components/EvaluationTarget.vue

@@ -163,7 +163,7 @@
             <template #evaluationDocument="scope">
               <div
                 class="file-container--div"
-                v-for="item in parseAttachments(scope.row.evaluationDocument)"
+                v-for="item in scope.row.evaluationDocument"
                 :key="item.fileUrl"
               >
                 <img
@@ -483,7 +483,7 @@
             issueDepartment: item.deptName, // 下发部门(部门考核结果)
             departmentLeader: item.deptUserName || '-', // 部门负责人
             contactPhone: item.deptUserLink || '-', // 联系方式
-            evaluationDocument: item.attachments, // 考核文档
+            evaluationDocument: JSON.parse(item.attachments || '[]'), // 考核文档
             plannedCompletionTime: item.planEndTime || '-', // 计划完成时间(使用计划结束时间)
             // 保留原始数据,供其他操作使用
             psemId: item.psemId,

+ 1 - 1
src/views/production-safety/safetyAssessment/evaluationSystem/configs/targetTables.ts

@@ -37,7 +37,7 @@ export const EVALUATION_TARGET_TABLE_COLUMNS: TableColumnProps[] = [
     prop: 'evaluationDocument',
     slot: 'evaluationDocument',
     align: 'left',
-    minWidth: '150px',
+    minWidth: '250px',
   },
   {
     label: '计划完成时间',