浏览代码

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

jbb 2 年之前
父节点
当前提交
c11ac4285d
共有 1 个文件被更改,包括 8 次插入1 次删除
  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' },
           }
         ],