|
|
@@ -136,24 +136,24 @@ const rules = {
|
|
|
|
|
|
const columns = [
|
|
|
{
|
|
|
- title: '序号', width: 60, align: 'center',
|
|
|
+ title: '序号', width: 120, align: 'center',
|
|
|
customRender: ({index}) => (pagination.current - 1) * pagination.pageSize + index + 1
|
|
|
},
|
|
|
{title: '设备名称', dataIndex: 'name'},
|
|
|
- {title: '通道', dataIndex: 'channelName', width: 140},
|
|
|
- {title: '所属场站', dataIndex: 'stationName', width: 160},
|
|
|
+ {title: '通道', dataIndex: 'channelName'},
|
|
|
+ {title: '所属场站', dataIndex: 'stationName'},
|
|
|
{
|
|
|
- title: '设备类型', dataIndex: 'tp', width: 100,
|
|
|
+ title: '设备类型', dataIndex: 'tp',
|
|
|
customRender: ({text}) => (text === 'WEATHER' ? '气象设备' : text === 'AGVC' ? 'agvc设备' : text)
|
|
|
},
|
|
|
- {title: '品牌', dataIndex: 'brand', width: 110},
|
|
|
- {title: '型号', dataIndex: 'model', width: 120},
|
|
|
- {title: '序列号', dataIndex: 'serialNumber', width: 120},
|
|
|
+ {title: '品牌', dataIndex: 'brand'},
|
|
|
+ {title: '型号', dataIndex: 'model'},
|
|
|
+ {title: '序列号', dataIndex: 'serialNumber'},
|
|
|
{
|
|
|
- title: '状态', dataIndex: 'status', width: 80,
|
|
|
+ title: '状态', dataIndex: 'status', width: 120,
|
|
|
customRender: ({text}) => (text === 'GOOD' ? '在线' : '离线')
|
|
|
},
|
|
|
- {title: '投运日期', dataIndex: 'installDate', width: 110}
|
|
|
+ {title: '投运日期', dataIndex: 'installDate', width: 180}
|
|
|
];
|
|
|
|
|
|
const resetObject = (target, source = {}) => {
|