剧本编制代码调整

This commit is contained in:
joylink_cuiweidong 2020-08-10 09:47:01 +08:00
parent 69e224be35
commit 4b11c2e28f
2 changed files with 9 additions and 3 deletions

View File

@ -93,6 +93,7 @@ export default {
const stationSupervisorList = [];
this.driverList = [];
const maintainerList = [];
const driverList = [];
this.treeData = [];
lastData.forEach((member, index)=>{
if (member.type != '观众') {
@ -112,7 +113,7 @@ export default {
member.label = member.memberName;
if (this.activeTrainList.length > 0) {
if (this.activeTrainList.includes(member.deviceCode)) {
this.driverList.push(member);
driverList.push(member);
}
} else {
this.driverList.push(member);
@ -157,7 +158,7 @@ export default {
label: '司机',
id: 'driver',
type: 'role',
children: this.driverList
children: driverList
}, {
label: '通号',
id: 'maintainer',

View File

@ -164,11 +164,16 @@ export default {
}
case 'Command': {
const targetName = memberList.find(elem=>{ return elem.id == element.commandInitiateVO.targetMemberId; });
debugger;
const CommandList = {
Drive_Ahead:'确认运行至前方站',
Route_Block_Drive:'进路闭塞法行车',
Drive_Through_The_Guide_Signal:'越引导信号行驶',
Drive_Through_The_Red_Light:'越红灯行驶'
Drive_Through_The_Red_Light:'越红灯行驶',
Drive_In_Urm_Mode:'URM模式驾驶',
Set_Speed_Limit:'设置限速',
Open_Or_Close_Door:'开关门',
Switch_Hook_Lock: '道岔钩锁'
};
this.actionInfoList.push({id: element.id, isCommand: true, memberName: memberName, command: CommandList[element.commandInitiateVO.commandType], targetName:targetName.name, row: element, visible: false});
break;