代码调整

This commit is contained in:
joylink_cuiweidong 2022-12-08 16:28:22 +08:00
parent d06d0eec15
commit bbcf5b3fec
4 changed files with 10 additions and 5 deletions

View File

@ -7,7 +7,7 @@
<menu-section ref="menuSection" :selected="selected" :work="'dispatchWork'" />
<menu-train ref="menuTrain" :selected="selected" />
<menu-limit ref="menuLimit" :selected="selected" />
<menu-auto-trun-route ref="menuAutoTrunRoute" :selected="selected" :work="'dispatchWork'" />
<menu-auto-Trun-route ref="menuAutoTrunRoute" :selected="selected" :work="'dispatchWork'" />
<passive-alarm ref="passiveAlarm" />
<passive-contorl ref="passiveControl" pop-class="foshan-01__systerm" />
@ -23,6 +23,7 @@ import MenuSignal from './menuSignal';
import MenuSection from './menuSection';
import MenuTrain from './menuTrain';
import MenuLimit from './menuLimit';
import MenuAutoTrunRoute from './menuAutoTrunRoute';
import PassiveAlarm from './passiveDialog/alarm';
import PassiveContorl from '@/jmapNew/theme/components/menus/passiveDialog/control';
import PassiveTimeout from './passiveDialog/timeout';
@ -37,6 +38,7 @@ export default {
MenuTrain,
MenuLimit,
PassiveAlarm,
MenuAutoTrunRoute,
PassiveContorl,
PassiveTimeout
},

View File

@ -26,6 +26,7 @@ import MenuSection from './menuSection';
import MenuStation from './menuStation';
import MenuLimit from './menuLimit';
import MenuAxleReset from './menuAxleReset';
import MenuAutoTrunRoute from './menuAutoTrunRoute';
import PassiveAlarm from './passiveDialog/alarm';
import PassiveContorl from '@/jmapNew/theme/components/menus/passiveDialog/control';
@ -43,7 +44,7 @@ export default {
MenuStation,
MenuLimit,
MenuAxleReset,
MenuAutoTrunRoute,
PassiveAlarm,
PassiveContorl,
PassiveTimeout

View File

@ -15,7 +15,7 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
export default {
name: 'MenuLimit',
name: 'MenuAutoTurnRoute',
components: {
PopMenu,
TurnBackControl

View File

@ -146,10 +146,12 @@ export default {
mounted() {
const isDev = process.env.NODE_ENV === 'development';
if (isDev) {
this.menuNormal.Center.push({
// Center
this.menuNormal.push({
label: '新建计划车',
handler: this.addPlanTrain,
cmdType: CMD.Section.CMD_Train_Init_Plan
cmdType: CMD.Section.CMD_Train_Init_Plan,
isShow: (signalDevice, work) => work === 'dispatchWork'
});
}
},