From 120cf05bfd146a9bd1c011c9dd0244a57d0dea64 Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期五, 12 一月 2024 17:35:43 +0800
Subject: [PATCH] 1、优化代码:mdc全局页面表格区域内容若需滚动无需翻至最底部且部分页面竖向滚动会滚动整个页面调整为仅滚动表格区域,表格操作列右固定以满足不同分辨率下操作列始终显示不被遮挡 2、优化代码:mdc全局左侧树组件所在区域的滚动条将不再进行全部内容滚动,调整为仅只有树组件内容滚动 3、优化代码:报警分析、利用率走势分析以及利用率分段分析页面在浏览器窗口尺寸变化后重绘图表以适应页面新尺寸 4、设备综合效率分析页面取消分页器以便能一次性导出所有表格数据 5、mdc全局左侧树区域宽度增大,右侧数据展示区域宽度减小

---
 src/views/mdc/base/EquipmentList.vue |   64 +++++++++++++++++---------------
 1 files changed, 34 insertions(+), 30 deletions(-)

diff --git a/src/views/mdc/base/EquipmentList.vue b/src/views/mdc/base/EquipmentList.vue
index 55ce880..c2b147a 100644
--- a/src/views/mdc/base/EquipmentList.vue
+++ b/src/views/mdc/base/EquipmentList.vue
@@ -64,6 +64,7 @@
         bordered
         size="middle"
         rowKey="id"
+        :scroll="{x:'max-content',y:465}"
         :columns="columns"
         :dataSource="dataSource"
         :pagination="ipagination"
@@ -180,25 +181,25 @@
             title: '璁惧缂栧彿',
             align: "center",
             dataIndex: 'equipmentId',
-            width: 120,
+            width: 200,
             // sorter: true
           },
           {
             title: '璁惧鍚嶇О',
             align: "center",
-            width: 150,
+            width: 200,
             dataIndex: 'equipmentName',
           },
           {
             title: '杞﹂棿',
             align: "center",
-            width: 180,
+            width: 200,
             dataIndex: 'productionName'
           },
           {
             title: '璁惧绫诲瀷',
             align: "center",
-            width: 120,
+            width: 200,
             dataIndex: 'equipmentType',
             // scopedSlots: {customRender: "avatarslot"}
           },
@@ -206,33 +207,33 @@
           {
             title: '椹卞姩绫诲瀷',
             align: "center",
-            width: 80,
+            width: 200,
             dataIndex: 'driveType',
             // sorter: true
           },
           {
             title: '鏈哄簥IP',
             align: "center",
-            width: 100,
+            width: 200,
             dataIndex: 'equipmentIp'
           },
           {
             title: '璁惧鍔熺巼',
             align: "center",
-            width: 100,
+            width: 200,
             dataIndex: 'devicePower'
           },
           {
             title: '閮ㄩ棬',
             align: "center",
-            width: 180,
+            width: 200,
             dataIndex: 'orgCodeTxt'
           },
 
           {
             title: '绯荤粺鐗堟湰',
             align: "center",
-            width: 80,
+            width: 200,
             dataIndex: 'systemVersion'
           },
           {
@@ -240,7 +241,8 @@
             dataIndex: 'action',
             scopedSlots: {customRender: 'action'},
             align: "center",
-            width: 120
+            width: 150,
+            fixed:'right'
           }
 
         ],
@@ -290,25 +292,25 @@
                   title: '璁惧缂栧彿',
                   align: "center",
                   dataIndex: 'equipmentId',
-                  width: 120,
+                  width: 200,
                   // sorter: true
                 },
                 {
                   title: '璁惧鍚嶇О',
                   align: "center",
-                  width: 150,
+                  width: 200,
                   dataIndex: 'equipmentName',
                 },
                 {
                   title: '杞﹂棿',
                   align: "center",
-                  width: 180,
+                  width: 200,
                   dataIndex: 'productionName'
                 },
                 {
                   title: '璁惧绫诲瀷',
                   align: "center",
-                  width: 120,
+                  width: 200,
                   dataIndex: 'equipmentType',
                   // scopedSlots: {customRender: "avatarslot"}
                 },
@@ -316,33 +318,33 @@
                 {
                   title: '椹卞姩绫诲瀷',
                   align: "center",
-                  width: 80,
+                  width: 200,
                   dataIndex: 'driveType',
                   // sorter: true
                 },
                 {
                   title: '鏈哄簥IP',
                   align: "center",
-                  width: 100,
+                  width: 200,
                   dataIndex: 'equipmentIp'
                 },
                 {
                   title: '璁惧鍔熺巼',
                   align: "center",
-                  width: 100,
+                  width: 200,
                   dataIndex: 'devicePower'
                 },
                 // {
                 //   title: '閮ㄩ棬',
                 //   align: "center",
-                //   width: 180,
+                //   width: 200,
                 //   dataIndex: 'orgCodeTxt'
                 // },
 
                 {
                   title: '绯荤粺鐗堟湰',
                   align: "center",
-                  width: 80,
+                  width: 200,
                   dataIndex: 'systemVersion'
                 },
                 {
@@ -350,7 +352,8 @@
                   dataIndex: 'action',
                   scopedSlots: {customRender: 'action'},
                   align: "center",
-                  width: 120
+                  width: 150,
+                  fixed:'right'
                 }
 
               ]
@@ -370,25 +373,25 @@
                   title: '璁惧缂栧彿',
                   align: "center",
                   dataIndex: 'equipmentId',
-                  width: 120,
+                  width: 200,
                   // sorter: true
                 },
                 {
                   title: '璁惧鍚嶇О',
                   align: "center",
-                  width: 150,
+                  width: 200,
                   dataIndex: 'equipmentName',
                 },
                 {
                   title: '杞﹂棿',
                   align: "center",
-                  width: 180,
+                  width: 200,
                   dataIndex: 'productionName'
                 },
                 {
                   title: '璁惧绫诲瀷',
                   align: "center",
-                  width: 120,
+                  width: 200,
                   dataIndex: 'equipmentType',
                   // scopedSlots: {customRender: "avatarslot"}
                 },
@@ -396,33 +399,33 @@
                 {
                   title: '椹卞姩绫诲瀷',
                   align: "center",
-                  width: 80,
+                  width: 200,
                   dataIndex: 'driveType',
                   // sorter: true
                 },
                 {
                   title: '鏈哄簥IP',
                   align: "center",
-                  width: 100,
+                  width: 200,
                   dataIndex: 'equipmentIp'
                 },
                 {
                   title: '璁惧鍔熺巼',
                   align: "center",
-                  width: 100,
+                  width: 200,
                   dataIndex: 'devicePower'
                 },
                 {
                   title: '閮ㄩ棬',
                   align: "center",
-                  width: 180,
+                  width: 200,
                   dataIndex: 'orgCodeTxt'
                 },
 
                 {
                   title: '绯荤粺鐗堟湰',
                   align: "center",
-                  width: 80,
+                  width: 200,
                   dataIndex: 'systemVersion'
                 },
                 {
@@ -430,7 +433,8 @@
                   dataIndex: 'action',
                   scopedSlots: {customRender: 'action'},
                   align: "center",
-                  width: 120
+                  width: 150,
+                  fixed:'right'
                 }
 
               ]

--
Gitblit v1.9.3