Explorar o código

feat(表格): 优化表格列配置,添加固定和提示功能

liujt hai 2 meses
pai
achega
4c43a77ce6

+ 2 - 1
src/views/bpm/outgoingManagement/details.vue

@@ -462,7 +462,8 @@
             label: '序号',
             type: 'index',
             width: 50,
-            align: 'center'
+            align: 'center',
+            fixed: 'left'
           }
         ];
         

+ 7 - 3
src/views/bpm/outgoingManagement/outbound.vue

@@ -496,10 +496,13 @@
       columns() {
         const columns = [
           {
+            columnKey: 'index',
             label: '序号',
             type: 'index',
-            width: 50,
-            align: 'center'
+            width: 55,
+            align: 'center',
+            showOverflowTooltip: true,
+            fixed: 'left'
           },
           {
             label: '编码',
@@ -693,7 +696,8 @@
             label: '操作',
             width: 120,
             align: 'center',
-            slot: 'action'
+            slot: 'action',
+            fixed: 'right'
           });
         }