| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- 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',
- scopedSlots: { customRender: 'xb' },
- key: 'xb',
- width: 300
- },
- {
- 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: 'createTime',
- key: 'createTime'
- },
- {
- title: '操作',
- dataIndex: 'action',
- align: 'center',
- slots: { title: 'actionName' },
- scopedSlots: { customRender: 'action' }
- }
- ]
- return cols
- }
- export default columns
|