剧本编制代码调整
This commit is contained in:
parent
69e224be35
commit
4b11c2e28f
@ -93,6 +93,7 @@ export default {
|
|||||||
const stationSupervisorList = [];
|
const stationSupervisorList = [];
|
||||||
this.driverList = [];
|
this.driverList = [];
|
||||||
const maintainerList = [];
|
const maintainerList = [];
|
||||||
|
const driverList = [];
|
||||||
this.treeData = [];
|
this.treeData = [];
|
||||||
lastData.forEach((member, index)=>{
|
lastData.forEach((member, index)=>{
|
||||||
if (member.type != '观众') {
|
if (member.type != '观众') {
|
||||||
@ -112,7 +113,7 @@ export default {
|
|||||||
member.label = member.memberName;
|
member.label = member.memberName;
|
||||||
if (this.activeTrainList.length > 0) {
|
if (this.activeTrainList.length > 0) {
|
||||||
if (this.activeTrainList.includes(member.deviceCode)) {
|
if (this.activeTrainList.includes(member.deviceCode)) {
|
||||||
this.driverList.push(member);
|
driverList.push(member);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.driverList.push(member);
|
this.driverList.push(member);
|
||||||
@ -157,7 +158,7 @@ export default {
|
|||||||
label: '司机',
|
label: '司机',
|
||||||
id: 'driver',
|
id: 'driver',
|
||||||
type: 'role',
|
type: 'role',
|
||||||
children: this.driverList
|
children: driverList
|
||||||
}, {
|
}, {
|
||||||
label: '通号',
|
label: '通号',
|
||||||
id: 'maintainer',
|
id: 'maintainer',
|
||||||
|
@ -164,11 +164,16 @@ export default {
|
|||||||
}
|
}
|
||||||
case 'Command': {
|
case 'Command': {
|
||||||
const targetName = memberList.find(elem=>{ return elem.id == element.commandInitiateVO.targetMemberId; });
|
const targetName = memberList.find(elem=>{ return elem.id == element.commandInitiateVO.targetMemberId; });
|
||||||
|
debugger;
|
||||||
const CommandList = {
|
const CommandList = {
|
||||||
Drive_Ahead:'确认运行至前方站',
|
Drive_Ahead:'确认运行至前方站',
|
||||||
Route_Block_Drive:'进路闭塞法行车',
|
Route_Block_Drive:'进路闭塞法行车',
|
||||||
Drive_Through_The_Guide_Signal:'越引导信号行驶',
|
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});
|
this.actionInfoList.push({id: element.id, isCommand: true, memberName: memberName, command: CommandList[element.commandInitiateVO.commandType], targetName:targetName.name, row: element, visible: false});
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user