diff --git a/src/i18n/langs/en/demonstration.js b/src/i18n/langs/en/demonstration.js new file mode 100644 index 000000000..fb0ed6166 --- /dev/null +++ b/src/i18n/langs/en/demonstration.js @@ -0,0 +1,10 @@ +export default { + simulationSystem: 'Urban rail transit simulation system', + simulationSystemDescription: 'Based on the subway signal system, the urban rail transit simulation system is reformed for the training part, aiming to build a set of professional simulation system for driving demonstration. The system has high flexibility for future expansion and upgrading. Meanwhile, the simulation system has two modes of normal operation and fault operation. Besides normal functional operation, it can also conduct fault simulation of equipment.', + simulationName: 'Simulation name:', + noSimulationProducts: 'No simulation products', + productDescription: 'Product description:', + startSimulation: 'Start the simulation', + createRoom: 'Create a room', + enterRoom: 'Enter the room' +}; diff --git a/src/i18n/langs/en/error.js b/src/i18n/langs/en/error.js index ccf3eba0d..bd0b865b3 100644 --- a/src/i18n/langs/en/error.js +++ b/src/i18n/langs/en/error.js @@ -56,6 +56,7 @@ export default { createOperateRuleFailed: 'Failed to create operation definition', createOperateStepFailed: 'The create action step failed', updateOperateStepFailed: 'The update action step failed', - packagePermissionFailed: 'Packaging authority failed' - + packagePermissionFailed: 'Packaging authority failed', + acquisitionTimeFailed: 'Acquisition Time Failed', + getProductListFailed: 'Failed to get product list' }; diff --git a/src/i18n/langs/en/global.js b/src/i18n/langs/en/global.js index aa803d972..1af1e371c 100644 --- a/src/i18n/langs/en/global.js +++ b/src/i18n/langs/en/global.js @@ -99,5 +99,9 @@ export default { minute: 'minute', totoal: 'Totoal', publishPermission: 'The public authority', - specialPermission: 'Special permission' + specialPermission: 'Special permission', + mapList: 'Map list', + updateTime: 'Update time:', + line: 'Line:', + permissionList: 'Permissions list:' }; diff --git a/src/i18n/langs/en/index.js b/src/i18n/langs/en/index.js index 5c2a70ad4..120d39a04 100644 --- a/src/i18n/langs/en/index.js +++ b/src/i18n/langs/en/index.js @@ -14,6 +14,8 @@ import publish from './publish'; import permission from './permission'; import replay from './replay'; import planMonitor from './planMonitor'; +import screenMonitor from './screenMonitor'; +import demonstration from './demonstration'; export default { ...enLocale, @@ -31,5 +33,7 @@ export default { publish, permission, replay, - planMonitor + planMonitor, + screenMonitor, + demonstration }; diff --git a/src/i18n/langs/en/planMonitor.js b/src/i18n/langs/en/planMonitor.js index c06a31fc2..676b26c84 100644 --- a/src/i18n/langs/en/planMonitor.js +++ b/src/i18n/langs/en/planMonitor.js @@ -1,10 +1,6 @@ export default { - line: 'Line:', - turnoverTime: 'Update time:', - permissionList: 'Permissions list:', buy: 'Buy', offlineMappingSoftware: 'Offline mapping software', lianPlanSystem: 'Urban rail transit lian planning system', lianPlanDescription: 'Lian plan is a map compiling test system, can be real simulation to achieve the simulation of running test of new operation diagram, the system can realize editing operation diagram, import operation diagram and according to the standard of operation diagram simulation real driving environment, solve the problem that can not be updated for operation diagram test. It can find out the unreasonable places in the new diagram in time and make real-time adjustment on the diagram, so as to avoid the problem of finding problems in the operation of the new diagram and requiring manual intervention of dispatchers, and minimize the impact of the fault on the normal operation of subway.', - mapList: 'Map list' }; diff --git a/src/i18n/langs/en/screenMonitor.js b/src/i18n/langs/en/screenMonitor.js new file mode 100644 index 000000000..dead0d949 --- /dev/null +++ b/src/i18n/langs/en/screenMonitor.js @@ -0,0 +1,6 @@ +export default { + screenSystem: 'Large screen system of urban rail transit', + screenSystemDescription: 'Based on the subway signal system and real subway line data, the big screen system of urban rail transit aims to build a professional simulation system of driving demonstration. The system has high flexibility to switch line data freely.', + productTrialDuration: 'product Trial Duration:', + aTSScreenSimulation: 'ATS line tuning center screen simulation' +}; diff --git a/src/i18n/langs/en/tip.js b/src/i18n/langs/en/tip.js index 258933769..1606ef5d2 100644 --- a/src/i18n/langs/en/tip.js +++ b/src/i18n/langs/en/tip.js @@ -9,6 +9,7 @@ export default { hint: 'Tips', cancelledDelete: 'Cancelled delete', cancelGeneration: 'Batch generation has been cancelled', + refreshFailure: 'Refresh failure', updateSuccessfully: 'The update is successful', saveSuccessfully: 'Save success', @@ -62,12 +63,13 @@ export default { deleteProductSuccessfully: 'Product deleted successfully', deleteProductFailed: 'Product deletion failed', cannotDeleteProduct: 'The product has been used and cannot be deleted', + productCodeExists: 'The product Code already exists', + narrowScope: 'You cannot narrow down the training list you created last time', + pathCreationSuccessful: 'Create road successfully!', createRoutingFailed: 'Failed to create junction', pathUpdataSuccessful: 'Road update successful!', pathUpdataFailed: 'Update traffic failed', - productCodeExists: 'The product Code already exists', - narrowScope: 'You cannot narrow down the training list you created last time', failedLoadMap: 'Failed to load map data', sectionPointsDeficiency: 'Segment coordinates missing', @@ -99,6 +101,11 @@ export default { failedCourse: 'Failed to obtain course information', createSimulationFaild: 'Failed to create simulation', - accessCourseNo: 'No access to this course, please go and buy it!' + accessCourseNo: 'No access to this course, please go and buy it!', + failedSubmitOrder: 'Failed to submit order', + permissionsNumber: 'Please enter the number of valid permissions', + purchaseMonth: 'Please enter a valid purchase month', + createRoomFailedHint: 'Each user can only create one comprehensive drill room. Do you want to enter the room?', + noPermissionHint: 'You do not have permission, please go to purchase products' }; diff --git a/src/i18n/langs/zh/demonstration.js b/src/i18n/langs/zh/demonstration.js new file mode 100644 index 000000000..ee9068f8b --- /dev/null +++ b/src/i18n/langs/zh/demonstration.js @@ -0,0 +1,10 @@ +export default { + simulationSystem: '城市轨道交通仿真系统', + simulationSystemDescription: '城市轨道交通仿真系统以各地铁信号系统为基础,针对培训部分进行改造,旨在构建一套用于行车演示的专业仿真模拟系统。该系统具有高灵活性以便于将来的扩展升级,同时,仿真系统具备正常操作及故障操作两种模式,除了正常的功能操作以外还可以进行设备的故障模拟。', + simulationName: '仿真名称:', + noSimulationProducts: '无仿真产品', + productDescription: '产品说明:', + startSimulation: '开始仿真', + createRoom: '创建房间', + enterRoom: '进入房间' +}; diff --git a/src/i18n/langs/zh/error.js b/src/i18n/langs/zh/error.js index af63b7142..7d017d284 100644 --- a/src/i18n/langs/zh/error.js +++ b/src/i18n/langs/zh/error.js @@ -56,6 +56,8 @@ export default { createOperateRuleFailed: '创建操作定义失败', createOperateStepFailed: '创建操作步骤失败', updateOperateStepFailed: '更新操作步骤失败', - packagePermissionFailed: '打包权限失败' -}; + packagePermissionFailed: '打包权限失败', + acquisitionTimeFailed: '获取时间失败', + getProductListFailed: '获取产品列表失败' +}; diff --git a/src/i18n/langs/zh/global.js b/src/i18n/langs/zh/global.js index 7504b6566..482b80466 100644 --- a/src/i18n/langs/zh/global.js +++ b/src/i18n/langs/zh/global.js @@ -124,5 +124,9 @@ export default { minute: '分钟', totoal: '总数', publishPermission: '公用权限', - specialPermission: '专用权限' + specialPermission: '专用权限', + mapList: '地图列表', + updateTime: '更新时间:', + line: '线路:', + permissionList: '权限列表:' }; diff --git a/src/i18n/langs/zh/index.js b/src/i18n/langs/zh/index.js index d9b3304bb..0927678a8 100644 --- a/src/i18n/langs/zh/index.js +++ b/src/i18n/langs/zh/index.js @@ -14,6 +14,8 @@ import publish from './publish'; import permission from './permission'; import replay from './replay'; import planMonitor from './planMonitor'; +import screenMonitor from './screenMonitor'; +import demonstration from './demonstration'; export default { ...cnLocale, @@ -31,5 +33,7 @@ export default { publish, permission, replay, - planMonitor + planMonitor, + screenMonitor, + demonstration }; diff --git a/src/i18n/langs/zh/planMonitor.js b/src/i18n/langs/zh/planMonitor.js index ae168d691..fe4384858 100644 --- a/src/i18n/langs/zh/planMonitor.js +++ b/src/i18n/langs/zh/planMonitor.js @@ -1,10 +1,6 @@ export default { - line: '线路:', - turnoverTime: '更新时间:', - permissionList: '权限列表:', buy: '购买', offlineMappingSoftware: '离线编图软件', lianPlanSystem: '城市轨道交通琏计划系统', - lianPlanDescription: '琏计划是一款编图测试系统,能够真实模拟实现对新运行图的仿真运行测试,该系统能够实现编辑运行图、导入运行图并按照运行图标准模拟真实行车环境,解决了无法针对运行图更新进行测试的问题。能够及时找出新图中不合理的地方并且在图上实时作出调整,避免了新运行图在运营过程中发现问题需要调度员人工进行干预的情况,最大程度降低故障对地铁正常运营的影响。', - mapList: '地图列表' + lianPlanDescription: '琏计划是一款编图测试系统,能够真实模拟实现对新运行图的仿真运行测试,该系统能够实现编辑运行图、导入运行图并按照运行图标准模拟真实行车环境,解决了无法针对运行图更新进行测试的问题。能够及时找出新图中不合理的地方并且在图上实时作出调整,避免了新运行图在运营过程中发现问题需要调度员人工进行干预的情况,最大程度降低故障对地铁正常运营的影响。' }; diff --git a/src/i18n/langs/zh/screenMonitor.js b/src/i18n/langs/zh/screenMonitor.js new file mode 100644 index 000000000..282d078ac --- /dev/null +++ b/src/i18n/langs/zh/screenMonitor.js @@ -0,0 +1,6 @@ +export default { + screenSystem: '城市轨道交通大屏系统', + screenSystemDescription: '城市轨道交通大屏系统以各地铁信号系统及真实地铁线路数据为基础,旨在构建一套行车演示的专业模拟系统。 该系统具有高灵活性可自由切换线路数据。', + productTrialDuration: '产品试用时长:', + aTSScreenSimulation: 'ATS行调中心大屏仿真' +}; diff --git a/src/i18n/langs/zh/tip.js b/src/i18n/langs/zh/tip.js index 807a82d2d..815f0ba33 100644 --- a/src/i18n/langs/zh/tip.js +++ b/src/i18n/langs/zh/tip.js @@ -105,6 +105,7 @@ export default { failedSubmitOrder: '提交订单失败', permissionsNumber: '请输入有效的权限个数', - purchaseMonth: '请输入有效的购买月数' - + purchaseMonth: '请输入有效的购买月数', + createRoomFailedHint: '每个用户只能创建一个综合演练房间, 是否进入房间?', + noPermissionHint: '您没有权限,请前往购买产品' }; diff --git a/src/store/modules/scriptRecord.js b/src/store/modules/scriptRecord.js index d3a36b012..8576c1ee9 100644 --- a/src/store/modules/scriptRecord.js +++ b/src/store/modules/scriptRecord.js @@ -6,8 +6,8 @@ const scriptRecord = { state: { mapLocation: {}, // 地图定位, simulationPause: true, - scriptId: '' - + scriptId: '', + bgSet: false }, getters: { mapLocation: (state)=>{ @@ -18,6 +18,9 @@ const scriptRecord = { }, scriptId: (state)=>{ return state.scriptId; + }, + bgSet: (state)=>{ + return state.bgSet; } }, mutations: { @@ -29,6 +32,9 @@ const scriptRecord = { }, setscriptId: (state, scriptId) => { state.scriptId = scriptId; + }, + setBgSet: (state, bgSet) => { + state.bgSet = bgSet; } }, actions: { @@ -43,6 +49,9 @@ const scriptRecord = { }, updateScriptId: ({ commit }, scriptId) => { commit('setscriptId', scriptId); + }, + updateBgSet: ({ commit }, bgSet) => { + commit('setBgSet', bgSet); } } }; diff --git a/src/views/demonstration/detail/index.vue b/src/views/demonstration/detail/index.vue index 485438509..adc95b882 100644 --- a/src/views/demonstration/detail/index.vue +++ b/src/views/demonstration/detail/index.vue @@ -1,8 +1,8 @@