| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- function columns(vm) {
- const cols = [
- {
- title: '序号',
- key: 'rowIndex',
- width: 60,
- align: 'center',
- customRender: function(t, r, index) {
- return parseInt(index) + 1
- }
- },
- {
- title: '车间',
- align: 'center',
- dataIndex: 'deptName',
- key: 'deptName'
- },
- {
- title: '线路',
- align: 'center',
- dataIndex: 'lineName',
- key: 'lineName'
- },
- {
- title: '站场区间',
- align: 'center',
- dataIndex: 'stationName',
- key: 'stationName'
- },
- {
- title: '行别',
- align: 'center',
- dataIndex: 'xingbieText',
- key: 'xingbieText'
- },
- {
- title: '支柱号范围',
- align: 'center',
- dataIndex: 'pillarArea',
- key: 'pillarArea'
- },
- {
- title: '公里标范围',
- align: 'center',
- dataIndex: 'marker',
- key: 'marker'
- },
- {
- title: '线岔号',
- align: 'center',
- dataIndex: 'xch',
- key: 'xch'
- },
- {
- title: '操作',
- dataIndex: 'action',
- width: 200,
- align: 'center',
- slots: { title: 'actionName' },
- scopedSlots: { customRender: 'action' }
- }
- ]
- return cols
- }
- export default columns
|