From 28bd61701bb409257ea0dd3c78f32bd0b45ebbd5 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期一, 06 三月 2023 09:16:35 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.20.39:8989/r/LFWEB_NEW --- src/components/navMenu.vue | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/components/navMenu.vue b/src/components/navMenu.vue index 1cec320..e171aac 100644 --- a/src/components/navMenu.vue +++ b/src/components/navMenu.vue @@ -216,7 +216,8 @@ }, //榧犳爣绉诲叆鑿滃崟浜嬩欢 setMenuMove(index, item) { - if (item.perms != null) { + + if (item.perms != null && item.perms != "") { this.$router.push(item.url); if (this.showFlag != null) { @@ -226,10 +227,12 @@ if (item.url == "Thematic") { this.signInsertOpLog("缁煎悎灞曠ず", item.cnName) } + + this.changeSelectStyle = index; + sessionStorage.setItem('changeSelectStyle', index) } else { if (this.showFlag != index) { this.showFlag = index; - } else { this.showFlag = null; } @@ -239,9 +242,8 @@ sessionStorage.removeItem('changeliSelect') this.$set(this, 'changeliSelect', null) } - sessionStorage.setItem('changeSelectStyle', index) - this.changeSelectStyle = index; + }, closeAllChildren() { var val = this.listMenu @@ -263,7 +265,13 @@ } }, setLiClick(res, index) { - this.signInsertOpLog(this.listMenu[index].cnName, res.cnName) + + this.changeSelectStyle = index; + sessionStorage.setItem('changeSelectStyle', index) + sessionStorage.removeItem('hanleselectmochaitmo') + sessionStorage.removeItem('hanleselectindex') + + // this.signInsertOpLog(this.listMenu[index].cnName, res.cnName) setTimeout(() => { this.changeliSelect = res.cnName; @@ -317,16 +325,19 @@ for (var i in res) { res[i].checkClass = res[i].css + '1'; res[i].show = false; //鎺у埗鏄鹃殣 - if (res[i].perms == null) { + + if (res[i].perms == null || res[i].perms == "") { const result = await selectMenuRecursive({ id: res[i].id }); if (result.code == 200) { + res[i].children = result.result.filter((value) => { return value.isShow == 1; }) .filter((value) => { return value.pid == res[i].id; }); + } this.listMenu.push(res[i]); // this.changeSelectStyle = this.listMenu.length - 1; -- Gitblit v1.9.3