调整宁波一号线
This commit is contained in:
parent
3044da2ea4
commit
e03a4d12e0
@ -59,7 +59,7 @@ export default {
|
||||
return {
|
||||
menu: [],
|
||||
menuNormal: {
|
||||
local: [
|
||||
Local: [
|
||||
{
|
||||
label: '扣车',
|
||||
handler: this.setDetainTrain,
|
||||
@ -107,7 +107,7 @@ export default {
|
||||
cmdType:CMD.Stand.CMD_STAND_SET_RUN_TIME
|
||||
}
|
||||
],
|
||||
central: [
|
||||
Center: [
|
||||
{
|
||||
label: '扣车',
|
||||
handler: this.setDetainTrain,
|
||||
|
@ -120,6 +120,7 @@ class Handler {
|
||||
|
||||
notify(lineCode) {
|
||||
getCmdList(lineCode).then(resp => {
|
||||
console.log(resp, '-----111');
|
||||
CommandHandler.load(resp.data || []);
|
||||
}).catch(err => {
|
||||
CommandHandler.load([]);
|
||||
|
@ -90,7 +90,8 @@ class MenuContextHandler {
|
||||
if (control) {
|
||||
if ( this.getPrdType() != '') {
|
||||
const type = State2SimulationMap[this.getPrdType()];
|
||||
const status = State2ControlMap[control.status]; // 缺少车站控制模式字段
|
||||
// const status = State2ControlMap[control.status]; // 缺少车站控制模式字段
|
||||
const status = State2ControlMap['01']; // 缺少车站控制模式字段
|
||||
menu = [...menuList[type]];
|
||||
if (menu.constructor === Array) {
|
||||
menu.forEach(elem => {
|
||||
@ -98,6 +99,7 @@ class MenuContextHandler {
|
||||
elem.show = true;
|
||||
return;
|
||||
}
|
||||
debugger;
|
||||
const data = CommandHandler.getDefinition(elem.cmdType);
|
||||
if (data) {
|
||||
// 判断指令是否显示
|
||||
|
Loading…
Reference in New Issue
Block a user