From 4ac53eac3402797316e2b7f97e8ddf608c866046 Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期二, 24 十月 2023 19:12:00 +0800
Subject: [PATCH] 故障报修

---
 src/views/eam/MalfunctionRepair.vue |   49 +++++++++++++++++++++++++++++--------------------
 1 files changed, 29 insertions(+), 20 deletions(-)

diff --git a/src/views/eam/MalfunctionRepair.vue b/src/views/eam/MalfunctionRepair.vue
index 52f383d..ea0a7f5 100644
--- a/src/views/eam/MalfunctionRepair.vue
+++ b/src/views/eam/MalfunctionRepair.vue
@@ -187,6 +187,9 @@
             </a-menu>
           </a-dropdown>
         </span>
+        <span slot="faultDescription" slot-scope="text">
+            <j-ellipsis :value="text" :length="10" />
+        </span>
 
       </a-table>
     </div>
@@ -230,6 +233,7 @@
 import MalfunctionRepairModal from './modules/malfunctionRepair/MalfunctionRepaireModal'
 import FaultDescriptionList from './modules/malfunctionRepair/FaultDescriptionList'
 import ApprovelModal from './modules/malfunctionRepair/ApprovelModal'
+import JEllipsis from '@/components/jeecg/JEllipsis'
 
 export default {
   name: 'MalfunctionRepairList',
@@ -237,7 +241,8 @@
   components: {
     MalfunctionRepairModal,
     FaultDescriptionList,
-    ApprovelModal
+    ApprovelModal,
+    JEllipsis 
   },
   data() {
     return {
@@ -291,15 +296,19 @@
           align: "center",
           dataIndex: 'departName',
         },
-        {
-          title: '绱ф�ョ▼搴�',
-          align: "center",
-          dataIndex: 'urgencyName',
-        },
+        // {
+        //   title: '绱ф�ョ▼搴�',
+        //   align: "center",
+        //   dataIndex: 'urgencyName',
+        // },
         {
           title: '鏁呴殰鎻忚堪',
           align: "center",
-          dataIndex: 'faultDescription'
+          dataIndex: 'faultDescription',
+          scopedSlots: { 
+            customRender: 'faultDescription' 
+          }
+
         },
         // {
         //   title: '鏁呴殰鎷嶇収',
@@ -307,11 +316,11 @@
         //   dataIndex: 'photo',
         //   scopedSlots: { customRender: 'imgSlot' }
         // },
-        {
-          title: '鏁呴殰鍘熷洜',
-          align: "center",
-          dataIndex: 'faultReason'
-        },
+        // {
+        //   title: '鏁呴殰鍘熷洜',
+        //   align: "center",
+        //   dataIndex: 'faultReason'
+        // },
         {
           title: '鏁呴殰鏃堕棿',
           align: "center",
@@ -337,14 +346,14 @@
           align: "center",
           dataIndex: 'remark'
         },
-        {
-          title: '鎿嶄綔',
-          dataIndex: 'action',
-          align: "center",
-          fixed: "right",
-          width: 200,
-          scopedSlots: { customRender: 'action' }
-        }
+        // {
+        //   title: '鎿嶄綔',
+        //   dataIndex: 'action',
+        //   align: "center",
+        //   fixed: "right",
+        //   width: 200,
+        //   scopedSlots: { customRender: 'action' }
+        // }
       ],
       url: {
         list: "/eam/equipmentReportRepair/getReportRepairList",

--
Gitblit v1.9.3