From ed66d5c2e7fc3d791f401de80f9d424cb1da001b Mon Sep 17 00:00:00 2001 From: From-wh Date: Mon, 24 Apr 2023 16:33:59 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E6=A0=87=E7=AD=BE/=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/component/columnsAside.vue | 2 ++ .../src/layout/navBars/breadcrumb/index.vue | 2 +- .../src/layout/navBars/breadcrumb/setings.vue | 15 ++++++++---- .../src/layout/navBars/breadcrumb/user.vue | 21 +++++++++-------- .../src/layout/navBars/tagsView/tagsView.vue | 23 +++++++++++-------- 5 files changed, 39 insertions(+), 24 deletions(-) diff --git a/template/admin/src/layout/component/columnsAside.vue b/template/admin/src/layout/component/columnsAside.vue index ef61f0f1c..2e4bba10c 100644 --- a/template/admin/src/layout/component/columnsAside.vue +++ b/template/admin/src/layout/component/columnsAside.vue @@ -209,6 +209,8 @@ export default { height: 100%; background: var(--prev-bg-columnsMenuBar); box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08); + border-right: 1px solid var(--prev-border-color-lighter); + ul { position: relative; li { diff --git a/template/admin/src/layout/navBars/breadcrumb/index.vue b/template/admin/src/layout/navBars/breadcrumb/index.vue index fedf42bf4..b2fd03783 100644 --- a/template/admin/src/layout/navBars/breadcrumb/index.vue +++ b/template/admin/src/layout/navBars/breadcrumb/index.vue @@ -79,6 +79,6 @@ export default { padding-right: 15px; overflow: hidden; background: var(--prev-bg-topBar); - // border-bottom: 1px solid var(--prev-border-color-lighter); + border-bottom: 1px solid var(--prev-border-color-lighter); } diff --git a/template/admin/src/layout/navBars/breadcrumb/setings.vue b/template/admin/src/layout/navBars/breadcrumb/setings.vue index c30bcfabf..8fffc1d52 100644 --- a/template/admin/src/layout/navBars/breadcrumb/setings.vue +++ b/template/admin/src/layout/navBars/breadcrumb/setings.vue @@ -196,7 +196,7 @@ -
+
{{ $t('message.layout.fourIsTagsviewIcon') }}
@@ -233,10 +233,10 @@ {{ $t('message.layout.fiveTitle') }} -
+
{{ $t('message.layout.fiveTagsStyle') }}
- - + --> + + 卡片 + 灵动 + 圆滑 +
{{ $t('message.layout.fiveAnimation') }}
- 右滑 左滑 透明 + 右滑
diff --git a/template/admin/src/layout/navBars/breadcrumb/user.vue b/template/admin/src/layout/navBars/breadcrumb/user.vue index dde1d1f9c..132c1c6a7 100644 --- a/template/admin/src/layout/navBars/breadcrumb/user.vue +++ b/template/admin/src/layout/navBars/breadcrumb/user.vue @@ -26,9 +26,7 @@
-
- -
+
- {{ $t('message.user.dropdown1') }} - + + {{ $t('message.user.dropdown6') }} + + + + {{ $t('message.user.dropdown5') }} +
+ +
@@ -225,7 +227,8 @@ export default { }) .catch(() => {}); }, 150); - } else if (path === 'wareHouse') { + } else if (path === 'user') { + this.$router.push({ name: 'systemUser' }); } else { this.$router.push(path); } diff --git a/template/admin/src/layout/navBars/tagsView/tagsView.vue b/template/admin/src/layout/navBars/tagsView/tagsView.vue index ba45c569d..b2787ead7 100644 --- a/template/admin/src/layout/navBars/tagsView/tagsView.vue +++ b/template/admin/src/layout/navBars/tagsView/tagsView.vue @@ -252,8 +252,7 @@ export default { this.closeCurrentTagsView(path); break; case 2: - this.$router.push({ path, query: currentTag.query }); - this.closeOtherTagsView(path); + this.closeOtherTagsView(path, currentTag.query); break; case 3: this.closeAllTagsView(path); @@ -284,20 +283,22 @@ export default { // this.addBrowserSetSession(this.tagNavList); }, // 3、关闭其它 tagsView:如果是设置了固定的(isAffix),不进行关闭 - closeOtherTagsView(path) { + closeOtherTagsView(path, query) { let tagsViewList = []; this.tagsViewRoutesList.map((v) => { - if (v.meta.isAffix && !v.meta.isHide) tagsViewList.push({ ...v }); - if ((v.path = path)) tagsViewList.push({ ...v }); + if ((v.meta && v.meta.isAffix) || v.path === path) tagsViewList.push({ ...v }); }); + console.log(tagsViewList, this.tagsViewRoutesList, path); this.addBrowserSetSession(tagsViewList); + this.$router.push({ path, query }); + // this.addTagsView(path); }, // 4、关闭全部 tagsView:如果是设置了固定的(isAffix),不进行关闭 closeAllTagsView(path) { let tagsViewList = []; this.tagsViewRoutesList.map((v) => { - if (v.meta.isAffix && !v.meta.isHide) { + if (v.meta.isAffix) { tagsViewList.push({ ...v }); if (tagsViewList.some((v) => v.path === path)) this.$router.push({ path, query: this.$route.query }); else this.$router.push({ path: v.path, query: this.$route.query }); @@ -326,6 +327,9 @@ export default {