diff --git a/src/i18n/langs/en/index.js b/src/i18n/langs/en/index.js index 57de6b416..c6cb99f28 100644 --- a/src/i18n/langs/en/index.js +++ b/src/i18n/langs/en/index.js @@ -1,4 +1,5 @@ import enLocale from 'element-ui/lib/locale/lang/en'; +import map from './map'; import global from './global'; import router from './router'; import lesson from './lesson'; @@ -7,6 +8,7 @@ import rules from './rules'; export default { ...enLocale, + map, global, router, lesson, diff --git a/src/i18n/langs/en/map.js b/src/i18n/langs/en/map.js new file mode 100644 index 000000000..a4a9d6afc --- /dev/null +++ b/src/i18n/langs/en/map.js @@ -0,0 +1,3 @@ +export default { + content: 'dsfjalfjdslfjsdlf' +}; diff --git a/src/i18n/langs/zh/index.js b/src/i18n/langs/zh/index.js index 0bb222438..8e88ffa56 100644 --- a/src/i18n/langs/zh/index.js +++ b/src/i18n/langs/zh/index.js @@ -1,4 +1,5 @@ import cnLocale from 'element-ui/lib/locale/lang/zh-CN'; +import map from './map'; import global from './global'; import router from './router'; import lesson from './lesson'; @@ -7,6 +8,7 @@ import rules from './rules'; export default { ...cnLocale, + map, global, router, lesson, diff --git a/src/i18n/langs/zh/map.js b/src/i18n/langs/zh/map.js new file mode 100644 index 000000000..9c3356687 --- /dev/null +++ b/src/i18n/langs/zh/map.js @@ -0,0 +1,168 @@ +export default { + pleaseSelect: '请选择', + sketchMap: '草稿地图列表', + newConstruction: '新建', + importMap: '导入地图', + createNewMap: '新建地图', + normalCreate: '正常创建', + saveMapAs: '地图另存为', + create: '创建', + dataVerification: '数据校验', + logicalView: '逻辑视图', + physicalView: '物理视图', + mixedView: '混合视图', + + link: 'link', + section: '区段', + switch: '道岔', + signal: '信号机', + zcZoneControl: 'zc区域控制', + temporaryLimit: '全线临时限速', + lcControl: 'Lc控制', + image: '图片', + station: '车站', + controlMode: '控制模式', + platform: '站台', + counter: '计数器', + delayUnlock: '延迟解锁', + train: '列车', + trainWindow: '车次窗', + line: '线条', + text: '文字', + + mapName: '地图名称:', + skinName: '皮肤风格:', + selectCity: '所属城市:', + offsetXColon: 'X偏移:', + offsetYColon: 'Y偏移:', + scalingColon: '缩放比例:', + operationUnusual: '操作异常:', + offsetX: 'X偏移', + offsetY: 'Y偏移', + scaling: '缩放比例', + statusSignalName: '状态信号名称:', + stateSignalsPlotCoordinates: '状态信号画图坐标:', + + publishMapCreation: '从发布地图创建', + confirm: '确 定', + cancel: '取 消', + + cancelledDelete: '已取消删除', + + pleaseEnterMapName: '请输入地图名称', + pleaseChooseSkinStyle: '请选择皮肤风格', + pleaseSelectMapSource: '请选择地图来源', + pleaseSelectAssociatedCity: '请选择关联城市', + pleaseSelectAssociatedSkin: '请选择关联皮肤', + pleaseEnteMapLinkWidth: '请输入地图Link宽度', + pleaseEnterMapSectionWidth: '请输入地图区段宽度', + + failedLoadListPublishedMaps: '加载已发布地图列表失败', + creatingSuccessful: '创建成功!', + mapUpdateSuccessful: '更新地图成功!', + createFailure: '创建失败', + importSuccessful: '导入成功!', + importFailure: '导入失败', + updateSuccessfully: '更新成功', + updateFailed: '更新失败', + failedLoadCityList: '加载城市列表失败', + successfullyDelete: '删除成功', + failDelete: '删除失败', + dataValidationFailed: '发布失败,数据校验不通过', + releaseSuccess: '发布成功!', + abnormalOperation: '操作异常', + datQuestion: '有问题数据', + dataList: '数据列表', + saveFailed: '另存失败', + + mapEditor: '地图编辑', + mapPublished: '地图发布为', + publishingAssociatedCity: '发布关联城市:', + publishMapName: '发布地图名称:', + + updateObj: '修改', + updateObjAxis: '更新坐标', + saveAs: '另存为', + publish: '发布', + deleteObj: '删除', + editRoute: '编辑进路', + editRouting: '编辑交路', + editAutoRouting: '编辑自动信号', + setSwitch: '联动道岔', + pathUnit: '路径单元', + jlmap3d: '三维化编辑', + + confirmDeletion: '是否确认删除?', + hint: '提示', + + automaticSignalList: '自动信号列表', + automaticSignalCode: '自动信号编码', + signalCodeName: '信号机名称', + signalCode: '信号机code', + sectionData: '区段数据', + preview: '预览', + operation: '操作', + compile: '编辑', + delete: '删除', + sectionName: '区段名称', + sectionList: '区段列表', + automaticSignal: '自动信号', + + signalID: '信号机ID:', + activate: '激活', + segmentData: '进路自动触发区段数据:', + save: '保存', + updata: '更新', + pleaseSelectSignal: '请选择信号机', + triggerSegmentData: '请选择进路自动触发区段数据', + automaticSignalSuccessful: '创建自动信号成功!', + failedCreateSignal: '创建自动信号失败', + automaticSignalUpdateSucceeded: '更新自动信号成功!', + automaticSignalUpdateFailed: '更新自动信号失败', + + stationName: '车站名称:', + + property: '属性', + counterCoding: '计数器编码:', + counterName: '计数器名称:', + belongsStation: '所属车站:', + counterType: '计数器类型:', + countMax: '计数器最大值:', + pointX: '坐标 x:', + pointY: '坐标 y:', + + code: '编码:', + imageName: '图片名称:', + imageWidth: '图片宽度:', + imageHeight: '图片高度:', + imagePoint: '图片坐标:', + imageZindex: '图片层级:', + imageSelect: '图片选择:', + rotateAngle: '旋转角度:', + + areaSolution: '区故解', + alwaysSolution: '总人解', + + pleaseSelectMap: '请选择地图', + selectCounterType: '请选择计数器类型', + selectStation: '请选择车站', + pleaseSelectDevice: '请重新选择设备', + pleaseSelectCountName: '请输入计数器名称', + pleaseCounterValue: '请输入计数器最大值', + pleaseEnterXCoordinate: '请输入x坐标', + pleaseEnterYCoordinate: '请输入y坐标', + pleaseEnterDelayTime: '请输入延时时间', + pleaseEnterFontColor: '请输入字体颜色', + pleaseEnterFontFormat: '请输入字体格式', + pleaseEnterImageWidth: '请输入图片宽度', + pleaseEnterImageHeight: '请输入图片高度', + + delayUnlockingCode: '延时解锁编码:', + delayTime: '延时时间:', + font: '字体:', + color: '颜色:', + + upside: '上段', + hypomere: '下段' + +}; diff --git a/src/jmap/map.js b/src/jmap/map.js index 279952985..61d596a64 100644 --- a/src/jmap/map.js +++ b/src/jmap/map.js @@ -7,7 +7,7 @@ import MouseController from './mouseController'; import deviceState from './constant/deviceState'; import deviceType from './constant/deviceType'; import { selectSkinStyle } from './config/deviceStyle'; -import { parser, deviceFactory, createBoundingRect, calculateDCenter } from './utils/parser'; +import { deviceFactory, createBoundingRect, calculateDCenter } from './utils/parser'; const renderer = 'canvas'; const devicePixelRatio = 1; @@ -76,7 +76,7 @@ class Jlmap { return defaultStateDict; } - setMap(map) { + setMap(map, mapDevice) { // 保存皮肤类型 if (map.skinVO) { this.skinStyle = map.skinVO.code; @@ -85,12 +85,12 @@ class Jlmap { // 保存原始数据 this.data = map; + // 解析地图数据 + this.mapDevice = mapDevice; + // 加载对应皮肤 this.style = this.loadStyle(this.skinStyle); - // 解析地图数据 - this.mapDevice = parser(map, this); - // 数据加载完成 回调 if (this.methods.dataLoaded instanceof Function) { this.methods.dataLoaded(this.mapDevice); } diff --git a/src/jmap/theme/beijing_01/menusPlan/components/dataTable.vue b/src/jmap/theme/beijing_01/menusPlan/components/dataTable.vue index 6d0ad3146..fa98a48e7 100644 --- a/src/jmap/theme/beijing_01/menusPlan/components/dataTable.vue +++ b/src/jmap/theme/beijing_01/menusPlan/components/dataTable.vue @@ -1,70 +1,75 @@