From bc9cd67681232e49395c995dee40f4cfd3bf9cd7 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 6 May 2020 18:29:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/beijing_01/menus/menuBar.vue | 9 +- src/views/iscs/iscsSystem/menuBar.vue | 103 ++++++++++++++++-- .../dataRelation/routingoperate/route.vue | 4 +- 3 files changed, 99 insertions(+), 17 deletions(-) diff --git a/src/jmapNew/theme/beijing_01/menus/menuBar.vue b/src/jmapNew/theme/beijing_01/menus/menuBar.vue index c64cf27e5..3d20864df 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuBar.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuBar.vue @@ -769,14 +769,7 @@ export default { } }); }, - selectedClassB(item, index) { - const order = this.order || 0; - if (this.mode !== TrainingMode.TEACH) { // 编辑模式下可显示 - this.popupMenuB(item, index); - } else if (this.steps[order] && this.steps[order].type == 'bar') { // 操作步骤没有顶部操作顶部菜单都不可显示 - this.popupMenuB(item, index); - } - }, + popupMenuB(item, index) { this.$store.dispatch('menuOperation/setPopMenu', { position: null, menu: null }); const operate = { diff --git a/src/views/iscs/iscsSystem/menuBar.vue b/src/views/iscs/iscsSystem/menuBar.vue index d63a3ff56..51a2028fe 100644 --- a/src/views/iscs/iscsSystem/menuBar.vue +++ b/src/views/iscs/iscsSystem/menuBar.vue @@ -12,8 +12,8 @@ v-if="handleShow(item)" :id="getDomId(item)" :key="i" - class="nav-li" - @click.stop="selectedClassA(item, i)" + :class="i==classA?'nav-li nav-active':'nav-li'" + @click.stop="selectedClassA(item,i)" > {{ item.title }}