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