-
+
+
+
+
-
@@ -16,13 +19,15 @@ import JlmapVisual from '@/views/newMap/jlmapNew/index';
import { loadMapDataById } from '@/utils/loaddata';
import { EventBus } from '@/scripts/event-bus';
import RouteConfig from './routeConfig';
+import GernaratePlan from '../menus/gernaratePlanTrain';
// import RunplanConfig from './runplanConfig';
export default {
name: 'RouteMap',
components: {
JlmapVisual,
- RouteConfig
+ RouteConfig,
+ GernaratePlan
// RunplanConfig
},
props:{
@@ -34,7 +39,8 @@ export default {
dialogShow: false,
oldDevice: null,
oldsection:[],
- isFirst:true
+ isFirst:true,
+ loadingMap:false
};
},
watch: {
@@ -52,18 +58,16 @@ export default {
this.type = type;
if (this.type == 'routeMap') {
this.title = '交路配置';
+ } else if (this.type == 'generateRouting') {
+ this.title = '生成计划';
}
- // else if (this.type == 'runplanParams') {
- // this.title = '参数配置';
-
- // }
this.dialogShow = true;
await this.setWindowSize();
if (this.isFirst) {
this.loadInitPage();
}
this.isFirst = false;
- // if (this.type == 'runplanParams') { this.$refs.runPlanConfig.doShow(); }
+ if (this.type == 'generateRouting') { this.$refs.gernaratePlanTrain.doShow(); }
},
// 获取设备数据
getDeviceByEm(em) {
@@ -100,8 +104,14 @@ export default {
},
setWindowSize() {
this.$nextTick(() => {
- const width = this.$store.state.app.width * 0.7;
- const height = this.$store.state.app.height - 54;
+ let width;
+ if (this.type == 'generateRouting') {
+ width = this.$store.state.app.width - 500;
+ } else {
+ width = this.$store.state.app.width * 0.7;
+
+ }
+ const height = this.$store.state.app.height - 49;
this.$store.dispatch('config/resize', { width, height });
});
},
@@ -134,6 +144,13 @@ export default {
this.dialogShow = false;
if (this.type == 'routeMap') { this.$refs.routeConfig.createRouteEvent(); }
// if (this.type == 'runplanParams') { this.$refs.runPlanConfig.clear(); }
+ if (this.type == 'generateRouting') { this.$refs.gernaratePlanTrain.doClose(); }
+ },
+ closeDialog() {
+ this.dialogShow = false;
+ },
+ mapLoading(status) {
+ this.loadingMap = status;
}
}
};
@@ -177,5 +194,11 @@ export default {
}
}
+.el-dialog.is-fullscreen.content-route .el-dialog__header{
+ padding-top: 15px !important;
+ .el-dialog__headerbtn{
+ top:15px;
+ }
+}
diff --git a/src/views/planMonitor/editTool/index.vue b/src/views/planMonitor/editTool/index.vue
index abbb4867f..399b99e3e 100644
--- a/src/views/planMonitor/editTool/index.vue
+++ b/src/views/planMonitor/editTool/index.vue
@@ -40,7 +40,7 @@
-
+