diff --git a/src/router/index.js b/src/router/index.js index 7516cb0f0..1a02870a2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -39,9 +39,7 @@ const Jl3dTrainRescueVr = () => import('@/views/jlmap3d/maintainer/jl3dTrainResc const Jlmap3dOtherVR = () => import('@/views/jlmap3d/maintainer/jl3dothervr'); // const Jl3dMaintainer = () => import('@/views/jlmap3d/maintainer/jl3dmaintainer'); -const DisplayBaSiDi = () => import('@/views/newMap/displayBaSiDi/index'); -// const DisplayCity = () => import('@/views/newMap/displayCity/index'); // const DesignDisplayNew = () => import('@/views/newMap/displayNew/scriptDisplay/scriptPreview/index'); // const DisplayNew = () => import('@/views/newMap/displayNew/index'); @@ -56,7 +54,6 @@ const TestRunplan = () => import('@/views/designPlatform/testRunplan'); const PracticeDisplay = () => import('@/views/newMap/displayNew/practiceDisplay'); const BigLPFStrategy = () => import('@/views/newMap/displayNew/bigLPFStrategy'); -// const JointTrainingNew = () => import('@/views/newMap/jointTrainingNew/index'); const RunPlanViewWindow = () => import('@/views/newMap/displayNew/demon/runPlanViewWindow'); const PlanScheduleWicket = () => import('@/views/newMap/displayNew/demon/planSchedule'); // const DemoTraining = () => import('@/views/newMap/displayNew/demoTraining'); @@ -488,16 +485,6 @@ export const publicAsyncRoute = [ // hidden: true // }, // { - // path: '/displayCity/:mode', - // component: DisplayCity, - // hidden: true - // }, - { - path: '/displayBaSiDi/:mode', - component: DisplayBaSiDi, - hidden: true - }, - // { // path: '/design/displayNew/:mode', // component: DesignDisplayNew, // hidden: true @@ -517,11 +504,6 @@ export const publicAsyncRoute = [ component: BigSplitScreen, hidden: true }, - // { - // path: '/jointTrainingNew', - // component: JointTrainingNew, - // hidden: true - // }, { path: '/jointTrainingNewCCTV', component: jointTrainingNewCCTV, diff --git a/src/views/login_new/index.vue b/src/views/login_new/index.vue deleted file mode 100644 index b04628090..000000000 --- a/src/views/login_new/index.vue +++ /dev/null @@ -1,1057 +0,0 @@ - - - - - - - diff --git a/src/views/newMap/display/exam/selectExam.vue b/src/views/newMap/display/exam/selectExam.vue index 51039c604..cd39b7a07 100644 --- a/src/views/newMap/display/exam/selectExam.vue +++ b/src/views/newMap/display/exam/selectExam.vue @@ -1,108 +1,105 @@ diff --git a/src/views/newMap/displayBaSiDi/atr.vue b/src/views/newMap/displayBaSiDi/atr.vue deleted file mode 100644 index 090d439a3..000000000 --- a/src/views/newMap/displayBaSiDi/atr.vue +++ /dev/null @@ -1,538 +0,0 @@ - - - - diff --git a/src/views/newMap/displayBaSiDi/baSiDi.vue b/src/views/newMap/displayBaSiDi/baSiDi.vue deleted file mode 100644 index be5ff9da0..000000000 --- a/src/views/newMap/displayBaSiDi/baSiDi.vue +++ /dev/null @@ -1,353 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayBaSiDi/carPack.vue b/src/views/newMap/displayBaSiDi/carPack.vue deleted file mode 100644 index a4f10eb01..000000000 --- a/src/views/newMap/displayBaSiDi/carPack.vue +++ /dev/null @@ -1,261 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayBaSiDi/index.vue b/src/views/newMap/displayBaSiDi/index.vue deleted file mode 100644 index 22087387f..000000000 --- a/src/views/newMap/displayBaSiDi/index.vue +++ /dev/null @@ -1,483 +0,0 @@ - - - - diff --git a/src/views/newMap/displayBaSiDi/rps.vue b/src/views/newMap/displayBaSiDi/rps.vue deleted file mode 100644 index 4224c1c2e..000000000 --- a/src/views/newMap/displayBaSiDi/rps.vue +++ /dev/null @@ -1,158 +0,0 @@ - - - - diff --git a/src/views/newMap/displayBaSiDi/tmt.vue b/src/views/newMap/displayBaSiDi/tmt.vue deleted file mode 100644 index b353a701e..000000000 --- a/src/views/newMap/displayBaSiDi/tmt.vue +++ /dev/null @@ -1,675 +0,0 @@ - - - - - - diff --git a/src/views/newMap/displayBaSiDi/tra.vue b/src/views/newMap/displayBaSiDi/tra.vue deleted file mode 100644 index 5c7acc516..000000000 --- a/src/views/newMap/displayBaSiDi/tra.vue +++ /dev/null @@ -1,165 +0,0 @@ - - - diff --git a/src/views/newMap/displayBaSiDi/trainTrunkDetail.vue b/src/views/newMap/displayBaSiDi/trainTrunkDetail.vue deleted file mode 100644 index a754b4927..000000000 --- a/src/views/newMap/displayBaSiDi/trainTrunkDetail.vue +++ /dev/null @@ -1,351 +0,0 @@ - - - diff --git a/src/views/newMap/displayBaSiDi/tro.vue b/src/views/newMap/displayBaSiDi/tro.vue deleted file mode 100644 index 07e9f9544..000000000 --- a/src/views/newMap/displayBaSiDi/tro.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/views/newMap/displayBaSiDi/troDetail.vue b/src/views/newMap/displayBaSiDi/troDetail.vue deleted file mode 100644 index 684e79b40..000000000 --- a/src/views/newMap/displayBaSiDi/troDetail.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - diff --git a/src/views/newMap/displayBaSiDi/ttl.vue b/src/views/newMap/displayBaSiDi/ttl.vue deleted file mode 100644 index e70e66f6e..000000000 --- a/src/views/newMap/displayBaSiDi/ttl.vue +++ /dev/null @@ -1,150 +0,0 @@ - - - - diff --git a/src/views/newMap/displayCity/demon/addFault.vue b/src/views/newMap/displayCity/demon/addFault.vue deleted file mode 100644 index 53d807221..000000000 --- a/src/views/newMap/displayCity/demon/addFault.vue +++ /dev/null @@ -1,284 +0,0 @@ - - - diff --git a/src/views/newMap/displayCity/demon/equipment.vue b/src/views/newMap/displayCity/demon/equipment.vue deleted file mode 100644 index 781517835..000000000 --- a/src/views/newMap/displayCity/demon/equipment.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayCity/demon/faultChoose.vue b/src/views/newMap/displayCity/demon/faultChoose.vue deleted file mode 100644 index 23c550f25..000000000 --- a/src/views/newMap/displayCity/demon/faultChoose.vue +++ /dev/null @@ -1,600 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayCity/demon/setTime.vue b/src/views/newMap/displayCity/demon/setTime.vue deleted file mode 100644 index d189fea63..000000000 --- a/src/views/newMap/displayCity/demon/setTime.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - diff --git a/src/views/newMap/displayCity/demonMenu.vue b/src/views/newMap/displayCity/demonMenu.vue deleted file mode 100644 index 0d6bf1d7b..000000000 --- a/src/views/newMap/displayCity/demonMenu.vue +++ /dev/null @@ -1,224 +0,0 @@ - - - diff --git a/src/views/newMap/displayCity/index.vue b/src/views/newMap/displayCity/index.vue deleted file mode 100644 index 3bf24d5e3..000000000 --- a/src/views/newMap/displayCity/index.vue +++ /dev/null @@ -1,311 +0,0 @@ - - diff --git a/src/views/newMap/displayCity/lineBoard.vue b/src/views/newMap/displayCity/lineBoard.vue deleted file mode 100644 index 4c0156915..000000000 --- a/src/views/newMap/displayCity/lineBoard.vue +++ /dev/null @@ -1,663 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayCity/menuDemon.vue b/src/views/newMap/displayCity/menuDemon.vue deleted file mode 100644 index 9f76d40c8..000000000 --- a/src/views/newMap/displayCity/menuDemon.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - - - diff --git a/src/views/newMap/displayCity/menuSchema.vue b/src/views/newMap/displayCity/menuSchema.vue deleted file mode 100644 index 11d55d953..000000000 --- a/src/views/newMap/displayCity/menuSchema.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - diff --git a/src/views/newMap/displayCity/menuSystemTime.vue b/src/views/newMap/displayCity/menuSystemTime.vue deleted file mode 100644 index ef4be0e88..000000000 --- a/src/views/newMap/displayCity/menuSystemTime.vue +++ /dev/null @@ -1,123 +0,0 @@ - - - diff --git a/src/views/newMap/displayCity/utils.js b/src/views/newMap/displayCity/utils.js deleted file mode 100644 index 053298efb..000000000 --- a/src/views/newMap/displayCity/utils.js +++ /dev/null @@ -1,58 +0,0 @@ -import ConstConfig from '@/scripts/ConstConfig'; -import Cookies from 'js-cookie'; -import store from '@/store/index'; -export function covertMemberData (activeTrainList, resp) { - let lastData = JSON.stringify(resp); - const roleTypeList = ConstConfig.ConstSelect.roleTypeNew; - roleTypeList.forEach(function(element) { - const rolename = element.value; - if (Cookies.get('user_lang') == 'en') { - lastData = lastData.replace(new RegExp(rolename, 'g'), element.enLabel); - } else { - lastData = lastData.replace(new RegExp(rolename, 'g'), element.label); - } - }); - lastData = JSON.parse(lastData); - const lastMemberList = []; - // const electricDispatcherList = []; - const deviceListData = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; - const driverList = []; - lastData.forEach((member, index)=>{ - if (member.userId && member.userId == store.state.user.id) { - member.disabled = true; - member.userName = store.state.user.nickname; - store.dispatch('training/setOrignalUserRoleId', member.id); - } else { - member.disabled = false; - } - const userName = member.userName ? '-' + member.userName : ''; - const name = member.name ? '-' + member.name : ''; - if (member.deviceCode) { - const device = store.getters['map/getDeviceByCode'](member.deviceCode); - member.deviceName = device.name || device.groupNumber; - member.label = member.type + member.deviceName + name + userName; - member.normalName = member.type + member.deviceName + name; - } else { - member.deviceName = ''; - member.label = member.type + name + userName; - member.normalName = member.type + name; - } - const deviceType = ['行调', '通号', '行值', '司机', '车辆段/停车场调度', '上级部门', '电力调度', '车辆段/停车场信号楼', '车站助理', '车站站长', '车站信号员', '车站客运员', '车站扳道员', '车站引导员', '车站工务工', '设备管理员', '车务段段长 ']; - const deviceTypeIndex = deviceType.indexOf(member.type); - if (deviceTypeIndex >= 0) { - if (deviceTypeIndex == 3) { - if (activeTrainList.length > 0) { - if (activeTrainList.includes(member.deviceCode)) { - deviceListData[deviceTypeIndex].push(member); - } - } - lastMemberList.push(member); - driverList.push(member); - } else { - deviceListData[deviceTypeIndex].push(member); - lastMemberList.push(member); - } - } - }); - return {lastMemberList:lastMemberList, deviceListData:deviceListData, driverList:driverList}; -} diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue index 2faf69d0b..68ea0afcb 100644 --- a/src/views/newMap/displayNew/index.vue +++ b/src/views/newMap/displayNew/index.vue @@ -32,7 +32,7 @@ import MenuTrainList from '@/views/newMap/displayNew/menuTrainList'; import MenuSystemTime from '@/views/newMap/displayNew/menuSystemTime'; import { clearSimulation, getSimulationInfoNew, ranAsPlan, exitRunPlan } from '@/api/simulation'; import { loadMapDataById } from '@/utils/loaddata'; -import DispatcherStation from '../jointTrainingNew/dispatcherStation'; +// import DispatcherStation from '../jointTrainingNew/dispatcherStation'; import { EventBus } from '@/scripts/event-bus'; export default { diff --git a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/index.vue b/src/views/newMap/displayNew/scriptDisplay/scriptPreview/index.vue index 8e677b9fb..51b654514 100644 --- a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/index.vue +++ b/src/views/newMap/displayNew/scriptDisplay/scriptPreview/index.vue @@ -55,7 +55,7 @@ import { loadDraftScriptNew } from '@/api/designPlatform'; import Vue from 'vue'; import { ScriptMode } from '@/scripts/ConstDic'; import ConstConfig from '@/scripts/ConstConfig'; -import DispatcherStation from '@/views/newMap/jointTrainingNew/dispatcherStation.vue'; +// import DispatcherStation from '@/views/newMap/jointTrainingNew/dispatcherStation.vue'; export default { name: 'DisplayDraft', diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue index 028c94428..ac06b3255 100644 --- a/src/views/newMap/jointTrainingNew/index.vue +++ b/src/views/newMap/jointTrainingNew/index.vue @@ -99,16 +99,16 @@ import { Message } from 'element-ui'; import { getToken } from '@/utils/auth'; import MembersManage from './memberManage/membersManage'; import AddMember from './memberManage/addMember'; -import BaSiDi from '@/views/newMap/displayBaSiDi/baSiDiNew'; -import RpsDialog from '@/views/newMap/displayBaSiDi/rps'; -import TroDialog from '@/views/newMap/displayBaSiDi/tro'; -import CarPack from '@/views/newMap/displayBaSiDi/carPack'; -import TroDetail from '@/views/newMap/displayBaSiDi/troDetail'; -import TraDialog from '@/views/newMap/displayBaSiDi/tra'; -import TtlDialog from '@/views/newMap/displayBaSiDi/ttl'; -import TmtDialog from '@/views/newMap/displayBaSiDi/tmt'; -import AtrDialog from '@/views/newMap/displayBaSiDi/atr'; -import TrainTrunkDetail from '@/views/newMap/displayBaSiDi/trainTrunkDetail'; +// import BaSiDi from '@/views/newMap/displayBaSiDi/baSiDiNew'; +// import RpsDialog from '@/views/newMap/displayBaSiDi/rps'; +// import TroDialog from '@/views/newMap/displayBaSiDi/tro'; +// import CarPack from '@/views/newMap/displayBaSiDi/carPack'; +// import TroDetail from '@/views/newMap/displayBaSiDi/troDetail'; +// import TraDialog from '@/views/newMap/displayBaSiDi/tra'; +// import TtlDialog from '@/views/newMap/displayBaSiDi/ttl'; +// import TmtDialog from '@/views/newMap/displayBaSiDi/tmt'; +// import AtrDialog from '@/views/newMap/displayBaSiDi/atr'; +// import TrainTrunkDetail from '@/views/newMap/displayBaSiDi/trainTrunkDetail'; import DispatcherStation from './dispatcherStation'; import TicketInfo from '../trainTicket/ticketInfo'; import Vue from 'vue'; diff --git a/src/views/publish/examRule/draft/editRule.vue b/src/views/publish/examRule/draft/editRule.vue index b6f95b1b2..eb5d7a278 100644 --- a/src/views/publish/examRule/draft/editRule.vue +++ b/src/views/publish/examRule/draft/editRule.vue @@ -82,7 +82,7 @@ export default { message(new Error(this.$t('publish.inputQuestionNumberError'))); } else if (!Number(value)) { message(new Error(this.$t('publish.inputValidNumber'))); - } else if (Number(value) > this.topicNum && this.form.type === 1) { + } else if (Number(value) > this.topicNum) { message(new Error(this.$t('publish.inputNumberError'))); } else { message();