From 6e6a56903faecb2e1fc4ca8146fa7f88a22cd7d7 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 20 Aug 2019 18:31:48 +0800 Subject: [PATCH 01/64] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E7=BC=96=E5=88=B6?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/scriptManage/home.vue | 2 +- .../scriptManage/scriptRecord/addAction.vue | 20 ++++++++-------- .../scriptManage/scriptRecord/getAction.vue | 23 +++++++++++-------- 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/src/views/scriptManage/home.vue b/src/views/scriptManage/home.vue index c8f86e746..9243e7458 100644 --- a/src/views/scriptManage/home.vue +++ b/src/views/scriptManage/home.vue @@ -32,7 +32,7 @@ loading:false, mapList: [], taskStatusList: [], - disabled:null, + disabled:true, formModel: { name: '', mapId: '', diff --git a/src/views/scriptManage/scriptRecord/addAction.vue b/src/views/scriptManage/scriptRecord/addAction.vue index 7600a60a8..c7b0ebd30 100644 --- a/src/views/scriptManage/scriptRecord/addAction.vue +++ b/src/views/scriptManage/scriptRecord/addAction.vue @@ -50,7 +50,7 @@ - 添加动作 + 添加指令 @@ -217,12 +217,12 @@ this.adding=true; addScriptAction(group,data).then(response=>{ this.adding=false; - this.$message.success('添加动作成功'); - this.$emit('create'); + this.$message.success('添加指令成功'); + this.$emit('create',true); this.initCommandActionData(); }).catch(error => { this.adding=false; - this.$messageBox(`添加动作失败: ${error.message}`); + this.$messageBox(`添加指令失败: ${error.message}`); }); } else { @@ -243,12 +243,12 @@ { addScriptAction(group,data).then(response=>{ this.modifying=false; - this.$message.success('添加动作成功'); - this.$emit('create'); + this.$message.success('添加对话成功'); + this.$emit('create',true); this.initActionData(); }).catch(error => { this.modifying=false; - this.$messageBox(`添加动作失败: ${error.message}`); + this.$messageBox(`添加对话失败: ${error.message}`); }); } else @@ -259,12 +259,12 @@ this.isNotModify=true; this.$parent.$parent.$parent.setDisabled(this.isNotModify); this.$emit('modifyButtonName'); - this.$message.success('修改动作成功'); - this.$emit('create'); + this.$message.success('修改对话成功'); + this.$emit('create',false); this.initActionData(); }).catch(error => { this.modifying=false; - this.$messageBox(`修改动作失败: ${error.message}`); + this.$messageBox(`修改对话失败: ${error.message}`); }); } } diff --git a/src/views/scriptManage/scriptRecord/getAction.vue b/src/views/scriptManage/scriptRecord/getAction.vue index 2876cf81b..9255680e8 100644 --- a/src/views/scriptManage/scriptRecord/getAction.vue +++ b/src/views/scriptManage/scriptRecord/getAction.vue @@ -1,7 +1,7 @@ - \ No newline at end of file + + \ No newline at end of file diff --git a/src/views/lesson/trainingRule/list.vue b/src/views/lesson/trainingRule/list.vue index 2ee855950..90092c59d 100644 --- a/src/views/lesson/trainingRule/list.vue +++ b/src/views/lesson/trainingRule/list.vue @@ -1,260 +1,258 @@ \ No newline at end of file + reloadTable() { + this.queryList.reload(); + } + } +}; + diff --git a/src/views/lesson/trainingmanage/index.vue b/src/views/lesson/trainingmanage/index.vue index 1a2cbcce8..736022b3d 100644 --- a/src/views/lesson/trainingmanage/index.vue +++ b/src/views/lesson/trainingmanage/index.vue @@ -42,7 +42,7 @@ export default { queryObject: { skinCode: { type: 'select', - label: '皮肤类型', + label: this.$t('lesson.skinType'), change: this.skinCodeChoose, config: { data: [] @@ -58,7 +58,7 @@ export default { }, type: { type: 'select', - label: '实训类型', + label: this.$t('lesson.trainingType'), change: this.typeChoose, config: { data: [] @@ -66,7 +66,7 @@ export default { }, operateType: { type: 'select', - label: '操作类型', + label: this.$t('lesson.operationType'), config: { data: [] } @@ -80,7 +80,7 @@ export default { }, name: { type: 'text', - label: '实训名称' + label: this.$t('lesson.trainingName') } } }, @@ -90,56 +90,56 @@ export default { indexShow: true, columns: [ { - title: '实训名称', + title: this.$t('lesson.trainingName'), prop: 'name' }, { - title: '皮肤类型', + title: this.$t('lesson.skinType'), prop: 'skinCode', type: 'tag', columnValue: (row) => { return this.$convertField(row.skinCode, this.skinCodeList, ['code', 'name']); }, tagType: (row) => { return ''; } }, { - title: '产品', + title: this.$t('lesson.product'), prop: 'prdCode', type: 'tag', columnValue: (row) => { return this.$convertField(row.prdCode, this.prdTypeList, ['code', 'name']); }, tagType: (row) => { return 'success'; } }, { - title: '实训类型', + title: this.$t('lesson.trainingType'), prop: 'type', type: 'tag', columnValue: (row) => { return this.$convertField(row.type, this.trainingTypeList, ['code', 'name']); }, tagType: (row) => { return 'success'; } }, { - title: '操作类型', + title: this.$t('lesson.operationType'), prop: 'operateType', type: 'tag', columnValue: (row) => { return this.$convertField(row.operateType, this.trainingOperateTypeMap[row.type], ['code', 'name']); }, tagType: (row) => { return 'success'; } }, { - title: '最小用时', + title: this.$t('lesson.minDuration'), prop: 'minDuration' }, { - title: '最大用时', + title: this.$t('lesson.maxDuration'), prop: 'maxDuration' }, { - title: '描述', + title: this.$t('lesson.remarks'), prop: 'remarks' }, { type: 'button', - title: '操作', + title: this.$t('global.operate'), width: '250', buttons: [ { - name: '演示', + name: this.$t('lesson.demonstration'), handleClick: this.demoDisplay, type: '' } diff --git a/src/views/publish/examRule/index.vue b/src/views/publish/examRule/index.vue index 215dc4ab3..8b46f4397 100644 --- a/src/views/publish/examRule/index.vue +++ b/src/views/publish/examRule/index.vue @@ -133,7 +133,7 @@ export default { { type: 'button', title: this.$t('global.operate'), - width: '300', + width: '380', buttons: [ { name: this.$t('global.fastCreate'), From 300ed723654b5dc8ad4d1f23d12da1afa3987fe3 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 21 Aug 2019 12:03:01 +0800 Subject: [PATCH 14/64] =?UTF-8?q?=E6=8C=87=E4=BB=A4=E6=96=87=E5=AD=97?= =?UTF-8?q?=E4=B8=BA=E7=BA=A2=E8=89=B2=EF=BC=8C=E9=9A=90=E8=97=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8C=89=E9=92=AE=20=E6=8C=87=E4=BB=A4=E5=92=8C?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=B7=BB=E5=8A=A0=E5=90=8E=E5=8E=9F=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E4=B8=8D=E6=B8=85=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scriptManage/display/tipScriptRecord.vue | 4 --- .../scriptManage/scriptRecord/addAction.vue | 11 +++++-- .../scriptManage/scriptRecord/getAction.vue | 29 +++++++++++++++---- 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/src/views/scriptManage/display/tipScriptRecord.vue b/src/views/scriptManage/display/tipScriptRecord.vue index 68e98ff9f..cd151c8e7 100644 --- a/src/views/scriptManage/display/tipScriptRecord.vue +++ b/src/views/scriptManage/display/tipScriptRecord.vue @@ -162,10 +162,6 @@ import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scr this.initAutoSaveScript(); }) }, - saveMaplocation() - { - - } } } diff --git a/src/views/scriptManage/scriptRecord/addAction.vue b/src/views/scriptManage/scriptRecord/addAction.vue index f89f477ce..b78b1e19a 100644 --- a/src/views/scriptManage/scriptRecord/addAction.vue +++ b/src/views/scriptManage/scriptRecord/addAction.vue @@ -98,6 +98,11 @@ this.$parent.$parent.$parent.setIsParse(this.isPause); this.$refs['modalData'].clearValidate(); this.$refs['commandData'].clearValidate(); + if(!val) + { + this.initActionData(); + this.initCommandActionData(); + } }, }, data() { @@ -219,7 +224,7 @@ this.adding=false; this.$message.success('添加指令成功'); this.$emit('create',true); - this.initCommandActionData(); + // this.initCommandActionData(); }).catch(error => { this.adding=false; this.$messageBox(`添加指令失败: ${error.message}`); @@ -245,7 +250,7 @@ this.modifying=false; this.$message.success('添加对话成功'); this.$emit('create',true); - this.initActionData(); + // this.initActionData(); }).catch(error => { this.modifying=false; this.$messageBox(`添加对话失败: ${error.message}`); @@ -261,7 +266,7 @@ this.$emit('modifyButtonName'); this.$message.success('修改对话成功'); this.$emit('create',false); - this.initActionData(); + // this.initActionData(); }).catch(error => { this.modifying=false; this.$messageBox(`修改对话失败: ${error.message}`); diff --git a/src/views/scriptManage/scriptRecord/getAction.vue b/src/views/scriptManage/scriptRecord/getAction.vue index 6723be95e..f8fab3f14 100644 --- a/src/views/scriptManage/scriptRecord/getAction.vue +++ b/src/views/scriptManage/scriptRecord/getAction.vue @@ -14,12 +14,25 @@
+ - {{actionInfo.otherInfo}} + + + {{actionInfo.memberName}} + + {{actionInfo.targetName}} + : + {{actionInfo.reply}} + + + {{actionInfo.memberName}} + 执行指令: + {{actionInfo.command}} +
- 修改 + 修改
@@ -100,7 +113,7 @@ { let target=memberVOList.find(elem=>{return elem.id==element.targetId}); let targetName=target.name==undefined?"":" - "+target.name; - this.actionInfoList.push({id:element.id,detail:""+member.role+memberName+""+" 对 "+""+target.role+targetName+":",otherInfo:element.reply,row:element,disabled:false}); + this.actionInfoList.push({id:element.id,isCoversition:true,memberName:member.role+memberName,targetName:target.role+targetName,reply:element.reply,row:element,visible:true}); break; } case "Command": @@ -110,12 +123,12 @@ { case 'Train_Manual_Route_Blocking_Drive': { - this.actionInfoList.push({id:element.id,detail:""+member.role+memberName+"执行指令 :",otherInfo:deviceCommand.label,row:element,disabled:true}); + this.actionInfoList.push({id:element.id,isCoversition:false,memberName:member.role+memberName,command:deviceCommand.label,row:element,visible:false}); break; } case 'Train_Manual_Limit_Drive': { - this.actionInfoList.push({id:element.id,detail:""+member.role+memberName+"执行指令 : ",otherInfo:deviceCommand.label,row:element,disabled:true}); + this.actionInfoList.push({id:element.id,isCoversition:false,memberName:member.role+memberName,command:deviceCommand.label,row:element,visible:false}); break; } default: @@ -226,4 +239,10 @@ width: 380px; position: absolute; } + .roleClass{ + color:#409EFF + } + .commandStyle{ + color:#f00; + } From c22d97b94478b9e02c4f1aacbab7212e6ce297e9 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Wed, 21 Aug 2019 13:46:36 +0800 Subject: [PATCH 15/64] =?UTF-8?q?desc:=20=E6=95=99=E5=AD=A6=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/en/index.js | 2 + src/i18n/langs/en/map.js | 7 + src/i18n/langs/en/teach.js | 19 ++ src/i18n/langs/en/tip.js | 12 +- src/i18n/langs/zh/global.js | 26 +- src/i18n/langs/zh/index.js | 2 + src/i18n/langs/zh/map.js | 7 + src/i18n/langs/zh/rules.js | 6 +- src/i18n/langs/zh/teach.js | 19 ++ src/i18n/langs/zh/tip.js | 17 +- src/router/index.js | 4 +- src/utils/baseUrl.js | 4 +- src/views/components/pay/commit.vue | 64 ++-- .../mapedit/mapoperate/train/create.vue | 26 +- .../mapedit/mapoperate/train/index.vue | 18 +- src/views/map/product/draft.vue | 318 ------------------ .../trainingcategory => map/product}/edit.vue | 59 ++-- .../product}/index.vue | 1 - src/views/map/product/list.vue | 154 --------- .../trainingcategory => map/product}/tree.vue | 6 +- src/views/map/runplan/draft/setting.vue | 126 +++---- src/views/map/runplan/index.vue | 98 +++--- src/views/map/runplan/manage/check.vue | 4 +- src/views/map/runplan/manage/create.vue | 12 +- src/views/map/runplan/manage/import.vue | 8 +- src/views/map/runplan/manage/list.vue | 2 +- src/views/map/runplan/manage/publish.vue | 8 +- src/views/map/skinCode/draft.vue | 10 +- src/views/map/skinStyle/draft.vue | 8 +- src/views/map/skinStyle/index.vue | 4 +- src/views/teach/category/tree.vue | 13 +- src/views/teach/detail/index.vue | 18 +- src/views/teach/home.vue | 4 +- src/views/teach/practical/index.vue | 14 +- 34 files changed, 372 insertions(+), 728 deletions(-) create mode 100644 src/i18n/langs/en/teach.js create mode 100644 src/i18n/langs/zh/teach.js delete mode 100644 src/views/map/product/draft.vue rename src/views/{lesson/trainingcategory => map/product}/edit.vue (79%) rename src/views/{lesson/trainingcategory => map/product}/index.vue (91%) delete mode 100644 src/views/map/product/list.vue rename src/views/{lesson/trainingcategory => map/product}/tree.vue (93%) diff --git a/src/i18n/langs/en/index.js b/src/i18n/langs/en/index.js index 604621405..bd7583158 100644 --- a/src/i18n/langs/en/index.js +++ b/src/i18n/langs/en/index.js @@ -9,6 +9,7 @@ import scriptRecord from './scriptRecord'; import tip from './tip'; import system from './system'; import orderAuthor from './orderAuthor'; +import teach from './teach'; export default { ...enLocale, @@ -16,6 +17,7 @@ export default { global, router, lesson, + teach, error, rules, scriptRecord, diff --git a/src/i18n/langs/en/map.js b/src/i18n/langs/en/map.js index 94037d77d..74318140d 100644 --- a/src/i18n/langs/en/map.js +++ b/src/i18n/langs/en/map.js @@ -23,6 +23,7 @@ export default { layerDisplay: 'The layer display', viewShows: 'View shows', contentShows: 'content show', + createBatch: 'Create a batch', save: 'save', updata: 'update', @@ -299,6 +300,7 @@ export default { zzkContent: 'Station control content:', stationControlZok: 'central', + skinStyleColon: 'Skin type:', skinDesignation: 'SkinName', skinCoding: 'SkinCoding', coordinatesOrigin: 'CoordinatesOrigin', @@ -341,9 +343,13 @@ export default { productType: 'ProductType', productCode: 'ProductCode', productName: 'ProductName', + createProductCategories: 'Create product categories', productDescription: 'ProductDescription', associateTrainingTypes: 'AssociateTrainingTypes', createTrainingCategories: 'CreateTrainingCategories', + editTraining: 'Edit product categories', + productCategories: 'The product category', + selectOperation: 'Please select operation', editTrainingCategories: 'EditTrainingCategories', linkWidth: 'LinkWidth', maxLinkWidth: '(Link width is at most 20)', @@ -380,6 +386,7 @@ export default { trainCode: 'Train number:', groupNumber: 'The number of:', + groupNumberInterval: 'Group number interval:', modelCode: 'Car type:', trainmodelCreate: 'New car type', diff --git a/src/i18n/langs/en/teach.js b/src/i18n/langs/en/teach.js new file mode 100644 index 000000000..79e55c94a --- /dev/null +++ b/src/i18n/langs/en/teach.js @@ -0,0 +1,19 @@ +export default { + title: 'Urban rail transit teaching system', + describe: 'This system is equipped with real business logic and software architecture based on the business and process-driven mode of metro employees and training sites. From the perspective of business process, standard operation, training mode and open principle, it strives to build a practical training and teaching system that best meets user needs and responds to changes quickly.', + trainingName: 'Training name:', + trainingTime: 'Best time to complete the training:', + trainingMaximum: 'Maximum time to complete the training:', + trainingInstructions: 'Training instructions:', + startTraining: 'Began to practice', + + courseName: 'Course name', + courseDescription: 'Course description', + courseDetails: 'Course details', + free: 'free', + permissionsDetails: 'Permissions for details', + buy: 'buy', + permissionDistribute: 'Permission distribution (class)', + authorityTransferred: 'Authority transferred', + courseList: 'Course list' +}; diff --git a/src/i18n/langs/en/tip.js b/src/i18n/langs/en/tip.js index 7c32a30b0..4ee5e76f1 100644 --- a/src/i18n/langs/en/tip.js +++ b/src/i18n/langs/en/tip.js @@ -25,6 +25,8 @@ export default { selectedSectionEmpty: 'The selected section is empty', selectedStationEmpty: 'The selected station is empty', + enterKeywordsFiltering: 'Enter keywords for filtering', + selectMap: 'Please select the map first', selectTrainType: 'Please select the train model to view', @@ -63,6 +65,8 @@ export default { 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', @@ -89,5 +93,11 @@ export default { skinDeleteConfirmation: 'This will permanently remove the skin. Do you want to continue?', skinCodingExist: 'Map skin codes already exist', underImport: 'UnderImport...', - deleteTypeHint: 'This action deletes the type. Do you want to continue?' + deleteTypeHint: 'This action deletes the type. Do you want to continue?', + selectValidInterval: 'Please select a valid interval', + + failedCourse: 'Failed to obtain course information', + createSimulationFaild: 'Failed to create simulation', + accessCourseNo: 'No access to this course, please go and buy it!' + }; diff --git a/src/i18n/langs/zh/global.js b/src/i18n/langs/zh/global.js index a54e0ebcf..4f99370f0 100644 --- a/src/i18n/langs/zh/global.js +++ b/src/i18n/langs/zh/global.js @@ -80,5 +80,29 @@ export default { trainingNotStart: '{name}的房间未开始', inputRoomNumber: '请输入房间号', chooseRoom: '选择房间', - month: '月' + month: '月', + + permissions: '权限', + yuanMonth: '元/月', + permissionType: '权限类型:', + purchaseDuration: '购买时长:', + custom: '自定义', + permissionNum: '权限数量:', + indexA: '个', + purchasePrice: '购买总价:', + submitOrders: '提交订单', + + january: '一月', + march: '三月', + year: '一年', + twoYears: '两年', + fiveYears: '五年', + tenYears: '十年', + courseName: '课程名称', + screenName: '大屏名称', + productName: '产品名称', + coursePrice: '课程单价', + testPrice: '考试单价', + simulationPrice: '仿真单价', + timeUnitPrice: '大屏单价' }; diff --git a/src/i18n/langs/zh/index.js b/src/i18n/langs/zh/index.js index e1f4f0b32..9cc82bf39 100644 --- a/src/i18n/langs/zh/index.js +++ b/src/i18n/langs/zh/index.js @@ -9,6 +9,7 @@ import scriptRecord from './scriptRecord'; import tip from './tip'; import system from './system'; import orderAuthor from './orderAuthor'; +import teach from './teach'; export default { ...cnLocale, @@ -17,6 +18,7 @@ export default { router, lesson, error, + teach, rules, scriptRecord, tip, diff --git a/src/i18n/langs/zh/map.js b/src/i18n/langs/zh/map.js index 2a712b9c2..335ee4b0f 100644 --- a/src/i18n/langs/zh/map.js +++ b/src/i18n/langs/zh/map.js @@ -23,6 +23,7 @@ export default { layerDisplay: '图层显示', viewShows: '视图显示', contentShows: '内容显示', + createBatch: '批量创建', save: '保存', updata: '更新', @@ -330,6 +331,7 @@ export default { trainCode: '列车编号:', groupNumber: '车组号:', + groupNumberInterval: '车组号区间:', trainNumber: '车组号', modelCode: '车类型:', @@ -414,6 +416,7 @@ export default { startStation: '起始站', endStation: '终到站', + skinStyleColon: '皮肤类型:', skinDesignation: '皮肤名称', skinCoding: '皮肤编码', coordinatesOrigin: '坐标原点', @@ -456,9 +459,13 @@ export default { productType: '产品类型', productCode: '产品编码', productName: '产品名称', + createProductCategories: '创建产品类目', productDescription: '产品说明', associateTrainingTypes: '关联实训类型', createTrainingCategories: '创建实训类目', + editTraining: '编辑产品类目', + productCategories: '产品类目', + selectOperation: '请选择操作', editTrainingCategories: '编辑实训类目', linkWidth: 'link宽度', maxLinkWidth: '(Link宽度最大为20)', diff --git a/src/i18n/langs/zh/rules.js b/src/i18n/langs/zh/rules.js index 302f5ee23..7a16ab935 100644 --- a/src/i18n/langs/zh/rules.js +++ b/src/i18n/langs/zh/rules.js @@ -210,5 +210,9 @@ export default { linkWidthInputPrompt: '请输入有效Link宽度', sectionWidthInput: '请输入区段宽度', sectionWidthInputPrompt: '请输入有效区段宽度', - selectShowWatermark: '请选择是否水印' + selectShowWatermark: '请选择是否水印', + + courseNameEmpty: '课程名称不能为空', + purchaseMonth: '请输入购买月数', + accessNumber: '请输入权限数量' }; diff --git a/src/i18n/langs/zh/teach.js b/src/i18n/langs/zh/teach.js new file mode 100644 index 000000000..4a148e78d --- /dev/null +++ b/src/i18n/langs/zh/teach.js @@ -0,0 +1,19 @@ +export default { + title: '城市轨道交通教学系统', + describe: '该系统具备真实的业务逻辑,以地铁员工和培训点为要素的业务和流程驱动方式进行软件架构,从业务流程、标准作业、培训方式及开放原则等角度出发,力求打造最符合用户需求及快速响应变化的实训教学系统。', + trainingName: '实训名称:', + trainingTime: '完成实训最佳用时:', + trainingMaximum: '完成实训最大用时:', + trainingInstructions: '实训说明:', + startTraining: '开始实训', + + courseName: '课程名称', + courseDescription: '课程说明', + courseDetails: '课程详情', + free: '免费', + permissionsDetails: '权限详情', + buy: '购买', + permissionDistribute: '权限分发(上课)', + authorityTransferred: '权限转赠', + courseList: '课程列表' +}; diff --git a/src/i18n/langs/zh/tip.js b/src/i18n/langs/zh/tip.js index 2a1aec950..2da8511cb 100644 --- a/src/i18n/langs/zh/tip.js +++ b/src/i18n/langs/zh/tip.js @@ -8,6 +8,7 @@ export default { hint: '提示', cancelledDelete: '已取消删除', cancelGeneration: '已取消批量生成', + refreshFailure: '刷新失败', updateSuccessfully: '更新成功', saveSuccessfully: '保存成功', @@ -25,6 +26,8 @@ export default { selectedSectionEmpty: '选择的区段为空', selectedStationEmpty: '选择的车站为空', + enterKeywordsFiltering: '输入关键字进行过滤', + selectMap: '请先选择地图', selectTrainType: '请选择查看的列车模型', @@ -59,6 +62,9 @@ export default { deleteProductSuccessfully: '删除产品成功', deleteProductFailed: '删除产品失败', cannotDeleteProduct: '产品已被使用无法删除', + productCodeExists: '产品Code已存在', + narrowScope: '不能缩小上次创建的实训列表的范围', + pathCreationSuccessful: '创建交路成功!', createRoutingFailed: '创建交路失败', pathUpdataSuccessful: '更新交路成功!', @@ -89,6 +95,15 @@ export default { skinDeleteConfirmation: '此操作将永久删除该皮肤, 是否继续?', skinCodingExist: '地图皮肤编码已存在', underImport: '正在导入中...', - deleteTypeHint: '此操作将删除该类型, 是否继续?' + deleteTypeHint: '此操作将删除该类型, 是否继续?', + selectValidInterval: '请选择有效的区间', + + failedCourse: '获取课程信息失败', + createSimulationFaild: '创建仿真失败', + accessCourseNo: '无此课程权限, 请前往购买!', + + failedSubmitOrder: '提交订单失败', + permissionsNumber: '请输入有效的权限个数', + purchaseMonth: '请输入有效的购买月数' }; diff --git a/src/router/index.js b/src/router/index.js index b2058ee8a..4dca952fb 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -27,8 +27,8 @@ import SkinCodeDraft from '@/views/map/skinCode/draft'; import Mapdraft from '@/views/map/mapdraft/index'; import Mapedit from '@/views/map/mapdraft/mapedit/index'; import Runplan from '@/views/map/runplan/index'; +import MapProduct from '@/views/map/product/index'; import RunplanView from '@/views/map/runplan/chart'; -import Trainingcategory from '@/views/lesson/trainingcategory/index'; import Trainingrecord from '@/views/lesson/trainingrecord/index'; import TrainingrecordManage from '@/views/lesson/trainingrecord/manage/index'; import Taskmanage from '@/views/lesson/taskmanage/list'; @@ -389,7 +389,7 @@ export const asyncRouter = [ }, { path: 'product', - component: Trainingcategory, + component: MapProduct, meta: { i18n: 'router.productEdit' } diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 4050e7e22..2e575c51e 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -3,9 +3,9 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - // BASE_API = 'https://test.joylink.club/jlcloud'; + BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 - BASE_API = 'http://192.168.3.6:9000'; // 旭强 + // BASE_API = 'http://192.168.3.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.4:9000' // 琰培 } else { BASE_API = process.env.VUE_APP_BASE_API; diff --git a/src/views/components/pay/commit.vue b/src/views/components/pay/commit.vue index 73faf0c9e..5ecb4e1b6 100644 --- a/src/views/components/pay/commit.vue +++ b/src/views/components/pay/commit.vue @@ -12,30 +12,30 @@ {{ saleModel.name }} - - {{ systemName }}权限 + + {{ systemName }}{{ $t('global.permissions') }} {{ saleModel.price.toFixed(2) }} - 元/月 + {{ $t('global.yuanMonth') }} - + - + - + {{ $t('global.month') }} - + - + {{ $t('global.indexA') }} - + {{ parseInt(sumPrice) }} . {{ (sumPrice - parseInt(sumPrice)).toFixed(2).toString().replace('.0', '').replace(' ', '') }} @@ -44,9 +44,9 @@ - 提交订单 + {{ $t('global.submitOrders') }} - 返回 + {{ $t('global.back') }} @@ -69,14 +69,14 @@ export default { data() { return { disabled: true, - choose: '一月', + choose: this.$t('global.january'), chooseList: [ - { label: '一月', value: 1 }, - { label: '三月', value: 3 }, - { label: '一年', value: 12 }, - { label: '两年', value: 24 }, - { label: '五年', value: 60 }, - { label: '十年', value: 120 } + { label: this.$t('global.january'), value: 1 }, + { label: this.$t('global.march'), value: 3 }, + { label: this.$t('global.year'), value: 12 }, + { label: this.$t('global.twoYears'), value: 24 }, + { label: this.$t('global.fiveYears'), value: 60 }, + { label: this.$t('global.tenYears'), value: 120 } ], saleModel: { goodsId: '', @@ -94,48 +94,48 @@ export default { nameTitle() { if (this.$route.query.permissionType == PermissionType.EXAM || this.$route.query.permissionType == PermissionType.LESSON) { - return '课程名称'; + return this.$t('global.courseName'); } else if (this.$route.query.permissionType == PermissionType.SCREEN) { - return '大屏名称'; + return this.$t('global.screenName'); } else { - return '产品名称'; + return this.$t('global.productName'); } }, priceTitle() { switch (this.$route.query.permissionType) { - case PermissionType.LESSON: return '课程单价'; - case PermissionType.EXAM: return '考试单价'; - case PermissionType.SIMULATION: return '仿真单价'; - case PermissionType.SCREEN: return '大屏单价'; + case PermissionType.LESSON: return this.$t('global.coursePrice'); + case PermissionType.EXAM: return this.$t('global.testPrice'); + case PermissionType.SIMULATION: return this.$t('global.simulationPrice'); + case PermissionType.SCREEN: return this.$t('global.timeUnitPrice'); } return ''; }, rules() { return { 'name': [ - { required: true, message: '课程名称不能为空', trigger: 'blur' } + { required: true, message: this.$t('rules.courseNameEmpty'), trigger: 'blur' } ], 'months': [ - { required: true, message: '请输入购买月数', trigger: 'blur' }, + { required: true, message: this.$t('rules.purchaseMonth'), trigger: 'blur' }, { validator(rule, value, callback) { if (Number.isInteger(Number(value)) && Number(value) >= 0) { callback(); } else { - callback(new Error('请输入有效的购买月数')); + callback(new Error(this.$t('tip.purchaseMonth'))); } }, trigger: 'blur' } ], 'total': [ - { required: true, message: '请输入权限数量', trigger: 'blur' }, + { required: true, message: this.$t('rules.accessNumber'), trigger: 'blur' }, { validator(rule, value, callback) { if (Number.isInteger(Number(value)) && Number(value) >= 0) { callback(); } else { - callback(new Error('请输入有效的权限个数')); + callback(new Error(this.$t('tip.permissionsNumber'))); } }, trigger: 'blur' @@ -163,7 +163,7 @@ export default { methods: { // 选择自定义时长,修改页面控件状态 chooseEvent(label) { - this.disabled = label !== '自定义'; + this.disabled = label !== this.$t('global.custom'); this.chooseList.forEach(elem => { if (label === elem.label) { this.saleModel.months = elem.value; @@ -184,7 +184,7 @@ export default { commitOrder(model).then(response => { this.$emit('commit', response.data); }).catch(() => { - this.$messageBox('提交订单失败'); + this.$messageBox(this.$t('tip.failedSubmitOrder')); }); } }); diff --git a/src/views/map/mapdraft/mapedit/mapoperate/train/create.vue b/src/views/map/mapdraft/mapedit/mapoperate/train/create.vue index 743f58480..19e0a7dab 100644 --- a/src/views/map/mapdraft/mapedit/mapoperate/train/create.vue +++ b/src/views/map/mapdraft/mapedit/mapoperate/train/create.vue @@ -1,23 +1,23 @@ @@ -79,14 +79,14 @@ export default { range.end >= range.beg) { callback(); } else { - callback(new Error('请选择有效的区间')); + callback(new Error(this.$t('tip.selectValidInterval'))); } }, trigger: 'blur' } ], modelCode: [ - { required: true, message: '请选择车类型', trigger: 'change' } + { required: true, message: this.$t('rules.selectTrainType'), trigger: 'change' } ] }; } diff --git a/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue b/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue index 6ea475221..08870ffc6 100644 --- a/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue +++ b/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue @@ -62,13 +62,13 @@ export default { }, rules: { code: [ - { required: true, message: '请重新选择设备', trigger: 'change' } + { required: true, message: this.$t('rules.pleaseReSelectDevice'), trigger: 'change' } ], groupNumber: [ - { required: true, message: '请输入车组号', trigger: 'blur' } + { required: true, message: this.$t('rules.pleaseEnterGroupNumber'), trigger: 'blur' } ], modelCode: [ - { required: true, message: '请选择车类型', trigger: 'change' } + { required: true, message: this.$t('rules.selectTrainType'), trigger: 'change' } ] }, search: '' @@ -130,7 +130,7 @@ export default { if (Object.keys(this.$store.state.map.map || {}).length) { this.$refs.trainMode.doShow({}, 'ADD'); } else { - this.$messageBox('请先选择地图'); + this.$messageBox(this.$t('tip.selectMap')); } }, uptTrainMode(code) { @@ -138,7 +138,7 @@ export default { if (index >= 0) { this.$refs.trainMode.doShow(this.trainModelList[index], 'UPT'); } else { - this.$messageBox('请选择查看的列车模型'); + this.$messageBox(this.$t('tip.selectTrainType')); } }, delTrainMode(code) { @@ -154,15 +154,15 @@ export default { const train = this.$store.getters['map/getDeviceByCode'](row.code); if (train) { const _that = this; - this.$confirm('是否确认删除?', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', + this.$confirm(this.$t('tip.confirmDeletion'), this.$t('tip.hint'), { + confirmButtonText: this.$t('tip.confirm'), + cancelButtonText: this.$t('tip.cancel'), type: 'warning' }).then(() => { _that.$emit('delMapModel', train); _that.deviceSelect(); }).catch(() => { - _that.$message.info('已取消删除'); + _that.$message.info(this.$t('tip.cancelledDelete')); }); } }, diff --git a/src/views/map/product/draft.vue b/src/views/map/product/draft.vue deleted file mode 100644 index c1947c450..000000000 --- a/src/views/map/product/draft.vue +++ /dev/null @@ -1,318 +0,0 @@ - - - - diff --git a/src/views/lesson/trainingcategory/edit.vue b/src/views/map/product/edit.vue similarity index 79% rename from src/views/lesson/trainingcategory/edit.vue rename to src/views/map/product/edit.vue index ce5c9e5ae..8fb1913de 100644 --- a/src/views/lesson/trainingcategory/edit.vue +++ b/src/views/map/product/edit.vue @@ -7,10 +7,10 @@ - + - + diff --git a/src/views/lesson/trainingcategory/tree.vue b/src/views/map/product/tree.vue similarity index 93% rename from src/views/lesson/trainingcategory/tree.vue rename to src/views/map/product/tree.vue index c75099a02..17eca4c9b 100644 --- a/src/views/lesson/trainingcategory/tree.vue +++ b/src/views/map/product/tree.vue @@ -1,9 +1,9 @@ diff --git a/src/views/map/runplan/manage/create.vue b/src/views/map/runplan/manage/create.vue index 4f2917a74..c9b4a15d9 100644 --- a/src/views/map/runplan/manage/create.vue +++ b/src/views/map/runplan/manage/create.vue @@ -98,11 +98,11 @@ - {{$t('global.previousStep')}} + {{ $t('global.previousStep') }} - {{$t('global.skip')}} - {{$t('global.create')}} - {{$t('global.confirm')}} + {{ $t('global.skip') }} + {{ $t('global.create') }} + {{ $t('global.confirm') }} @@ -118,7 +118,9 @@ export default { props: { selected: { type: Object, - requited: true + default: function () { + return null; + } } }, data() { diff --git a/src/views/map/runplan/manage/import.vue b/src/views/map/runplan/manage/import.vue index c06ff5e44..644d254c4 100644 --- a/src/views/map/runplan/manage/import.vue +++ b/src/views/map/runplan/manage/import.vue @@ -6,8 +6,8 @@ - {{$t('map.import')}} - {{$t('global.cancel')}} + {{ $t('map.import') }} + {{ $t('global.cancel') }} @@ -21,7 +21,9 @@ export default { props: { selected: { type: Object, - requited: true + default: function () { + return null; + } } }, data() { diff --git a/src/views/map/runplan/manage/list.vue b/src/views/map/runplan/manage/list.vue index 2b8e7b9c5..4fcc7e31c 100644 --- a/src/views/map/runplan/manage/list.vue +++ b/src/views/map/runplan/manage/list.vue @@ -1,7 +1,7 @@ @@ -22,7 +22,9 @@ export default { props: { selected: { type: Object, - requited: true + default: function () { + return null; + } } }, data() { diff --git a/src/views/map/skinCode/draft.vue b/src/views/map/skinCode/draft.vue index 036f11c2b..ace0c8a78 100644 --- a/src/views/map/skinCode/draft.vue +++ b/src/views/map/skinCode/draft.vue @@ -12,9 +12,9 @@
- {{$t('global.create')}} - {{$t('global.update')}} - {{$t('global.return')}} + {{ $t('global.create') }} + {{ $t('global.update') }} + {{ $t('global.return') }}
@@ -48,10 +48,10 @@ export default { computed: { title() { if (this.isAdd) { - return this.$t('map.addMapSkin'); + return this.$t('map.addMapSkin'); } if (this.isEdit) { - return this.$t('map.updateMapSkin'); + return this.$t('map.updateMapSkin'); } return ''; }, diff --git a/src/views/map/skinStyle/draft.vue b/src/views/map/skinStyle/draft.vue index 8726d1bc2..1922c77a4 100644 --- a/src/views/map/skinStyle/draft.vue +++ b/src/views/map/skinStyle/draft.vue @@ -12,8 +12,8 @@
- {{$t('global.create')}} - {{$t('global.update')}} + {{ $t('global.create') }} + {{ $t('global.update') }}
@@ -47,10 +47,10 @@ export default { computed: { title() { if (this.isAdd) { - return this.$t('map.addMapSkin'); + return this.$t('map.addMapSkin'); } if (this.isEdit) { - return this.$t('map.updateMapSkin'); + return this.$t('map.updateMapSkin'); } return ''; }, diff --git a/src/views/map/skinStyle/index.vue b/src/views/map/skinStyle/index.vue index 0c82090ae..cfdb2c82a 100644 --- a/src/views/map/skinStyle/index.vue +++ b/src/views/map/skinStyle/index.vue @@ -25,11 +25,11 @@ export default { queryObject: { name: { type: 'text', - label: this.$t('map.skinDesignation'), + label: this.$t('map.skinDesignation') }, code: { type: 'text', - label: this.$t('map.skinCoding'), + label: this.$t('map.skinCoding') } } }, diff --git a/src/views/teach/category/tree.vue b/src/views/teach/category/tree.vue index 208f82070..ce3e8379e 100644 --- a/src/views/teach/category/tree.vue +++ b/src/views/teach/category/tree.vue @@ -1,8 +1,7 @@