代码调整

This commit is contained in:
joylink_cuiweidong 2022-08-01 17:26:16 +08:00
parent b404adfbed
commit 553aa18f3d

View File

@ -319,6 +319,61 @@ export const operateEnum = {
result:transfiniteList 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: { CTC: {
@ -831,6 +886,10 @@ function getStationNameById(stationId) {
const station = store.getters['map/getDeviceByCode'](stationId) || {}; const station = store.getters['map/getDeviceByCode'](stationId) || {};
return station.name; return station.name;
} }
function getDeviceNameById(deviceCode) {
const device = store.getters['map/getDeviceByCode'](deviceCode) || {};
return device.name;
}
function getStationNamList(list) { function getStationNamList(list) {
const nameList = []; const nameList = [];
list.sort().forEach(stationId => { list.sort().forEach(stationId => {