|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Github:
|
|
|
|
|
* @Date: 2020-01-11 10:55:33
|
|
|
|
|
* @LastEditors : tangjiang
|
|
|
|
|
* @LastEditTime : 2020-01-11 14:01:49
|
|
|
|
|
* @LastEditTime : 2020-01-11 17:48:02
|
|
|
|
|
*/
|
|
|
|
|
import { random } from 'lodash';
|
|
|
|
|
|
|
|
|
@ -28,11 +28,11 @@ const fetchData = (startIndex = 0) =>
|
|
|
|
|
return {
|
|
|
|
|
key: getGuid(),
|
|
|
|
|
index: `${index}`,
|
|
|
|
|
name: 'John Brown',
|
|
|
|
|
age: 32,
|
|
|
|
|
address: 'New York No. 1 Lake Park',
|
|
|
|
|
name: '湖南长沙中南大学湖南长沙中南大学湖南长沙中南大学湖南长沙中南大学湖南长沙中南大学',
|
|
|
|
|
age: i+1,
|
|
|
|
|
address: 'New York No. ',
|
|
|
|
|
address2: 'address2',
|
|
|
|
|
address3: 'address3'
|
|
|
|
|
bbb: 'address3'
|
|
|
|
|
};
|
|
|
|
|
}),
|
|
|
|
|
);
|
|
|
|
@ -43,45 +43,57 @@ const columns = [
|
|
|
|
|
{
|
|
|
|
|
title: '序号',
|
|
|
|
|
dataIndex: 'index',
|
|
|
|
|
render: text => text,
|
|
|
|
|
render: text => text + 1,
|
|
|
|
|
width: 80,
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '使用单位',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
// width: 100,
|
|
|
|
|
width: 300,
|
|
|
|
|
className: 'overflow_hidden',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '使用课堂/个',
|
|
|
|
|
// width: 200,
|
|
|
|
|
width: 200,
|
|
|
|
|
dataIndex: 'age',
|
|
|
|
|
align: 'center',
|
|
|
|
|
sorter: (a, b) => a.age - b.age
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '课堂学生/个',
|
|
|
|
|
// width: 200,
|
|
|
|
|
width: 200,
|
|
|
|
|
dataIndex: 'address',
|
|
|
|
|
align: 'center',
|
|
|
|
|
sorter: (a, b) => a.age - b.age
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '选用实训/个',
|
|
|
|
|
// width: 200,
|
|
|
|
|
width: 200,
|
|
|
|
|
dataIndex: 'address2',
|
|
|
|
|
align: 'center',
|
|
|
|
|
sorter: (a, b) => a.age - b.age
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '选用实训/个',
|
|
|
|
|
// width: 200,
|
|
|
|
|
dataIndex: 'address3',
|
|
|
|
|
width: 200,
|
|
|
|
|
dataIndex: 'bbb',
|
|
|
|
|
align: 'center',
|
|
|
|
|
sorter: (a, b) => a.bbb - b.bbb
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const sumData = [
|
|
|
|
|
{
|
|
|
|
|
index: '合计',
|
|
|
|
|
key: 6,
|
|
|
|
|
name: 'Disabled User',
|
|
|
|
|
age: 99,
|
|
|
|
|
address: 'Sidney No. 1 Lake Park',
|
|
|
|
|
address: 'Sidney No.',
|
|
|
|
|
address2: 'address2',
|
|
|
|
|
addrexs3: 'address3'
|
|
|
|
|
},
|
|
|
|
|
bbb: 'address3',
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export { columns, fetchData, sumData };
|
|
|
|
|