From de5ca5225a98c68406d8642d31ec3232f8e2e930 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Fri, 9 Aug 2019 15:40:33 +0800
Subject: [PATCH 01/27] =?UTF-8?q?desc:=20=E9=85=8D=E7=BD=AE=E5=9C=B0?=
=?UTF-8?q?=E5=9B=BE=E5=9B=BD=E9=99=85=E5=8C=96=E8=AF=AD=E8=A8=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/i18n/langs/en/index.js | 4 +-
src/i18n/langs/en/map.js | 3 +
src/i18n/langs/zh/index.js | 4 +-
src/i18n/langs/zh/map.js | 168 ++++++++++++++++++
src/scripts/ConstConfig.js | 18 +-
src/views/demonstration/home.vue | 2 +-
src/views/map/mapdraft/index.vue | 3 -
.../mapedit/automaticoperate/detail.vue | 30 ++--
.../mapedit/automaticoperate/index.vue | 8 +-
.../mapedit/automaticoperate/route.vue | 24 +--
.../mapedit/mapoperate/ImageControl.vue | 60 +++----
.../mapedit/mapoperate/config/list.vue | 2 +-
.../mapdraft/mapedit/mapoperate/counter.vue | 62 +++----
.../mapedit/mapoperate/delayunlock.vue | 50 +++---
.../map/mapdraft/mapedit/mapoperate/index.vue | 56 +++---
.../mapdraft/mapedit/mapoperate/lcControl.vue | 18 +-
src/views/map/mapdraft/mapmanage/create.vue | 54 +++---
src/views/map/mapdraft/mapmanage/edit.vue | 48 ++---
src/views/map/mapdraft/mapmanage/maplist.vue | 6 +-
.../map/mapdraft/mapmanage/operateMenu.vue | 32 ++--
src/views/map/mapdraft/mapmanage/publish.vue | 20 +--
src/views/map/mapdraft/mapmanage/saveAs.vue | 11 +-
22 files changed, 422 insertions(+), 261 deletions(-)
create mode 100644 src/i18n/langs/en/map.js
create mode 100644 src/i18n/langs/zh/map.js
diff --git a/src/i18n/langs/en/index.js b/src/i18n/langs/en/index.js
index 7bb592e59..bb809fc45 100644
--- a/src/i18n/langs/en/index.js
+++ b/src/i18n/langs/en/index.js
@@ -1,5 +1,7 @@
import enLocale from 'element-ui/lib/locale/lang/en';
+import map from './map';
export default {
- ...enLocale
+ ...enLocale,
+ map
};
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 958101167..c093d1a42 100644
--- a/src/i18n/langs/zh/index.js
+++ b/src/i18n/langs/zh/index.js
@@ -1,5 +1,7 @@
import cnLocale from 'element-ui/lib/locale/lang/zh-CN';
+import map from './map';
export default {
- ...cnLocale
+ ...cnLocale,
+ map
};
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/scripts/ConstConfig.js b/src/scripts/ConstConfig.js
index 7bc549125..24c3b19b3 100644
--- a/src/scripts/ConstConfig.js
+++ b/src/scripts/ConstConfig.js
@@ -73,13 +73,13 @@ export default {
{ label: 'SHD三联段线', value: '18' },
{ label: 'SHD四联段线', value: '19' }
],
- roleType:[
- {label:'管理员',value:'Admin'},
- {label:'教员',value:'Instructor'},
- {label:'行调',value:'Dispatcher'},
- {label:'车站',value:'Attendant'},
- {label:'观众',value:'Audience'},
- {label:'司机',value:'Driver'},
+ roleType: [
+ {label: '管理员', value: 'Admin'},
+ {label: '教员', value: 'Instructor'},
+ {label: '行调', value: 'Dispatcher'},
+ {label: '车站', value: 'Attendant'},
+ {label: '观众', value: 'Audience'},
+ {label: '司机', value: 'Driver'}
],
SimulationType: [
@@ -88,14 +88,14 @@ export default {
{ label: '综合演练', value: 'Joint'},
{ label: '大屏', value: 'BigScreen'},
{ label: '琏计划', value: 'RunPlan'},
- { label: '任务录制', value: 'ScriptRecord'},
+ { label: '任务录制', value: 'ScriptRecord'}
],
skinCode: [
{ label: '福州一号线', value: '02'},
{ label: '北京一号线', value: '03'},
{ label: '成都三号线', value: '04'},
- { label: '北京八通线', value: '05'},
+ { label: '北京八通线', value: '05'}
]
}
diff --git a/src/views/demonstration/home.vue b/src/views/demonstration/home.vue
index 95adf3e3c..9cbe4adac 100644
--- a/src/views/demonstration/home.vue
+++ b/src/views/demonstration/home.vue
@@ -15,7 +15,7 @@
城市轨道交通仿真系统以各地铁信号系统为基础,针对培训部分进行改造,旨在构建一套用于行车演示的专业仿真模拟系统。
该系统具有高灵活性以便于将来的扩展升级,同时,仿真系统具备正常操作及故障操作两种模式,除了正常的功能操作以外还可以进行设备的故障模拟。
- {{ $t('hello') }}
+ {{ $t('lesson.content') }}
diff --git a/src/views/map/mapdraft/index.vue b/src/views/map/mapdraft/index.vue
index b70ad684b..00745cb9b 100644
--- a/src/views/map/mapdraft/index.vue
+++ b/src/views/map/mapdraft/index.vue
@@ -7,7 +7,6 @@
-
-
\ No newline at end of file
+
diff --git a/src/jmap/theme/beijing_01/menusPlan/modifyingPlan.vue b/src/jmap/theme/beijing_01/menusPlan/modifyingPlan.vue
index c9b645b7c..1d2b31102 100644
--- a/src/jmap/theme/beijing_01/menusPlan/modifyingPlan.vue
+++ b/src/jmap/theme/beijing_01/menusPlan/modifyingPlan.vue
@@ -1,152 +1,152 @@
-
-
- 列车线路
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 加任务
-
-
- 替 换
-
-
- 删任务
-
-
-
-
- 进库
- 出库
-
-
-
-
-
-
-
-
-
-
-
-
-
- 改车次号
-
-
-
- 线路开始时间
-
-
-
- 线路结束时间
-
-
-
-
-
- 线路详细信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 影响后续任务
+
+
+ 列车线路
+
+
+
+
+
+
+
+
+
+
+
+
+ 加任务
- 确 定
- 取 消
+ 替 换
-
+
+ 删任务
+
+
+
+
+ 进库
+ 出库
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 改车次号
+
+
+
+ 线路开始时间
+
+
+
+ 线路结束时间
+
+
+
+
+
+ 线路详细信息
+
+
+
+
+
+
+
+
+
+
+
+ 影响后续任务
+
+
+ 确 定
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/beijing_01/planSchedule/schedule.vue b/src/jmap/theme/beijing_01/planSchedule/schedule.vue
index 4c80e8471..3309622f6 100644
--- a/src/jmap/theme/beijing_01/planSchedule/schedule.vue
+++ b/src/jmap/theme/beijing_01/planSchedule/schedule.vue
@@ -223,14 +223,14 @@ export default {
'$store.state.runPlan.planSizeCount': function () {
this.reSize({ width: this.$store.state.runPlan.width, height: this.$store.state.runPlan.height });
},
- '$store.state.runPlan.select.serviceNumber': function (val) {
+ '$store.state.runPlan.selected.serviceNumber': function (val) {
const index = this.serviceNumberConfig.data.findIndex(elem => {
return elem.serviceNumber == val;
});
this.$refs.serviceTable.setCurrentRow(this.serviceNumberConfig.data[index]);
},
- '$store.state.runPlan.select.tripNumber': function (val) {
+ '$store.state.runPlan.selected.tripNumber': function (val) {
const index = this.tripNumberConfig.data.findIndex(elem => {
return elem.tripNumber == val;
});
diff --git a/src/jmap/theme/beijing_01/planSchedule/statusBar.vue b/src/jmap/theme/beijing_01/planSchedule/statusBar.vue
index f85d6c6ce..4c1418fb3 100644
--- a/src/jmap/theme/beijing_01/planSchedule/statusBar.vue
+++ b/src/jmap/theme/beijing_01/planSchedule/statusBar.vue
@@ -1,95 +1,102 @@
-
+
-
\ No newline at end of file
+
diff --git a/src/jmap/theme/chengdu_03/menusPlan/components/dataTable.vue b/src/jmap/theme/chengdu_03/menusPlan/components/dataTable.vue
index 6d0ad3146..7b8f1756b 100644
--- a/src/jmap/theme/chengdu_03/menusPlan/components/dataTable.vue
+++ b/src/jmap/theme/chengdu_03/menusPlan/components/dataTable.vue
@@ -1,70 +1,75 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/src/jmap/theme/chengdu_03/planSchedule/schedule.vue b/src/jmap/theme/chengdu_03/planSchedule/schedule.vue
index 443a57bff..c17ca3994 100644
--- a/src/jmap/theme/chengdu_03/planSchedule/schedule.vue
+++ b/src/jmap/theme/chengdu_03/planSchedule/schedule.vue
@@ -208,14 +208,14 @@
'$store.state.runPlan.planSizeCount': function () {
this.reSize({ width: this.$store.state.runPlan.width, height: this.$store.state.runPlan.height });
},
- '$store.state.runPlan.select.serviceNumber': function (val) {
+ '$store.state.runPlan.selected.serviceNumber': function (val) {
let index = this.serviceNumberConfig.data.findIndex(elem => {
return elem.serviceNumber == val;
})
this.$refs.serviceTable.setCurrentRow(this.serviceNumberConfig.data[index]);
},
- '$store.state.runPlan.select.tripNumber': function (val) {
+ '$store.state.runPlan.selected.tripNumber': function (val) {
let index = this.tripNumberConfig.data.findIndex(elem => {
return elem.tripNumber == val;
})
diff --git a/src/jmap/theme/chengdu_03/planSchedule/statusBar.vue b/src/jmap/theme/chengdu_03/planSchedule/statusBar.vue
index f85d6c6ce..170553e15 100644
--- a/src/jmap/theme/chengdu_03/planSchedule/statusBar.vue
+++ b/src/jmap/theme/chengdu_03/planSchedule/statusBar.vue
@@ -54,7 +54,7 @@
}
},
watch: {
- '$store.state.runPlan.select': function (select) {
+ '$store.state.runPlan.selected': function (select) {
this.stationListConfig.data = [];
let serviceObj = this.$store.state.runPlan.editData[select.serviceNumber];
if (serviceObj) {
diff --git a/src/jmap/theme/chengdu_04/menusPlan/components/dataTable.vue b/src/jmap/theme/chengdu_04/menusPlan/components/dataTable.vue
index 6d0ad3146..ef76ee150 100644
--- a/src/jmap/theme/chengdu_04/menusPlan/components/dataTable.vue
+++ b/src/jmap/theme/chengdu_04/menusPlan/components/dataTable.vue
@@ -1,70 +1,75 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/src/jmap/theme/chengdu_04/planSchedule/schedule.vue b/src/jmap/theme/chengdu_04/planSchedule/schedule.vue
index 4c80e8471..3309622f6 100644
--- a/src/jmap/theme/chengdu_04/planSchedule/schedule.vue
+++ b/src/jmap/theme/chengdu_04/planSchedule/schedule.vue
@@ -223,14 +223,14 @@ export default {
'$store.state.runPlan.planSizeCount': function () {
this.reSize({ width: this.$store.state.runPlan.width, height: this.$store.state.runPlan.height });
},
- '$store.state.runPlan.select.serviceNumber': function (val) {
+ '$store.state.runPlan.selected.serviceNumber': function (val) {
const index = this.serviceNumberConfig.data.findIndex(elem => {
return elem.serviceNumber == val;
});
this.$refs.serviceTable.setCurrentRow(this.serviceNumberConfig.data[index]);
},
- '$store.state.runPlan.select.tripNumber': function (val) {
+ '$store.state.runPlan.selected.tripNumber': function (val) {
const index = this.tripNumberConfig.data.findIndex(elem => {
return elem.tripNumber == val;
});
diff --git a/src/jmap/theme/chengdu_04/planSchedule/statusBar.vue b/src/jmap/theme/chengdu_04/planSchedule/statusBar.vue
index f85d6c6ce..170553e15 100644
--- a/src/jmap/theme/chengdu_04/planSchedule/statusBar.vue
+++ b/src/jmap/theme/chengdu_04/planSchedule/statusBar.vue
@@ -54,7 +54,7 @@
}
},
watch: {
- '$store.state.runPlan.select': function (select) {
+ '$store.state.runPlan.selected': function (select) {
this.stationListConfig.data = [];
let serviceObj = this.$store.state.runPlan.editData[select.serviceNumber];
if (serviceObj) {
diff --git a/src/jmap/theme/fuzhou_01/menus/dialog/speedCmdControl.vue b/src/jmap/theme/fuzhou_01/menus/dialog/speedCmdControl.vue
index c3f21a37b..ad2316dbe 100644
--- a/src/jmap/theme/fuzhou_01/menus/dialog/speedCmdControl.vue
+++ b/src/jmap/theme/fuzhou_01/menus/dialog/speedCmdControl.vue
@@ -1,553 +1,583 @@
-
-
-
- 命令信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{message}}
-
-
- 下达({{timeCountCommand}})
-
-
- 确认1
-
-
-
- 确认2({{timeCountConfirm}})
-
-
- 中止
-
-
- 关闭
-
-
-
-
-
+
+
+
+ 命令信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ message }}
+
+
+ 下达({{ timeCountCommand }})
+
+
+ 确认1
+
+
+
+ 确认2({{ timeCountConfirm }})
+
+
+ 中止
+
+
+ 关闭
+
+
+
+
+
\ No newline at end of file
+ this.writeRecord({ order: ++this.order, date: now(), context: '点击终止', result: '' });
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ this.setButtonEnable({ step: 0 });
+ this.editRecord({ order: this.order, date: now(), context: '点击终止', result: '执行成功' });
+ } else {
+ this.editRecord({ order: this.order, date: now(), context: '点击终止', result: '执行失败' });
+ }
+ }).catch(() => {
+ this.editRecord({ order: this.order, date: now(), context: '点击终止', result: '执行异常' });
+ });
+ },
+ close() {
+ const operate = {
+ type: this.type,
+ operation: OperationEvent.Command.close.menu.operation
+ };
+ this.writeRecord({ order: ++this.order, date: now(), context: '点击关闭', result: '' });
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.doClose();
+ }
+ }).catch(() => {
+ this.doClose();
+ });
+ },
+ getOperate(operate) {
+ if (operate.step) {
+ this.setButtonEnable({ step: operate.step });
+ }
+ },
+ setButtonEnable(param) {
+ this.cmdDisabled = [true, true, true];
+ if (param && param.step >= 0) {
+ this.cmdDisabled[param.step] = false;
+ }
+ },
+ setMessage(message) {
+ this.message = message;
+ },
+ writeRecord(param) {
+ this.tableData.push(param);
+ },
+ editRecord(param) {
+ this.tableData.forEach(elem => {
+ if (elem.order == param.order) {
+ for (var prop in param) {
+ elem[prop] = param[prop];
+ }
+ }
+ });
+ }
+ }
+};
+
diff --git a/src/jmap/theme/fuzhou_01/menusPlan/chooseTemplatePlan.vue b/src/jmap/theme/fuzhou_01/menusPlan/chooseTemplatePlan.vue
index 775a4dbec..c95d82f50 100644
--- a/src/jmap/theme/fuzhou_01/menusPlan/chooseTemplatePlan.vue
+++ b/src/jmap/theme/fuzhou_01/menusPlan/chooseTemplatePlan.vue
@@ -1,108 +1,114 @@
-
-
-
-
- 选 择
- 取 消
-
-
+
+
+
+ 选 择
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/menusPlan/components/dataTable.vue b/src/jmap/theme/fuzhou_01/menusPlan/components/dataTable.vue
index 6d0ad3146..7b8f1756b 100644
--- a/src/jmap/theme/fuzhou_01/menusPlan/components/dataTable.vue
+++ b/src/jmap/theme/fuzhou_01/menusPlan/components/dataTable.vue
@@ -1,70 +1,75 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/menusPlan/createTodayPlan.vue b/src/jmap/theme/fuzhou_01/menusPlan/createTodayPlan.vue
index a877dc5b9..fc013bddf 100644
--- a/src/jmap/theme/fuzhou_01/menusPlan/createTodayPlan.vue
+++ b/src/jmap/theme/fuzhou_01/menusPlan/createTodayPlan.vue
@@ -1,142 +1,147 @@
-
-
-
-
- 加 载
- 取 消
-
-
+
+
+
+ 加 载
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/planSchedule/index.vue b/src/jmap/theme/fuzhou_01/planSchedule/index.vue
index 667fd2ebc..f66c42dd2 100644
--- a/src/jmap/theme/fuzhou_01/planSchedule/index.vue
+++ b/src/jmap/theme/fuzhou_01/planSchedule/index.vue
@@ -1,102 +1,98 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/planSchedule/menuTool.vue b/src/jmap/theme/fuzhou_01/planSchedule/menuTool.vue
deleted file mode 100644
index d3ecde016..000000000
--- a/src/jmap/theme/fuzhou_01/planSchedule/menuTool.vue
+++ /dev/null
@@ -1,172 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/jmap/theme/fuzhou_01/planSchedule/schedule.vue b/src/jmap/theme/fuzhou_01/planSchedule/schedule.vue
index b5ea9e535..7ad75ec69 100644
--- a/src/jmap/theme/fuzhou_01/planSchedule/schedule.vue
+++ b/src/jmap/theme/fuzhou_01/planSchedule/schedule.vue
@@ -1,473 +1,482 @@
-
-
-
-
-
-
+
-
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/planSchedule/statusBar.vue b/src/jmap/theme/fuzhou_01/planSchedule/statusBar.vue
index f85d6c6ce..4c1418fb3 100644
--- a/src/jmap/theme/fuzhou_01/planSchedule/statusBar.vue
+++ b/src/jmap/theme/fuzhou_01/planSchedule/statusBar.vue
@@ -1,95 +1,102 @@
-
+
-
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/planSchedule/titleBar.vue b/src/jmap/theme/fuzhou_01/planSchedule/titleBar.vue
index 689c3486a..f157ced61 100644
--- a/src/jmap/theme/fuzhou_01/planSchedule/titleBar.vue
+++ b/src/jmap/theme/fuzhou_01/planSchedule/titleBar.vue
@@ -1,44 +1,44 @@
-
-
-
{{mapName}}
-
({{runPlanName}})
-
-
+
+
+
{{ mapName }}
+
({{ runPlanName }})
+
+
-
\ No newline at end of file
+
diff --git a/src/jmap/utils/parser.js b/src/jmap/utils/parser.js
index e07e70a20..e9d282e03 100644
--- a/src/jmap/utils/parser.js
+++ b/src/jmap/utils/parser.js
@@ -33,80 +33,85 @@ export function deviceFactory(type, elem) {
return Object.assign({ _type: type }, deviceRender[type], elem);
}
-export function parser(data, jmap) {
+export function createDevice(type, model, propConvert) {
+ const device = deviceFactory(type, model);
+ return propConvert ? propConvert.initPrivateProps(device) : device;
+}
+
+export function parser(data, skinStyle) {
var mapDevice = {};
- var propConvert = Vue.prototype.$theme.loadPropConvert(jmap.skinStyle);
+ var propConvert = skinStyle ? Vue.prototype.$theme.loadPropConvert(skinStyle): null;
if (data) {
zrUtil.each(data.linkList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.Link, elem));
+ mapDevice[elem.code] = createDevice(deviceType.Link, elem, propConvert);
}, this);
zrUtil.each(data.sectionList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.Section, elem));
+ mapDevice[elem.code] = createDevice(deviceType.Section, elem, propConvert);
}, this);
zrUtil.each(data.signalList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.Signal, elem));
+ mapDevice[elem.code] = createDevice(deviceType.Signal, elem, propConvert);
}, this);
zrUtil.each(data.stationList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.Station, elem));
+ mapDevice[elem.code] = createDevice(deviceType.Station, elem, propConvert);
}, this);
zrUtil.each(data.stationStandList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.StationStand, elem));
+ mapDevice[elem.code] = createDevice(deviceType.StationStand, elem, propConvert);
}, this);
zrUtil.each(data.stationControlList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.StationControl, elem));
+ mapDevice[elem.code] = createDevice(deviceType.StationControl, elem, propConvert);
}, this);
zrUtil.each(data.counterList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.StationCounter, elem));
+ mapDevice[elem.code] = createDevice(deviceType.StationCounter, elem, propConvert);
}, this);
zrUtil.each(data.delayShowList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.StationDelayUnlock, elem));
+ mapDevice[elem.code] = createDevice(deviceType.StationDelayUnlock, elem, propConvert);
}, this);
zrUtil.each(data.lineList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.Line, elem));
+ mapDevice[elem.code] = createDevice(deviceType.Line, elem, propConvert);
}, this);
zrUtil.each(data.textList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.Text, elem));
+ mapDevice[elem.code] = createDevice(deviceType.Text, elem, propConvert);
}, this);
zrUtil.each(data.zcList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.ZcControl, elem));
+ mapDevice[elem.code] = createDevice(deviceType.ZcControl, elem, propConvert);
}, this);
zrUtil.each(data.lcList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.LcControl, elem));
+ mapDevice[elem.code] = createDevice(deviceType.LcControl, elem, propConvert);
}, this);
zrUtil.each(data.tempSpeedLimitList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.LimitControl, elem));
+ mapDevice[elem.code] = createDevice(deviceType.LimitControl, elem, propConvert);
}, this);
zrUtil.each(data.resourceList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.ImageControl, elem));
+ mapDevice[elem.code] = createDevice(deviceType.ImageControl, elem, propConvert);
}, this);
zrUtil.each(data.trainList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.Train, elem));
+ mapDevice[elem.code] = createDevice(deviceType.Train, elem, propConvert);
}, this);
zrUtil.each(data.Line || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.Line, elem));
+ mapDevice[elem.code] = createDevice(deviceType.Line, elem, propConvert);
}, this);
zrUtil.each(data.Text || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.Text, elem));
+ mapDevice[elem.code] = createDevice(deviceType.Text, elem, propConvert);
}, this);
zrUtil.each(data.trainWindowList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.TrainWindow, elem));
+ mapDevice[elem.code] = createDevice(deviceType.TrainWindow, elem, propConvert);
if (elem.sectionCode) {
const section = mapDevice[elem.sectionCode];
if (section) {
@@ -116,7 +121,7 @@ export function parser(data, jmap) {
}, this);
zrUtil.each(data.switchList || [], elem => {
- mapDevice[elem.code] = propConvert.initPrivateProps(deviceFactory(deviceType.Switch, elem));
+ mapDevice[elem.code] = createDevice(deviceType.Switch, elem, propConvert);
const cnodeSection = mapDevice[mapDevice[elem.code].sectionACode];
const lnodeSection = mapDevice[mapDevice[elem.code].sectionBCode];
const rnodeSection = mapDevice[mapDevice[elem.code].sectionCCode];
diff --git a/src/store/modules/map.js b/src/store/modules/map.js
index 411bb2f54..73c02851b 100644
--- a/src/store/modules/map.js
+++ b/src/store/modules/map.js
@@ -1,4 +1,5 @@
import deviceType from '@/jmap/constant/deviceType';
+import { parser } from '@/jmap/utils/parser';
import Vue from 'vue';
/**
@@ -190,6 +191,7 @@ const map = {
state: {
map: null, // 地图数据
+ mapDevice: {}, // 解析后的地图数据
mapList: {}, // 地图数据列表
mapViewLoadedCount: 0, // 地图视图加载完成标识
mapDataLoadedCount: 0, // 地图数据加载完成标识
@@ -351,25 +353,21 @@ const map = {
trainDetails: (state) => {
return state.trainDetails;
},
- getDeviceByCode: () => (code) => {
- if (Vue.prototype.$jlmap) {
- return Vue.prototype.$jlmap.getDeviceByCode(code);
- }
+ getDeviceByCode: (state) => (code) => {
+ return state.mapDevice[code];
},
// 查询区段关联的计数器
getCounterBySectionCode: (state) => (code, type) => {
let device = null;
- if (Vue.prototype.$jlmap) {
- var section = Vue.prototype.$jlmap.mapDevice[code];
- if (section) {
- state.map.counterList.forEach(counter => {
- if (counter.stationCode === section.model.stationCode && type == counter.type) {
- device = Vue.prototype.$jlmap.mapDevice[counter.code];
- return;
- }
- });
- }
+ var section = state.mapDevice[code];
+ if (section) {
+ state.map.counterList.forEach(counter => {
+ if (counter.stationCode === section.model.stationCode && type == counter.type) {
+ device = state.mapDevice[counter.code];
+ return;
+ }
+ });
}
return device;
@@ -378,16 +376,14 @@ const map = {
// 查询信号机关联的计数器
getCounterBySingalCode: (state) => (code, type) => {
let device = null;
- if (Vue.prototype.$jlmap) {
- var signal = Vue.prototype.$jlmap.mapDevice[code];
- if (signal) {
- state.map.counterList.forEach(counter => {
- if (counter.stationCode === signal.model.stationCode && type == counter.type) {
- device = Vue.prototype.$jlmap.mapDevice[counter.code];
- return;
- }
- });
- }
+ var signal = state.mapDevice[code];
+ if (signal) {
+ state.map.counterList.forEach(counter => {
+ if (counter.stationCode === signal.model.stationCode && type == counter.type) {
+ device = state.mapDevice[counter.code];
+ return;
+ }
+ });
}
return device;
},
@@ -395,12 +391,12 @@ const map = {
// 查询所属车站关联的控制模式
getStationControlByStationCode: (state) => (code) => {
let device = null;
- if (Vue.prototype.$jlmap && code &&
+ if (code &&
state.map &&
state.map.stationControlList && state.map.stationControlList.length) {
state.map.stationControlList.forEach(elem => {
if (elem.stationCode == code) {
- device = Vue.prototype.$jlmap.mapDevice[elem.code];
+ device = state.mapDevice[elem.code];
}
});
}
@@ -411,7 +407,12 @@ const map = {
mutations: {
setMapData: (state, map) => {
- state.map = map;
+ if (map && map.skinVO) {
+ state.map = map;
+ state.mapDevice = parser(map, map.skinVO.code);
+ } else {
+ state.mapDevice = {};
+ }
},
mapRender: (state, devices) => {
Vue.prototype.$jlmap && Vue.prototype.$jlmap.render(devices);
@@ -450,6 +451,7 @@ const map = {
},
mapClear: (state) => {
state.map = null;
+ state.mapDevice = {};
Vue.prototype.$jlmap && Vue.prototype.$jlmap.clear();
}
},
diff --git a/src/utils/runPlan.js b/src/utils/runPlan.js
index 5076618bd..1bfa6c559 100644
--- a/src/utils/runPlan.js
+++ b/src/utils/runPlan.js
@@ -1,3 +1,5 @@
+import store from '@/store';
+
/** 创建一个车次数据点*/
export function createMartPoint(opt) {
const rotate = opt.directionCode === '2' ? 45 : (opt.directionCode === '1' ? -45 : 0);
@@ -220,7 +222,7 @@ export function ascToNum(asc) {
/** 将时间格式化前补零*/
export function formatTime(time) {
- let str = `${time}` || '';
+ let str = `${time || ''}`;
if (str) {
const list = str.split(':');
str = list.map(elem => {
@@ -231,6 +233,16 @@ export function formatTime(time) {
return str;
}
+/** 通过code将名称格式化*/
+export function formatName(code) {
+ var name = '';
+ const device = store.getters['map/getDeviceByCode'](code);
+ if (device) {
+ name = device.name;
+ }
+ return name;
+}
+
/** 根据索引获取单元格的数据*/
export function getCellValue(Sheet, index) {
let value;
@@ -280,3 +292,4 @@ export function convertSheetToList(Sheet, isReverse) {
return dataList;
}
+
diff --git a/src/views/components/quickMenu/index.vue b/src/views/components/quickMenu/index.vue
index eeb6a895e..5ad6b1ba3 100644
--- a/src/views/components/quickMenu/index.vue
+++ b/src/views/components/quickMenu/index.vue
@@ -211,7 +211,7 @@
top: 0px;
width: 60px;
height: 60px;
- -webkit-transform: rotate(180deg);
+ transform: rotate(180deg);
-moz-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
@@ -231,7 +231,7 @@
top: 35%;
margin-top: -1.5px;
left: 16px;
- -webkit-transform-origin: 0% 50%;
+ transform-origin: 0% 50%;
-moz-transform-origin: 0% 50%;
-ms-transform-origin: 0% 50%;
-o-transform-origin: 0% 50%;
@@ -248,7 +248,7 @@
background: #fff;
position: absolute;
left: 0px;
- -webkit-transform-origin: 0% 50%;
+ transform-origin: 0% 50%;
-moz-transform-origin: 0% 50%;
-ms-transform-origin: 0% 50%;
-o-transform-origin: 0% 50%;
@@ -303,14 +303,14 @@
}
&.active {
- -webkit-transform: rotate(0deg) !important;
+ transform: rotate(0deg) !important;
-moz-transform: rotate(0deg) !important;
-ms-transform: rotate(0deg) !important;
-o-transform: rotate(0deg) !important;
transform: rotate(0deg) !important;
.menu {
- -webkit-transform: scale(0.7);
+ transform: scale(0.7);
-moz-transform: scale(0.7);
-ms-transform: scale(0.7);
-o-transform: scale(0.7);
@@ -321,24 +321,24 @@
margin-top: -1.5px;
left: 50%;
margin-left: -12px;
- -webkit-transform-origin: 50% 50%;
+ transform-origin: 50% 50%;
-moz-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
-o-transform-origin: 50% 50%;
transform-origin: 50% 50%;
- -webkit-transform: rotate(405deg);
+ transform: rotate(405deg);
-moz-transform: rotate(405deg);
-ms-transform: rotate(405deg);
-o-transform: rotate(405deg);
transform: rotate(405deg);
&:before {
- -webkit-transform-origin: 50% 50%;
+ transform-origin: 50% 50%;
-moz-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
-o-transform-origin: 50% 50%;
transform-origin: 50% 50%;
- -webkit-transform: rotate(-450deg);
+ transform: rotate(-450deg);
-moz-transform: rotate(-450deg);
-ms-transform: rotate(-450deg);
-o-transform: rotate(-450deg);
@@ -358,23 +358,23 @@
0%,
100% {
- -webkit-transform: translateY(0px);
+ transform: translateY(0px);
}
10% {
- -webkit-transform: translateY(6px);
+ transform: translateY(6px);
}
30% {
- -webkit-transform: translateY(-4px);
+ transform: translateY(-4px);
}
70% {
- -webkit-transform: translateY(3px);
+ transform: translateY(3px);
}
90% {
- -webkit-transform: translateY(-2px);
+ transform: translateY(-2px);
}
}
@@ -406,7 +406,7 @@
0%,
100% {
- -webkit-transform: translateY(0px);
+ transform: translateY(0px);
-moz-transform: translateY(0px);
-ms-transform: translateY(0px);
-o-transform: translateY(0px);
@@ -414,7 +414,7 @@
}
10% {
- -webkit-transform: translateY(6px);
+ transform: translateY(6px);
-moz-transform: translateY(6px);
-ms-transform: translateY(6px);
-o-transform: translateY(6px);
@@ -422,7 +422,7 @@
}
30% {
- -webkit-transform: translateY(-4px);
+ transform: translateY(-4px);
-moz-transform: translateY(-4px);
-ms-transform: translateY(-4px);
-o-transform: translateY(-4px);
@@ -430,7 +430,7 @@
}
70% {
- -webkit-transform: translateY(3px);
+ transform: translateY(3px);
-moz-transform: translateY(3px);
-ms-transform: translateY(3px);
-o-transform: translateY(3px);
@@ -438,7 +438,7 @@
}
90% {
- -webkit-transform: translateY(-2px);
+ transform: translateY(-2px);
-moz-transform: translateY(-2px);
-ms-transform: translateY(-2px);
-o-transform: translateY(-2px);
diff --git a/src/views/jlmap/index.vue b/src/views/jlmap/index.vue
index 31b80bee3..758fa28a5 100644
--- a/src/views/jlmap/index.vue
+++ b/src/views/jlmap/index.vue
@@ -253,7 +253,7 @@ export default {
},
// 设置新的地图数据
setMap(map) {
- this.$jlmap.setMap(map);
+ this.$jlmap.setMap(map, this.$store.state.map.mapDevice);
},
// 刷新地图数据
refresh(map) {
diff --git a/src/views/planMonitor/editTool/menuTool.vue b/src/views/planMonitor/editTool/menuTool.vue
index d3ecde016..d3da5aef2 100644
--- a/src/views/planMonitor/editTool/menuTool.vue
+++ b/src/views/planMonitor/editTool/menuTool.vue
@@ -1,133 +1,131 @@
-