diff --git a/src/api/simulation.js b/src/api/simulation.js
index 5f334e718..60e1053b1 100644
--- a/src/api/simulation.js
+++ b/src/api/simulation.js
@@ -209,6 +209,40 @@ export function getScriptMemberData(group) {
});
}
+/** 获取剧本出演成员角色 */
+export function getScriptPlayMember(group) {
+ return request({
+ url: `/api/simulation/${group}/scriptWrite/players`,
+ method: 'get'
+ });
+}
+
+/** 取消剧本演出成员角色 */
+export function cancleScriptMembers(group, data) {
+ return request({
+ url: `/api/simulation/${group}/scriptWrite/removePlayers`,
+ method: 'put',
+ data
+ });
+}
+
+/** 选择剧本演出成员角色 */
+export function selectScriptMembers(group, data) {
+ return request({
+ url: `/api/simulation/${group}/scriptWrite/choosePlayers`,
+ method: 'put',
+ data
+ });
+}
+
+/** 修改剧本演出成员性别 */
+export function modifyScriptMemberSex(group, playerId, data) {
+ return request({
+ url: `/api/simulation/${group}/scriptWrite/player/${playerId}?gender=${data.gender}`,
+ method: 'put',
+ });
+}
+
/** 清除仿真剧本数据*/
export function dumpScriptData(group) {
return request({
diff --git a/src/i18n/langs/en/error.js b/src/i18n/langs/en/error.js
index bd0b865b3..60dc29868 100644
--- a/src/i18n/langs/en/error.js
+++ b/src/i18n/langs/en/error.js
@@ -58,5 +58,10 @@ export default {
updateOperateStepFailed: 'The update action step failed',
packagePermissionFailed: 'Packaging authority failed',
acquisitionTimeFailed: 'Acquisition Time Failed',
- getProductListFailed: 'Failed to get product list'
+ getProductListFailed: 'Failed to get product list',
+ obtainChapterDataFailed: 'Failed to obtain chapter data',
+ obtainCourseDetailsFailed: 'Failed to obtain course details',
+ obtainCourseInformationFailed: 'Failed to obtain course information',
+ obtainStepDataFailed: 'Failed to obtain step data'
+
};
diff --git a/src/i18n/langs/en/exam.js b/src/i18n/langs/en/exam.js
new file mode 100644
index 000000000..25ab7fd41
--- /dev/null
+++ b/src/i18n/langs/en/exam.js
@@ -0,0 +1,16 @@
+export default {
+ testSystem: '城市轨道交通考试系统',
+ testSystemDescription: ' 该系统具有自定义考试规则、自动生成考卷、学员成绩统计、数据曲线分析及题库管理等功能,从实战操作、业务流程、故障模拟及考试规则等多角度出发,力求打造最符合用户需求的城市轨道交通在线交互实操类考试系统',
+ examResultsDetails: '考试结果详情',
+ testQuestionsName: '试题名称',
+ testScores: '考试得分',
+ points: '分',
+ whetherThrough: '是否通过',
+ didNotCalculate: '未计算',
+ pass: '通过',
+ notPass: '未通过',
+ examTime: '考试用时',
+ trainingName: '实训名称',
+ trainingScore: '实训得分',
+ returnToExamList: '返回考试列表'
+};
diff --git a/src/i18n/langs/en/global.js b/src/i18n/langs/en/global.js
index 1af1e371c..4d05b0fd4 100644
--- a/src/i18n/langs/en/global.js
+++ b/src/i18n/langs/en/global.js
@@ -103,5 +103,8 @@ export default {
mapList: 'Map list',
updateTime: 'Update time:',
line: 'Line:',
- permissionList: 'Permissions list:'
+ permissionList: 'Permissions list:',
+ remove: 'remove',
+ append: 'append',
+ release: 'release'
};
diff --git a/src/i18n/langs/en/index.js b/src/i18n/langs/en/index.js
index 120d39a04..98fe39783 100644
--- a/src/i18n/langs/en/index.js
+++ b/src/i18n/langs/en/index.js
@@ -16,6 +16,7 @@ import replay from './replay';
import planMonitor from './planMonitor';
import screenMonitor from './screenMonitor';
import demonstration from './demonstration';
+import exam from './exam';
export default {
...enLocale,
@@ -35,5 +36,6 @@ export default {
replay,
planMonitor,
screenMonitor,
- demonstration
+ demonstration,
+ exam
};
diff --git a/src/i18n/langs/en/lesson.js b/src/i18n/langs/en/lesson.js
index df53285f6..9a264ae4f 100644
--- a/src/i18n/langs/en/lesson.js
+++ b/src/i18n/langs/en/lesson.js
@@ -48,5 +48,44 @@ export default {
eidtStepInfo: 'Edit Step Information',
product: 'Product',
remarks: 'Remarks',
- operateSuccess: 'Operation successfully'
+ operateSuccess: 'Operation successfully',
+ createChapter: 'Create chapter',
+ contentSorting: 'Content sorting',
+ courseList: 'Course list',
+ createNewCoursesFromRelease: 'Create new courses from release',
+ courseName: 'Course name:',
+ parentChapter: 'Parent chapter:',
+ chapterName: 'Chapter name:',
+ chapterInstructions: 'Chapter instructions:',
+ associatedTraining: 'Associated training:',
+ updateChapter: 'Update chapter',
+ automaticOrManual: 'Auto/Manual',
+ automatic: 'Automatic',
+ manual: 'Manual',
+ publishCourseName: 'Publish course name:',
+ draftCourseName: 'Draft course name:',
+ associatedSkin: 'Associated skin:',
+ associatedProducts: 'Associated products:',
+ courseDescription: 'Course description:',
+ editCourse: 'Edit course',
+ createCourse: 'Create course',
+ courseRelease: 'Course release',
+ releaseAssociatedCity: 'Release associated city:',
+ releaseAssociatedMap: 'Release associated map:',
+ trainingSequence: 'Training sequence',
+ creationTime: 'Creation time',
+ finishTime: 'Finish time',
+ createResults: 'Create results',
+ start: 'start',
+ toPerform: 'To perform',
+ productType: 'Product type:',
+ minTime: 'Minimum time:',
+ maxTime: 'Largest time:',
+ trainingDescription: 'Training description:',
+ generateTraining: 'Generate training',
+ updateTraining: 'Update training',
+ deleteTraining: 'Delete training',
+ automaticGenerationOfTraining: 'Automatic generation of training',
+ modifyTrainingByCategory: 'Modify training by category',
+ deleteAutoGeneratedTraining: 'Delete auto-generated training'
};
diff --git a/src/i18n/langs/en/rules.js b/src/i18n/langs/en/rules.js
index 2baded317..b3e2557e6 100644
--- a/src/i18n/langs/en/rules.js
+++ b/src/i18n/langs/en/rules.js
@@ -222,6 +222,20 @@ export default {
selectMapProductName: 'Please select map product name',
inputTime: 'Please enter time',
inputPermissionNumber: 'Please enter the number of permissions',
- permissionNumberGreater0: 'The number of permissions must be greater than 0'
-
+ permissionNumberGreater0: 'The number of permissions must be greater than 0',
+ enterChapterName: 'Please enter chapter name',
+ enterChapterInstructions: 'Please enter chapter instructions',
+ selectCourseName: 'Please select the course name',
+ enterCourseName: 'Please enter the course name',
+ selectAssociatedProduct: 'Please select the associated product',
+ enterCourseDescription: 'Please enter the course description',
+ courseIdIsEmpty: 'Course Id is empty',
+ selectCity: 'Please select city',
+ enterStandardTime: 'Please enter standard time',
+ enterNumericValue: 'Please enter a numeric value',
+ greaterThanMinTime: 'Must be greater than the minimum time',
+ selectTrainingType: 'Please select training type',
+ selectOneTrainingType: 'Only one training type can be selected',
+ enterProductType: 'Please enter product type',
+ selectAssociatedStation: 'Please select the associated station'
};
diff --git a/src/i18n/langs/en/tip.js b/src/i18n/langs/en/tip.js
index 8c39de6d0..f1cbe16a0 100644
--- a/src/i18n/langs/en/tip.js
+++ b/src/i18n/langs/en/tip.js
@@ -108,6 +108,23 @@ export default {
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',
- trainModelNameRepeat: 'Train model data duplication'
+ trainModelNameRepeat: 'Train model data duplication',
+
+ coursePublishSuccessful: 'Successful course release',
+ coursePublishFailed: 'Course launch failed',
+ startOperationHint: 'This operation will start the task. Do you want to continue?',
+ cancelsTaskHint: 'This action cancels the task. Do you want to continue?',
+ automaticGenerationTrainingSuccess: 'Automatic generation of training success',
+ automaticGenerationTrainingFailure: 'Automatic generation of training failure',
+ updateAutomaticGenerationTrainingSuccess: 'Update automatically generated training successfully',
+ updateAutomaticGenerationTrainingFailure: 'Update automatically generated training failure',
+ deleteAutomaticGenerationTrainingSuccess: 'Delete automatic generation training successfully',
+ deleteAutomaticGenerationTrainingFailure: 'Delete automatic generation training failure',
+ addTrainingSuccessfully: 'Add training successfully!',
+ addTrainingFailed: 'Failed to add training',
+ updateTrainingSuccessfully: 'Update training successfully!',
+ updateTrainingFailed: 'Failed to update training',
+ savedStepDataSuccessfully: 'Saved step data successfully',
+ savedStepDataFailed: 'Failed to save step data'
};
diff --git a/src/i18n/langs/zh/error.js b/src/i18n/langs/zh/error.js
index 7d017d284..333a034f8 100644
--- a/src/i18n/langs/zh/error.js
+++ b/src/i18n/langs/zh/error.js
@@ -58,6 +58,9 @@ export default {
updateOperateStepFailed: '更新操作步骤失败',
packagePermissionFailed: '打包权限失败',
acquisitionTimeFailed: '获取时间失败',
- getProductListFailed: '获取产品列表失败'
-
+ getProductListFailed: '获取产品列表失败',
+ obtainChapterDataFailed: '获取章节数据失败',
+ obtainCourseDetailsFailed: '获取课程详情失败',
+ obtainCourseInformationFailed: '获取课程信息失败',
+ obtainStepDataFailed: '获取步骤数据失败'
};
diff --git a/src/i18n/langs/zh/exam.js b/src/i18n/langs/zh/exam.js
new file mode 100644
index 000000000..25ab7fd41
--- /dev/null
+++ b/src/i18n/langs/zh/exam.js
@@ -0,0 +1,16 @@
+export default {
+ testSystem: '城市轨道交通考试系统',
+ testSystemDescription: ' 该系统具有自定义考试规则、自动生成考卷、学员成绩统计、数据曲线分析及题库管理等功能,从实战操作、业务流程、故障模拟及考试规则等多角度出发,力求打造最符合用户需求的城市轨道交通在线交互实操类考试系统',
+ examResultsDetails: '考试结果详情',
+ testQuestionsName: '试题名称',
+ testScores: '考试得分',
+ points: '分',
+ whetherThrough: '是否通过',
+ didNotCalculate: '未计算',
+ pass: '通过',
+ notPass: '未通过',
+ examTime: '考试用时',
+ trainingName: '实训名称',
+ trainingScore: '实训得分',
+ returnToExamList: '返回考试列表'
+};
diff --git a/src/i18n/langs/zh/global.js b/src/i18n/langs/zh/global.js
index 06b30c4a1..7a0f9c4e1 100644
--- a/src/i18n/langs/zh/global.js
+++ b/src/i18n/langs/zh/global.js
@@ -142,5 +142,8 @@ export default {
mapList: '地图列表',
updateTime: '更新时间:',
line: '线路:',
- permissionList: '权限列表:'
+ permissionList: '权限列表:',
+ remove: '移除',
+ append: '添加',
+ release: '发布'
};
diff --git a/src/i18n/langs/zh/index.js b/src/i18n/langs/zh/index.js
index 0927678a8..2eb190f2e 100644
--- a/src/i18n/langs/zh/index.js
+++ b/src/i18n/langs/zh/index.js
@@ -16,6 +16,7 @@ import replay from './replay';
import planMonitor from './planMonitor';
import screenMonitor from './screenMonitor';
import demonstration from './demonstration';
+import exam from './exam';
export default {
...cnLocale,
@@ -35,5 +36,6 @@ export default {
replay,
planMonitor,
screenMonitor,
- demonstration
+ demonstration,
+ exam
};
diff --git a/src/i18n/langs/zh/lesson.js b/src/i18n/langs/zh/lesson.js
index 62985628e..5d8d5a5cf 100644
--- a/src/i18n/langs/zh/lesson.js
+++ b/src/i18n/langs/zh/lesson.js
@@ -45,9 +45,48 @@ export default {
stepReturn: '步骤返回值',
stepTips: '步骤提示信息',
createStepInfo: '创建步骤信息',
- eidtStepInfo: '编辑步骤信息',
+ editStepInfo: '编辑步骤信息',
product: '产品',
remarks: '描述',
- operateSuccess: '操作成功'
+ operateSuccess: '操作成功',
+ createChapter: '创建章节',
+ contentSorting: '内容排序',
+ courseList: '课程列表',
+ createNewCoursesFromRelease: '从发布课程新建',
+ courseName: '课程名称:',
+ parentChapter: '父级章节:',
+ chapterName: '章节名称:',
+ chapterInstructions: '章节说明:',
+ associatedTraining: '关联实训:',
+ updateChapter: '更新章节',
+ automaticOrManual: '自动/人工',
+ automatic: '自动',
+ manual: '人工',
+ publishCourseName: '发布课程名称:',
+ draftCourseName: '草稿课程名称:',
+ associatedSkin: '关联皮肤:',
+ associatedProducts: '关联产品:',
+ courseDescription: '课程说明:',
+ editCourse: '编辑课程',
+ createCourse: '创建课程',
+ courseRelease: '课程发布',
+ releaseAssociatedCity: '发布关联城市:',
+ releaseAssociatedMap: '发布关联地图:',
+ trainingSequence: '实训排序',
+ creationTime: '创建时间',
+ finishTime: '完成时间',
+ createResults: '创建结果',
+ start: '开始',
+ toPerform: '重新执行',
+ productType: '产品类型:',
+ minTime: '最小用时:',
+ maxTime: '最大用时:',
+ trainingDescription: '实训描述:',
+ generateTraining: '生成实训',
+ updateTraining: '修改实训',
+ deleteTraining: '删除实训',
+ automaticGenerationOfTraining: '自动生成实训',
+ modifyTrainingByCategory: '按类别修改实训',
+ deleteAutoGeneratedTraining: '删除自动生成实训'
};
diff --git a/src/i18n/langs/zh/map.js b/src/i18n/langs/zh/map.js
index b13b8c2a3..393886a0b 100644
--- a/src/i18n/langs/zh/map.js
+++ b/src/i18n/langs/zh/map.js
@@ -2,9 +2,11 @@ export default {
drawData: '绘图数据',
mapData: '地图数据',
pleaseSelect: '请选择',
+ pleaseEnter: '请输入',
sketchMap: '草稿地图列表',
newConstruction: '新建',
- importMap: '导入地图',
+ bothCreate: '批量生成',
+ importMap: '导入',
createNewMap: '新建地图',
normalCreate: '正常创建',
saveMapAs: '地图另存为',
@@ -19,11 +21,12 @@ export default {
deny: '否',
drawMap: '绘图',
advanced: '高级',
- viewLayer: '视图图层',
- layerDisplay: '图层显示',
+ viewLayer: '显示',
+ layerDisplay: '显示',
viewShows: '视图显示',
- contentShows: '内容显示',
+ contentShows: '设备显示',
createBatch: '批量创建',
+ deleteBoth: '批量删除',
save: '保存',
updata: '更新',
@@ -31,6 +34,7 @@ export default {
updateObjAxis: '更新坐标',
saveAs: '另存为',
publish: '发布',
+ publishMap: '发布地图',
deleteObj: '删除',
remove: '移除',
lastStep: '上一步',
@@ -56,7 +60,7 @@ export default {
text: '文字',
mapName: '地图名称:',
- skinName: '皮肤风格:',
+ skinName: '皮肤:',
selectCity: '所属城市:',
offsetXColon: 'X偏移:',
offsetYColon: 'Y偏移:',
diff --git a/src/i18n/langs/zh/rules.js b/src/i18n/langs/zh/rules.js
index b979fef56..f22c49f44 100644
--- a/src/i18n/langs/zh/rules.js
+++ b/src/i18n/langs/zh/rules.js
@@ -232,6 +232,25 @@ export default {
selectMapProductName: '请选择地图产品名称',
inputTime: '请输入时间',
inputPermissionNumber: '请输入权限个数',
- permissionNumberGreater0: '权限个数必须大于0'
+ permissionNumberGreater0: '权限个数必须大于0',
+ enterChapterName: '请输入章节名称',
+ enterChapterInstructions: '请输入章节说明',
+ selectCourseName: '请选择课程名称',
+ enterCourseName: '请输入课程名称',
+ selectAssociatedProduct: '请选择关联产品',
+ enterCourseDescription: '请输入课程说明',
+ courseIdIsEmpty: '课程Id为空',
+ selectCity: '请选择城市',
+ enterStandardTime: '请输入标准用时',
+ enterNumericValue: '请输入数字值',
+ greaterThanMinTime: '必须大于最小时间',
+ selectTrainingType: '请选择实训类型',
+ selectOneTrainingType: '只能选择一个实训类型',
+ enterProductType: '请输入产品类型',
+ selectAssociatedStation: '请选择关联的车站',
+
+ enterScale: '请输入缩放比例',
+ enterXOffset: '请输入X偏移',
+ enterYOffset: '请输入Y偏移'
};
diff --git a/src/i18n/langs/zh/tip.js b/src/i18n/langs/zh/tip.js
index a387371f1..78aeac516 100644
--- a/src/i18n/langs/zh/tip.js
+++ b/src/i18n/langs/zh/tip.js
@@ -113,5 +113,21 @@ export default {
createRoomFailedHint: '每个用户只能创建一个综合演练房间, 是否进入房间?',
noPermissionHint: '您没有权限,请前往购买产品',
- trainModelNameRepeat: '列车模型数据重复'
+ trainModelNameRepeat: '列车模型数据重复',
+ coursePublishSuccessful: '课程发布成功',
+ coursePublishFailed: '课程发布失败',
+ startOperationHint: '此操作将开始任务, 是否继续?',
+ cancelsTaskHint: '此操作将取消任务, 是否继续?',
+ automaticGenerationTrainingSuccess: '自动生成实训成功',
+ automaticGenerationTrainingFailure: '自动生成实训失败',
+ updateAutomaticGenerationTrainingSuccess: '更新自动生成实训成功',
+ updateAutomaticGenerationTrainingFailure: '更新自动生成实训失败',
+ deleteAutomaticGenerationTrainingSuccess: '删除自动生成实训成功',
+ deleteAutomaticGenerationTrainingFailure: '删除自动生成实训失败',
+ addTrainingSuccessfully: '添加实训成功!',
+ addTrainingFailed: '添加实训失败',
+ updateTrainingSuccessfully: '更新实训成功!',
+ updateTrainingFailed: '更新实训失败',
+ savedStepDataSuccessfully: '保存步骤数据成功',
+ savedStepDataFailed: '保存步骤数据失败'
};
diff --git a/src/jmap/map.js b/src/jmap/map.js
index 9bf4a1785..17c60f03f 100644
--- a/src/jmap/map.js
+++ b/src/jmap/map.js
@@ -80,6 +80,9 @@ class Jlmap {
// 保存皮肤类型
if (map.skinVO) {
this.skinCode = map.skinVO.code;
+ this.$options.scaleRate = map.skinVO.scaling;
+ this.$options.offsetX = map.skinVO.origin.x;
+ this.$options.offsetY = map.skinVO.origin.y;
this.$painter.updateTransform({ scaleRate: map.skinVO.scaling, offsetX: map.skinVO.origin.x, offsetY: map.skinVO.origin.y });
}
diff --git a/src/views/exam/home.vue b/src/views/exam/home.vue
index 974c91cdb..3798e9531 100644
--- a/src/views/exam/home.vue
+++ b/src/views/exam/home.vue
@@ -3,7 +3,7 @@
- 城市轨道交通考试系统
+ {{$t('exam.testSystem')}}
@@ -14,7 +14,7 @@
- 该系统具有自定义考试规则、自动生成考卷、学员成绩统计、数据曲线分析及题库管理等功能,从实战操作、业务流程、故障模拟及考试规则等多角度出发,力求打造最符合用户需求的城市轨道交通在线交互实操类考试系统
+ {{$t('exam.testSystemDescription')}}
diff --git a/src/views/lesson/lessoncategory/category/operateMenu.vue b/src/views/lesson/lessoncategory/category/operateMenu.vue
index c93cb1d45..5b1ad5d45 100644
--- a/src/views/lesson/lessoncategory/category/operateMenu.vue
+++ b/src/views/lesson/lessoncategory/category/operateMenu.vue
@@ -33,17 +33,17 @@
menu: [],
lessonMenu: [
{
- label: '创建章节',
+ label: this.$t('lesson.createChapter'),
handler: this.addSection,
},
{
- label: '内容排序',
+ label: this.$t('lesson.contentSorting'),
handler: this.treeSort,
}
],
chapterMenu: [
{
- label: '创建章节',
+ label: this.$t('lesson.createChapter'),
handler: this.addSection,
}
]
@@ -101,15 +101,15 @@
},
deleteObj() {
let _that = this;
- this.$confirm('是否确认删除?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm(this.$('tip.confirmDeletion'), this.$('global.tips'), {
+ confirmButtonText: this.$('global.confirm'),
+ cancelButtonText: this.$('global.cancel'),
type: 'warning'
}).then(() => {
}).catch(() => {
- this.$messageBox('已取消删除');
+ this.$messageBox(this.$('tip.cancelledDelete'));
});
}
}
}
-
\ No newline at end of file
+
diff --git a/src/views/lesson/lessoncategory/category/tree.vue b/src/views/lesson/lessoncategory/category/tree.vue
index fc5b626ec..7836e17b4 100644
--- a/src/views/lesson/lessoncategory/category/tree.vue
+++ b/src/views/lesson/lessoncategory/category/tree.vue
@@ -1,10 +1,10 @@
- 课程列表
- 从发布课程新建
+ {{$t('lesson.courseList')}}
+ {{$t('lesson.createNewCoursesFromRelease')}}
-
+
{ this.loading = false; });
}).catch(error => {
- this.$messageBox('刷新失败');
+ this.$messageBox(this.$t('error.refreshFailed'));
this.loading = false;
});
}
@@ -167,4 +167,4 @@
.el-tree-node.is-current>.el-tree-node__content {
background-color: #e4e3e3 !important;
}
-
\ No newline at end of file
+
diff --git a/src/views/lesson/lessoncategory/edit/chapter/index.vue b/src/views/lesson/lessoncategory/edit/chapter/index.vue
index fc5567e5d..db7cb9b93 100644
--- a/src/views/lesson/lessoncategory/edit/chapter/index.vue
+++ b/src/views/lesson/lessoncategory/edit/chapter/index.vue
@@ -7,48 +7,48 @@
-
+
-
+
-
+
-
-
+
-
+
-
+
-
+
-
+
移除
+ type="text" size="small">{{$t('global.remove')}}
- 添加实训
+ {{$t('lesson.addTraining')}}
- 添加
- 更新
+ {{$t('global.append')}}
+ {{$t('global.update')}}
{
this.setChapterModel(response.data);
}).catch(error => {
- this.$messageBox('获取章节数据失败')
+ this.$messageBox(this.$t('error.obtainChapterDataFailed'))
});
},
deleteRow(index, rows) {
@@ -193,7 +193,7 @@
this.getChapter(node.data);
}
}).catch(error => {
- this.$messageBox('获取课程详情失败');
+ this.$messageBox(this.$t('error.obtainCourseDetailsFailed'));
})
},
create() {
@@ -201,9 +201,9 @@
if (valid) {
createLessonChapter(this.chapterModel).then(response => {
this.$emit('refresh');
- this.$message.success('创建成功');
+ this.$message.success(this.$t('tip.createSuccess'));
}).catch(error => {
- this.$messageBox('刷新失败')
+ this.$messageBox(this.$t('error.refreshFailed'))
});
}
});
@@ -213,9 +213,9 @@
if (valid) {
updateLessonChapter(this.chapterModel).then(response => {
this.$emit('refresh');
- this.$message.success('更新成功');
+ this.$message.success(this.$t('tip.updateSuccessfully'));
}).catch(error => {
- this.$messageBox('刷新失败')
+ this.$messageBox(this.$t('error.refreshFailed'))
});
}
});
@@ -283,4 +283,4 @@
text-align: center;
margin: 20px auto;
}
-
\ No newline at end of file
+
diff --git a/src/views/lesson/lessoncategory/edit/chapter/list.vue b/src/views/lesson/lessoncategory/edit/chapter/list.vue
index 8e3095b9c..69ecf2f26 100644
--- a/src/views/lesson/lessoncategory/edit/chapter/list.vue
+++ b/src/views/lesson/lessoncategory/edit/chapter/list.vue
@@ -1,6 +1,6 @@
{ return this.$convertField(row.skinCode, this.skinCodeList, ['code', 'name']); },
tagType: (row) => { return 'success'; }
},
{
- 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']); },
@@ -107,16 +107,16 @@ export default {
},
{
type: 'button',
- title: '操作',
+ title: this.$t('global.operate'),
width: '200',
buttons: [
{
- name: '添加',
+ name: this.$t('global.append'),
handleClick: this.addObj,
showControl: (row) => { return !row.isShow; }
},
{
- name: '移除',
+ name: this.$t('global.remove'),
handleClick: this.delObj,
type: 'warning',
showControl: (row) => { return row.isShow; }
diff --git a/src/views/lesson/lessoncategory/edit/create/index.vue b/src/views/lesson/lessoncategory/edit/create/index.vue
index 5b8526675..8d3a25217 100644
--- a/src/views/lesson/lessoncategory/edit/create/index.vue
+++ b/src/views/lesson/lessoncategory/edit/create/index.vue
@@ -1,19 +1,19 @@
-
+
-
-
+
+
-
+
@@ -40,10 +40,10 @@
rules() {
let baseRules = {
code: [
- { required: true, message: '请选择课程名称', trigger: 'change' }
+ { required: true, message: this.$t('rules.selectCourseName'), trigger: 'change' }
],
name: [
- { required: true, message: '请输入课程名称', trigger: 'change' }
+ { required: true, message: this.$t('rules.enterCourseName'), trigger: 'change' }
]
}
return baseRules;
@@ -54,7 +54,7 @@
getPublishLessonList().then(response => {
this.lessonList = response.data.map(elem => { return { code: elem.id, name: elem.name }; })
}).catch(error => {
- this.$messageBox('刷新失败')
+ this.$messageBox(this.$t('error.refreshFailed'))
});
},
methods: {
@@ -74,9 +74,9 @@
createLessonFromPublish(model).then(response => {
this.$emit('refresh');
this.doClose();
- this.$message.success('创建成功');
+ this.$message.success(this.$t('tip.createSuccess'));
}).catch(error => {
- this.$messageBox('创建失败')
+ this.$messageBox(this.$t('tip.creatingFailed'))
});
}
});
@@ -88,4 +88,4 @@
.option-group {
margin: 10px 100px;
}
-
\ No newline at end of file
+
diff --git a/src/views/lesson/lessoncategory/edit/lesson/index.vue b/src/views/lesson/lessoncategory/edit/lesson/index.vue
index 28ae35895..725866112 100644
--- a/src/views/lesson/lessoncategory/edit/lesson/index.vue
+++ b/src/views/lesson/lessoncategory/edit/lesson/index.vue
@@ -7,11 +7,11 @@
-
+
-
-
+
+
-
-
+
+
-
+
@@ -44,12 +44,12 @@
- 创建
+ {{$t('global.create')}}
- 更新
- 发布
- 删除
+ {{$t('global.update')}}
+ {{$t('global.release')}}
+ {{$t('global.delete')}}
@@ -92,21 +92,21 @@ export default {
},
computed: {
title() {
- return this.isEdit ? '编辑课程' : '创建课程';
+ return this.isEdit ? this.$t('lesson.editCourse') : this.$t('lesson.createCourse');
},
rules() {
const baseRules = {
name: [
- { required: true, message: '请输入课程名称', trigger: 'change' }
+ { required: true, message: this.$t('rules.enterCourseName'), trigger: 'change' }
],
skinCode: [
- { required: true, message: '请选择皮肤类型', trigger: 'change' }
+ { required: true, message: this.$t('rules.inputSkinType'), trigger: 'change' }
],
prdCode: [
- { required: true, message: '请选择关联产品', trigger: 'change' }
+ { required: true, message: this.$t('rules.selectAssociatedProduct'), trigger: 'change' }
],
remarks: [
- { required: true, message: '请输入课程说明', trigger: 'change' }
+ { required: true, message: this.$t('rules.enterCourseDescription'), trigger: 'change' }
]
};
return baseRules;
@@ -150,9 +150,9 @@ export default {
};
createLesson(model).then(response => {
this.$emit('refresh');
- this.$message.success('创建成功');
+ this.$message.success(this.$t('tip.createSuccess'));
}).catch(error => {
- this.$messageBox('创建失败');
+ this.$messageBox(this.$t('tip.creatingFailed'));
});
}
});
@@ -169,9 +169,9 @@ export default {
};
updateLesson(model).then(response => {
this.$emit('refresh');
- this.$message.success('更新成功');
+ this.$message.success(this.$t('tip.updateSuccessfully'));
}).catch(error => {
- this.$messageBox('更新失败');
+ this.$messageBox(this.$t('tip.updateFailed'));
});
}
});
@@ -181,12 +181,12 @@ export default {
},
deleteLesson() {
delLesson(this.courseModel).then(response => {
- this.$message.success('删除成功');
+ this.$message.success(this.$t('tip.successfullyDelete'));
this.$refs.form.resetFields();
this.isEdit = false,
this.$emit('refresh');
}).catch(error => {
- this.$messageBox('删除失败');
+ this.$messageBox(this.$t('tip.failDelete'));
});
},
getParentSkin(node) {
@@ -212,7 +212,7 @@ export default {
remarks: data.remarks
};
}).catch(error => {
- this.$messageBox('获取课程信息失败');
+ this.$messageBox(this.$t('error.obtainCourseInformationFailed'));
});
}
}
diff --git a/src/views/lesson/lessoncategory/edit/lesson/publish.vue b/src/views/lesson/lessoncategory/edit/lesson/publish.vue
index 7a5da62a0..7e8cc2256 100644
--- a/src/views/lesson/lessoncategory/edit/lesson/publish.vue
+++ b/src/views/lesson/lessoncategory/edit/lesson/publish.vue
@@ -1,28 +1,28 @@
-
+
-
-
+
+
-
-
+
+
-
+
@@ -54,16 +54,16 @@
rules() {
return {
id: [
- { required: true, message: '课程Id为空', trigger: 'change' }
+ { required: true, message: this.$t('rules.courseIdIsEmpty'), trigger: 'change' }
],
cityCode: [
- { required: true, message: '请选择城市', trigger: 'change' }
+ { required: true, message: this.$t('rules.selectCity'), trigger: 'change' }
],
mapId: [
- { required: true, message: '请选择地图名称', trigger: 'change' }
+ { required: true, message: this.$t('rules.selectMapName'), trigger: 'change' }
],
name: [
- { required: true, message: '请输入地图名称', trigger: 'change' }
+ { required: true, message: this.$t('rules.pleaseEnterMapName'), trigger: 'change' }
],
}
}
@@ -119,11 +119,11 @@
if (valid) {
publishLesson(this.editModel).then(response => {
this.loading = false;
- this.$message.success('发布课程成功');
+ this.$message.success(this.$t('tip.coursePublishSuccessful'));
this.doClose();
}).catch(error => {
this.loading = false;
- this.$messageBox('发布课程失败');
+ this.$messageBox(this.$t('tip.coursePublishFailed'));
});
} else {
this.loading = false;
@@ -133,4 +133,4 @@
}
}
}
-
\ No newline at end of file
+
diff --git a/src/views/lesson/lessoncategory/edit/sorttree/index.vue b/src/views/lesson/lessoncategory/edit/sorttree/index.vue
index fa3cb467b..a0fcb23de 100644
--- a/src/views/lesson/lessoncategory/edit/sorttree/index.vue
+++ b/src/views/lesson/lessoncategory/edit/sorttree/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -61,7 +61,7 @@
getLessonTree({ mapId: '' }).then(response => {
this.treeData = this.convertTreeData(response.data, node);
}).catch(error => {
- this.$messageBox('刷新失败')
+ this.$messageBox(this.$t('error.refreshFailed'))
});
},
allowDrop(draggingNode, dropNode, type) {
@@ -135,4 +135,4 @@
margin: 0 auto;
margin-top: 10px;
}
-
\ No newline at end of file
+
diff --git a/src/views/lesson/taskmanage/createTask.vue b/src/views/lesson/taskmanage/createTask.vue
index 801ae28a5..7b8ea98a2 100644
--- a/src/views/lesson/taskmanage/createTask.vue
+++ b/src/views/lesson/taskmanage/createTask.vue
@@ -2,8 +2,8 @@
@@ -35,7 +35,7 @@
let form = {
labelWidth: '120px',
items: [
- { prop: 'parameter', label: '皮肤类型', type: 'select', required: true, options: this.skinCodeList },
+ { prop: 'parameter', label: this.$t('lesson.skinType'), type: 'select', required: true, options: this.skinCodeList },
]
}
return form
@@ -43,13 +43,13 @@
rules() {
let crules = {
parameter: [
- { required: true, message: '请选择地图', trigger: 'change' },
+ { required: true, message: this.$t('rules.mapInput'), trigger: 'change' },
]
}
return crules
},
title() {
- return '自动生成操作'
+ return this.$t('lesson.generationOperation')
}
},
mounted() {
@@ -92,9 +92,9 @@
self.doClose()
self.$emit('reloadTable'); // 刷新列表
} catch (error) {
- this.$messageBox('创建失败');
+ this.$messageBox(this.$t('tip.creatingFailed'));
}
}
}
}
-
\ No newline at end of file
+
diff --git a/src/views/lesson/taskmanage/list.vue b/src/views/lesson/taskmanage/list.vue
index 2c362fb9f..296f05a49 100644
--- a/src/views/lesson/taskmanage/list.vue
+++ b/src/views/lesson/taskmanage/list.vue
@@ -54,7 +54,7 @@
tagType: (row) => { return '' }
},
{
- title: '创建时间',
+ title: this.$t('lesson.creationTime'),
prop: 'createTime'
},
{
@@ -65,15 +65,15 @@
tagType: (row) => { if (row.status != '03') { return 'warning' } else { return 'success' } }
},
{
- title: '开始时间',
+ title: this.$t('global.startTime'),
prop: 'startTime'
},
{
- title: '完成时间',
+ title: this.$t('lesson.finishTime'),
prop: 'finishTime'
},
{
- title: '创建结果',
+ title: this.$t('lesson.createResults'),
prop: 'result',
width: '400px'
},
@@ -83,19 +83,19 @@
width: '250',
buttons: [
{
- name: '开始',
+ name: this.$t('lesson.start'),
handleClick: this.taskStart,
type: '',
showControl: (row) => { return row.status == '01' }
},
{
- name: '取消',
+ name: this.$t('global.cancel'),
handleClick: this.taskCancel,
type: '',
showControl: (row) => { return row.status == '04' }
},
{
- name: '重新执行',
+ name: this.$t('lesson.toPerform'),
handleClick: this.taskStart,
type: '',
showControl: (row) => { return row.status == '03' || row.status == '05' }
@@ -104,7 +104,7 @@
}
],
actions: [
- { text: '创建', btnCode: 'employee_insert', handler: this.createTask }
+ { text: this.$t('global.create'), btnCode: 'employee_insert', handler: this.createTask }
]
},
@@ -130,7 +130,7 @@
})
},
taskStart(index, node) {
- this.$confirm('此操作将开始任务, 是否继续?', this.$t('global.tips'), {
+ this.$confirm( this.$t('tip.startOperationHint'), this.$t('global.tips'), {
confirmButtonText: this.$t('global.confirm'),
cancelButtonText: this.$t('global.cancel'),
type: 'warning'
@@ -145,7 +145,7 @@
})
},
taskCancel(index, node) {
- this.$confirm('此操作将取消任务, 是否继续?', this.$t('global.tips'), {
+ this.$confirm( this.$t('tip.startOperationHint'), this.$t('global.tips'), {
confirmButtonText: this.$t('global.confirm'),
cancelButtonText: this.$t('global.cancel'),
type: 'warning'
@@ -167,4 +167,4 @@
},
}
}
-
\ No newline at end of file
+
diff --git a/src/views/lesson/trainingmanage/draft.vue b/src/views/lesson/trainingmanage/draft.vue
index e1a30b618..467d96ab4 100644
--- a/src/views/lesson/trainingmanage/draft.vue
+++ b/src/views/lesson/trainingmanage/draft.vue
@@ -1,7 +1,7 @@
-
-
+
+
-
+
-
+
-
+
-
+
s
-
+
s
-
+
@@ -82,11 +82,11 @@ export default {
data() {
var minDurations = (rule, value, callback) => {
if (!value) {
- return callback(new Error('请输入标准用时'));
+ return callback(new Error(this.$t('rules.enterStandardTime')));
}
setTimeout(() => {
if (!Number.isInteger(value)) {
- callback(new Error('请输入数字值'));
+ callback(new Error(this.$t('rules.enterNumericValue')));
} else {
callback();
}
@@ -94,14 +94,14 @@ export default {
};
var maxDurations = (rule, value, callback) => {
if (!value) {
- return callback(new Error('请输入标准用时'));
+ return callback(new Error(this.$t('rules.enterStandardTime')));
}
setTimeout(() => {
if (!Number.isInteger(value)) {
- callback(new Error('请输入数字值'));
+ callback(new Error(this.$t('rules.enterNumericValue')));
} else {
if (value < this.operateModel.minDuration) {
- callback(new Error('必须大于最小时间'));
+ callback(new Error(this.$t('rules.greaterThanMinTime')));
} else {
callback();
}
@@ -111,9 +111,9 @@ export default {
var checkOperateType = (rule, value, callback) => {
if (value.length <= 0) {
- return callback(new Error('请选择实训类型'));
+ return callback(new Error(this.$t('rules.selectTrainingType')));
} else if (this.operation.event == '02' && value.length !== 1) {
- return callback(new Error('只能选择一个实训类型'));
+ return callback(new Error(this.$t('rules.selectOneTrainingType')));
} else {
callback();
}
@@ -151,13 +151,13 @@ export default {
},
rules: {
skinCode: [
- { required: true, message: '请输入地图名称', trigger: 'change' }
+ { required: true, message: this.$t('rules.pleaseEnterMapName'), trigger: 'change' }
],
prdCode: [
- { required: true, message: '请输入产品类型', trigger: 'change' }
+ { required: true, message: this.$t('rules.enterProductType'), trigger: 'change' }
],
type: [
- { required: true, message: '请输入实训类型', trigger: 'change' }
+ { required: true, message: this.$t('rules.inputTrainingType'), trigger: 'change' }
],
operateType: [
{ required: true, validator: checkOperateType, trigger: 'change' }
@@ -266,11 +266,11 @@ export default {
};
addAutoTraining(data).then(response => {
- this.$message.success('自动生成实训成功!');
+ this.$message.success(this.$t('tip.automaticGenerationTrainingSuccess'));
this.$emit('refresh');
this.close();
}).catch(() => {
- this.$messageBox('生成实训失败');
+ this.$messageBox(this.$t('tip.automaticGenerationTrainingFailure'));
this.loading = false;
});
} else if (this.operation.event == '02') { // edit
@@ -287,11 +287,11 @@ export default {
};
updateAutoTraining(data).then(response => {
- this.$message.success('更新自动生成实训成功!');
+ this.$message.success(this.$t('tip.updateAutomaticGenerationTrainingSuccess'));
this.$emit('refresh');
this.close();
}).catch(() => {
- this.$messageBox('更新自动生成实训失败');
+ this.$messageBox(this.$t('tip.updateAutomaticGenerationTrainingFailure'));
this.loading = false;
});
} else if (this.operation.event == '03') { // delete
@@ -305,11 +305,11 @@ export default {
};
deleteAutoTraining(data).then(response => {
- this.$message.success('删除自动生成实训成功!');
+ this.$message.success(this.$t('tip.deleteAutomaticGenerationTrainingSuccess'));
this.$emit('refresh');
this.close();
}).catch(() => {
- this.$messageBox('删除自动生成实训失败');
+ this.$messageBox(this.$t('tip.deleteAutomaticGenerationTrainingFailure'));
this.loading = false;
});
}
@@ -324,4 +324,8 @@ export default {
.el-checkbox {
margin-left: 20px;
}
+ .dialog-form {
+ position: relative;
+ left: 15px;
+ }
diff --git a/src/views/lesson/trainingmanage/index.vue b/src/views/lesson/trainingmanage/index.vue
index 736022b3d..8af900867 100644
--- a/src/views/lesson/trainingmanage/index.vue
+++ b/src/views/lesson/trainingmanage/index.vue
@@ -37,7 +37,7 @@ export default {
pageIndex: 'pageNum'
},
queryForm: {
- labelWidth: '80px',
+ labelWidth: '120px',
initLoadCallback: this.loadInitQueryList,
queryObject: {
skinCode: {
@@ -50,7 +50,7 @@ export default {
},
prdCode: {
type: 'select',
- label: '产品',
+ label: this.$t('lesson.product'),
change: this.prdChoose,
config: {
data: []
@@ -73,9 +73,9 @@ export default {
},
generateType: {
type: 'select',
- label: '自动/人工',
+ label: this.$t('lesson.automaticOrManual'),
config: {
- data: [{ value: '02', label: '人工' }, { value: '01', label: '自动' }]
+ data: [{ value: '02', label: this.$t('lesson.manual') }, { value: '01', label: this.$t('lesson.automatic') }]
}
},
name: {
@@ -147,9 +147,9 @@ export default {
}
],
actions: [
- { text: '生成实训', btnCode: 'employee_insert', handler: this.autoMaticTrainging },
- { text: '修改实训', btnCode: 'employee_insert', handler: this.editTrainingByType, type: 'warning' },
- { text: '删除实训', btnCode: 'employee_insert', handler: this.delAutoMaticTrainging, type: 'danger' }
+ { text: this.$t('lesson.generateTraining'), btnCode: 'employee_insert', handler: this.autoMaticTrainging },
+ { text: this.$t('lesson.updateTraining'), btnCode: 'employee_insert', handler: this.editTrainingByType, type: 'warning'},
+ { text: this.$t('lesson.deleteTraining'), btnCode: 'employee_insert', handler: this.delAutoMaticTrainging, type: 'danger'}
]
},
@@ -249,13 +249,13 @@ export default {
}
},
autoMaticTrainging() {
- this.$refs.draftTrain.show({ event: '01', title: '自动生成实训' });
+ this.$refs.draftTrain.show({ event: '01', title: this.$t('lesson.automaticGenerationOfTraining') });
},
editTrainingByType() {
- this.$refs.draftTrain.show({ event: '02', title: '按类别修改实训' });
+ this.$refs.draftTrain.show({ event: '02', title: this.$t('lesson.modifyTrainingByCategory') });
},
delAutoMaticTrainging() {
- this.$refs.draftTrain.show({ event: '03', title: '删除自动生成实训' });
+ this.$refs.draftTrain.show({ event: '03', title: this.$t('lesson.deleteAutoGeneratedTraining') });
},
demoDisplay(index, node) {
trainingNotify({ trainingId: node.id }).then(resp => {
@@ -264,7 +264,7 @@ export default {
this.$router.push({ path: `${UrlConfig.display}/manage`, query: query });
launchFullscreen();
}).catch(error => {
- this.$messageBox(`创建仿真失败: ${error.message}`);
+ this.$messageBox(this.$t('error.createSimulationFailed') +error.message);
});
},
diff --git a/src/views/lesson/trainingrecord/category/draft.vue b/src/views/lesson/trainingrecord/category/draft.vue
index 65bad1203..a5fb84a5e 100644
--- a/src/views/lesson/trainingrecord/category/draft.vue
+++ b/src/views/lesson/trainingrecord/category/draft.vue
@@ -1,10 +1,10 @@
-
+
-
+
-
+
-
+
-
+
s
-
+
s
-
+
@@ -71,11 +71,11 @@ export default {
data() {
var minDurations = (rule, value, callback) => {
if (!value) {
- return callback(new Error('请输入标准用时'));
+ return callback(new Error(this.$t('rules.enterStandardTime')));
}
setTimeout(() => {
if (!Number.isInteger(value)) {
- callback(new Error('请输入数字值'));
+ callback(new Error(this.$t('rules.enterNumericValue')));
} else {
callback();
}
@@ -83,14 +83,14 @@ export default {
};
var maxDurations = (rule, value, callback) => {
if (!value) {
- return callback(new Error('请输入标准用时'));
+ return callback(new Error(this.$t('rules.enterStandardTime')));
}
setTimeout(() => {
if (!Number.isInteger(value)) {
- callback(new Error('请输入数字值'));
+ callback(new Error(this.$t('rules.enterNumericValue')));
} else {
if (value < this.operateModel.minDuration) {
- callback(new Error('必须大于最小时间'));
+ callback(new Error(this.$t('rules.greaterThanMinTime')));
} else {
callback();
}
@@ -120,7 +120,7 @@ export default {
},
rules: {
name: [
- { required: true, message: '请输入实训名称', trigger: 'change' }
+ { required: true, message: this.$t('rules.inputTrainingName'), trigger: 'change' }
],
minDuration: [
{ required: true, validator: minDurations, trigger: 'blur' }
@@ -129,7 +129,7 @@ export default {
{ required: true, validator: maxDurations, trigger: 'blur' }
],
remarks: [
- { required: true, message: '请输入实训说明', trigger: 'change' }
+ { required: true, message: this.$t('rules.inputTrainingRemark'), trigger: 'change' }
]
}
};
@@ -216,7 +216,7 @@ export default {
this.operateModel.operateType = response.data.operateType;
this.operateModel.remarks = response.data.remarks;
}).catch(() => {
- this.$messageBox('获取骤数据失败');
+ this.$messageBox(this.$t('error.obtainStepDataFailed'));
});
break;
}
@@ -271,9 +271,9 @@ export default {
addTraining(data).then(response => {
this.$emit('refresh', [localStore.get('cityCode') || '', localStore.get('skinCode') || '']);
this.close();
- this.$message.success('添加实训成功!');
+ this.$message.success(this.$t('tip.addTrainingSuccessfully'));
}).catch(() => {
- this.$messageBox('新增实训失败');
+ this.$messageBox(this.$t('tip.addTrainingFailed'));
});
}
});
@@ -295,9 +295,9 @@ export default {
updateTraining(data).then(response => {
this.$emit('refresh', [localStore.get('cityCode') || '', localStore.get('skinCode') || '']);
this.close();
- this.$message.success('更新实训成功!');
+ this.$message.success(this.$t('tip.updateTrainingSuccessfully'));
}).catch(() => {
- this.$messageBox('更新实训失败');
+ this.$messageBox(this.$t('tip.updateTrainingFailed'));
});
}
});
diff --git a/src/views/lesson/trainingrecord/manage/stepmanage/stepinfo/step.vue b/src/views/lesson/trainingrecord/manage/stepmanage/stepinfo/step.vue
index 1266028fe..2100330b7 100644
--- a/src/views/lesson/trainingrecord/manage/stepmanage/stepinfo/step.vue
+++ b/src/views/lesson/trainingrecord/manage/stepmanage/stepinfo/step.vue
@@ -217,14 +217,14 @@ export default {
saveTrainingStepsData(model).then(response => {
this.$refs.form.resetFields();
this.$store.dispatch('training/emitTipFresh');
- this.$message.success('保存步骤数据成功');
+ this.$message.success(this.$t('tip.savedStepDataSuccessfully'));
this.saveDisabled = false;
}).catch(() => {
this.saveDisabled = false;
- this.$messageBox('保存步骤数据失败');
+ this.$messageBox(this.$t('tip.savedStepDataFailed'));
});
} else {
- this.$messageBox('请选择关联的车站');
+ this.$messageBox(this.$t('rules.selectAssociatedStation'));
}
});
}
diff --git a/src/views/map/mapdraft/mapedit/configMap.vue b/src/views/map/mapdraft/mapedit/configMap.vue
index 0f377d721..572aa1034 100644
--- a/src/views/map/mapdraft/mapedit/configMap.vue
+++ b/src/views/map/mapdraft/mapedit/configMap.vue
@@ -148,9 +148,13 @@ export default {
/deep/{
.el-form-item__label{
text-align: left;
+ height: 30px;
+ line-height: 30px;
}
.el-checkbox-group{
width: 100%;
+ display: flex;
+ flex-wrap: wrap;
}
}
}
@@ -167,7 +171,7 @@ export default {
.title{
overflow: hidden;
border-bottom: 1px solid #ccc;
- padding: 9px;
+ padding: 8px 15px;
.fl-title{
float: left;
}
@@ -190,10 +194,24 @@ export default {
.el-checkbox{
margin-right: 10px;
width: 75px;
+ height: 30px;
+ display: flex;
+ align-items: center;
}
.el-form-item{
- margin-bottom: -4px;
+ margin-bottom: 6px;
+ }
+
+ // ckect框选中颜色
+ .content_box .el-checkbox__input.is-checked .el-checkbox__inner,
+ .content_box .el-checkbox__input.is-indeterminate .el-checkbox__inner {
+ background-color: #85bef9;
+ border-color: #85bef9;
+ }
+ // 文字选中颜色
+ .content_box .el-checkbox__input.is-checked+.el-checkbox__label {
+ color: #3c93ec;
}
}
}
diff --git a/src/views/map/mapdraft/mapedit/index.vue b/src/views/map/mapdraft/mapedit/index.vue
index f3a595d89..e75a85f9b 100644
--- a/src/views/map/mapdraft/mapedit/index.vue
+++ b/src/views/map/mapdraft/mapedit/index.vue
@@ -315,9 +315,10 @@ export default {
float: right;
width: 520px;
- /deep/ .el-scrollbar__view {
- width: 510px !important;
- }
+ // /deep/ .el-scrollbar__view {
+ // width: 510px !important;
+ // height: calc(100% - 40px);
+ // }
}
.physical-view {
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/ImageControl.vue b/src/views/map/mapdraft/mapedit/mapoperate/ImageControl.vue
index 048fad5f9..ee3607179 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/ImageControl.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/ImageControl.vue
@@ -12,7 +12,7 @@
-
+
@@ -120,7 +120,7 @@ export default {
draw: {
name: this.$t('map.drawData'),
item: [
- { prop: 'code', label: this.$t('map.code'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.resourceList, change: true, deviceChange: this.deviceChange },
+ { prop: 'code', label: `${this.$t('map.image')}${this.$t('map.code')}`, type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.resourceList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.imageName'), type: 'input' },
{ prop: 'width', label: this.$t('map.imageWidth'), type: 'number', min: 0 },
{ prop: 'height', label: this.$t('map.imageHeight'), type: 'number', min: 0 },
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/config/data.vue b/src/views/map/mapdraft/mapedit/mapoperate/config/data.vue
index 08ee6149c..8db820036 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/config/data.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/config/data.vue
@@ -59,7 +59,7 @@
-
+
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/config/list.vue b/src/views/map/mapdraft/mapedit/mapoperate/config/list.vue
index df1aafbe0..a451becb0 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/config/list.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/config/list.vue
@@ -62,7 +62,7 @@
-
+
@@ -85,7 +85,7 @@
- {{ opts.label }}
+ {{ opts.label }}
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/counter.vue b/src/views/map/mapdraft/mapedit/mapoperate/counter.vue
index 28460adda..caaa61374 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/counter.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/counter.vue
@@ -12,7 +12,7 @@
-
+
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/delayunlock.vue b/src/views/map/mapdraft/mapedit/mapoperate/delayunlock.vue
index d9ca8026a..36052f204 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/delayunlock.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/delayunlock.vue
@@ -12,7 +12,7 @@
-
+
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/index.vue b/src/views/map/mapdraft/mapedit/mapoperate/index.vue
index c269233c5..754a1aafa 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/index.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/index.vue
@@ -74,46 +74,6 @@
@setCenter="setCenter"
/>
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/lcControl.vue b/src/views/map/mapdraft/mapedit/mapoperate/lcControl.vue
index 9ce723829..b586aabf8 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/lcControl.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/lcControl.vue
@@ -12,7 +12,7 @@
-
+
@@ -138,7 +138,7 @@ export default {
draw: {
name: this.$t('map.drawData'),
item: [
- { prop: 'code', label: this.$t('map.code'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.lcList, change: true, deviceChange: this.deviceChange },
+ { prop: 'code', label: `${this.$t('map.lcControl')}${this.$t('map.code')}`, type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.lcList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.statusSignalName'), type: 'input' },
{ prop: 'position', label: this.$t('map.stateSignalsPlotCoordinates'), type: 'coordinate', width: '150px', children: [
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px', disabled: false },
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/limitControl.vue b/src/views/map/mapdraft/mapedit/mapoperate/limitControl.vue
index f9ae9608e..ed47eee2a 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/limitControl.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/limitControl.vue
@@ -12,7 +12,7 @@
-
+
@@ -104,7 +104,7 @@ export default {
draw: {
name: this.$t('map.drawData'),
item: [
- { prop: 'code', label: this.$t('map.code'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.tempSpeedLimitList, change: true, deviceChange: this.deviceChange },
+ { prop: 'code', label: `${this.$t('map.temporaryLimit')}${this.$t('map.code')}`, type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.tempSpeedLimitList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.statusSignalName'), type: 'input' },
{ prop: 'position', label: this.$t('map.stateSignalsPlotCoordinates'), type: 'coordinate', width: '140px', children: [
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px' },
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/line.vue b/src/views/map/mapdraft/mapedit/mapoperate/line.vue
index 68e7f0b5a..3df2e2ea8 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/line.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/line.vue
@@ -10,7 +10,7 @@
{{ $t('map.deleteObj') }}
-
+
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/link.vue b/src/views/map/mapdraft/mapedit/mapoperate/link.vue
index 94a7ace05..ddd902dc3 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/link.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/link.vue
@@ -12,7 +12,7 @@
-
+
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/section.vue b/src/views/map/mapdraft/mapedit/mapoperate/section.vue
index 7b145fe4e..70bf04a71 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/section.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/section.vue
@@ -12,9 +12,9 @@
-
+
-
+
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/signal.vue b/src/views/map/mapdraft/mapedit/mapoperate/signal.vue
index 4d5b750e3..80ccdf43e 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/signal.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/signal.vue
@@ -11,7 +11,7 @@
-
+
@@ -178,6 +178,15 @@ export default {
mergeRules: {
sectionCode: [
{ required: true, message: this.$t('rules.selectPhysicalExtentName'), trigger: 'change' }
+ ],
+ directionType: [
+ { required: true, message: this.$t('map.pleaseSelect') + '' + this.$t('rules.directionType'), trigger: 'change' }
+ ],
+ leftOrRight: [
+ { required: true, message: this.$t('map.pleaseSelect') + '' + this.$t('rules.leftOrRight'), trigger: 'change' }
+ ],
+ positionType: [
+ { required: true, message: this.$t('map.pleaseSelect') + '' + this.$t('rules.positionType'), trigger: 'change' }
]
}
};
@@ -210,7 +219,6 @@ export default {
item: [
{ prop: 'code', label: this.$t('map.signalCodeColon'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.signalList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.signalNameColon'), type: 'input' },
- { prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList },
{ prop: 'nameShow', label: this.$t('map.signalDisplayName'), type: 'checkbox' },
{ prop: 'lampPostType', label: this.$t('map.lampPostType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalLampPostTypeList },
{ prop: 'lampPositionType', label: this.$t('map.lampPositionType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalLampPositionTypeList },
@@ -232,6 +240,7 @@ export default {
map: {
name: this.$t('map.mapData'),
item: [
+ { prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList },
{ prop: 'uniqueName', label: this.$t('map.signalUniqueName'), type: 'input' },
{ prop: 'useType', label: this.$t('map.signalUseType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalUseTypeList },
{ prop: 'potLampType', label: this.$t('map.potLampType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalPotLampTypeList },
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/station.vue b/src/views/map/mapdraft/mapedit/mapoperate/station.vue
index 2fcbbfedc..d065f8470 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/station.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/station.vue
@@ -12,7 +12,7 @@
-
+
@@ -114,7 +114,6 @@ export default {
item: [
{ prop: 'code', label: this.$t('map.stationCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.stationName'), type: 'input' },
- { prop: 'concentrateStationCode', label: this.$t('map.concentrateStationCode'), type: 'select', optionLabel: 'code&&name', optionValue: 'code', options: this.stationList },
{ prop: 'visible', label: this.$t('map.stationVisible'), type: 'checkbox' },
{ prop: 'nameFont', label: this.$t('map.stationNameFont'), type: 'font', placeholder: this.$t('tip.stationFont') },
{ prop: 'nameFontColor', label: this.$t('map.stationNameFontColor'), type: 'color' },
@@ -130,6 +129,7 @@ export default {
map: {
name: this.$t('map.mapData'),
item: [
+ { prop: 'concentrateStationCode', label: this.$t('map.concentrateStationCode'), type: 'select', optionLabel: 'code&&name', optionValue: 'code', options: this.stationList },
{ prop: 'zcCode', label: this.$t('map.zcCode'), type: 'select', optionLabel: 'code&&name', optionValue: 'code', options: this.zcList },
{ prop: 'centralized', label: this.$t('map.centralized'), type: 'checkbox' },
{ prop: 'runPlanName', label: this.$t('map.stationRunPlanName'), type: 'input' }
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/stationcontrol.vue b/src/views/map/mapdraft/mapedit/mapoperate/stationcontrol.vue
index 474face21..e99479825 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/stationcontrol.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/stationcontrol.vue
@@ -12,7 +12,7 @@
-
+
@@ -105,7 +105,6 @@ export default {
item: [
{ prop: 'code', label: this.$t('map.stationControlCode'), type: 'select', optionLabel: 'code', optionValue: 'code', options: this.stationControlList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.stationControlName'), type: 'input' },
- { prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList },
{ prop: 'zokContent', label: this.$t('map.zokContent'), type: 'input' },
{ prop: 'zakContent', label: this.$t('map.zakContent'), type: 'input' },
{ prop: 'jjzkContent', label: this.$t('map.jjzkContent'), type: 'input' },
@@ -117,6 +116,7 @@ export default {
map: {
name: this.$t('map.mapData'),
item: [
+ { prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList },
{ prop: 'zcCode', label: this.$t('map.zcCode'), type: 'select', optionLabel: 'code&&name', optionValue: 'code', options: this.zcList }
]
}
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/stationstand.vue b/src/views/map/mapdraft/mapedit/mapoperate/stationstand.vue
index 2c4eb82c5..460f8019b 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/stationstand.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/stationstand.vue
@@ -12,7 +12,7 @@
-
+
@@ -135,7 +135,6 @@ export default {
item: [
{ prop: 'code', label: this.$t('map.relStandCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationStandList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.stationstandNameColon'), type: 'input', disabled: true },
- { prop: 'deviceStationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.stationList },
{ prop: 'direction', label: this.$t('map.stationstandTopBottom'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.RunDirectionTypeList },
{ prop: 'visible', label: this.$t('map.stationVisible'), type: 'checkbox' },
{ prop: 'nameShow', label: this.$t('map.stationstandShowName'), type: 'checkbox' },
@@ -150,6 +149,7 @@ export default {
map: {
name: this.$t('map.mapData'),
item: [
+ { prop: 'deviceStationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.stationList },
{ prop: 'stationCode', label: this.$t('map.belongsStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList }
]
}
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/switch.vue b/src/views/map/mapdraft/mapedit/mapoperate/switch.vue
index 52f1ef399..e786d61aa 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/switch.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/switch.vue
@@ -12,7 +12,7 @@
-
+
@@ -110,7 +110,6 @@ export default {
item: [
{ prop: 'code', label: this.$t('map.switchCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.switchList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.switchName'), type: 'input' },
- { prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList },
{ prop: 'nameShow', label: this.$t('map.switchShowName'), type: 'checkbox' },
{ prop: 'namePoint.x', firstLevel: 'namePoint', secondLevel: 'x', label: this.$t('map.switchPositionX'), type: 'number', placeholder: 'px' },
{ prop: 'namePoint.y', firstLevel: 'namePoint', secondLevel: 'y', label: this.$t('map.switchPositionY'), type: 'number', placeholder: 'px' },
@@ -122,6 +121,7 @@ export default {
map: {
name: this.$t('map.mapData'),
item: [
+ { prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList },
{ prop: 'turnTime', label: this.$t('map.turnTime'), type: 'number', min: 0, max: 1000, placeholder: 's' },
{ prop: 'sectionACode', label: this.$t('map.sectionACode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.sectionList },
{ prop: 'sectionBCode', label: this.$t('map.sectionBCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.sectionList },
@@ -428,4 +428,26 @@ export default {
.el-transfer {
text-align: left;
}
+
+ /deep/ {
+ .card .el-transfer-panel__filter{
+ margin: 5px 15px;
+ }
+ .card .el-transfer-panel__list.is-filterable{
+ height: 290px;
+ }
+
+ .card .el-transfer-panel__body{
+ height: 328px;
+ }
+ .card .el-transfer__buttons{
+ padding: 0 16px;
+ }
+
+ .card .el-transfer{
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+ }
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/text.vue b/src/views/map/mapdraft/mapedit/mapoperate/text.vue
index b3cb71c26..4095a6318 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/text.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/text.vue
@@ -12,7 +12,7 @@
-
+
@@ -106,6 +106,12 @@ export default {
],
content: [
{ required: true, message: this.$t('rules.pleaseEnterContent'), trigger: 'blur' }
+ ],
+ 'position.x': [
+ { required: true, message: this.$t('rules.pleaseEnterXCoordinate'), trigger: 'blur' }
+ ],
+ 'position.y': [
+ { required: true, message: this.$t('rules.pleaseEnterYCoordinate'), trigger: 'blur' }
]
}
};
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/trainwindow.vue b/src/views/map/mapdraft/mapedit/mapoperate/trainwindow.vue
index d81c54548..cb527afb1 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/trainwindow.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/trainwindow.vue
@@ -12,14 +12,8 @@
-
+
-
-
- {{ $t('map.deleteTrainWindow') }}
- {{ $t('map.createTrainWindow') }}
-
-
+
+
+
+ {{ $t('map.deleteTrainWindow') }}
+
+
+
+
@@ -257,42 +259,50 @@ export default {
return model;
},
removeTrainWindow() {
- const remove = [];
- if (this.trainWindowList && this.trainWindowList.length) {
- this.trainWindowList.forEach(elem => {
- remove.push({
- _type: 'TrainWindow',
- code: elem.code
+ this.$confirm(this.$t('tip.confirmDeletion'), this.$t('tip.hint'), {
+ confirmButtonText: this.$t('tip.confirm'),
+ cancelButtonText: this.$t('tip.cancel'),
+ type: 'warning'
+ }).then(() => {
+ const remove = [];
+ if (this.trainWindowList && this.trainWindowList.length) {
+ this.trainWindowList.forEach(elem => {
+ remove.push({
+ _type: 'TrainWindow',
+ code: elem.code
+ });
});
- });
- this.$emit('delMapModel', remove);
- }
+ this.$emit('delMapModel', remove);
+ }
+ }).catch(() => {
+ this.$message.info(this.$t('tip.cancelledDelete'));
+ });
},
- createTrainWindow() {
- const models = [];
- const collection = this.sectionList;
+ // createTrainWindow() {
+ // const models = [];
+ // const collection = this.sectionList;
- this.removeTrainWindow();
- if (collection && collection.length) {
- collection.forEach(elem => {
- if (elem.type !== '03' && !elem.isSwitchSection && (
- elem.logicSectionNum.length == 0 ||
- elem.logicSectionNum.length == 1 && elem.logicSectionNum[0] == 0)) {
- const triangle = new JTriangle(elem.points[0], elem.points[elem.points.length - 1]);
- models.push(this.createModel({
- triangle: triangle,
- section: elem
- }));
- } else if (elem.type === '03' && elem.isSwitchSection) {
- models.push(this.createModel({
- section: elem
- }));
- }
- });
- }
+ // this.removeTrainWindow();
+ // if (collection && collection.length) {
+ // collection.forEach(elem => {
+ // if (elem.type !== '03' && !elem.isSwitchSection && (
+ // elem.logicSectionNum.length == 0 ||
+ // elem.logicSectionNum.length == 1 && elem.logicSectionNum[0] == 0)) {
+ // const triangle = new JTriangle(elem.points[0], elem.points[elem.points.length - 1]);
+ // models.push(this.createModel({
+ // triangle: triangle,
+ // section: elem
+ // }));
+ // } else if (elem.type === '03' && elem.isSwitchSection) {
+ // models.push(this.createModel({
+ // section: elem
+ // }));
+ // }
+ // });
+ // }
- this.$emit('addOrUpdateMapModel', models);
- },
+ // this.$emit('addOrUpdateMapModel', models);
+ // },
createTrainWindowByCollection() {
const models = [];
let remove = [];
@@ -377,4 +387,26 @@ export default {
background: #f0f0f0;
overflow: hidden;
}
+
+ /deep/ {
+ .card .el-transfer-panel__filter{
+ margin: 5px 15px;
+ }
+ .card .el-transfer-panel__list.is-filterable{
+ height: 290px;
+ }
+
+ .card .el-transfer-panel__body{
+ height: 328px;
+ }
+ .card .el-transfer__buttons{
+ padding: 0 16px;
+ }
+
+ .card .el-transfer{
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+ }
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/zcControl.vue b/src/views/map/mapdraft/mapedit/mapoperate/zcControl.vue
index e83a5d499..972222fd3 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/zcControl.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/zcControl.vue
@@ -12,7 +12,7 @@
-
+
@@ -109,7 +109,7 @@ export default {
draw: {
name: this.$t('map.drawData'),
item: [
- { prop: 'code', label: this.$t('map.code'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.zcList, change: true, deviceChange: this.deviceChange },
+ { prop: 'code', label: `${this.$t('map.zcZoneControl')}${this.$t('map.code')}`, type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.zcList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.statusSignalName'), type: 'input' },
{ prop: 'visible', label: this.$t('map.showZc'), type: 'checkboxx' },
{ prop: 'position', label: this.$t('map.stateSignalsPlotCoordinates'), type: 'coordinate', width: '140px', children: [
diff --git a/src/views/map/mapdraft/mapmanage/create.vue b/src/views/map/mapdraft/mapmanage/create.vue
index 382c79878..db14495fe 100644
--- a/src/views/map/mapdraft/mapmanage/create.vue
+++ b/src/views/map/mapdraft/mapmanage/create.vue
@@ -18,9 +18,6 @@
:rules="newRules"
@submit.native.prevent
>
-
-
-
+
+
+
@@ -42,7 +42,7 @@
label-width="140px"
size="mini"
>
-
+
-
+
-
+
-
+
+
@@ -64,7 +65,7 @@
+
+
+
+
diff --git a/src/views/scriptManage/scriptRecord/getAction.vue b/src/views/scriptManage/scriptRecord/getAction.vue
index c35a0d558..41b4cb5f6 100644
--- a/src/views/scriptManage/scriptRecord/getAction.vue
+++ b/src/views/scriptManage/scriptRecord/getAction.vue
@@ -4,41 +4,53 @@
剧本编制
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
- {{actionInfo.memberName}}
- 对
- {{actionInfo.targetName}}
- :
- {{actionInfo.reply}}
-
-
- {{actionInfo.memberName}}
- 执行指令:
- {{actionInfo.command}}
-
-
-
- 修改
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{actionInfo.memberName}}
+ 对
+ {{actionInfo.targetName}}
+ :
+ {{actionInfo.reply}}
+
+
+ {{actionInfo.memberName}}
+ 执行指令:
+ {{actionInfo.command}}
+
+
+
+ 修改
+
+
+
+
+
+
+
+
@@ -46,7 +58,8 @@