| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- 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: 'xb',
- key: 'xb'
- },
- {
- title: '区间/站场',
- align: 'center',
- dataIndex: 'qj',
- key: 'qj'
- },
- {
- title: '车间/工区',
- align: 'center',
- dataIndex: 'bm',
- key: 'bm'
- },
- {
- title: '行别',
- align: 'center',
- dataIndex: 'hb',
- key: 'hb'
- },
- {
- title: '支柱号',
- align: 'center',
- dataIndex: 'zzh',
- key: 'zzh'
- },
- {
- title: '公里标',
- align: 'center',
- dataIndex: 'glb',
- key: 'glb'
- },
- {
- title: '规格型号',
- align: 'center',
- dataIndex: 'zzxh',
- key: 'zzxh'
- },
- {
- title: '支柱类型',
- align: 'center',
- dataIndex: 'zzlx',
- key: 'zzlx'
- },
- {
- title: '安装时间',
- align: 'center',
- dataIndex: 'ccrq',
- key: 'ccrq'
- },
- {
- title: '操作',
- dataIndex: 'action',
- align: 'center',
- slots: { title: 'actionName' },
- scopedSlots: { customRender: 'action' }
- }
- ]
- return cols
- }
- export default columns
|