From 32fb9980dfcbd8e2ff68fc0c8089b92ff2c674a5 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期五, 05 九月 2025 17:17:31 +0800
Subject: [PATCH] 样式居中

---
 src/views/eam/repair/EamReportRepairList.vue |   41 +++++++++++++++++++++++++++++++++++++----
 1 files changed, 37 insertions(+), 4 deletions(-)

diff --git a/src/views/eam/repair/EamReportRepairList.vue b/src/views/eam/repair/EamReportRepairList.vue
index d040048..38a0f5f 100644
--- a/src/views/eam/repair/EamReportRepairList.vue
+++ b/src/views/eam/repair/EamReportRepairList.vue
@@ -89,6 +89,11 @@
           <a-switch checked-children="鏄�" un-checked-children="鍚�" :checked="Boolean(+text)" disabled/>
         </template>
 
+        <!--浣跨敤閮ㄩ棬-->
+        <template slot="factoryOrgCode" slot-scope="text,record">
+          {{[record.zxfactoryOrgCode_dictText].filter(item=>item).join('/')}}
+        </template>
+
         <span slot="action" slot-scope="text, record">
           <a @click="handleEdit(record)">缂栬緫</a>
 
@@ -98,6 +103,24 @@
             <a>浣滃簾</a>
           </a-popconfirm>
         </span>
+
+        <!--瀛楃涓茶秴闀挎埅鍙栫渷鐣ュ彿鏄剧ず-->
+        <span slot="faultDescription" slot-scope="text">
+          <j-ellipsis :value="text" :length="8"/>
+        </span>
+        <!--瀛楃涓茶秴闀挎埅鍙栫渷鐣ュ彿鏄剧ず-->
+        <span slot="accidentPhenomenon" slot-scope="text">
+          <j-ellipsis :value="text" :length="8"/>
+        </span>
+        <!--瀛楃涓茶秴闀挎埅鍙栫渷鐣ュ彿鏄剧ず-->
+        <span slot="measure" slot-scope="text">
+          <j-ellipsis :value="text" :length="8"/>
+        </span>
+        <!--瀛楃涓茶秴闀挎埅鍙栫渷鐣ュ彿鏄剧ず-->
+        <span slot="causingResults" slot-scope="text">
+          <j-ellipsis :value="text" :length="8"/>
+        </span>
+
       </a-table>
     </div>
     <!-- table鍖哄煙-end -->
@@ -166,6 +189,12 @@
             fixed: 'left'
           },
           {
+            title: '浣跨敤閮ㄩ棬',
+            align: 'center',
+            scopedSlots: { customRender: 'factoryOrgCode' },
+            fixed: 'left'
+          },
+          {
             title: '鎶ヤ慨鐘舵��',
             align: 'center',
             dataIndex: 'reportStatus_dictText',
@@ -179,7 +208,8 @@
           {
             title: '鏁呴殰鐜拌薄',
             align: 'center',
-            dataIndex: 'faultDescription'
+            dataIndex: 'faultDescription',
+            scopedSlots: { customRender: 'faultDescription' }
           },
           {
             title: '鏄惁鍋滄満',
@@ -243,17 +273,20 @@
           {
             title: '浜嬫晠鐜拌薄',
             align: 'center',
-            dataIndex: 'accidentPhenomenon'
+            dataIndex: 'accidentPhenomenon',
+            scopedSlots: { customRender: 'accidentPhenomenon' }
           },
           {
             title: '閲囧彇鎺柦',
             align: 'center',
-            dataIndex: 'measure'
+            dataIndex: 'measure',
+            scopedSlots: { customRender: 'measure' }
           },
           {
             title: '閫犳垚缁撴灉',
             align: 'center',
-            dataIndex: 'causingResults'
+            dataIndex: 'causingResults',
+            scopedSlots: { customRender: 'causingResults' }
           }
         ],
         faultTimeRange: [],

--
Gitblit v1.9.3