Explorar el Código

森语-搬运工对账单-增加纵向滚动条

jbb hace 2 años
padre
commit
c11ac4285d
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      src/views/oa/SyCarryList.vue

+ 8 - 1
src/views/oa/SyCarryList.vue

@@ -61,6 +61,7 @@
         :columns="columns"
         :dataSource="dataSource"
         :pagination="ipagination"
+        :scroll="{y:400}"
         :loading="loading"
         :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
         @change="handleTableChange">
@@ -139,7 +140,7 @@
             title: '#',
             dataIndex: '',
             key: 'rowIndex',
-            width: 60,
+            width: 40,
             align: "center",
             customRender:function (t, r, index) {
               return parseInt(index)+1;
@@ -148,6 +149,7 @@
           {
             title: '名称',
             align:"center",
+            width: 100,
             dataIndex: 'name'
           },
           // {
@@ -159,17 +161,22 @@
             title: '状态',
             align:"center",
             dataIndex: 'state',
+            width: 100,
+
             scopedSlots: { customRender: 'state' },
           },
           {
             title: '备注',
             align:"center",
+            width: 350,
             dataIndex: 'demo'
           },
           {
             title: '操作',
             dataIndex: 'action',
             align:"center",
+            width: 100,
+
             scopedSlots: { customRender: 'action' },
           }
         ],