-
@@ -17,10 +16,8 @@
\ No newline at end of file
+
diff --git a/src/jmap/theme/chengdu_04/menusPlan/chooseTemplatePlan.vue b/src/jmap/theme/chengdu_04/menusPlan/chooseTemplatePlan.vue
index 5f95a8e18..591ed34cc 100644
--- a/src/jmap/theme/chengdu_04/menusPlan/chooseTemplatePlan.vue
+++ b/src/jmap/theme/chengdu_04/menusPlan/chooseTemplatePlan.vue
@@ -1,13 +1,13 @@
diff --git a/src/jmap/theme/chengdu_04/menusPlan/createTodayPlan.vue b/src/jmap/theme/chengdu_04/menusPlan/createTodayPlan.vue
index 3df161516..f9b4ff067 100644
--- a/src/jmap/theme/chengdu_04/menusPlan/createTodayPlan.vue
+++ b/src/jmap/theme/chengdu_04/menusPlan/createTodayPlan.vue
@@ -1,140 +1,147 @@
-
-
-
-
- 加 载
- 取 消
-
-
+
+
+
+ 加 载
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/chengdu_04/menusPlan/createWeekPlan.vue b/src/jmap/theme/chengdu_04/menusPlan/createWeekPlan.vue
index c6f6f74b7..2eabc8044 100644
--- a/src/jmap/theme/chengdu_04/menusPlan/createWeekPlan.vue
+++ b/src/jmap/theme/chengdu_04/menusPlan/createWeekPlan.vue
@@ -1,116 +1,126 @@
-
-
-
-
-
-
-
-
-
- 选择
-
-
-
-
-
-
-
-
-
-
-
-
- 确 定
- 取 消
-
-
-
+
+
+
+
+
+
+
+
+
+ 选择
+
+
+
+
+
+
+
+
+
+
+
+ 确 定
+ 取 消
+
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/chengdu_04/menusPlan/deleteTask.vue b/src/jmap/theme/chengdu_04/menusPlan/deleteTask.vue
index b661ed20e..cd79c305f 100644
--- a/src/jmap/theme/chengdu_04/menusPlan/deleteTask.vue
+++ b/src/jmap/theme/chengdu_04/menusPlan/deleteTask.vue
@@ -1,57 +1,66 @@
-
-
- 删除以前所有任务(包含本任务)
-
-
- 删除以后所有任务(包含本任务)
-
-
- 确 定
- 取 消
-
-
+
+
+ 删除以前所有任务(包含本任务)
+
+
+ 删除以后所有任务(包含本任务)
+
+
+ 确 定
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/chengdu_04/menusPlan/deleteTodayPlan.vue b/src/jmap/theme/chengdu_04/menusPlan/deleteTodayPlan.vue
index 284028f97..2e22a7c64 100644
--- a/src/jmap/theme/chengdu_04/menusPlan/deleteTodayPlan.vue
+++ b/src/jmap/theme/chengdu_04/menusPlan/deleteTodayPlan.vue
@@ -1,46 +1,55 @@
-
-
- 确 定
- 取 消
-
-
+
+
+ 确 定
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/chengdu_04/menusPlan/managePlanList.vue b/src/jmap/theme/chengdu_04/menusPlan/managePlanList.vue
index b4ae47a4b..288ad3381 100644
--- a/src/jmap/theme/chengdu_04/menusPlan/managePlanList.vue
+++ b/src/jmap/theme/chengdu_04/menusPlan/managePlanList.vue
@@ -1,122 +1,143 @@
-
-
-
-
+
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/chengdu_04/menusPlan/modifyingPlan.vue b/src/jmap/theme/chengdu_04/menusPlan/modifyingPlan.vue
index c9b645b7c..1d2b31102 100644
--- a/src/jmap/theme/chengdu_04/menusPlan/modifyingPlan.vue
+++ b/src/jmap/theme/chengdu_04/menusPlan/modifyingPlan.vue
@@ -1,152 +1,152 @@
-
-
- 列车线路
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 加任务
-
-
- 替 换
-
-
- 删任务
-
-
-
-
- 进库
- 出库
-
-
-
-
-
-
-
-
-
-
-
-
-
- 改车次号
-
-
-
- 线路开始时间
-
-
-
- 线路结束时间
-
-
-
-
-
- 线路详细信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 影响后续任务
+
+
+ 列车线路
+
+
+
+
+
+
+
+
+
+
+
+
+ 加任务
- 确 定
- 取 消
+ 替 换
-
+
+ 删任务
+
+
+
+
+ 进库
+ 出库
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 改车次号
+
+
+
+ 线路开始时间
+
+
+
+ 线路结束时间
+
+
+
+
+
+ 线路详细信息
+
+
+
+
+
+
+
+
+
+
+
+ 影响后续任务
+
+
+ 确 定
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/chengdu_04/menusPlan/modifyingTask.vue b/src/jmap/theme/chengdu_04/menusPlan/modifyingTask.vue
index 5f197a1ff..4679c003e 100644
--- a/src/jmap/theme/chengdu_04/menusPlan/modifyingTask.vue
+++ b/src/jmap/theme/chengdu_04/menusPlan/modifyingTask.vue
@@ -1,298 +1,309 @@
-
-
-
-
-
-
- 车次号:
-
-
-
-
-
-
-
-
-
-
-
-
- 手工
-
-
-
-
-
-
- 缺省停站时间:
-
-
-
-
-
-
-
-
-
-
-
-
- 表号:
-
-
-
-
-
+
+
+
+
+
+
+ 车次号:
+
+
+
+
+
+
+
+
+
+
+
+ 手工
+
+
+
+
+
+
+ 缺省停站时间:
+
+
+
+
+
+
+
+
+
+
+
+ 表号:
+
+
+
+
+
+
+
+
+
+
+
+ 清客
-
-
-
-
- 清客
-
-
- 延续计划
-
-
- 首班车
-
-
-
-
+ 延续计划
-
-
-
-
-
- 序列号:
-
-
-
-
-
-
-
-
+
+ 首班车
-
-
-
- 手工
-
-
-
-
-
-
- 缺省运行等级:
-
-
-
-
-
-
-
-
-
-
-
-
- 开始时间:
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 序列号:
+
+
+
+
+
+
+
+
+
+
+
+ 手工
+
+
+
+
+
+
+ 缺省运行等级:
+
+
+
+
+
+
+
+
+
+
+
+ 开始时间:
+
+
+
+
+
+
+
+
+
+
+
+ 入库
-
-
-
-
- 入库
-
-
- 出库
-
-
- 末班车
-
-
-
-
+ 出库
-
-
- 交路:
-
-
-
-
-
- {{ formatName(scope.row.beginStationCode) }}
-
-
-
-
-
-
- {{ formatName(scope.row.endStationCode) }}
-
-
-
-
-
-
-
-
-
-
-
- 详情:
-
-
-
-
-
- {{ formatName(scope.row.stationCode) }}
-
-
-
-
- {{ formatTime(scope.row.startTime) }}
-
-
-
-
- {{ formatTime(scope.row.stopTime) }}
-
-
-
-
- {{ formatTime(scope.row.endTime) }}
-
-
-
-
-
-
-
-
-
-
- 显示默认停站时间和运行等级
+
+ 末班车
-
-
-
- 确 定
- 取 消
-
-
+
+
+
+
+
+
+ 交路:
+
+
+
+
+
+ {{ formatName(scope.row.beginStationCode) }}
+
+
+
+
+
+ {{ formatName(scope.row.endStationCode) }}
+
+
+
+
+
+
+
+
+ 详情:
+
+
+
+
+
+ {{ formatName(scope.row.stationCode) }}
+
+
+
+
+ {{ formatTime(scope.row.startTime) }}
+
+
+
+
+ {{ formatTime(scope.row.stopTime) }}
+
+
+
+
+ {{ formatTime(scope.row.endTime) }}
+
+
+
+
+
+
+
+
+ 显示默认停站时间和运行等级
+
+
+
+
+ 确 定
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/chengdu_04/planSchedule/index.vue b/src/jmap/theme/chengdu_04/planSchedule/index.vue
index 15dc56293..d5935f906 100644
--- a/src/jmap/theme/chengdu_04/planSchedule/index.vue
+++ b/src/jmap/theme/chengdu_04/planSchedule/index.vue
@@ -27,7 +27,6 @@ import ModifyingPlan from '../menusPlan/modifyingPlan';
import AddTask from '../menusPlan/addTask';
import DeleteTask from '../menusPlan/deleteTask';
import ModifyingTask from '../menusPlan/modifyingTask';
-import WindowResizeHandler from '@/mixin/WindowResizeHandler';
export default {
name: 'Menus',
@@ -44,9 +43,6 @@ export default {
DeleteTask,
ModifyingTask
},
- mixins: [
- WindowResizeHandler
- ],
props: {
group: {
type: String,
@@ -55,20 +51,20 @@ export default {
},
data() {
return {
- width: 0,
- height: 0
};
},
computed: {
skinCode() {
return this.$route.query.skinCode || '02';
+ },
+ width() {
+ return this.$store.state.app.width;
+ },
+ height() {
+ return this.$store.state.app.height;
}
},
methods: {
- resizeHandler() {
- this.width = this._clientWidth;
- this.height = this._clientHeight;
- },
setPosition() {
this.$nextTick(() => {
this.$refs.schedule.setPosition();
diff --git a/src/jmap/theme/fuzhou_01/menus/dialog/trainControl.vue b/src/jmap/theme/fuzhou_01/menus/dialog/trainControl.vue
index f3ed9b146..9d89da799 100644
--- a/src/jmap/theme/fuzhou_01/menus/dialog/trainControl.vue
+++ b/src/jmap/theme/fuzhou_01/menus/dialog/trainControl.vue
@@ -1,423 +1,464 @@
-
-
-
-
-
-
-
-
-
-
- 计划车
- 头码车
- 人工车
-
-
-
- 表 号
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确定
-
-
- 取 消
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 计划车
+ 头码车
+ 人工车
+
+
+
+ 表 号
+
+
+
+
+
+
+
+
+
+
+
+ 确定
+
+
+ 取 消
+
+
+
+
+
diff --git a/src/jmap/theme/fuzhou_01/menus/dialog/trainDelete.vue b/src/jmap/theme/fuzhou_01/menus/dialog/trainDelete.vue
index d0d8ef36c..07a528669 100644
--- a/src/jmap/theme/fuzhou_01/menus/dialog/trainDelete.vue
+++ b/src/jmap/theme/fuzhou_01/menus/dialog/trainDelete.vue
@@ -1,156 +1,165 @@
-
-
-
-
-
-
-
-
- 确定
-
-
- 取 消
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 确定
+
+
+ 取 消
+
+
+
+
+
\ No newline at end of file
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.doClose();
+ }
+ }).catch(() => { this.doClose(); });
+ }
+ }
+};
+
diff --git a/src/jmap/theme/fuzhou_01/menus/menuTrain.vue b/src/jmap/theme/fuzhou_01/menus/menuTrain.vue
index eadcd4d12..05a582a36 100644
--- a/src/jmap/theme/fuzhou_01/menus/menuTrain.vue
+++ b/src/jmap/theme/fuzhou_01/menus/menuTrain.vue
@@ -1,318 +1,321 @@
-
+
\ No newline at end of file
+ if (this.$refs && this.$refs.popMenu && this.menu && this.menu.length) {
+ this.$refs.popMenu.resetShowPosition(point);
+ }
+ },
+ doClose() {
+ if (this.$refs && this.$refs.popMenu) {
+ this.$refs.popMenu.close();
+ // this.$store.dispatch('map/setTrainWindowShow', false);
+ }
+ },
+ // 设置故障
+ setStoppage() {
+ const operate = {
+ start: true,
+ send: true,
+ code: this.selected.code,
+ type: MapDeviceType.Train.type,
+ label: MapDeviceType.Train.label,
+ operation: OperationEvent.Train.stoppage.menu.operation
+ };
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ } else {
+ this.$refs.noticeInfo.doShow(operate);
+ }
+ }).catch(() => {
+ this.$refs.noticeInfo.doShow(operate);
+ });
+ },
+ // 取消故障
+ cancelStoppage() {
+ const operate = {
+ start: true,
+ send: true,
+ code: this.selected.code,
+ type: MapDeviceType.Train.type,
+ label: MapDeviceType.Train.label,
+ operation: OperationEvent.Train.cancelStoppage.menu.operation
+ };
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ } else {
+ this.$refs.noticeInfo.doShow(operate);
+ }
+ }).catch(() => {
+ this.$refs.noticeInfo.doShow(operate);
+ });
+ },
+ // 限速行驶
+ limitSpeed() {
+ const operate = {
+ start: true,
+ send: true,
+ code: this.selected.code,
+ type: MapDeviceType.Train.type,
+ label: MapDeviceType.Train.label,
+ operation: OperationEvent.Train.limitSpeed.menu.operation
+ };
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ } else {
+ this.$refs.noticeInfo.doShow(operate);
+ }
+ }).catch(() => {
+ this.$refs.noticeInfo.doShow(operate);
+ });
+ },
+ // 添加列车识别号
+ addTrainId() {
+ const operate = {
+ start: true,
+ code: this.selected.code,
+ type: MapDeviceType.Train.type,
+ label: MapDeviceType.Train.label,
+ operation: OperationEvent.Train.addTrainId.menu.operation
+ };
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ this.$refs.trainControl.doShow(operate, this.selected);
+ }
+ });
+ },
+ // 删除列车识别号
+ delTrainId() {
+ const operate = {
+ start: true,
+ code: this.selected.code,
+ type: MapDeviceType.Train.type,
+ label: MapDeviceType.Train.label,
+ operation: OperationEvent.Train.delTrainId.menu.operation
+ };
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ this.$refs.trainDelete.doShow(operate, this.selected);
+ }
+ });
+ },
+ // 修改列车识别号
+ editTrainId() {
+ const operate = {
+ start: true,
+ code: this.selected.code,
+ type: MapDeviceType.Train.type,
+ label: MapDeviceType.Train.label,
+ operation: OperationEvent.Train.editTrainId.menu.operation
+ };
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ this.$refs.trainControl.doShow(operate, this.selected);
+ }
+ });
+ },
+ // 修改车组号
+ editTrainNo() {
+ const operate = {
+ start: true,
+ code: this.selected.code,
+ type: MapDeviceType.Train.type,
+ label: MapDeviceType.Train.label,
+ operation: OperationEvent.Train.editTrainNo.menu.operation
+ };
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ this.$refs.trainEditNumber.doShow(operate, this.selected);
+ }
+ });
+ },
+ // 移动列车识别号
+ moveTrainId() {
+ const operate = {
+ start: true,
+ code: this.selected.code,
+ type: MapDeviceType.Train.type,
+ label: MapDeviceType.Train.label,
+ operation: OperationEvent.Train.moveTrainId.menu.operation
+ };
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ this.$refs.trainMove.doShow(operate, this.selected);
+ }
+ });
+ },
+ // 交换列车识别号
+ switchTrainId() {
+ const operate = {
+ start: true,
+ code: this.selected.code,
+ type: MapDeviceType.Train.type,
+ label: MapDeviceType.Train.label,
+ operation: OperationEvent.Train.switchTrainId.menu.operation
+ };
+ this.$store.dispatch('training/next', operate).then(({ valid }) => {
+ if (valid) {
+ this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
+ this.$refs.trainSwitch.doShow(operate, this.selected);
+ }
+ });
+ }
+ }
+};
+
diff --git a/src/jmap/theme/fuzhou_01/menusPlan/addTask.vue b/src/jmap/theme/fuzhou_01/menusPlan/addTask.vue
index 64c594845..0e720a0c5 100644
--- a/src/jmap/theme/fuzhou_01/menusPlan/addTask.vue
+++ b/src/jmap/theme/fuzhou_01/menusPlan/addTask.vue
@@ -1,150 +1,162 @@
-
-
-
-
- 加在最前
-
-
- 车次号:
-
-
-
-
-
-
-
-
- 开始时间:
-
-
-
-
-
-
-
-
-
-
- 加在最后
-
-
- 车次号:
-
-
-
-
-
-
-
-
- 开始时间:
-
-
-
-
-
-
-
+
+
+
+
+ 加在最前
+
+
+ 车次号:
+
+
+
+
+
+
+
+ 开始时间:
+
+
+
+
+
+
+
+
+
+ 加在最后
+
+
+ 车次号:
+
+
+
+
+
+
+
+ 开始时间:
+
+
+
+
+
+
-
-
- 交路:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 详情:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 显示默认停站时间和运行等级
-
-
-
-
- 确 定
- 取 消
-
-
+
+
+ 交路:
+
+
+
+
+
+
+
+
+
+
+ 详情:
+
+
+
+
+
+
+
+
+
+
+
+ 显示默认停站时间和运行等级
+
+
+
+
+ 确 定
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/menusPlan/chooseTemplatePlan.vue b/src/jmap/theme/fuzhou_01/menusPlan/chooseTemplatePlan.vue
index 31783f019..2dbf053be 100644
--- a/src/jmap/theme/fuzhou_01/menusPlan/chooseTemplatePlan.vue
+++ b/src/jmap/theme/fuzhou_01/menusPlan/chooseTemplatePlan.vue
@@ -4,7 +4,7 @@
:title="title"
class="fuzhou-01__schedule choose-plan-template"
:visible.sync="dialogShow"
- width="80%"
+ width="70%"
:before-close="doClose"
:modal="false"
:close-on-click-modal="false"
@@ -93,11 +93,11 @@ export default {
return runPlanTemplateList(params);
},
handleConfirm() {
- this.doClose();
if (this.$refs && this.$refs.pageRules) {
const choose = this.$refs.pageRules.currentChoose();
if (choose) {
this.$emit('chooseConfirm', choose);
+ this.doClose();
} else {
this.$messageBox(`请选择模板运行图`);
}
diff --git a/src/jmap/theme/fuzhou_01/menusPlan/createTodayPlan.vue b/src/jmap/theme/fuzhou_01/menusPlan/createTodayPlan.vue
index b15420cdd..5b813183a 100644
--- a/src/jmap/theme/fuzhou_01/menusPlan/createTodayPlan.vue
+++ b/src/jmap/theme/fuzhou_01/menusPlan/createTodayPlan.vue
@@ -18,9 +18,9 @@
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/menusPlan/deleteTask.vue b/src/jmap/theme/fuzhou_01/menusPlan/deleteTask.vue
index a6b886196..4d6f216da 100644
--- a/src/jmap/theme/fuzhou_01/menusPlan/deleteTask.vue
+++ b/src/jmap/theme/fuzhou_01/menusPlan/deleteTask.vue
@@ -1,57 +1,66 @@
-
-
- 删除以前所有任务(包含本任务)
-
-
- 删除以后所有任务(包含本任务)
-
-
- 确 定
- 取 消
-
-
+
+
+ 删除以前所有任务(包含本任务)
+
+
+ 删除以后所有任务(包含本任务)
+
+
+ 确 定
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/menusPlan/deleteTodayPlan.vue b/src/jmap/theme/fuzhou_01/menusPlan/deleteTodayPlan.vue
index 543f171e5..295030d42 100644
--- a/src/jmap/theme/fuzhou_01/menusPlan/deleteTodayPlan.vue
+++ b/src/jmap/theme/fuzhou_01/menusPlan/deleteTodayPlan.vue
@@ -1,46 +1,55 @@
-
-
- 确 定
- 取 消
-
-
+
+
+ 确 定
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/menusPlan/managePlanList.vue b/src/jmap/theme/fuzhou_01/menusPlan/managePlanList.vue
index 11b2df481..0c93359ff 100644
--- a/src/jmap/theme/fuzhou_01/menusPlan/managePlanList.vue
+++ b/src/jmap/theme/fuzhou_01/menusPlan/managePlanList.vue
@@ -1,122 +1,143 @@
-
-
-
-
+
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/menusPlan/modifyingPlan.vue b/src/jmap/theme/fuzhou_01/menusPlan/modifyingPlan.vue
index ff0299381..90bba4e44 100644
--- a/src/jmap/theme/fuzhou_01/menusPlan/modifyingPlan.vue
+++ b/src/jmap/theme/fuzhou_01/menusPlan/modifyingPlan.vue
@@ -1,152 +1,152 @@
-
-
- 列车线路
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 加任务
-
-
- 替 换
-
-
- 删任务
-
-
-
-
- 进库
- 出库
-
-
-
-
-
-
-
-
-
-
-
-
-
- 改车次号
-
-
-
- 线路开始时间
-
-
-
- 线路结束时间
-
-
-
-
-
- 线路详细信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 影响后续任务
+
+
+ 列车线路
+
+
+
+
+
+
+
+
+
+
+
+
+ 加任务
- 确 定
- 取 消
+ 替 换
-
+
+ 删任务
+
+
+
+
+ 进库
+ 出库
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 改车次号
+
+
+
+ 线路开始时间
+
+
+
+ 线路结束时间
+
+
+
+
+
+ 线路详细信息
+
+
+
+
+
+
+
+
+
+
+
+ 影响后续任务
+
+
+ 确 定
+ 取 消
+
+
\ No newline at end of file
+
diff --git a/src/jmap/theme/fuzhou_01/menusPlan/modifyingTask.vue b/src/jmap/theme/fuzhou_01/menusPlan/modifyingTask.vue
index 2b153891a..691db5458 100644
--- a/src/jmap/theme/fuzhou_01/menusPlan/modifyingTask.vue
+++ b/src/jmap/theme/fuzhou_01/menusPlan/modifyingTask.vue
@@ -1,298 +1,309 @@
-
-
-
-
-
-
- 车次号:
-
-
-
-
-
-
-
-
-
-
-
-
- 手工
-
-
-
-
-
-
- 缺省停站时间:
-
-
-
-
-
-
-
-
-
-
-
-
- 表号:
-
-
-
-
-
+
+
+
+
+
+
+ 车次号:
+
+
+
+
+
+
+
+
+
+
+
+ 手工
+
+
+
+
+
+
+ 缺省停站时间:
+
+
+
+
+
+
+
+
+
+
+
+ 表号:
+
+
+
+
+
+
+
+
+
+
+
+ 清客
-
-
-
-
- 清客
-
-
- 延续计划
-
-
- 首班车
-
-
-
-
+ 延续计划
-
-
-
-
-
- 序列号:
-
-
-
-
-
-
-
-
+
+ 首班车
-
-
-
- 手工
-
-
-
-
-
-
- 缺省运行等级:
-
-
-
-
-
-
-
-
-
-
-
-
- 开始时间:
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 序列号:
+
+
+
+
+
+
+
+
+
+
+
+ 手工
+
+
+
+
+
+
+ 缺省运行等级:
+
+
+
+
+
+
+
+
+
+
+
+ 开始时间:
+
+
+
+
+
+
+
+
+
+
+
+ 入库
-
-
-
-
- 入库
-
-
- 出库
-
-
- 末班车
-
-
-
-
+ 出库
-
-
- 交路:
-
-
-
-
-
- {{ formatName(scope.row.beginStationCode) }}
-
-
-
-
-
-
- {{ formatName(scope.row.endStationCode) }}
-
-
-
-
-
-
-
-
-
-
-
- 详情:
-
-
-
-
-
- {{ formatName(scope.row.stationCode) }}
-
-
-
-
- {{ formatTime(scope.row.startTime) }}
-
-
-
-
- {{ formatTime(scope.row.stopTime) }}
-
-
-
-
- {{ formatTime(scope.row.endTime) }}
-
-
-
-
-
-
-
-
-
-
- 显示默认停站时间和运行等级
+
+ 末班车
-
-
-
- 确 定
- 取 消
-
-
+
+
+
+
+
+
+ 交路:
+
+
+
+
+
+ {{ formatName(scope.row.beginStationCode) }}
+
+
+
+
+
+ {{ formatName(scope.row.endStationCode) }}
+
+
+
+
+
+
+
+
+ 详情:
+
+
+
+
+
+ {{ formatName(scope.row.stationCode) }}
+
+
+
+
+ {{ formatTime(scope.row.startTime) }}
+
+
+
+
+ {{ formatTime(scope.row.stopTime) }}
+
+
+
+
+ {{ formatTime(scope.row.endTime) }}
+
+
+
+
+
+
+
+
+ 显示默认停站时间和运行等级
+
+
+
+
+ 确 定
+ 取 消
+
+
\ 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 05c69868f..e9194a6e5 100644
--- a/src/jmap/theme/fuzhou_01/planSchedule/index.vue
+++ b/src/jmap/theme/fuzhou_01/planSchedule/index.vue
@@ -27,7 +27,6 @@ import ModifyingPlan from '../menusPlan/modifyingPlan';
import AddTask from '../menusPlan/addTask';
import DeleteTask from '../menusPlan/deleteTask';
import ModifyingTask from '../menusPlan/modifyingTask';
-import WindowResizeHandler from '@/mixin/WindowResizeHandler';
export default {
name: 'Menus',
@@ -44,9 +43,6 @@ export default {
DeleteTask,
ModifyingTask
},
- mixins: [
- WindowResizeHandler
- ],
props: {
group: {
type: String,
@@ -55,20 +51,20 @@ export default {
},
data() {
return {
- width: 0,
- height: 0
};
},
computed: {
skinCode() {
return this.$route.query.skinCode || '02';
+ },
+ width() {
+ return this.$store.state.app.width;
+ },
+ height() {
+ return this.$store.state.app.height;
}
},
methods: {
- resizeHandler() {
- this.width = this._clientWidth;
- this.height = this._clientHeight;
- },
setPosition() {
this.$nextTick(() => {
this.$refs.schedule.setPosition();
diff --git a/src/jmap/utils/parser.js b/src/jmap/utils/parser.js
index 4ecbb8788..02701778b 100644
--- a/src/jmap/utils/parser.js
+++ b/src/jmap/utils/parser.js
@@ -160,9 +160,6 @@ export function parser(data, skinCode) {
section['relSwitchCode'] = elem.code;
}
- mapDevice[elem.code]['sectionAInstance'] = cnodeSection;
- mapDevice[elem.code]['sectionBInstance'] = lnodeSection;
- mapDevice[elem.code]['sectionCInstance'] = rnodeSection;
rnodeSection['layer'] = -1;
}
}, this);
diff --git a/src/layout/index.vue b/src/layout/index.vue
index 0fe7b0698..edf1684bd 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -2,31 +2,22 @@
+
diff --git a/src/views/components/filterCity/index.vue b/src/views/components/filterCity/index.vue
index 28abc0fc8..7272b10f5 100644
--- a/src/views/components/filterCity/index.vue
+++ b/src/views/components/filterCity/index.vue
@@ -175,7 +175,6 @@ export default {
}
},
filterSelectChange(filterSelect) {
- this.$emit('changeFilter', filterSelect);
if (this.isCascader) {
// 设置二级联动组件
localStore.set('cityCode', filterSelect[0]);
diff --git a/src/views/components/limits/distribute.vue b/src/views/components/limits/distribute.vue
deleted file mode 100644
index 57679145c..000000000
--- a/src/views/components/limits/distribute.vue
+++ /dev/null
@@ -1,203 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/views/components/limits/index.vue b/src/views/components/limits/index.vue
index 195a155c7..dee3b4d6a 100644
--- a/src/views/components/limits/index.vue
+++ b/src/views/components/limits/index.vue
@@ -12,8 +12,7 @@
- {{ $ConstSelect.translate(scope.row.forever,
- 'Whether') }}
+ {{ $ConstSelect.translate(scope.row.forever, 'Whether') }}
@@ -102,12 +101,12 @@ export default {
});
return sums;
},
- transfer(courseModel) {
+ transfer(courseModel) { // 转增
if (this.$refs) {
this.$refs.transfer.doShow(courseModel);
}
},
- distribute(courseModel) {
+ distribute(courseModel) { // 分发
if (this.$refs) {
this.$refs.distribute.doShow(courseModel);
}
diff --git a/src/views/components/limits/transfer.vue b/src/views/components/limits/transfer.vue
deleted file mode 100644
index 238fa0a61..000000000
--- a/src/views/components/limits/transfer.vue
+++ /dev/null
@@ -1,209 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/views/components/pay/commit.vue b/src/views/components/pay/commit.vue
index 5ecb4e1b6..7cd51ac9e 100644
--- a/src/views/components/pay/commit.vue
+++ b/src/views/components/pay/commit.vue
@@ -149,14 +149,15 @@ export default {
if (val) {
this.saleModel.price = val.price;
this.saleModel.goodsId = val.id;
- if (this.$route.query.permissionType == PermissionType.LESSON ||
- this.$route.query.permissionType == PermissionType.EXAM) {
- this.saleModel.name = val.lessonName;
- } else if (this.$route.query.permissionType == PermissionType.SCREEN) {
- this.saleModel.name = val.name;
- } else {
- this.saleModel.name = val.prdName;
- }
+ this.saleModel.name = val.name;
+ // if (this.$route.query.permissionType == PermissionType.LESSON ||
+ // this.$route.query.permissionType == PermissionType.EXAM) {
+ // this.saleModel.name = val.name;
+ // } else if (this.$route.query.permissionType == PermissionType.SCREEN) {
+ // this.saleModel.name = val.name;
+ // } else {
+ // this.saleModel.name = val.prdName;
+ // }
}
}
},
diff --git a/src/views/components/pay/index.vue b/src/views/components/pay/index.vue
index 3124f12b0..cb725cb63 100644
--- a/src/views/components/pay/index.vue
+++ b/src/views/components/pay/index.vue
@@ -44,7 +44,6 @@ import { UrlConfig } from '@/router/index';
import CommitDraft from './commit';
import ConfirmDraft from './confirm';
import FinishDraft from './finish';
-import WindowResizeHandler from '@/mixin/WindowResizeHandler';
export default {
name: 'LessonDetail',
@@ -53,10 +52,8 @@ export default {
ConfirmDraft,
FinishDraft
},
- mixins: [WindowResizeHandler],
data() {
return {
- height: '',
active: -1,
order: {},
title: '',
@@ -78,6 +75,14 @@ export default {
case PermissionType.SCREEN: return this.$t('global.timeUnitPrice');
}
return '';
+ },
+ height() {
+ if (/\/dp\//.test(this.$route.path) ||
+ /\/plan\//.test(this.$route.path)) {
+ return this.$store.state.app.height;
+ }
+
+ return this.$store.state.app.height - 61;
}
},
watch: {
@@ -89,17 +94,16 @@ export default {
this.initLoadPage();
},
methods: {
- resizeHandler: function () {
- this.height = this._clientHeight - 61;
- },
// 加载课程信息
initLoadPage() {
const data = {
- mapId: this.$route.query.mapId,
- lessonId: this.$route.params.lessonId,
- productType: this.$route.query.permissionType,
- mapProductCode: this.$route.query.prdCode
+ permissionType: this.$route.query.permissionType
};
+ if (this.$route.query.permissionType != '04') {
+ data['mapId'] = this.$route.query.mapId;
+ data['prdCode'] = this.$route.query.prdCode;
+ data['lessonId'] = this.$route.query.lessonId;
+ }
getCommodityDetailByParams(data).then(response => {
this.active = 0;
diff --git a/src/views/dashboard/echarts/permission.vue b/src/views/dashboard/echarts/permission.vue
index 4880ff445..9bc1e78c2 100644
--- a/src/views/dashboard/echarts/permission.vue
+++ b/src/views/dashboard/echarts/permission.vue
@@ -27,14 +27,14 @@ export default {
data() {
return {
option: {
- backgroundColor: '#f0f0f0',
+ backgroundColor: '#fefefe',
title: {
text: '',
subtext: '',
subtextStyle: {
color: '#909399'
},
- y: 10,
+ y: 20,
left: 'center'
},
tooltip: {
@@ -43,7 +43,7 @@ export default {
top: '17%',
width: '45%',
bottom: '5%',
- left: 30,
+ left: 50,
containLabel: true
}],
xAxis: {
@@ -159,10 +159,10 @@ export default {
};
(this.permissionList.filter(elem => { return elem.mapName == mapName; })|| []).forEach(elem => {
- if (elem.mapProductName == Object.keys(permissionMap)[Object.keys(permissionMap).length -1]) {
- permissionMap[`${elem.mapProductName}`] = elem.remains;
+ if (elem.prdName == Object.keys(permissionMap)[Object.keys(permissionMap).length -1]) {
+ permissionMap[`${elem.prdName}`] = elem.remains;
} else {
- permissionMap[`${elem.mapProductName}-${permissionDict[elem.type]}`] = elem.remains;
+ permissionMap[`${elem.prdName}-${permissionDict[elem.permissionType]}`] = elem.remains;
}
});
@@ -170,7 +170,7 @@ export default {
const values = Object.values(permissionMap);
const sum = values.reduce((total, num) => { return total + num; });
- this.option.title.text = `剩余权限分布图(${mapName})`;
+ this.option.title.text = `剩余权限分布图 —— ${mapName}`;
this.option.title.subtext = `权限总计${sum}个`;
this.option.xAxis.show = true;
@@ -179,7 +179,7 @@ export default {
this.option.xAxis.data = keys;
this.option.series[0].data = values;
- this.option.series[1].data = keys.map(name => { return {name, value: permissionMap[name]}; });
+ this.option.series[1].data = keys.filter(name => { return permissionMap[name]; } ).map(name => { return {name, value: permissionMap[name]}; });
} else {
this.option.title.text = `剩余权限分布图(暂无地图线路数据)`;
this.option.title.subtext = `权限总计0个`;
@@ -199,7 +199,7 @@ export default {
.lesson-select {
position: absolute;
display: flex;
- top: 30px;
- right: 30px;
+ top: 20px;
+ right: 20px;
}
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index 9cb824874..578ac8cce 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -16,7 +16,6 @@
@@ -84,6 +91,5 @@ export default {
.perssmin-card {
display: flex;
justify-content: center;
- margin-top: 20px;
}
diff --git a/src/views/demonstration/deomonList/index.vue b/src/views/demonstration/deomonList/index.vue
index b8b5fd3b7..a3b6d72ed 100644
--- a/src/views/demonstration/deomonList/index.vue
+++ b/src/views/demonstration/deomonList/index.vue
@@ -71,8 +71,6 @@ export default {
return true;
}
},
- watch: {
- },
methods: {
filterNode(value, data) {
if (!value) return true;
@@ -99,9 +97,6 @@ export default {
doClose() {
this.loading = false;
this.dialogShow = false;
- },
- handleWatch() {
-
},
async handleJoin() {
if (this.group) {
diff --git a/src/views/demonstration/detail/index.vue b/src/views/demonstration/detail/index.vue
index 10b24ee54..86e54fa16 100644
--- a/src/views/demonstration/detail/index.vue
+++ b/src/views/demonstration/detail/index.vue
@@ -30,9 +30,9 @@
-
{{ $t('global.buy') }}
-
{{ $t('global.distributePermission') }}
-
{{ $t('global.transferQRCode') }}
+
{{ $t('global.buy') }}
+
{{ $t('global.distributePermission') }}
+
{{ $t('global.transferQRCode') }}
{{ $t('demonstration.startSimulation') }}
{{ $t('demonstration.createRoom') }}
{{ $t('demonstration.enterRoom') }}
@@ -49,22 +49,17 @@ import { launchFullscreen } from '@/utils/screen';
import { queryPermissionSimulation } from '@/api/management/author';
import { postCreateRoom, getjointTraining, checkRoomExist } from '@/api/chat';
import { UrlConfig } from '@/router/index';
-import { simulationNotify } from '@/api/simulation';
+import { simulationNotify, schedulingNotify } from '@/api/simulation';
import localStore from 'storejs';
import LimitList from '@/views/components/limits/index';
-import WindowResizeHandler from '@/mixin/WindowResizeHandler';
export default {
name: 'ExamDetailList',
components: {
LimitList
},
- mixins: [
- WindowResizeHandler
- ],
data() {
return {
- height: '',
tryTime: 0,
goodsId: '',
tryUser: 0,
@@ -94,7 +89,7 @@ export default {
},
hasPermssion() {
let isShow = false;
- if (this.courseModel.pmsList.length) {
+ if (this.courseModel.pmsList && this.courseModel.pmsList.length) {
isShow = true;
}
return isShow;
@@ -110,6 +105,9 @@ export default {
},
mapId() {
return this.$route.params.mapId;
+ },
+ height() {
+ return this.$store.state.app.height - 50;
}
},
watch: {
@@ -151,9 +149,6 @@ export default {
this.$messageBox(this.$t('error.getProductListFailed'));
}
},
- resizeHandler: function () {
- this.height = this._clientHeight - 50;
- },
async getJointTrainingList() {
try {
if (this.mapId) {
@@ -190,15 +185,14 @@ export default {
pmsList: resp.data.pmsList || [],
PermissionType: PermissionType.SIMULATION
};
-
const rest = await queryPermissionSimulation({ mapId: this.courseModel.mapId, prdCode: this.courseModel.prdCode });
this.courseModel.pmsList = rest.data;
- if (!this.courseModel.pmsList.length) {
+ if (!this.courseModel.pmsList) {
this.tryUser = 1;
const paras = {
mapId: data.id,
- mapProductCode: data.code,
- productType: PermissionType.SIMULATION
+ prdCode: data.code,
+ permissionType: PermissionType.SIMULATION
};
try {
@@ -226,34 +220,39 @@ export default {
const query = { skinCode: this.courseModel.skinCode, group: this.jointGroup };
this.$router.push({ path: `/trainroom`, query: query });
},
- async start() {
- if (this.courseModel.prdType == '03') {
- try {
- this.buttonLoading = true;
- const param = {
- mapId: Number(this.mapId),
- prdCode: this.courseModel.prdCode
- };
- const res = await postCreateRoom(param);
- if (res && res.code == 200) {
- const query = { skinCode: this.courseModel.skinCode, group: res.data };
- this.$router.push({ path: `/trainroom`, query: query });
- }
- } catch (error) {
- this.buttonLoading = false;
- if (error.code == 20001) {
- this.$confirm(this.$t('tip.createRoomFailedHint'), this.$t('global.tips'), {
- confirmButtonText: this.$t('global.confirm'),
- cancelButtonText: this.$t('global.cancel'),
- type: 'warning'
- }).then(() => {}).catch(() => {});
- }
- if (error.code == 500009) {
- this.$messageBox(error.message);
- }
+ async createRoom() {
+ try {
+ this.buttonLoading = true;
+ const param = {
+ mapId: Number(this.mapId),
+ prdCode: this.courseModel.prdCode
+ };
+ const res = await postCreateRoom(param);
+ if (res && res.code == 200) {
+ const query = { skinCode: this.courseModel.skinCode, group: res.data };
+ this.$router.push({ path: `/trainroom`, query: query });
}
+ } catch (error) {
+ this.buttonLoading = false;
+ if (error.code == 20001) {
+ this.$confirm(this.$t('tip.createRoomFailedHint'), this.$t('global.tips'), {
+ confirmButtonText: this.$t('global.confirm'),
+ cancelButtonText: this.$t('global.cancel'),
+ type: 'warning'
+ }).then(() => {}).catch(() => {});
+ }
+ if (error.code == 500009) {
+ this.$messageBox(error.message);
+ }
+ }
+ },
+ async start() {
+ if (this.courseModel.prdType == '05') {
+ this.jumpScheduling();
+ } else if (this.courseModel.prdType == '03') {
+ this.createRoom();
} else {
- if (this.courseModel.pmsList.length) {
+ if (this.courseModel.pmsList && this.courseModel.pmsList.length) {
this.jump();
} else {
if (this.tryTime <= 1) {
@@ -270,6 +269,18 @@ export default {
}
}
},
+ jumpScheduling() {
+ this.buttonLoading = true;
+ const data = { mapId: this.courseModel.mapId, code: this.currentPrdCode };
+ schedulingNotify(data).then(resp => {
+ const query = { skinCode: this.courseModel.skinCode, group: resp.data, prdType: this.courseModel.prdType, mapId: this.courseModel.mapId, code: this.currentPrdCode, goodsId: this.goodsId, try: this.tryUser };
+ this.$router.push({ path: `${UrlConfig.display}/demon`, query: query });
+ launchFullscreen();
+ }).catch(error => {
+ this.$messageBox(this.$t('error.createSimulationFailed') + error.message);
+ this.buttonLoading = false;
+ });
+ },
jump() {
const data = { mapId: this.courseModel.mapId, code: this.currentPrdCode };
this.buttonLoading = true;
diff --git a/src/views/demonstration/home.vue b/src/views/demonstration/home.vue
index 2c8cd4793..0b346aee1 100644
--- a/src/views/demonstration/home.vue
+++ b/src/views/demonstration/home.vue
@@ -3,7 +3,7 @@
- {{$t('demonstration.simulationSystem')}}
+ {{ $t('demonstration.simulationSystem') }}
@@ -13,14 +13,13 @@
- {{$t('demonstration.simulationSystemDescription')}}
+ {{ $t('demonstration.simulationSystemDescription') }}
diff --git a/src/views/display/demon/runPlanView.vue b/src/views/display/demon/runPlanView.vue
index 86241e2ed..3ac98a114 100644
--- a/src/views/display/demon/runPlanView.vue
+++ b/src/views/display/demon/runPlanView.vue
@@ -16,11 +16,9 @@
import { mapGetters } from 'vuex';
import { runDiagramGetTime } from '@/api/simulation';
import { timeFormat } from '@/utils/date';
-import WindowResizeHandler from '@/mixin/WindowResizeHandler';
export default {
name: 'RunPlanView',
- mixins: [WindowResizeHandler],
props: {
group: {
type: String,
@@ -166,6 +164,9 @@ export default {
},
'$store.state.runPlan.planUpdateCount': function () {
this.updateRunPlanData(this.$store.state.runPlan.updateData);
+ },
+ '$store.state.app.windowSizeCount': function() {
+ this.reSize({ width: this.$store.state.app.width, height: this.$store.state.app.height - 55 });
}
},
mounted() {
@@ -186,9 +187,6 @@ export default {
doClose() {
this.dialogShow = false;
},
- resizeHandler() {
- this.reSize({ width: this._clientWidth, height: this._clientHeight - 55 });
- },
loadChartPage() {
const stations = this.$store.state.runPlan.stations;
const planData = this.$store.state.runPlan.planData;
diff --git a/src/views/display/demon/scheduling.vue b/src/views/display/demon/scheduling.vue
new file mode 100644
index 000000000..abebcbc44
--- /dev/null
+++ b/src/views/display/demon/scheduling.vue
@@ -0,0 +1,328 @@
+
+
+
+
+
+
diff --git a/src/views/display/demon/setTime.vue b/src/views/display/demon/setTime.vue
index 334a938ac..08753052f 100644
--- a/src/views/display/demon/setTime.vue
+++ b/src/views/display/demon/setTime.vue
@@ -1,113 +1,117 @@
-
-
-
-
-
-
-
-
-
- {{`(可加载的最大车辆个数:${maxNumber})`}}
-
-
-
-
+
+
+
+
+
+
+
+ {{ `(可加载的最大车辆个数:${maxNumber})` }}
+
+
+
+
\ No newline at end of file
+ this.$emit('ConfirmSelectBeginTime', model);
+ this.doClose();
+ }
+ });
+ }
+ }
+};
+
diff --git a/src/views/display/index.vue b/src/views/display/index.vue
index bb02ae19a..4d1a99754 100644
--- a/src/views/display/index.vue
+++ b/src/views/display/index.vue
@@ -18,7 +18,7 @@
@tryTime="tryTime"
@hidepanel="hidepanel"
@quitQuest="quitQuest"
- @showIbp="showIbp"
+ @showScheduling="showScheduling"
/>
@@ -46,12 +46,12 @@
-
+
@@ -69,8 +69,8 @@ import MenuSchema from '@/views/display/menuSchema';
import MenuSystemTime from '@/views/display/menuSystemTime';
import MenuPlan from '@/views/display/menuPlan';
import MenuScript from '@/views/display/menuScript';
-import WindowResizeHandler from '@/mixin/WindowResizeHandler';
import AddQuest from './demon/addQuest';
+import Scheduling from './demon/scheduling';
import { mapGetters } from 'vuex';
import { getTrainingDetail, getTrainingStepsDetail } from '@/api/jmap/training';
import { setGoodsTryUse } from '@/api/management/goods';
@@ -78,16 +78,13 @@ import { getProductDetail } from '@/api/management/mapprd';
import { runDiagramQuit, loadScript, getSimulationInfo } from '@/api/simulation';
import { OperateMode, TrainingMode } from '@/scripts/ConstDic';
import { checkLoginLine } from '@/api/login';
-// import { isFullscreen } from '@/utils/screen';
import { loadMapData, loadMapDataById } from '@/utils/loaddata';
-// import { handleToken } from '@/utils/auth';
import { EventBus } from '@/scripts/event-bus';
import Vue from 'vue';
// 三维
import Jl3dSimulation from '@/views/jlmap3d/simulation/jl3dsimulation';
import Jl3dDrive from '@/views/jlmap3d/drive/jl3ddrive';
-import IbpPlate from '@/views/ibp/index'
export default {
name: 'DisplayDraft',
@@ -108,9 +105,8 @@ export default {
MenuSystemTime,
Jl3dSimulation,
Jl3dDrive,
- IbpPlate
+ Scheduling
},
- mixins: [WindowResizeHandler],
props: {
size: {
type: Object,
@@ -126,7 +122,6 @@ export default {
timeDemonNum: 0,
checkLine: null,
offset: 15,
- right: 0,
mouseNum: 1,
ierval: null,
mouseNumTime: 0,
@@ -135,14 +130,14 @@ export default {
panelShow: true,
simulationShow: false,
drivingShow: false,
- questId: 0, // 加载任务的Id
+ questId: 0, // 加载任务的Id
group: '',
prdTypeMap: {
- '01': '01', // 现地 => 现地
- '02': '02', // 行调 => 行调
- '04': '02' // 司机加实 => 行调
- },
- ibpShow: false
+ '01': '01', // 现地 => 现地
+ '02': '02', // 行调 => 行调
+ '04': '02', // 司机 => 行调
+ '05': '' // 派班 => null
+ }
};
},
computed: {
@@ -160,6 +155,15 @@ export default {
...mapGetters('config', [
'canvasId'
]),
+ width() {
+ return this.$store.state.app.width;
+ },
+ height() {
+ return this.$store.state.app.height;
+ },
+ right() {
+ return this.$store.state.config.width / 2 - 55;
+ },
trainingId() {
return this.$route.query.trainingId;
},
@@ -195,6 +199,9 @@ export default {
},
isDrive() {
return this.prdType == '04';
+ },
+ isShowScheduling() {
+ return this.$route.query.prdType == '05';
}
},
watch: {
@@ -221,6 +228,9 @@ export default {
}
});
},
+ '$store.state.app.windowSizeCount': function() {
+ this.setWindowSize();
+ },
$route() {
this.$nextTick(() => {
this.initLoadData();
@@ -228,14 +238,15 @@ export default {
}
},
async created() {
+ this.mode = this.$route.params.mode;
this.group = this.$route.query.group || '';
},
async mounted() {
- this.mode = this.$route.params.mode;
EventBus.$on('clearCheckLogin', () => {
this.clearCheckLogin();
});
+ await this.setWindowSize();
await this.initLoadData();
},
async beforeDestroy() {
@@ -248,17 +259,6 @@ export default {
EventBus.$off('clearCheckLogin');
},
methods: {
- resizeHandler() {
- const width = this.size ? this.size.width : this._clientWidth;
- const height = this.size ? this.size.height : this._clientHeight;
-
- this.right = width /2 - 55;
- this.$store.dispatch('config/resize', { width, height });
-
- this.$nextTick(() => {
- this.$store.dispatch('training/updateOffsetStationCode', { offsetStationCode: this.offsetStationCode });
- });
- },
// 清除检查在线定时器
clearAllTimer() {
if (this.ierval) {
@@ -558,11 +558,9 @@ export default {
this.$refs.Jl3dSimulation.show(this.skinCode);
}
},
- showIbp() {
- this.panelShow = false;
- this.ibpShow = true;
- this.$refs.ibpPlate.show();
- },
+ showScheduling() {
+ this.$refs.scheduling.doShow();
+ },
showpanel() {
this.panelShow = true;
this.simulationShow = false;
@@ -571,10 +569,6 @@ export default {
this.panelShow = true;
this.drivingShow = false;
},
- hideIbp() {
- this.panelShow = true;
- this.ibpShow = false;
- },
runPlanViewShow() {
this.$refs.runPlanView.doShow();
},
@@ -583,6 +577,16 @@ export default {
},
faultChooseShow() {
this.$refs.faultChoose.doShow();
+ },
+ setWindowSize() {
+ this.$nextTick(() => {
+ const width = this.size ? this.size.width : this.width;
+ const height = this.size ? this.size.height : this.height;
+
+ this.$store.dispatch('config/resize', { width, height });
+
+ this.$store.dispatch('training/updateOffsetStationCode', { offsetStationCode: this.offsetStationCode });
+ });
}
}
};
diff --git a/src/views/display/menuDemon.vue b/src/views/display/menuDemon.vue
index 5c1e3d1d6..456031baf 100644
--- a/src/views/display/menuDemon.vue
+++ b/src/views/display/menuDemon.vue
@@ -7,9 +7,9 @@