From 5762399c6b910a97ed6117e347844ce7c1090547 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Thu, 18 Feb 2021 15:50:14 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E4=B8=80=E5=8F=B7=E7=BA=BF?=
=?UTF-8?q?=20=E8=8F=9C=E5=8D=95=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ningbo_01/menus/dialog/routeSelection.vue | 4 +-
src/jmapNew/theme/ningbo_01/menus/menuBar.vue | 157 ++++++++----------
2 files changed, 74 insertions(+), 87 deletions(-)
diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue
index f4325c6e8..0cbbfa036 100644
--- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue
@@ -135,6 +135,7 @@ export default {
doClose() {
this.loading = false;
this.dialogShow = false;
+ this.row = null;
this.restoreBeforeDevices();
this.$refs.table.setCurrentRow();
this.$store.dispatch('training/emitTipFresh');
@@ -220,9 +221,9 @@ export default {
commitOperate(menuOperate.Signal.arrangementRoute, {routeCode:this.row.code}, 1).then(({valid, operate})=>{
this.loading = false;
if (valid) {
- this.doClose();
const signal = this.$store.getters['map/getDeviceByCode'](this.row.startSignalCode);
operate.message = `
命令:进路设置
始端信号机:${signal.name}
进路:${this.row.name}
`;
+ this.doClose();
this.$refs.confirmTip.doShow(operate);
}
}).catch(() => {
@@ -236,7 +237,6 @@ export default {
const operate = {
operation: OperationEvent.Command.cancel.menu.operation
};
-
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
diff --git a/src/jmapNew/theme/ningbo_01/menus/menuBar.vue b/src/jmapNew/theme/ningbo_01/menus/menuBar.vue
index cf763ff5d..06849ed0a 100644
--- a/src/jmapNew/theme/ningbo_01/menus/menuBar.vue
+++ b/src/jmapNew/theme/ningbo_01/menus/menuBar.vue
@@ -19,65 +19,48 @@
-
+
@@ -685,7 +668,7 @@ export default {
initMenu(menu) {
const type = State2SimulationMap[this.$store.state.training.prdType];
this.menu = MenuContextHandler.menuBarConvert(this.menuNormal[type], this.$store.state.training.operatemode);
- if (this.menu[2]) {
+ if (this.menu[2] && this.$store.state.training.prdType == '02') {
this.menu[2].children = this.initStationList();
}
this.clickEvent();
@@ -977,7 +960,6 @@ export default {
$height: 30px;
$menuPadding: 10px;
$menuItemHeight: 30px;
- $menuItemWidth: 180px;
$menuItemPadding: 5px;
#menuBar {
@@ -1026,11 +1008,11 @@ export default {
list-style: none;
border: 1px solid gray !important;
line-height: $menuItemHeight;
- width: $menuItemWidth;
+ background: #F0F0F0;
padding: 0px;
margin: 0px;
max-height: 550px;
- overflow-y: scroll;
+ overflow-y: auto;
&::-webkit-scrollbar {
width: 4px;
@@ -1053,15 +1035,40 @@ export default {
list-style: none;
background: #F0F0F0;
line-height: $menuItemHeight;
- width: $menuItemWidth;
- bottom: $menuItemHeight;
}
- .active {
+ .menu-ul-block-out{
position: absolute;
- display: block !important;
+ width: 100%;
+ height: 100%;
+ display: inline-block;
+ overflow: hidden;
}
+ .menu-ul-block{
+ position: relative;
+ margin-left: 100%;
+ overflow-x: hidden;
+ display: inline-block;
+ overflow-y: auto;
+ width: 100%;
+ height: 30px;
+ }
+
+ .nav-ul.active {
+ position: absolute;
+ display: flex;
+ flex-direction: column;
+ }
+ .menu-ul.active{
+ display: flex;
+ flex-direction: column;
+ padding:0;
+ max-height: 200px;
+ overflow: auto;
+ position: fixed;
+ border-left: 1px #CACACA solid;
+ }
.menu-ul-text {
font-size: 14px;
color: #000;
@@ -1070,56 +1077,36 @@ export default {
line-height: $menuItemHeight;
}
- .menu-li {
- text-align: left;
- background: #F0F0F0;
- height: $menuItemHeight;
- line-height: $menuItemHeight;
- }
-
.menu-li-block {
display: flex;
+ flex-direction: row;
+ justify-content: flex-start;
letter-spacing: 0;
height: $menuItemHeight;
- line-height: $menuItemHeight;
+ position: relative;
}
- .menu-li-text {
- font-size: 14px;
- color: #000;
- }
-
- .menu-li-text .status {
- display: inline-block;
+ .menu-li-block .status {
border-right: 1px inset #CACACA;
width: $width;
+ display: block;
}
- .menu-li-text .label {
- display: inline-block;
+ .menu-li-block .label {
+ font-size: 14px;
+ display: block;
+ color: #000;
+ padding:0px 10px 0px 5px;
+ line-height: $menuItemHeight;
+ white-space: nowrap;
}
.menu-separator {
text-align: left;
- background: #F0F0F0;
- height: 2px;
- line-height: 2px;
- }
-
- .menu-separator .status {
- display: inline-block;
- border-right: 1px inset #CACACA;
- width: $width;
- height: 100%;
- background: #EFECDE;
- }
-
- .menu-separator .separator {
- display: inline-block;
+ height: 1px;
background: #CACACA;
- margin-left: 5px;
- height: 2px;
- width: $menuItemWidth - $width - 30px;
+ margin-left:30px;
+ line-height: 2px;
}
.menu-li-block:hover {