| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- 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: 'xingbie',
- key: 'xingbie'
- },
- {
- title: '支柱号',
- align: 'center',
- dataIndex: 'zzh',
- key: 'zzh'
- },
- {
- title: '公里标',
- align: 'center',
- dataIndex: 'glb',
- key: 'glb'
- },
- {
- title: '开关编号',
- align: 'center',
- dataIndex: 'kgbh',
- key: 'kgbh'
- },
- {
- title: '开关型号',
- align: 'center',
- dataIndex: 'kgxh',
- key: 'kgxh'
- },
- {
- title: '生产厂家',
- align: 'center',
- dataIndex: 'sccj',
- key: 'sccj'
- },
- {
- title: '操作',
- dataIndex: 'action',
- width: 200,
- align: 'center',
- slots: { title: 'actionName' },
- scopedSlots: { customRender: 'action' }
- }
- ]
- return cols
- }
- export default columns
|