代码调整
This commit is contained in:
parent
b404adfbed
commit
553aa18f3d
@ -319,6 +319,61 @@ export const operateEnum = {
|
||||
result:transfiniteList
|
||||
}
|
||||
]
|
||||
},
|
||||
CTC_ZONE_SAVE_TRACK_SECTION:{
|
||||
name:'行车计划修改股道',
|
||||
isList:true,
|
||||
params:[
|
||||
{
|
||||
code:'stationCode',
|
||||
name:'车站',
|
||||
function:getStationNameById
|
||||
},
|
||||
{
|
||||
code:'runPlanCode',
|
||||
name:'运行计划编码'
|
||||
},
|
||||
{
|
||||
code:'sectionCode',
|
||||
name:'股道',
|
||||
function:getDeviceNameById
|
||||
},
|
||||
{
|
||||
code:'model',
|
||||
name:'接发类型',
|
||||
result:[
|
||||
{code:'R', name:'接车'},
|
||||
{code:'D', name:'发车'}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
CTC_ZONE_SAVE_PLAN_TIME:{
|
||||
name:'行车计划修改时间',
|
||||
isList:true,
|
||||
params:[
|
||||
{
|
||||
code:'stationCode',
|
||||
name:'车站',
|
||||
function:getStationNameById
|
||||
},
|
||||
{
|
||||
code:'runPlanCode',
|
||||
name:'运行计划编码'
|
||||
},
|
||||
{
|
||||
code:'planTime',
|
||||
name:'时间'
|
||||
},
|
||||
{
|
||||
code:'model',
|
||||
name:'接发类型',
|
||||
result:[
|
||||
{code:'R', name:'接车'},
|
||||
{code:'D', name:'发车'}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
CTC: {
|
||||
@ -831,6 +886,10 @@ function getStationNameById(stationId) {
|
||||
const station = store.getters['map/getDeviceByCode'](stationId) || {};
|
||||
return station.name;
|
||||
}
|
||||
function getDeviceNameById(deviceCode) {
|
||||
const device = store.getters['map/getDeviceByCode'](deviceCode) || {};
|
||||
return device.name;
|
||||
}
|
||||
function getStationNamList(list) {
|
||||
const nameList = [];
|
||||
list.sort().forEach(stationId => {
|
||||
|
Loading…
Reference in New Issue
Block a user