rt-sim-training-client/src/scripts/translateSame.js

46 lines
1.7 KiB
JavaScript
Raw Normal View History

2019-09-18 10:03:58 +08:00
// 转换属性名称
export const translateSame = {
base: {
sheetName: '基本信息',
columns: [
{ key: 'id', tHeader: '地图id', formatter: (val) => { return val || ''; } },
{ key: 'name', tHeader: '地图名称', formatter: (val) => { return val || ''; } },
{ key: 'authorId', tHeader: '作者id', formatter: (val) => { return val || ''; } },
{ key: 'cityCode', tHeader: '城市code', formatter: (val) => { return val || ''; } },
{ key: 'skinCode', tHeader: '皮肤类型', formatter: (val) => { return val || ''; } },
{ key: 'updateTime', tHeader: '更新时间', formatter: (val) => { return val || ''; } },
{ key: 'version', tHeader: '版本类型', formatter: (val) => { return val || ''; } }
]
},
sectionList: {
sheetName: '区段',
columns: [
{ key: 'name', tHeader: '区段名称', formatter: (val) => { return val || ''; } },
{ key: 'code', tHeader: '编号', formatter: (val) => { return val || ''; } }
]
},
signalList: {
sheetName: '信号机',
columns: [
{ key: 'name', tHeader: '信号机名称', formatter: (val) => { return val || ''; } },
{ key: 'code', tHeader: '编号', formatter: (val) => { return val || ''; } }
]
},
stationStandList: {
sheetName: '站台',
columns: [
{ key: 'name', tHeader: '站台名称', formatter: (val) => { return val || ''; } },
{ key: 'code', tHeader: '编号', formatter: (val) => { return val || ''; } },
{ key: 'direction', tHeader: '行驶方向', formatter: (val) => { return val || ''; } }
]
},
switchList: {
sheetName: '道岔',
columns: [
{ key: 'name', tHeader: '道岔名称', formatter: (val) => { return val || ''; } },
{ key: 'code', tHeader: '编号', formatter: (val) => { return val || ''; } }
]
}
};