diff --git a/src/App.vue b/src/App.vue index a7244ae72..196366903 100644 --- a/src/App.vue +++ b/src/App.vue @@ -70,7 +70,7 @@ export default { }, subscribeMessage(res) { if (this.$refs.deomonTopic && !window.location.href.includes('trainroom')) { - if (getSessionStorage('project') != 'refereeJsxt' && getSessionStorage('project') != 'jsxt') { + if (getSessionStorage('project') != 'refereeJsxt' && getSessionStorage('project') != 'jsxt' && !(getSessionStorage('project').includes('design'))) { this.$refs.deomonTopic.doShow(res); } this.$store.dispatch('socket/setRoomInvite'); diff --git a/src/api/simulation.js b/src/api/simulation.js index be1d41e60..f2c976fc6 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -18,6 +18,15 @@ export function setFailureMode(data, group) { }); } +/** 设置自动故障(新版)*/ +export function setFailureModeNew(data, group) { + return request({ + url: `/simulation/${group}/faultMode`, + method: 'post', + data: data + }); +} + /** * 仿真系统按计划行车 */ diff --git a/src/i18n/langs/en/menu.js b/src/i18n/langs/en/menu.js index 644032f61..679f37922 100644 --- a/src/i18n/langs/en/menu.js +++ b/src/i18n/langs/en/menu.js @@ -54,6 +54,7 @@ export default { signalDeblock: 'Signal unsealing', signalReopen: 'Signal reopen', guideRouteHandle: 'Guide Route handling', + guide: 'Guide', setInterlockAutoRoute: 'Set Interlock for Auto Routing', cancelInterlockAutoRoute: 'Cancel Interlock setting for Auto Routing', setInterlockAutoTrigger: 'Set Interlock for Auto Trigger', diff --git a/src/i18n/langs/zh/menu.js b/src/i18n/langs/zh/menu.js index 862b73639..55cc05057 100644 --- a/src/i18n/langs/zh/menu.js +++ b/src/i18n/langs/zh/menu.js @@ -54,6 +54,7 @@ export default { signalDeblock: '信号解封', signalReopen: '信号重开', guideRouteHandle: '引导进路办理', + guide: '引导', setInterlockAutoRoute: '设置联锁自动进路', cancelInterlockAutoRoute: '取消联锁自动进路', setInterlockAutoTrigger: '设置联锁自动触发', diff --git a/src/iscs/utils/parser.js b/src/iscs/utils/parser.js index b1db2296a..f11c30280 100644 --- a/src/iscs/utils/parser.js +++ b/src/iscs/utils/parser.js @@ -207,53 +207,9 @@ function updateIscsListByDevice(state, name, device) { } export function updateIscsData(state, device) { - // const state = store.state; - switch (device._type) { - case deviceType.Vidicon : updateIscsListByDevice(state, 'vidiconList', device); break; - case deviceType.VidiconCloud : updateIscsListByDevice(state, 'vidiconCloudList', device); break; - case deviceType.ManualAlarmButton : updateIscsListByDevice(state, 'manualAlarmButtonList', device); break; - case deviceType.FireHydranAlarmButton: updateIscsListByDevice(state, 'fireHydranAlarmButtonList', device); break; - case deviceType.GasFireControl: updateIscsListByDevice(state, 'gasFireControlList', device); break; - case deviceType.SmokeDetector: updateIscsListByDevice(state, 'smokeDetectorList', device); break; - case deviceType.TemperatureDetector: updateIscsListByDevice(state, 'temperatureDetectorList', device); break; - case deviceType.PlatformScreenDoor: updateIscsListByDevice(state, 'platformScreenDoorList', device); break; - case deviceType.FrozenPump : updateIscsListByDevice(state, 'frozenPumpList', device); break; - case deviceType.Ventilator : updateIscsListByDevice(state, 'ventilatorList', device); break; - case deviceType.Chiller : updateIscsListByDevice(state, 'chillerList', device); break; - case deviceType.CoolTower : updateIscsListByDevice(state, 'coolTowerList', device); break; - case deviceType.EndDoor: updateIscsListByDevice(state, 'endDoorList', device); break; - case deviceType.BorderRadius: updateIscsListByDevice(state, 'borderRadiusList', device); break; - case deviceType.BrakeMachine: updateIscsListByDevice(state, 'brakeMachineList', device); break; - case deviceType.EntranceGuard: updateIscsListByDevice(state, 'entranceGuardList', device); break; - case deviceType.TicketMachine: updateIscsListByDevice(state, 'ticketMachineList', device); break; - case deviceType.SemiAutomaticTicketMachine: updateIscsListByDevice(state, 'semiAutomaticTicketMachineList', device); break; - case deviceType.AirConditioner: updateIscsListByDevice(state, 'airConditionerList', device); break; - case deviceType.OrbitalVentilator: updateIscsListByDevice(state, 'orbitalVentilatorList', device); break; - case deviceType.JetFan: updateIscsListByDevice(state, 'jetFanList', device); break; - case deviceType.TunnelFan: updateIscsListByDevice(state, 'tunnelFanList', device); break; - case deviceType.FireDamper: updateIscsListByDevice(state, 'fireDamperList', device); break; - case deviceType.SmookExhaustFd: updateIscsListByDevice(state, 'smookExhaustFdList', device); break; - case deviceType.SmookProofFd: updateIscsListByDevice(state, 'smookProofFdList', device); break; - case deviceType.VolumeControlDamper: updateIscsListByDevice(state, 'volumeControlDamperList', device); break; - case deviceType.IscsRect: updateIscsListByDevice(state, 'iscsRectList', device); break; - case deviceType.IscsText: updateIscsListByDevice(state, 'iscsTextList', device); break; - case deviceType.IscsLine: updateIscsListByDevice(state, 'iscsLineList', device); break; - case deviceType.Escalator: updateIscsListByDevice(state, 'escalatorList', device); break; - case deviceType.StairControl: updateIscsListByDevice(state, 'stairControlList', device); break; - case deviceType.FasBrakeMachine: updateIscsListByDevice(state, 'fasBrakeMachineList', device); break; - case deviceType.Staircase: updateIscsListByDevice(state, 'staircaseList', device); break; - case deviceType.SingleStaircase: updateIscsListByDevice(state, 'singleStaircaseList', device); break; - case deviceType.ArcStatus: updateIscsListByDevice(state, 'arcStatusList', device); break; - case deviceType.IscsButton: updateIscsListByDevice(state, 'iscsButtonList', device); break; - case deviceType.StateTable: updateIscsListByDevice(state, 'stateTableList', device); break; - case deviceType.LightingGroup: updateIscsListByDevice(state, 'lightingGroupList', device); break; - case deviceType.BalancedElectric: updateIscsListByDevice(state, 'balancedElectricList', device); break; - case deviceType.ElectricButterflyValve: updateIscsListByDevice(state, 'electricButterflyValveList', device); break; - case deviceType.Cistern: updateIscsListByDevice(state, 'cisternList', device); break; - case deviceType.Electrically: updateIscsListByDevice(state, 'electricallyList', device); break; - case deviceType.Stairs: updateIscsListByDevice(state, 'stairsList', device); break; - case deviceType.Elevator: updateIscsListByDevice(state, 'elevatorList', device); break; - case deviceType.Draught: updateIscsListByDevice(state, 'draughtList', device); break; - case deviceType.IscsImage: updateIscsListByDevice(state, 'iscsImageList', device); break; + let type = device._type; + if (type) { + type = type.replace(type[0], type[0].toLowerCase()) + 'List'; + updateIscsListByDevice(state, type, device); } } diff --git a/src/jmapNew/config/skinCode/ningbo_01.js b/src/jmapNew/config/skinCode/ningbo_01.js index ef1403e5e..3e2aeab49 100644 --- a/src/jmapNew/config/skinCode/ningbo_01.js +++ b/src/jmapNew/config/skinCode/ningbo_01.js @@ -301,6 +301,7 @@ class SkinCode extends defaultStyle { block: true, // 联合图形封锁状态 flashingColors: '#D600D5', // 联合图形封锁闪烁显示颜色 fork: true, // 挤岔专用(如有挤岔操作 变为true) + faultStatus: true, // 宁波失表状态用 挤岔表示 forKColor: 'red' // 挤岔颜色 配合挤岔专用 }, arcBlcok: { // 圆形封锁图形 diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 999ab512a..472eeef36 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -217,12 +217,13 @@ class Jlmap { const code = elem.code; const type = elem._type; const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig); + // const oDevice = deviceFactory(type, elem, this.showConfig); const nDevice = deepAssign(oDevice || {}, elem); this.$painter.delete(oDevice); delete this.mapDevice[code]; if (!elem._dispose) { this.mapDevice[code] = nDevice; - this.$painter.add(nDevice); + this.$painter.add(nDevice); // 重新赋值instance } }); diff --git a/src/jmapNew/shape/Switch/index.js b/src/jmapNew/shape/Switch/index.js index b2989f0fa..cfa2851ed 100644 --- a/src/jmapNew/shape/Switch/index.js +++ b/src/jmapNew/shape/Switch/index.js @@ -347,12 +347,16 @@ export default class Switch extends Group { } setSwitchFault(split) { - if (this.model.switchFaultCode && split) { - const switchFault = store.getters['map/getDeviceByCode'](this.model.switchFaultCode); - switchFault.instance.setControlColor('#F00', true); - } else if (this.model.switchFaultCode && !split) { - const switchFault = store.getters['map/getDeviceByCode'](this.model.switchFaultCode); - switchFault.instance.setControlColor(this.style.backgroundColor, false); + if (this.style.Switch.jointImg.faultStatus && split) { + this.setForkAction(); // 道岔挤岔 宁波线失表状态 + } else { + if (this.model.switchFaultCode && split) { + const switchFault = store.getters['map/getDeviceByCode'](this.model.switchFaultCode); + switchFault.instance.setControlColor('#F00', true); + } else if (this.model.switchFaultCode && !split) { + const switchFault = store.getters['map/getDeviceByCode'](this.model.switchFaultCode); + switchFault.instance.setControlColor(this.style.backgroundColor, false); + } } } /** 挤叉*/ diff --git a/src/jmapNew/theme/beijing_01/menus/menuBar.vue b/src/jmapNew/theme/beijing_01/menus/menuBar.vue index bcbd910fa..e48eae102 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuBar.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuBar.vue @@ -110,6 +110,8 @@ import ManageUser from './menuDialog/manageUser'; import HelpAbout from './menuDialog/helpAbout'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import { EventBus } from '@/scripts/event-bus'; +import { State2SimulationMap } from '@/scripts/cmdPlugin/Config'; +import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; export default { name: 'MenuBar', @@ -141,7 +143,7 @@ export default { valid: true, menu: [], menuNormal: { - local: [ + Local: [ { title: '系统', operate: OperationEvent.Command.mBar.system, @@ -386,7 +388,7 @@ export default { ] } ], - central: [ + Center: [ { title: '系统', operate: OperationEvent.Command.mBar.system, @@ -699,8 +701,10 @@ export default { return list; }, initMenu(menu) { - if (this.menu[2]) { - this.menu[2].children = this.initStationList(); + const type = State2SimulationMap[this.$store.state.training.prdType]; + this.menu = MenuContextHandler.menuBarConvert(this.menuNormal[type], this.$store.state.training.operatemode); + if (this.menu[3]) { + this.menu[3].children = this.initStationList(); } this.clickEvent(); this.closeMenu(true); diff --git a/src/jmapNew/theme/beijing_01/menus/menuButton.vue b/src/jmapNew/theme/beijing_01/menus/menuButton.vue index a03bfa71c..d8c2e523d 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuButton.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuButton.vue @@ -1,5 +1,5 @@ - diff --git a/src/jmapNew/theme/chengdu_03/menus/menuBar.vue b/src/jmapNew/theme/chengdu_03/menus/menuBar.vue index c381d336b..e3a5306b8 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuBar.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuBar.vue @@ -727,7 +727,7 @@ export default { initMenu(menu) { this.menu = MenuContextHandler.menuBarConvert(this.menuNormal[State2SimulationMap[this.$store.state.training.prdType]], this.$store.state.training.operatemode); if (this.menu.length) { - this.menu[2].children = this.initStationList(); + this.menu[3].children = this.initStationList(); this.clickEvent(); this.closeMenu(true); } diff --git a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue index 70e53985c..837803b85 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue @@ -1,5 +1,5 @@ @@ -55,41 +55,41 @@ export default { menu: [], menuNormal: { Local: [ - { - label: '办理进路', - handler: this.arrangementRoute, - cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE - }, - { - label: '办理引导进路', - handler: this.guide, - cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE - }, - { - label: '取消进路', - handler: this.cancelTrainRoute, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE - }, - { - label: '总人解', // 取消引导进路 - handler: this.humanTrainRoute, - cmdType: CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE - }, - { - label: '进路收人工控', - handler: this.humanControl, - cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING - }, - { - label: '进路交自动控', - handler: this.atsAutoControl, - cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING - }, - { - label: '进路信息', - handler: this.detail, - cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING - } + // { + // label: '办理进路', + // handler: this.arrangementRoute, + // cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE + // }, + // { + // label: '办理引导进路', + // handler: this.guide, + // cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE + // }, + // { + // label: '取消进路', + // handler: this.cancelTrainRoute, + // cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE + // }, + // { + // label: '总人解', // 取消引导进路 + // handler: this.humanTrainRoute, + // cmdType: CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE + // }, + // { + // label: '进路收人工控', + // handler: this.humanControl, + // cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING + // }, + // { + // label: '进路交自动控', + // handler: this.atsAutoControl, + // cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING + // }, + // { + // label: '进路信息', + // handler: this.detail, + // cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING + // } ], Center: [ { @@ -277,7 +277,6 @@ export default { start: true, code: `${this.selected.code}`, operation: OperationEvent.Signal.guide.menu.operation, - operateNext: OperationEvent.Signal.guide.confirm.operation, param: { signalCode: `${this.selected.code}` } @@ -291,7 +290,7 @@ export default { routes.push(elem); } }); - this.$refs.passwordBox.doShow({step: step, selected: this.selected, routesList: routes}); + this.$refs.passwordBox.doShow({...step, ...{selected: this.selected}, ...{routesList: routes}}); } }); }, @@ -325,7 +324,7 @@ export default { this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); if (valid) { - this.$refs.passwordBox.doShow({step: step, selected: this.selected}); + this.$refs.passwordBox.doShow({...step, ...{selected: this.selected}}); } }); }, @@ -452,11 +451,20 @@ export default { }); }, passWordCommit(data) { - if (data.step.operation === OperationEvent.Signal.guide.menu.operation) { - this.$refs.routeGuide.doShow(data.step.operation, data.selected, data.routesList); - } else if (data.step.operation === OperationEvent.Signal.humanTrainRoute.menu.operation) { - this.$refs.routeControl.doShow(data.step, data.selected); - } + const step = { + operation: data.operation + }; + this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + if (valid) { + this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + if (data.operation === OperationEvent.Signal.guide.menu.operation) { + this.$refs.routeGuide.doShow(data, data.selected, data.routesList); + } else if (data.operation === OperationEvent.Signal.humanTrainRoute.menu.operation) { + this.$refs.routeControl.doShow(data, data.selected); + } + } + }); + } } }; diff --git a/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue b/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue index 2243b0df6..43fe5441d 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue @@ -172,6 +172,7 @@ export default { lock() { const operate = { start: true, + code: `${this.selected.code}`, operation: OperationEvent.Switch.lock.menu.operation, param: { switchCode: this.selected.code @@ -188,6 +189,7 @@ export default { unlock() { const operate = { start: true, + code: `${this.selected.code}`, operation: OperationEvent.Switch.unlock.menu.operation, param: { switchCode: this.selected.code @@ -204,6 +206,7 @@ export default { block() { const operate = { start: true, + code: `${this.selected.code}`, operation: OperationEvent.Switch.block.menu.operation, param: { switchCode: this.selected.code @@ -220,6 +223,7 @@ export default { unblock() { const operate = { start: true, + code: `${this.selected.code}`, operation: OperationEvent.Switch.unblock.menu.operation, param: { switchCode: this.selected.code @@ -236,6 +240,7 @@ export default { fault() { const operate = { start: true, + code: `${this.selected.code}`, operation: OperationEvent.Switch.fault.menu.operation, param: { switchCode: this.selected.code @@ -252,6 +257,7 @@ export default { active() { const operate = { start: true, + code: `${this.selected.code}`, operation: OperationEvent.Switch.active.menu.operation, param: { switchCode: this.selected.code @@ -268,6 +274,7 @@ export default { locate() { const operate = { start: true, + code: `${this.selected.code}`, operation: OperationEvent.Switch.locate.menu.operation, param: { switchCode: this.selected.code @@ -284,6 +291,7 @@ export default { reverse() { const operate = { start: true, + code: `${this.selected.code}`, operation: OperationEvent.Switch.reverse.menu.operation, param: { switchCode: this.selected.code diff --git a/src/jmapNew/theme/chengdu_03/menus/passiveDialog/alarm.vue b/src/jmapNew/theme/chengdu_03/menus/passiveDialog/alarm.vue index 593a2079d..8011b522a 100644 --- a/src/jmapNew/theme/chengdu_03/menus/passiveDialog/alarm.vue +++ b/src/jmapNew/theme/chengdu_03/menus/passiveDialog/alarm.vue @@ -1,208 +1,215 @@ diff --git a/src/views/newMap/displayNew/designIndex.vue b/src/views/newMap/displayNew/designIndex.vue index f46c0c74d..9bb65c926 100644 --- a/src/views/newMap/displayNew/designIndex.vue +++ b/src/views/newMap/displayNew/designIndex.vue @@ -10,12 +10,9 @@ ref="menuDemon" :offset="offset" :offset-bottom="offsetBottom" - :group="group" - :quest-id="questId" - :user-role="userRole" - @tryTime="tryTime" - @hidepanel="hidepanel" + :script-id="scriptId" @quitQuest="quitQuest" + @hidepanel="hidepanel" @showScheduling="showScheduling" /> @@ -24,7 +21,6 @@ ref="menuSchema" :offset="offset" :offset-bottom="offsetBottom" - :group="group" :show-station="showStation" :station-list="stationList" :show-select-station="showSelectStation" @@ -42,7 +38,7 @@ - + @@ -54,16 +50,14 @@ import MapSystemDraft from '@/views/newMap/mapsystemNew/index'; import MenuDemon from '@/views/newMap/displayNew/menuDemon'; import MenuSchema from '@/views/newMap/displayNew/menuSchema'; import MenuSystemTime from '@/views/newMap/displayNew/menuSystemTime'; -import AddQuest from './demon/addQuest'; +// import AddQuest from './demon/addQuest'; import { mapGetters } from 'vuex'; import { setGoodsTryUse } from '@/api/management/goods'; -import { clearSimulation, getSimulationInfoNew, scriptExecuteNew } from '@/api/simulation'; +import { clearSimulation, getSimulationInfoNew } from '@/api/simulation'; import { OperateMode, TrainingMode } from '@/scripts/ConstDic'; import { checkLoginLine } from '@/api/login'; import { loadNewMapDataByGroup } from '@/utils/loaddata'; import { EventBus } from '@/scripts/event-bus'; -import Vue from 'vue'; -import {loadDraftScript, loadDraftScriptNew} from '@/api/designPlatform'; // 三维 // import Jl3dSimulation from '@/views/jlmap3d/simulation/jl3dsimulation'; @@ -76,7 +70,7 @@ export default { RunPlanLoad, RunPlanView, FaultChoose, - AddQuest, + // AddQuest, MapSystemDraft, MenuDemon, MenuSchema, @@ -108,7 +102,7 @@ export default { panelShow: true, simulationShow: false, drivingShow: false, - questId: 0, // 加载任务的Id + scriptId:0, // 加载任务的Id showStation: '', stationList: [], showSelectStation: false, // 是否展示现地选择设备集中站select @@ -212,9 +206,6 @@ export default { this.group = this.$route.query.group || ''; }, async mounted() { - EventBus.$on('clearCheckLogin', () => { - this.clearCheckLogin(); - }); await this.setWindowSize(); await this.initLoadData(); this.switchMode('01'); @@ -224,7 +215,6 @@ export default { await this.quit(); await this.$store.dispatch('training/reset'); await this.$store.dispatch('map/mapClear'); - EventBus.$off('clearCheckLogin'); }, methods: { // 清除检查在线定时器 @@ -274,6 +264,10 @@ export default { mousemove(e) { this.mouseNum = 1; }, + // 退出脚本 + async quitQuest() { + this.scriptId = 0; + }, setPosition() { this.$nextTick(() => { let offset = 15; @@ -355,41 +349,18 @@ export default { const row = {group: this.$route.query.group, id: this.$route.query.scriptId}; this.$refs.addQuest.handleLoad(1, row); }, + // selectQuestNew(row, id, mapLocation, roleName) { + // this.$refs. + // }, // 选择脚本 - async selectQuest(row, id, mapLocation, roleName) { - try { - const res = this.drawWay ? await loadDraftScriptNew(id, this.group) : await loadDraftScript(row.id, id, this.group); - if (res && res.code == 200) { - this.questId = parseInt(row.id); - if (mapLocation) { - const newMapLocation = {'offsetX': mapLocation.x, 'offsetY': mapLocation.y, 'scaleRate': mapLocation.scale}; - Vue.prototype.$jlmap.setOptions(newMapLocation); - } - if (this.drawWay) { - scriptExecuteNew(this.group).then(data=>{ - }).catch(error=>{ - console.log(error); - }); - } - // if (res.data && res.data.mapLocation) { - // const mapLocation={'offsetX': res.data.mapLocation.x, 'offsetY': res.data.mapLocation.y, 'scaleRate': res.data.mapLocation.scale}; - // Vue.prototype.$jlmap.setOptions(mapLocation); - // } - } - if (this.$refs.menuDemon) { - await this.$refs.menuDemon.initLoadPage(); - } - - if (this.$refs.menuScript) { - await this.$refs.menuScript.initLoadPage(); - } - } catch (error) { - this.$messageBox(error.message); + async selectQuest(row) { + this.scriptId = parseInt(row.id); + if (this.isDemon) { + this.$refs.menuDemon.initLoadPage(); + } + if (this.isScript) { + this.$refs.menuScript.initLoadPage(); } - }, - // 退出脚本 - async quitQuest() { - this.questId = 0; }, // 通过id加载地图数据 diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue index 3294dd249..d2cc4eddb 100644 --- a/src/views/newMap/displayNew/index.vue +++ b/src/views/newMap/displayNew/index.vue @@ -1,24 +1,27 @@ - - diff --git a/src/views/newMap/displayNew/menuDemon.vue b/src/views/newMap/displayNew/menuDemon.vue index ca523e4b9..a76e21e30 100644 --- a/src/views/newMap/displayNew/menuDemon.vue +++ b/src/views/newMap/displayNew/menuDemon.vue @@ -1,12 +1,14 @@