diff --git a/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue b/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue index 20a308823..7d31842ba 100644 --- a/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue +++ b/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue @@ -129,7 +129,7 @@ import { mapGetters } from 'vuex'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import { MouseEvent, DeviceMenu } from '@/scripts/ConstDic'; import { EventBus } from '@/scripts/event-bus'; -import {UserOperationType} from "../../../../scripts/ConstDic"; +import {UserOperationType} from '../../../../scripts/ConstDic'; export default { name: 'MapButtonMenu', @@ -502,7 +502,8 @@ export default { } } } else { - const signal = this.$store.dispatch('map/getDeviceByCode')[model.signalCode || model.code]; + // const signal = this.$store.dispatch('map/getDeviceByCode')[model.signalCode || model.code]; + const signal = this.$store.getters['map/getDeviceByCode'](model.signalCode || model.code); if (signal.routeLock) { return; } } this.$store.dispatch('trainingNew/next', operate).then(({valid}) => { diff --git a/src/jmapNew/theme/datie_02/menus/menuDialog/trainFixedPathPane.vue b/src/jmapNew/theme/datie_02/menus/menuDialog/trainFixedPathPane.vue index 2aa09c6a1..0dfb69480 100644 --- a/src/jmapNew/theme/datie_02/menus/menuDialog/trainFixedPathPane.vue +++ b/src/jmapNew/theme/datie_02/menus/menuDialog/trainFixedPathPane.vue @@ -193,12 +193,12 @@ export default { stationCode: stationCode } }; - this.$store.dispatch('trainingNew/next', operate).then(({valid, resp}) => { + this.$store.dispatch('trainingNew/next', operate).then(({valid, response}) => { if (valid) { this.stationCode = stationCode; - this.trainFixedPathList = resp.data.data; + this.trainFixedPathList = response.data.data; this.dialogShow = true; - this.title = title + ' 版本:' + resp.data.version; + this.title = title + ' 版本:' + response.data.version; this.$nextTick(() => { this.$store.dispatch('training/emitTipFresh'); }); } }).catch(e => { @@ -246,7 +246,7 @@ export default { }; this.$store.dispatch('trainingNew/next', operate).then(({valid}) => { if (valid) { - sendCommandNew(this.$route.query.group, menuOperate.CTC.getStationTrainFixedPath.cmdType, { stationCode: this.stationCode }).then(resp => { + sendCommandNew(this.$route.query.group, menuOperate.CTC.getStationTrainFixedPath.cmdType.value, { stationCode: this.stationCode }).then(resp => { const title = '固定径路信息'; this.trainFixedPathList = resp.data.data; this.title = title + ' 版本 :' + resp.data.version; @@ -260,7 +260,6 @@ export default { }, cancel() { const operate = { - over: true, userOperationType: UserOperationType.LEFTCLICK, operation: OperationEvent.Command.cancel.menu.operation }; diff --git a/src/router/index.js b/src/router/index.js index 9cfad9c8c..cdf56fb16 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -48,17 +48,10 @@ const Display = () => import('@/views/newMap/display/index'); // const TrainingPreview = () => import('@/views/designPlatform/trainingPreview'); const TrainingDesign = () => import('@/views/organization/trainingDesign/index'); const TrainingManage = () => import('@/views/organization/trainingManage/index'); -const TestRunplan = () => import('@/views/designPlatform/testRunplan'); -const PracticeDisplay = () => import('@/views/newMap/displayNew/practiceDisplay'); -const BigLPFStrategy = () => import('@/views/newMap/displayNew/bigLPFStrategy'); - -const RunPlanViewWindow = () => import('@/views/newMap/displayNew/demon/runPlanViewWindow'); -const PlanScheduleWicket = () => import('@/views/newMap/displayNew/demon/planSchedule'); // const DemoTraining = () => import('@/views/newMap/displayNew/demoTraining'); const BigTrainRunplanManage = () => import('@/views/bigTrainRunplanManage/index'); -const jointTrainingNewCCTV = () => import('@/views/newMap/jointTrainingNew/realCCTV'); const Errpr404 = () => import('@/views/error-page/404'); @@ -163,8 +156,6 @@ const UserRulesDetail = () => import('@/views/orderauthor/rules/detail'); const DeviceManage = () => import('@/views/system/deviceManage/index'); const BankManage = () => import('@/views/competitionManage/bankList/index'); -const Scene = () => import('@/views/drts/scene/index'); - const QuestionCreatePage = () => import('@/views/competitionManage/bankList/question-create-page'); const QuestionUpdatePage = () => import('@/views/competitionManage/bankList/question-update-page'); @@ -199,8 +190,6 @@ const Demo = () => import('@/views/demo'); const MapGroup = () => import('@/views/publish/mapGroup/index'); const OrgDetail = () => import('@/views/system/companyManage/orgDetail'); const VoiceTraining = () => import('@/views/system/voiceTraining/index'); -const SceneTrainingResult = () => import('@/views/drts/scene/trainingResult'); -const SceneVoiceTraining = () => import('@/views/drts/scene/voiceTraining'); const Ueditor = () => import('@/views/editor/index'); const UeditorList = () => import('@/views/editor/list'); @@ -375,11 +364,6 @@ export const constantRoutes = [ component: PlanMonitorEditAUSTool, hidden: true }, - { - path: '/runPlanViewWindow', - component: RunPlanViewWindow, - hidden: true - }, { path: '/jlmap3d/sandbox', component: Jlmap3dSandbox, @@ -510,11 +494,6 @@ export const publicAsyncRoute = [ component: BigSplitScreen, hidden: true }, - { - path: '/jointTrainingNewCCTV', - component: jointTrainingNewCCTV, - hidden: true - }, { path: '/jlmap3d', component: Jlmap3d, @@ -583,29 +562,6 @@ export const publicAsyncRoute = [ component: ExamResult, hidden: true }, - {// 运行图预览 - path: '/planSchedule/window', - component: PlanScheduleWicket, - hidden: true - }, - { - // 运行图测试(仿真,仅有按计划行车和初始化操作) - path: '/design/runPlan/testRunplan', - component: TestRunplan, - hidden: true - }, - { - // 北京交大使用 客流视图 - path: '/practiceDisplay', - component: PracticeDisplay, - hidden: true - }, - { - // 北京交大使用 大客流策略 - path: '/bigLPFStrategy', - component: BigLPFStrategy, - hidden: true - }, { path: '/messageBoard', component: MessageBoard, @@ -1509,14 +1465,6 @@ export const asyncRouter = [ icon: 'design' } }, - { - path: 'scene', - component: Scene, - meta: { - i18n: 'router.sceneManage', - icon: 'design' - } - }, { path: 'questionCreate', component: QuestionCreatePage, @@ -1526,16 +1474,6 @@ export const asyncRouter = [ path: 'questionUpdate/:questionId', component: QuestionUpdatePage, hidden: true - }, - { - path: 'voiceTraining', - component: SceneVoiceTraining, - hidden: true - }, - { - path: 'trainingResult', - component: SceneTrainingResult, - hidden: true } ] }, diff --git a/src/views/newMap/displayNew/utils.js b/src/utils/simulation.js similarity index 100% rename from src/views/newMap/displayNew/utils.js rename to src/utils/simulation.js diff --git a/src/views/authorityTransfer/distributePackage.vue b/src/views/authorityTransfer/distributePackage.vue index 7f290f3da..9a6906c64 100644 --- a/src/views/authorityTransfer/distributePackage.vue +++ b/src/views/authorityTransfer/distributePackage.vue @@ -171,7 +171,8 @@ export default { distributePackage(index, row) { if (this.packageId) { const accountId = row.id; - const subjectType = row.type == '1' ? 'user' : 'org'; + // const subjectType = row.type == '1' ? 'user' : 'org'; + const subjectType = 'user'; // 都是用户 setDistributeToSubject(this.packageId, subjectType, accountId).then(resp=> { this.$message.success('权限分发给指定账户成功!'); this.$emit('reloadTable'); diff --git a/src/views/designPlatform/testRunplan.vue b/src/views/designPlatform/testRunplan.vue deleted file mode 100644 index bad23871c..000000000 --- a/src/views/designPlatform/testRunplan.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - diff --git a/src/views/drts/scene/create.vue b/src/views/drts/scene/create.vue deleted file mode 100644 index 07de5e2a0..000000000 --- a/src/views/drts/scene/create.vue +++ /dev/null @@ -1,156 +0,0 @@ - - diff --git a/src/views/drts/scene/importScene.vue b/src/views/drts/scene/importScene.vue deleted file mode 100644 index 48b936983..000000000 --- a/src/views/drts/scene/importScene.vue +++ /dev/null @@ -1,171 +0,0 @@ - - - diff --git a/src/views/drts/scene/index.vue b/src/views/drts/scene/index.vue deleted file mode 100644 index 70081ef6f..000000000 --- a/src/views/drts/scene/index.vue +++ /dev/null @@ -1,178 +0,0 @@ - - diff --git a/src/views/drts/scene/modify.vue b/src/views/drts/scene/modify.vue deleted file mode 100644 index 63fc1418a..000000000 --- a/src/views/drts/scene/modify.vue +++ /dev/null @@ -1,781 +0,0 @@ - - - - diff --git a/src/views/drts/scene/operateStatistic.vue b/src/views/drts/scene/operateStatistic.vue deleted file mode 100644 index 4e612f290..000000000 --- a/src/views/drts/scene/operateStatistic.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - diff --git a/src/views/drts/scene/stepDescription.vue b/src/views/drts/scene/stepDescription.vue deleted file mode 100644 index 145b80343..000000000 --- a/src/views/drts/scene/stepDescription.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - diff --git a/src/views/drts/scene/trainingResult.vue b/src/views/drts/scene/trainingResult.vue deleted file mode 100644 index 341fab432..000000000 --- a/src/views/drts/scene/trainingResult.vue +++ /dev/null @@ -1,449 +0,0 @@ - - - - - diff --git a/src/views/drts/scene/update.vue b/src/views/drts/scene/update.vue deleted file mode 100644 index ff0db89f9..000000000 --- a/src/views/drts/scene/update.vue +++ /dev/null @@ -1,275 +0,0 @@ - - - - diff --git a/src/views/drts/scene/voiceTraining.vue b/src/views/drts/scene/voiceTraining.vue deleted file mode 100644 index 1bd709269..000000000 --- a/src/views/drts/scene/voiceTraining.vue +++ /dev/null @@ -1,516 +0,0 @@ - - - - - diff --git a/src/views/jlmap3d/simulation/jl3dsimulation.vue b/src/views/jlmap3d/simulation/jl3dsimulation.vue index 1ed2027b6..1eda439f1 100644 --- a/src/views/jlmap3d/simulation/jl3dsimulation.vue +++ b/src/views/jlmap3d/simulation/jl3dsimulation.vue @@ -91,9 +91,9 @@ export default { }; }, watch: { - '$store.state.socket.simulationOver':function(val) { - this.back(); - }, + // '$store.state.socket.simulationOver':function(val) { + // this.back(); + // }, }, beforeDestroy() { // console.log("destroy"); diff --git a/src/views/newMap/display/simulationMenu/simulationMenu.vue b/src/views/newMap/display/simulationMenu/simulationMenu.vue index 37a29ba2c..c1cd00241 100644 --- a/src/views/newMap/display/simulationMenu/simulationMenu.vue +++ b/src/views/newMap/display/simulationMenu/simulationMenu.vue @@ -193,7 +193,8 @@ export default { this.logout(); }); } else if (this.$route.query.third) { - this.$router.push({ path: `/trainingPlatform/simulation/${this.$route.query.mapId}`, query: { lineCode: this.$route.query.lineCode } }); + // this.$router.push({ path: `/trainingPlatform/simulation/${this.$route.query.mapId}`, query: { lineCode: this.$route.query.lineCode } }); + window.close(); } else if (this.projectDevice) { this.logout(); } else { diff --git a/src/views/newMap/display/terminals/index.vue b/src/views/newMap/display/terminals/index.vue index a5674c3b2..6f789a7cd 100644 --- a/src/views/newMap/display/terminals/index.vue +++ b/src/views/newMap/display/terminals/index.vue @@ -272,6 +272,8 @@ export default { } } else if (val === 'scheduleWork') { this.mapViewLoaded(true); + } else if (val === 'dispatcherManage') { + this.mapViewLoaded(true); } this.$nextTick(() => { this.loading = false; }); }, diff --git a/src/views/newMap/display/terminals/terminalMenu.vue b/src/views/newMap/display/terminals/terminalMenu.vue index a310bf23b..9540f8648 100644 --- a/src/views/newMap/display/terminals/terminalMenu.vue +++ b/src/views/newMap/display/terminals/terminalMenu.vue @@ -76,16 +76,14 @@ export default { { name: '路票', code: 'trainTicket', - roleList: ['DISPATCHER', 'STATION_SUPERVISOR', 'STATION_ASSISTANT', 'STATION_MASTER', 'STATION_SIGNALER', 'STATION_PASSENGER', - 'STATION_SWITCH_MAN', 'STATION_FACILITATOR', 'STATION_WORKER', 'DEVICE_MANAGER', 'TRAIN_MASTER', 'DEPOT_DISPATCHER', 'SIGNAL_BUILDING', 'DRIVER'], + roleList: ['STATION_SUPERVISOR', 'STATION_ASSISTANT'], isShow: () => this.$route.query.simType === 'RAILWAY', click: this.changePictureShow }, { name: '簿册', code: 'registerBook', - roleList: ['DISPATCHER', 'STATION_SUPERVISOR', 'STATION_ASSISTANT', 'STATION_MASTER', 'STATION_SIGNALER', 'STATION_PASSENGER', - 'STATION_SWITCH_MAN', 'STATION_FACILITATOR', 'STATION_WORKER', 'DEVICE_MANAGER', 'TRAIN_MASTER', 'DEPOT_DISPATCHER', 'SIGNAL_BUILDING', 'DRIVER'], + roleList: ['STATION_SUPERVISOR', 'STATION_ASSISTANT'], isShow: () => this.$route.query.simType === 'RAILWAY', click: this.changePictureShow }, diff --git a/src/views/newMap/display/terminals/trainTicket/index.vue b/src/views/newMap/display/terminals/trainTicket/index.vue index 33b5ad960..4cc21df66 100644 --- a/src/views/newMap/display/terminals/trainTicket/index.vue +++ b/src/views/newMap/display/terminals/trainTicket/index.vue @@ -48,7 +48,6 @@ import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuO import RailTicket from './trainTicket'; import GreenLicence from './greenLicence'; import RedLicence from './redLicence'; -import { EventBus } from '@/scripts/event-bus'; export default { name: 'Index', components: { @@ -118,7 +117,7 @@ export default { 'stationList' ]), userRole() { - return this.$store.state.training.userRole; + return this.$store.state.training.roles; }, roleDeviceCode() { return this.$store.state.training.roleDeviceCode; @@ -133,14 +132,14 @@ export default { this.greenLicenseForm.stationSeal = station.name; this.redLicenseForm.stationSeal = station.name; } + }, + '$store.state.training.memberList': function (val) { + this.initGiveMemberList(val); } }, mounted() { - EventBus.$on('trainTicketMember', (memberList) => { - this.giveMemberList = memberList; - }); const station = this.$store.getters['map/getDeviceByCode'](this.roleDeviceCode); - + this.initGiveMemberList(this.$store.state.training.memberList); if (station) { this.ticketForm.station = station.name; this.ticketForm.stationSeal = station.name; @@ -153,6 +152,15 @@ export default { } }, methods: { + initGiveMemberList(memberList) { + this.giveMemberList = []; + const memberData = this.$store.state.training.memberData; + memberList.forEach(item => { + if (item.type === 'STATION_ASSISTANT' || item.type === 'STATION_SUPERVISOR') { + this.giveMemberList.push(memberData[item.id]); + } + }); + }, handleClick() { if (this.activeName === 'second') { this.query(); diff --git a/src/views/newMap/display/trainingDesign/designPane.vue b/src/views/newMap/display/trainingDesign/designPane.vue index 1173e0cc5..f1e57987a 100644 --- a/src/views/newMap/display/trainingDesign/designPane.vue +++ b/src/views/newMap/display/trainingDesign/designPane.vue @@ -116,7 +116,7 @@ import { updateTrainingStep, getTrainingAll, updateTrainingBackgroud, getTrainingStepList, updateTrainingMaplocation, clearDesignTraining} from '@/api/trainingManage'; import { assignUsersPlayRoles } from '@/api/jointSimulation'; import Vue from 'vue'; -import {covertMemberData} from '@/views/newMap/displayNew/utils'; +import {covertMemberData} from '@/utils/simulation'; import DraftTrainingList from './draftTrainingList'; import EditOperate from './editOperate'; import CreateDraftTraining from './createDraftTraining'; diff --git a/src/views/newMap/display/trainingDesign/gradeRules.vue b/src/views/newMap/display/trainingDesign/gradeRules.vue index 88b16b1c7..574237ce4 100644 --- a/src/views/newMap/display/trainingDesign/gradeRules.vue +++ b/src/views/newMap/display/trainingDesign/gradeRules.vue @@ -55,7 +55,7 @@ - - diff --git a/src/views/newMap/displayNew/demoTraining/index.vue b/src/views/newMap/displayNew/demoTraining/index.vue deleted file mode 100644 index 134c1ad68..000000000 --- a/src/views/newMap/displayNew/demoTraining/index.vue +++ /dev/null @@ -1,71 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/demon/addFault.vue b/src/views/newMap/displayNew/demon/addFault.vue deleted file mode 100644 index 53d807221..000000000 --- a/src/views/newMap/displayNew/demon/addFault.vue +++ /dev/null @@ -1,284 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/demon/addQuest.vue b/src/views/newMap/displayNew/demon/addQuest.vue deleted file mode 100644 index a8c2e4a6e..000000000 --- a/src/views/newMap/displayNew/demon/addQuest.vue +++ /dev/null @@ -1,279 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/demon/equipment.vue b/src/views/newMap/displayNew/demon/equipment.vue deleted file mode 100644 index de4253a43..000000000 --- a/src/views/newMap/displayNew/demon/equipment.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayNew/demon/faultChoose.vue b/src/views/newMap/displayNew/demon/faultChoose.vue deleted file mode 100644 index 59bddda19..000000000 --- a/src/views/newMap/displayNew/demon/faultChoose.vue +++ /dev/null @@ -1,651 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayNew/demon/modifyTime.vue b/src/views/newMap/displayNew/demon/modifyTime.vue deleted file mode 100644 index ae6bb984c..000000000 --- a/src/views/newMap/displayNew/demon/modifyTime.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/demon/payPage.vue b/src/views/newMap/displayNew/demon/payPage.vue deleted file mode 100644 index 9c401e9f8..000000000 --- a/src/views/newMap/displayNew/demon/payPage.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayNew/demon/planSchedule.vue b/src/views/newMap/displayNew/demon/planSchedule.vue deleted file mode 100644 index ffc7b6876..000000000 --- a/src/views/newMap/displayNew/demon/planSchedule.vue +++ /dev/null @@ -1,673 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayNew/demon/runPlanEdit.vue b/src/views/newMap/displayNew/demon/runPlanEdit.vue deleted file mode 100644 index fa0aad208..000000000 --- a/src/views/newMap/displayNew/demon/runPlanEdit.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayNew/demon/runPlanLoad.vue b/src/views/newMap/displayNew/demon/runPlanLoad.vue deleted file mode 100644 index 19c693c04..000000000 --- a/src/views/newMap/displayNew/demon/runPlanLoad.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/demon/runPlanView.vue b/src/views/newMap/displayNew/demon/runPlanView.vue deleted file mode 100644 index 53d424383..000000000 --- a/src/views/newMap/displayNew/demon/runPlanView.vue +++ /dev/null @@ -1,657 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/demon/runPlanViewWindow.vue b/src/views/newMap/displayNew/demon/runPlanViewWindow.vue deleted file mode 100644 index 40a9f9fe4..000000000 --- a/src/views/newMap/displayNew/demon/runPlanViewWindow.vue +++ /dev/null @@ -1,659 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/demon/scheduling.vue b/src/views/newMap/displayNew/demon/scheduling.vue deleted file mode 100644 index 1c7c81d2d..000000000 --- a/src/views/newMap/displayNew/demon/scheduling.vue +++ /dev/null @@ -1,356 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/demon/schedulingView.vue b/src/views/newMap/displayNew/demon/schedulingView.vue deleted file mode 100644 index 3bf481d27..000000000 --- a/src/views/newMap/displayNew/demon/schedulingView.vue +++ /dev/null @@ -1,254 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/demon/selectIbp.vue b/src/views/newMap/displayNew/demon/selectIbp.vue deleted file mode 100644 index 04fbf7a93..000000000 --- a/src/views/newMap/displayNew/demon/selectIbp.vue +++ /dev/null @@ -1,130 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/demon/setTime.vue b/src/views/newMap/displayNew/demon/setTime.vue deleted file mode 100644 index 73fc876cb..000000000 --- a/src/views/newMap/displayNew/demon/setTime.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/demonChat.vue b/src/views/newMap/displayNew/demonChat.vue deleted file mode 100644 index a31df182b..000000000 --- a/src/views/newMap/displayNew/demonChat.vue +++ /dev/null @@ -1,68 +0,0 @@ - - diff --git a/src/views/newMap/displayNew/demonMenu.vue b/src/views/newMap/displayNew/demonMenu.vue deleted file mode 100644 index 8d145a719..000000000 --- a/src/views/newMap/displayNew/demonMenu.vue +++ /dev/null @@ -1,335 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/dispatherContest/contectUs.vue b/src/views/newMap/displayNew/dispatherContest/contectUs.vue deleted file mode 100644 index 05ebd0d1c..000000000 --- a/src/views/newMap/displayNew/dispatherContest/contectUs.vue +++ /dev/null @@ -1,66 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/dispatherContest/index.vue b/src/views/newMap/displayNew/dispatherContest/index.vue deleted file mode 100644 index 58039e5f8..000000000 --- a/src/views/newMap/displayNew/dispatherContest/index.vue +++ /dev/null @@ -1,528 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayNew/dispatherContest/operationalStatistic.vue b/src/views/newMap/displayNew/dispatherContest/operationalStatistic.vue deleted file mode 100644 index bb1170403..000000000 --- a/src/views/newMap/displayNew/dispatherContest/operationalStatistic.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/dispatherContest/question.vue b/src/views/newMap/displayNew/dispatherContest/question.vue deleted file mode 100644 index e98ccd24c..000000000 --- a/src/views/newMap/displayNew/dispatherContest/question.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/dispatherContest/sceneList.vue b/src/views/newMap/displayNew/dispatherContest/sceneList.vue deleted file mode 100644 index 91bed0ddf..000000000 --- a/src/views/newMap/displayNew/dispatherContest/sceneList.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/dispatherContest/testResult.vue b/src/views/newMap/displayNew/dispatherContest/testResult.vue deleted file mode 100644 index 144b79512..000000000 --- a/src/views/newMap/displayNew/dispatherContest/testResult.vue +++ /dev/null @@ -1,275 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayNew/dispatherContest/theoryExam.vue b/src/views/newMap/displayNew/dispatherContest/theoryExam.vue deleted file mode 100644 index f68205b09..000000000 --- a/src/views/newMap/displayNew/dispatherContest/theoryExam.vue +++ /dev/null @@ -1,618 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/dispatherContest/theoryExamSelect.vue b/src/views/newMap/displayNew/dispatherContest/theoryExamSelect.vue deleted file mode 100644 index e9955bda5..000000000 --- a/src/views/newMap/displayNew/dispatherContest/theoryExamSelect.vue +++ /dev/null @@ -1,49 +0,0 @@ - - diff --git a/src/views/newMap/displayNew/exam/index.vue b/src/views/newMap/displayNew/exam/index.vue deleted file mode 100644 index 913d102fc..000000000 --- a/src/views/newMap/displayNew/exam/index.vue +++ /dev/null @@ -1,431 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/exam/tipExamList.vue b/src/views/newMap/displayNew/exam/tipExamList.vue deleted file mode 100644 index 3f9ed4f74..000000000 --- a/src/views/newMap/displayNew/exam/tipExamList.vue +++ /dev/null @@ -1,477 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue deleted file mode 100644 index 4c3dc46d2..000000000 --- a/src/views/newMap/displayNew/index.vue +++ /dev/null @@ -1,360 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/lesson/LeftSlider.vue b/src/views/newMap/displayNew/lesson/LeftSlider.vue deleted file mode 100644 index ae9fea71e..000000000 --- a/src/views/newMap/displayNew/lesson/LeftSlider.vue +++ /dev/null @@ -1,158 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayNew/lesson/index.vue b/src/views/newMap/displayNew/lesson/index.vue deleted file mode 100644 index 43d754ea2..000000000 --- a/src/views/newMap/displayNew/lesson/index.vue +++ /dev/null @@ -1,482 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/lesson/tipTrainingDetail.vue b/src/views/newMap/displayNew/lesson/tipTrainingDetail.vue deleted file mode 100644 index c9bc3efe5..000000000 --- a/src/views/newMap/displayNew/lesson/tipTrainingDetail.vue +++ /dev/null @@ -1,304 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/menuDemon.vue b/src/views/newMap/displayNew/menuDemon.vue deleted file mode 100644 index d33c99cad..000000000 --- a/src/views/newMap/displayNew/menuDemon.vue +++ /dev/null @@ -1,497 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayNew/menuSchema.vue b/src/views/newMap/displayNew/menuSchema.vue deleted file mode 100644 index 021fe9bdc..000000000 --- a/src/views/newMap/displayNew/menuSchema.vue +++ /dev/null @@ -1,520 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/menuSystemTime.vue b/src/views/newMap/displayNew/menuSystemTime.vue deleted file mode 100644 index 49d0170ef..000000000 --- a/src/views/newMap/displayNew/menuSystemTime.vue +++ /dev/null @@ -1,127 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/menuTrainList.vue b/src/views/newMap/displayNew/menuTrainList.vue deleted file mode 100644 index 05dd922be..000000000 --- a/src/views/newMap/displayNew/menuTrainList.vue +++ /dev/null @@ -1,174 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/practiceDisplay.vue b/src/views/newMap/displayNew/practiceDisplay.vue deleted file mode 100644 index cba588abe..000000000 --- a/src/views/newMap/displayNew/practiceDisplay.vue +++ /dev/null @@ -1,541 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js b/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js deleted file mode 100644 index 53d1e6904..000000000 --- a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js +++ /dev/null @@ -1,1348 +0,0 @@ -import CMD from '@/scripts/cmdPlugin/CommandEnum'; -import store from '@/store/index'; -import { deviceFaultType, deviceType} from '@/scripts/cmdPlugin/Config'; -import { transfiniteList, trainTypeList } from '@/scripts/ConstDic'; -// 操作 -export const operateEnum = { - Set_Fault:{ - - }, - Cancel_Fault:{ - - }, - Signal: { - code:'signalCode', - type:'信号机', - Signal_Set_Route:{ - code:'routeCode', - isDevice:true, - isList:false, - name:'进路' - }, - Signal_Open_Auto_Setting:{ - code:'routeCodeList', - isDevice:true, - isList:true, - name:'进路列表', - function:getRouteNameById - }, - Signal_Close_Auto_Setting:{ - code:'routeCodeList', - isDevice:true, - isList:true, - name:'进路列表', - function:getRouteNameById - } - }, - Switch:{ - code:'switchCode', - type:'道岔', - Switch_Set_Limit_Speed:{ - code:'speedLimitValue', - name:'限速值为' - }, - Switch_Cancel_Limit_Speed:{ - code:'speedLimitValue', - name:'限速值为' - } - }, - Section:{ - code:'sectionCode', - type:'区段', - Section_Set_Limit_Speed:{ - code:'speedLimitValue', - name:'限速值为' - }, - Train_Load_Spare_Train:{ - isList:true, - params:[ - { - code:'groupNumber', - name:'车组号' - }, - { - code:'right', - name:'方向', - function:judgeUpDown - // result:[ - // {data:true, name:'右行', judge:'='}, - // {data:false, name:'左行', judge:'='} - // ] - } - ] - } - // Section_Cancel_Limit_Speed:{ - // code:'speedLimitValue', - // name:'限速值为' - // } - }, - ControlConvertMenu:{ - type:'系统/站遥控', - CM_Apply_For_Station_Control:{ - code:'stationCodes', - isList:true, - isDevice:true, - name:'车站列表', - function:getStationNameById - }, - CM_Reply_Station_Control:{ - code:'replyVOList', - name:'车站列表', - isList:true, - isDevice:true, - function:getStationResultById - }, - CM_Reply_Center_Control:{ - code:'replyVOList', - name:'车站列表', - isList:true, - isDevice:true, - function:getStationResultById - }, - CM_Apply_For_Center_Control:{ - code:'stationCodes', - isList:true, - isDevice:true, - name:'车站列表', - function:getStationNameById - } - }, - Stand:{ - code:'standCode', - type:'站台', - Stand_Set_Park_Time:{ - isList:true, - params:[ - { - code:'parkingTime', - name:'控制方式', - result:[ - {data:-1, name:'自动', judge:'='}, - {data:-1, name:'人工', judge:'>', showUnit:'秒'} - ] - }, - { - code:'parkingAlwaysValid', - name:'有效次数', - result:[ - {data:true, name:'一直有效', judge:'='}, - {data:false, name:'一次有效', judge:'='} - ] - } - ] - }, - Stand_Set_Run_Time:{ - isList:true, - params:[ - { - code:'runLevelTime', - name:'区间运行时间', - result:[ - {data:0, name:'自动', judge:'='}, - {data:0, name:'非自动', judge:'>', showUnit:'秒'} - ] - }, - { - code:'runLevelTimeForever', - name:'有效次数', - result:[ - {data:true, name:'一直有效', judge:'='}, - {data:false, name:'一次有效', judge:'='} - ] - } - ] - } - - }, - Station:{ - code:'stationCode', - type:'车站', - // 总辅助 - ASSIST_PRESS_MAIN_ASSIST:{ - isList:true, - params:[ - { - code:'labelEnum', - name:'区间' - }, - { - code:'pressDown', - name:'按钮', - result:[ - {data:1, name:'按下', judge:'='}, - {data:0, name:'弹起', judge:'='} - ] - } - ] - }, - // 接辅助 - ASSIST_PRESS_RECEIVE_ASSIST:{ - code:'labelEnum', - name:'区间为' - }, - // 发辅助 - ASSIST_PRESS_DELIVER_ASSIST:{ - code:'labelEnum', - name:'区间为' - } - // param:{ - // labelEnum:model.labelEnum, - // stationCode:model.stationCode - // } - // labelEnum:model.labelEnum, - // stationCode:model.stationCode, - // pressDown:model.pressDown ? 0 : 1 // 1按下、0弹起 - }, - Driver:{ - code:'groupNumber', - type:'司机', - Driver_Door_On_Off:{ - isList:true, - params:[ - { - code:'open', - name:'状态', - result:[ - {data:true, name:'开', judge:'='}, - {data:false, name:'关', judge:'='} - ] - }, - { - code:'right', - name:' 方向', - result:[ - {data:true, name:'左门', judge:'='}, - {data:false, name:'右门', judge:'='} - ] - } - ] - }, - Driver_Drive_Mode_Change:{ - code:'driveMode', - name:'模式为' - }, - Driver_Door_Selection:{ - code:'doorSelection', - name:'方向为' - }, - Change_Preselection_Mode: { - code: 'preselectionMode', - name: '预选模式为:' - } - - }, - TrainWindow:{ - code:'groupNumber', - type:'列车', - Train_Set_Plan:{ - isList:true, - params:[ - { - code:'serviceNumber', - name:'服务号' - }, - { - code:'tripNumber', - name:'车次号' - } - ] - }, - Train_Set_Head:{ - isList:true, - params:[ - { - code:'tripNumber', - name:'车次号' - }, - { - code:'destinationCode', - name:'目的地号' - } - ] - }, - Train_Trust: { - code:'targetDeviceCode', - name:'目的地编码' - }, - Train_Link: { - isList:true, - params:[ - // { - // code:'groupNumber1', - // name:'主动车' - // }, - { - code:'groupNumber2', - name:'被动车' - } - ] - } - }, - CTCZONE:{ - function: getCTCDevicename, - CTC_ZONE_SAVE_RUN_PLAN:{ - code:'planParam', - name:'添加行车计划', - isList:true, - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'trainType', - name:'列车类型', - result:trainTypeList - }, - { - code:'runType', - name:'运行类型', - result:[ - {code:'FAST_PASSENGER_TRAIN', name:'快速旅客列车'} - ] - }, - { - code:'arriveTripNumber', - name:'到达车次' - }, - { - code:'arriveDirectionCode', - name:'接车口' - }, - { - code:'arrivePlanTime', - name:'到达时间' - }, - { - code:'startRunPlan', - name:' 始发' - }, - { - code:'transfinite', - name:' 超限', - result:transfiniteList - } - ] - }, - CTC_ZONE_SAVE_TRACK_SECTION:{ - name:'行车计划修改股道', - isList:true, - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'运行计划编码' - }, - { - code:'sectionCode', - name:'股道', - function:getDeviceNameById - }, - { - code:'model', - name:'接发类型', - result:[ - {code:'R', name:'接车'}, - {code:'D', name:'发车'} - ] - } - ] - }, - CTC_ZONE_SAVE_PLAN_TIME:{ - name:'行车计划修改时间', - isList:true, - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'运行计划编码' - }, - { - code:'planTime', - name:'时间' - }, - { - code:'model', - name:'接发类型', - result:[ - {code:'R', name:'接车'}, - {code:'D', name:'发车'} - ] - } - ] - } - }, - CTC: { - function: getCTCDevicename, - CTC_READ_DISPATCH_COMMAND: { - isList:true, - name:'读取调度命令', - params:[ - { - code:'title', - name:'命令标题' - } - ] - }, - CTC_SIGN_DISPATCH_COMMAND: { - code:'signInfo', - name:'签收调度命令', - isList:true, - params:[ - { - code:'title', - name:'命令标题' - }, - { - code:'signedBy', - name:'签收人', - function: getUserNameById - }, - { - code:'signedStatus', - name:'签收状态', - result:[ - {data:'SIGNED', name:'签收', judge:'='}, - {data:'REFUSE', name:'拒签', judge:'='} - ] - } - ] - }, - CTC_SEND_DISPATCH_COMMAND: { - code:'command', - name:'发送调度命令', - isList:true, - params:[ - { - code:'title', - name:'命令标题' - }, - { - code:'number', - name:'命令号' - }, - { - code:'transferNumber', - name:'中转识别号' - }, - { - code:'sendTime', - name:'发令时间' - }, - { - code:'senderName', - name:'发令人' - }, - { - code:'companyOfSender', - name:'发令单位' - }, - { - code:'authorizationTime', - name:'授权时间' - }, - { - code:'authorizationStatus', - name:'授权状态' - }, - { - code:'finalizationTime', - name:'定稿时间' - }, - { - code:'reviewerId', - name:'审核人', - function: getUserNameById - }, - { - code:'author', - name:'拟令人', - function: getUserNameById - }, - { - code:'type', - name:'命令分类', - result:[ - {data:'NORMAL', name:'正常调度命令', judge:'='} - ] - }, - { - code:'content', - name:'命令正文' - }, - { - code:'receiverIds', - name:'受令单位', - function: getStationNamList - } - ] - }, - CTC_SEND_NOTICE:{ - isList:true, - name:'发送发车预告', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - } - ] - }, - CTC_AGREE_NOTICE:{ - isList:true, - name:'同意发车预告', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - // 运行计划编码 - } - ] - }, - CTC_STATION_SIGN_RUN_PLAN:{ - isList:true, - name:'签收阶段计划', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - } - ] - }, - CTC_STATION_SEND_OUT_RUN_PLAN:{ - isList:true, - name:'车站发送计划', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - } - ] - }, - CTC_MODIFY_ADJACENT_STATION:{ - isList:true, - name:'修改邻站信息', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - // 运行计划编码 - }, - { - code:'arriveStationCode', - name:'到达车站为', - function:getStationNameById - }, - { - code:'departStationCode', - name:'发车车站为', - function:getStationNameById - } - ] - }, - CTC_MODIFY_SECTION:{ - isList:true, - name:'修改股道', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - } - ] - // planParamList:[], - // force:1 - }, - CTC_CANCEL_TWINKLE:{ - isList:true, - name:'车站取消红闪', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - // 运行计划编码 - } - ] - }, - CTC_LOG_SET_START_RUN_PLAN:{ - isList:true, - name:'设置始发', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - // 运行计划编码 - } - ] - // status startRunPlan - }, - CTC_LOG_SET_END_RUN_PLAN:{ - isList:true, - name:'设置终到', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - // 运行计划编码 - } - ] - // status startRunPlan - }, - CTC_LOG_SET_DELETE_LABEL:{ - isList:true, - name:'设置删除标识', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - // 运行计划编码 - } - ] - // status:1 - }, - CTC_LOG_CANCEL_ARRIVE:{ - isList:true, - name:'取消到达', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - // 运行计划编码 - } - ] - }, - CTC_LOG_CANCEL_DEPARTURE:{ - isList:true, - name:'取消出发', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - // 运行计划编码 - } - ] - }, - CTC_LOG_CANCEL_BLOCK:{ - isList:true, - name:'取消闭塞', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - // 运行计划编码 - } - ] - }, - CTC_LOG_SET_KEY_TRAINS:{ - isList:true, - name:'设置重点列车', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - // 运行计划编码 - } - ] - // status keyTrains - }, - CTC_LOG_SET_TRANSFINITE:{ - isList:true, - name:'设置超限', - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'runPlanCode', - name:'车次号', - function:getTripNumberByCode - // 运行计划编码 - }, - { - code:'transfinite', - name:'超限类型', - result:[ - {code:'NO', name:'不超限'}, - {code:'TRANSFINITE_ONE_LEVEL', name:'一级超限'}, - {code:'TRANSFINITE_TWO_LEVEL', name:'二级超限'}, - {code:'TRANSFINITE_SUPER', name:'超级超限'} - ] - } - ] - } - // CTC_LOG_SAVE_RUN_PLAN:{value: 'CTC_LOG_SAVE_RUN_PLAN', label: '保存运行计划'}, - // CTC_MODIFY_TRIP_NUMBER - // 修改车次号(大铁CTC) - // CTC_LOG_SET_ENTRY_OUT_DISCORDANT:{value: 'CTC_LOG_SET_ENTRY_OUT_DISCORDANT', label: '设置允许出入口与基本路径不一致'}, - // CTC_LOG_SET_TRACK_DISCORDANT:{value: 'CTC_LOG_SET_TRACK_DISCORDANT', label: '设置允许股道与基本路径不一致'}, - - }, - RAIL:{ - function: getRAILDevicename, - RAIL_QUERY_REGISTER:{ - name:'查询行车簿册', - isList:true, - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - } - ] - }, - RAIL_FILL_IN_REGISTER:{ - name:'填写行车簿册', - isList:true, - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'line', - name:'单条记录', - function:getRecordByLine - } - ] - }, - RAIL_FILL_IN_TICKET:{ - name:'填写票据', - isList:true, - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - }, - { - code:'ticket', - name:'票据', - function:getTicketInfoById - } - ] - }, - RAIL_QUERY_TICKET:{ - name:'查询票据', - isList:true, - params:[ - { - code:'stationCode', - name:'车站为', - function:getStationNameById - } - // const params = { type: this.attachmentType }; - ] - }, - RAIL_GIVE_TICKET_TO:{ - name:'给出票据', - isList:true, - params:[ - { - code:'ticketId', - name:'票据id' - }, - { - code:'memberId', - name:'成员id' - } - ] - // ticketId - // memberId - } - }, - Conversation: { - type:'语音', - Conversation_Chat_Text: { - isList:true, - name:'发送文本消息', - params:[ - { - code:'content', - name:'文本内容' - } - ] - }, - Conversation_Chat_Audio_Base64: { - name:'发送语音消息', - isList:true, - params:[ - { - code:'fileBase64Str', - name:'语音内容' - } - ] - } - } - // -}; - -// // 调度台操作 -// export const ctcZoneMap = { -// CTC_ZONE_SAVE_RUN_PLAN:{ -// name:'添加行车计划', -// isList:true, -// objName:'planParam', -// params:[ -// { -// code:'stationCode', -// name:'车站', -// function:getStationNameById -// }, -// { -// code:'trainType', -// name:'列车类型', -// result:trainTypeList -// }, -// { -// code:'runType', -// name:'运行类型', -// result:[ -// {code:'FAST_PASSENGER_TRAIN', name:'快速旅客列车'} -// ] -// }, -// { -// code:'arriveTripNumber', -// name:'到达车次' -// }, -// { -// code:'arriveDirectionCode', -// name:'接车口' -// }, -// { -// code:'arriveSectionCode', -// name:'接车股道' -// }, -// { -// code:'arrivePlanTime', -// name:'到达时间' -// }, -// { -// code:'startRunPlan', -// name:' 始发' -// }, -// { -// code:'transfinite', -// name:' 超限', -// result:transfiniteList -// } -// // -// ] -// // planParam: Object -// // arriveDirectionCode: "Station32295_SF" -// // arrivePlanTime: "2022-07-27 17:12" -// // arriveSectionCode: "T97" -// // arriveTripNumber: "2056" -// // departDirectionCode: "" -// // departPlanTime: "" -// // departSectionCode: "" -// // departTripNumber: "" -// // electrical: true -// // endRunPlan: true -// // entryOutDiscordant: false -// // passenger: true -// // runType: "FAST_PASSENGER_TRAIN" -// // startRunPlan: false -// // stationCode: "Station32295" -// // trackDiscordant: true -// // trainType: "LOCAL_EXPRESS_PASSENGER_TRAIN" -// // transfinite: "NO" - -// } -// }; - -// 转换函数 -export function covertOperate(operationType, operationParamMap) { - // debugger; - if (operationType == 'Set_Fault' || operationType == 'Cancel_Fault') { - let deviceName = ''; - const device = store.getters['map/getDeviceByCode'](operationParamMap.code) || {}; - if (device._type == 'StationStand' || device._type == 'Signal' || device._type == 'Switch') { - const station = store.getters['map/getDeviceByCode'](device.stationCode); - deviceName += '【车站-' + station.name + '】 / ' + deviceType[device._type] + device.name; - } else { - if (device._type == 'Power') { - deviceName = '供电线(' + device.code + ')'; - } else if (device._type == 'Train') { - deviceName = '列车(' + device.groupNumber + ')'; - } else { - deviceName = '' + device.name; - } - } - let tip = '请找到' + deviceName + ','; - if (operationType == 'Set_Fault') { - tip += '设置故障,'; - } else { - tip += '取消故障,'; - } - const data = deviceFaultType[device._type] || []; - data.forEach(each=>{ - if (each.value == operationParamMap.faultType) { - tip += '参数为:' + each.label; - } - }); - return tip; - - } - // else if (operationType.includes('CTC_ZONE')) { - // let tip = '请点击运行图'; - // // let operateName = null; - // // Object.keys(CMD).forEach(key => { - // // Object.values(CMD[key]).forEach(el => { - // // if (el.value == operationType) { - // // operateName = el; - // // return; - // // } - // // }); - // // }); - // // tip += ',执行【' + operateName.label + '】操作'; - // let operationParam = operationParamMap; - // const paramInfo = ctcZoneMap[operationType]; - // tip += ',执行【' + paramInfo.name + '】操作'; - // if (paramInfo.objName) { - // operationParam = operationParamMap[paramInfo.objName]; - // } - // if (paramInfo.isList) { - // tip += ',参数:【'; - // paramInfo.params.forEach(param=>{ - // if (param.result) { - // param.result.forEach(result=>{ - // if (result.code == operationParam[param.code]) { - // tip += param.name + '为' + result.name + ','; - // } - // }); - // } else if (param.function) { - // tip += param.name + '为' + covertFunction(param.function, operationParam[param.code]) + ','; - // } else { - // tip += param.name + '为' + operationParam[param.code] + ','; - // } - // }); - // tip += '】'; - // } - // debugger; - // // operationParamMap[] - - // // if (paramInfo) { - // // if (paramInfo.isDevice) { - // // if (paramInfo.isList) { - // // paramName += '【' + paramInfo.name + ' '; - // // const deviceList = operationParamMap[paramInfo.code]; - // // deviceList.forEach((device, index)=>{ - // // paramName += covertFunction(paramInfo.function, device); - // // if (index != deviceList.length - 1) { - // // paramName += ','; - // // } - // // }); - // // paramName += '】'; - // // } else { - - // // operationParamMap[] - // return tip; - // // ctcZoneMap[operationType] - // // 调度台添加行车计划 - // // CTC_ZONE_SAVE_TRACK_SECTION:{value:'CTC_ZONE_SAVE_TRACK_SECTION', label: '调度台行车计划修改股道'}, - // // CTC_ZONE_SAVE_TRIP_NUMBER:{value:'CTC_ZONE_SAVE_TRIP_NUMBER', label: '调度台行车计划修改车次'}, - // // CTC_ZONE_SAVE_PLAN_TIME:{value:'CTC_ZONE_SAVE_PLAN_TIME', label: '调度台行车计划修改时间'}, - // // CTC_ZONE_SAVE_DIRECTION:{value:'CTC_ZONE_SAVE_DIRECTION', label: '调度台行车计划修改出入口'}, - // // CTC_ZONE_SAVE_STATION:{value:'CTC_ZONE_SAVE_STATION', label: '调度台行车计划修改到发车站'}, - // // CTC_ZONE_SAVE_RUN_PLAN:{value:'CTC_ZONE_SAVE_RUN_PLAN', label: '调度台添加行车计划'}, - // // CTC_ZONE_DELETE_RUN_PLAN:{value:'CTC_ZONE_DELETE_RUN_PLAN', label: '调度台删除行车计划'}, - // // CTC_ZONE_RELEASE_ALL_RUN_PLAN:{value:'CTC_ZONE_RELEASE_ALL_RUN_PLAN', label: '调度台发布所有行车计划'}, - // // CTC_ZONE_RELEASE_STATION_RUN_PLAN:{value:'CTC_ZONE_RELEASE_STATION_RUN_PLAN', label: '调度台发布车站行车计划'}, - // } - else { - let device = operationType.split('_')[0]; - if (device == 'CM') { - device = 'ControlConvertMenu'; - } - if (operationType == 'Train_Load_Spare_Train') { - device = 'Section'; - } - if (operationType.includes('ASSIST')) { - device = 'Station'; - } - if (operationType.includes('CTC_ZONE')) { - device = 'CTCZONE'; - } - const list = ['Train_Update_Type', - 'Train_Add_Train_Trace', - 'Train_Remove_Train_Trace', - 'Train_Move_Train_Trace', - 'Train_Set_Plan', - 'Train_Set_Head', - 'Train_Set_Manual', - 'Train_Set_Crew_Number', - 'Train_Tag_Atp_Cut', - 'Train_Tag_Atp_Recover', - 'Train_Allow_Pass', - 'Train_Info', - 'Train_Trust', - 'Train_Link']; - if (list.includes(operationType)) { - device = 'TrainWindow'; - } - let operateName = null; - Object.keys(CMD).forEach(key => { - Object.values(CMD[key]).forEach(el => { - if (el.value == operationType) { - operateName = el; - return; - } - }); - }); - // const operateName = Object.values(CMD[device]).find(res=>{ return res.value == operationType; }); - const deviceInfo = covertOperation(device, operationParamMap, operationType); - let tip = '请'; - if (deviceInfo.deviceName) { - tip += '找到' + deviceInfo.deviceName + ','; - } - tip += '执行【' + operateName.label + '】操作'; - if (deviceInfo.paramName) { - tip += ',参数为:' + deviceInfo.paramName; - } - return tip; - } -} - -function covertDeviceName(deviceInfo, deviceType) { - let deviceName = ''; - const device = store.getters['map/getDeviceByCode'](deviceInfo) || {}; - if (device._type == 'StationStand' || device._type == 'Signal' || device._type == 'Switch') { - const station = store.getters['map/getDeviceByCode'](device.stationCode); - deviceName += '车站-' + station.name + ' / '; - } - if (device._type == 'Section') { - if (device.parentCode && device.type == '02') { - const parentSection = store.getters['map/getDeviceByCode'](device.parentCode); - deviceName += operateEnum[deviceType].type + ' ' + parentSection.name + '-' + device.name; - } else { - deviceName += operateEnum[deviceType].type + device.name; - } - } else { - let deviceNameIn = ''; - if (device.name) { - deviceNameIn = device.name; - } else { - deviceNameIn = '(车组号:' + device.groupNumber + ')'; - } - deviceName += operateEnum[deviceType].type + ' ' + deviceNameIn; - } - return deviceName; -} - -function getCTCDevicename(operationType) { - let deviceName = ''; - const stationRPLogList = ['CTC_SEND_NOTICE', 'CTC_MODIFY_SECTION', - 'CTC_STATION_SIGN_RUN_PLAN', - 'CTC_STATION_SEND_OUT_RUN_PLAN', 'CTC_CANCEL_TWINKLE', - 'CTC_MODIFY_TRIP_NUMBER', 'CTC_AGREE_NOTICE', - 'CTC_MODIFY_ADJACENT_STATION', 'CTC_MODIFY_SECTION', 'CTC_CANCEL_TWINKLE', 'CTC_LOG_SET_START_RUN_PLAN', - 'CTC_LOG_SET_END_RUN_PLAN', 'CTC_LOG_SET_DELETE_LABEL', 'CTC_LOG_CANCEL_ARRIVE', 'CTC_LOG_CANCEL_DEPARTURE', - 'CTC_LOG_CANCEL_BLOCK', 'CTC_LOG_SET_KEY_TRAINS', 'CTC_LOG_SET_TRANSFINITE']; - if (operationType.includes('CTC_ZONE')) { - deviceName = '请点击运行图'; - } else if (stationRPLogList.includes(operationType)) { - deviceName = '车务终端 --> 行车日志'; - } else if (operationType == 'CTC_QUERY_DISPATCH_COMMAND') { - const roles = store.state.training.roles; - if (roles == 'DISPATCHER') { - deviceName = '调度命令'; - } else { - deviceName = '车务终端 --> 调度命令'; - } - } else if (operationType == 'CTC_READ_DISPATCH_COMMAND') { - deviceName = '车务终端 --> 调度命令'; - } else if (operationType == 'CTC_SIGN_DISPATCH_COMMAND') { - deviceName = '车务终端 --> 调度命令'; - } else if (operationType == 'CTC_SEND_DISPATCH_COMMAND') { - deviceName = '调度命令'; - } - return deviceName; -} - -function getRAILDevicename(operationType) { - let deviceName = ''; - const ticketList = ['RAIL_FILL_IN_TICKET', 'RAIL_QUERY_TICKET', 'RAIL_GIVE_TICKET_TO']; - const registerList = ['RAIL_FILL_IN_REGISTER', 'RAIL_QUERY_REGISTER']; - if (ticketList.includes(operationType)) { - deviceName = '车务终端 --> 票据'; - } else if (registerList.includes(operationType)) { - deviceName = '车务终端 --> 簿册'; - } - return deviceName; -} - -function covertOperation(deviceType, operationParamMap, operationType) { - let deviceName = '【'; - let paramName = ''; - if (operateEnum[deviceType].code) { - const deviceInfo = operationParamMap[operateEnum[deviceType].code]; - if (deviceInfo) { - deviceName += covertDeviceName(deviceInfo, deviceType); - } else { - const deviceCode = operationParamMap[operateEnum[deviceType][operationType].code]; - const device = store.getters['map/routeList'].find(route=>{ return route.code == deviceCode; }) || {}; - deviceName += covertDeviceName(device.startSignalCode, deviceType); - } - // if (deviceInfo instanceof Array) { - // deviceInfo.forEach((each, index)=>{ - // deviceName = +covertDeviceName(each, deviceType); - // if (index != deviceInfo.length - 1) { - // deviceName += ','; - // } - // }); - // } else { - - // } - } else if (operateEnum[deviceType].type) { - deviceName += operateEnum[deviceType].type; - } else if (operateEnum[deviceType].function) { - deviceName += covertFunction(operateEnum[deviceType].function, operationType); - } - deviceName += '】'; - const paramInfo = operateEnum[deviceType][operationType]; - if (paramInfo) { - if (paramInfo.isDevice) { - if (paramInfo.isList) { - paramName += '【' + paramInfo.name + ' '; - const deviceList = operationParamMap[paramInfo.code]; - deviceList.forEach((device, index)=>{ - paramName += covertFunction(paramInfo.function, device); - if (index != deviceList.length - 1) { - paramName += ','; - } - }); - paramName += '】'; - } else { - paramName += '【' + paramInfo.name + ' '; - paramName += getRouteNameById(operationParamMap[paramInfo.code]) + '】'; - } - } else { - if (paramInfo.isList) { - // debugger; - const params = paramInfo.params; - if (params && params.length > 0) { - paramName += '【'; - params.forEach((param, index)=>{ - paramName += ' ' + param.name; - let opMap = operationParamMap; - if (paramInfo.code) { - opMap = operationParamMap[paramInfo.code]; - } - const data = opMap[param.code]; - if (param.result) { - param.result.forEach(result=>{ - switch (result.judge) { - case '=': { - if (data == result.data) { - paramName += '为' + result.name; - if (result.showUnit) { - paramName += ',值为' + data + result.showUnit; - } - } - break; - } case '>': { - if (data > result.data) { - paramName += '为' + result.name; - if (result.showUnit) { - paramName += ',值为' + data + result.showUnit; - } - } - break; - } - } - }); - } else { - if (param.function) { - paramName += covertFunction(param.function, data); - } else { - paramName += ',值为' + data; - } - } - - if (index != params.length - 1) { - paramName += ','; - } - }); - paramName += '】'; - } - } else { - paramName += '【' + paramInfo.name + operationParamMap[paramInfo.code] + '】'; - } - } - } - return {deviceName:deviceName, paramName:paramName}; -} - -function covertFunction(func, device) { - return func(device); -} - -function getUserNameById(id) { - let name = ''; - const userList = store.state.training.simulationUserList; - const user = userList.find(item=>{ - return item.memberId == id; - }); - if (user) { - name = user.nickName; - } - return name; -} - -function getRouteNameById(routeId) { - const routeList = store.state.map.routeList; - const route = routeList.find(route=>{ - return route.code == routeId; - }); - if (route) { return route.turnBack ? route.name + '(Z)' : route.name; } else { return ''; } -} - -function getStationNameById(stationId) { - const station = store.getters['map/getDeviceByCode'](stationId) || {}; - return station.name; -} -function getDeviceNameById(deviceCode) { - const device = store.getters['map/getDeviceByCode'](deviceCode) || {}; - return device.name; -} - -function getTicketInfoById(ticket) { - const ticketTypeMap = {'RAIL_TICKET':'路票', 'GREEN_LICENCE':'绿色许可证', 'RED_LICENCE':'红色许可证'}; - let info = ''; - if (ticket.type == 'GREEN_LICENCE') { - info = ',编号为' + ticket.number + - '在' + ticket.reason + '的情况下,准许第' + ticket.tripNumber + '次列车由' + ticket.line + '线上发车。' + - ',站名印为' + ticket.stationSeal + ',签名为' + ticket.signature + - ',日期为' + ticket.year + '年' + ticket.moon + '月' + ticket.day + '日'; - } else if (ticket.type == 'RED_LICENCE') { - info = ',编号为' + ticket.number + - ',现在一切电话中断,准许第' + ticket.licenseTripNumber + '次列车自' + ticket.licenseStation + - '站至' + ticket.licenseNextStation + '站,本列车前于' + ticket.licenseHour + '时' + ticket.licenseMinute + - '分发出的第' + ticket.licenseTripNumber2 + '次列车,邻站到达通知' + ticket.licenseReceived ? '已' : '未' + '收到' + - '。 通知书:1.' + '第' + ticket.noticeTripNumber + '次列车到达你站后,准接你站发出的列车。' + - '2.于' + ticket.noticeHour1 + '时' + ticket.noticeMinute1 + '分发出第' + ticket.noticeTripNumber1 + '次列车,并于' + ticket.noticeHour2 + - '时' + ticket.noticeMinute2 + '分再发出第' + ticket.noticeTripNumber2 + '次列车。' + - ',站名印为' + ticket.stationSeal + ',签名为' + ticket.signature + - ',日期为' + ticket.year + '年' + ticket.moon + '月' + ticket.day + '日'; - } else if (ticket.type == 'RAIL_TICKET') { - info = ',编号为' + ticket.number + ',车次为' + ticket.tripNumber + ',' + ticket.station + '到' + ticket.nextStation + - ',站名印为' + ticket.stationSeal + ',编号为' + ticket.no; - // deputy: false - } - return '类型为' + ticketTypeMap[ticket.type] + info; -} - -function getRecordByLine(line) { - // '{"stationCode":"Station58852","line":{"moonDay":"","hourMinute":"","result":"","noticeTime":{"moonDay":"","hourMinute":"","info":""},"arriveTime":{"moonDay":"","hourMinute":"","info":""},"endTime":{"moonDay":"","hourMinute":"","info":""}}}' - return ',结果为' + line.result; - // JSON.stringify(line); -} - -function getTripNumberByCode(code) { - return code.slice(3, code.length || 0); -} - -function getStationNamList(list) { - const nameList = []; - list.sort().forEach(stationId => { - const station = store.getters['map/getDeviceByCode'](stationId) || {}; - if (station.name) { - nameList.push(station.name); - } - }); - return nameList.join(','); -} -function getStationResultById(stationResult) { - const station = store.getters['map/getDeviceByCode'](stationResult.stationCode) || {}; - let param = '不同意'; - if (stationResult.agree) { param = '同意'; } - return station.name + ' ' + param; -} - -function judgeUpDown(right) { - if (store.state.map.mapConfig.upRight) { - return right ? '上行' : '下行'; - } else { - return right ? '下行' : '上行'; - } -} - diff --git a/src/views/newMap/displayNew/scriptDisplay/component/scriptTip.vue b/src/views/newMap/displayNew/scriptDisplay/component/scriptTip.vue deleted file mode 100644 index 2f05481a3..000000000 --- a/src/views/newMap/displayNew/scriptDisplay/component/scriptTip.vue +++ /dev/null @@ -1,132 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/scriptDisplay/component/selectRole.vue b/src/views/newMap/displayNew/scriptDisplay/component/selectRole.vue deleted file mode 100644 index faedc8a31..000000000 --- a/src/views/newMap/displayNew/scriptDisplay/component/selectRole.vue +++ /dev/null @@ -1,68 +0,0 @@ - - diff --git a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/index.vue b/src/views/newMap/displayNew/scriptDisplay/scriptPreview/index.vue deleted file mode 100644 index 51b654514..000000000 --- a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/index.vue +++ /dev/null @@ -1,413 +0,0 @@ - - - - diff --git a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue b/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue deleted file mode 100644 index d10f1d3da..000000000 --- a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue +++ /dev/null @@ -1,582 +0,0 @@ - - - diff --git a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptPreviewChat.vue b/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptPreviewChat.vue deleted file mode 100644 index 74b37f575..000000000 --- a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptPreviewChat.vue +++ /dev/null @@ -1,68 +0,0 @@ - - diff --git a/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue b/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue deleted file mode 100644 index 4a51cde37..000000000 --- a/src/views/newMap/displayNew/scriptDisplay/scriptRecord/index.vue +++ /dev/null @@ -1,338 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayNew/selectStation.vue b/src/views/newMap/displayNew/selectStation.vue deleted file mode 100644 index c3012832c..000000000 --- a/src/views/newMap/displayNew/selectStation.vue +++ /dev/null @@ -1,183 +0,0 @@ - - diff --git a/src/views/newMap/jointTrainingNew/dispatcherStation.vue b/src/views/newMap/jointTrainingNew/dispatcherStation.vue deleted file mode 100644 index afbe129e7..000000000 --- a/src/views/newMap/jointTrainingNew/dispatcherStation.vue +++ /dev/null @@ -1,446 +0,0 @@ - - - - - diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue deleted file mode 100644 index 616882328..000000000 --- a/src/views/newMap/jointTrainingNew/index.vue +++ /dev/null @@ -1,806 +0,0 @@ - - - - diff --git a/src/views/newMap/jointTrainingNew/memberManage/addMember.vue b/src/views/newMap/jointTrainingNew/memberManage/addMember.vue deleted file mode 100644 index a722af4ff..000000000 --- a/src/views/newMap/jointTrainingNew/memberManage/addMember.vue +++ /dev/null @@ -1,138 +0,0 @@ - - - diff --git a/src/views/newMap/jointTrainingNew/memberManage/content-menu.vue b/src/views/newMap/jointTrainingNew/memberManage/content-menu.vue deleted file mode 100644 index 0d53204c5..000000000 --- a/src/views/newMap/jointTrainingNew/memberManage/content-menu.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - diff --git a/src/views/newMap/jointTrainingNew/memberManage/e-members.vue b/src/views/newMap/jointTrainingNew/memberManage/e-members.vue deleted file mode 100644 index 989e199b0..000000000 --- a/src/views/newMap/jointTrainingNew/memberManage/e-members.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - diff --git a/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue b/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue deleted file mode 100644 index 3cebea056..000000000 --- a/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue +++ /dev/null @@ -1,484 +0,0 @@ - - - - - diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue deleted file mode 100644 index 84f919452..000000000 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ /dev/null @@ -1,566 +0,0 @@ - - - - diff --git a/src/views/newMap/jointTrainingNew/menuDraft/chooseRole.vue b/src/views/newMap/jointTrainingNew/menuDraft/chooseRole.vue deleted file mode 100644 index 0f09f111d..000000000 --- a/src/views/newMap/jointTrainingNew/menuDraft/chooseRole.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - - - diff --git a/src/views/newMap/jointTrainingNew/menuDraft/operateMenu.vue b/src/views/newMap/jointTrainingNew/menuDraft/operateMenu.vue deleted file mode 100644 index 61a3386f1..000000000 --- a/src/views/newMap/jointTrainingNew/menuDraft/operateMenu.vue +++ /dev/null @@ -1,145 +0,0 @@ - - - - diff --git a/src/views/newMap/jointTrainingNew/menuSchema.vue b/src/views/newMap/jointTrainingNew/menuSchema.vue deleted file mode 100644 index 0ca20dd6a..000000000 --- a/src/views/newMap/jointTrainingNew/menuSchema.vue +++ /dev/null @@ -1,426 +0,0 @@ - - - diff --git a/src/views/newMap/jointTrainingNew/menuTrainList.vue b/src/views/newMap/jointTrainingNew/menuTrainList.vue deleted file mode 100644 index c2ec272b6..000000000 --- a/src/views/newMap/jointTrainingNew/menuTrainList.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - diff --git a/src/views/newMap/jointTrainingNew/realCCTV.vue b/src/views/newMap/jointTrainingNew/realCCTV.vue deleted file mode 100644 index 5de8da288..000000000 --- a/src/views/newMap/jointTrainingNew/realCCTV.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - diff --git a/src/views/scriptManage/tipScriptRecord.vue b/src/views/scriptManage/tipScriptRecord.vue index 46b0ed3c3..1071eecba 100644 --- a/src/views/scriptManage/tipScriptRecord.vue +++ b/src/views/scriptManage/tipScriptRecord.vue @@ -88,7 +88,7 @@ import Cookies from 'js-cookie'; import {getDraftScriptByGroupNew, getAllSelectedScriptRole } from '@/api/script'; import ConstConfig from '@/scripts/ConstConfig'; import AddScriptMember from './addScriptMember'; -import {covertMemberData} from '@/views/newMap/displayNew/utils'; +import {covertMemberData} from '@/utils/simulation'; import GetActionNew from './getAction'; import AllScriptRole from './allScriptRole'; import { getToken } from '@/utils/auth';