From e7f86b5ad64b224163c321c46b0f61c294578a2b Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期日, 24 九月 2023 16:53:53 +0800 Subject: [PATCH] 改bug --- src/view/index.vue | 38 ++++++++++++-------------------------- 1 files changed, 12 insertions(+), 26 deletions(-) diff --git a/src/view/index.vue b/src/view/index.vue index 95ba3db..0d11519 100644 --- a/src/view/index.vue +++ b/src/view/index.vue @@ -91,7 +91,7 @@ } .left .box i { - font-size: 32px; + font-size: 24px; margin-bottom: 8px; } @@ -209,7 +209,6 @@ height: 100%; } </style> -<style></style> <template> <div class="all"> <div class="title"> @@ -260,7 +259,7 @@ </div> <div class="component_view"> <component class="com_index" v-for="(com, index) in tabs" :is="com.u" :key="upIndex + '|' + index" - v-show="com.k == tabActive"> + v-show="com.k == tabActive" @removeAllTab="removeAllTab"> </component> </div> </div> @@ -353,18 +352,6 @@ v: "WMS绠$悊", i: "font icon-a-Inventorydumprequest", c: [{ - k: 15, - v: "鍘熸潗鏂欏簱瀛�", - i: "font icon-shouye", - u: "" - }, - { - k: 16, - v: "鍥炲崟绠$悊", - i: "font icon-shouye", - u: "" - }, - { k: 17, v: "鍗婃垚鍝佸簱瀛�", i: "font icon-shouye", @@ -414,7 +401,7 @@ }, { k: 6, - v: "鎴愬搧妫�楠�", + v: "浜у搧妫�楠�", i: "font icon-shouye", u: "finishedProductInspection" }, @@ -473,12 +460,6 @@ u: "record-content" }, { - k: 24, - v: "鑷椤圭洰缁存姢", - i: "font icon-shouye", - u: "self-inspection" - }, - { k: 25, v: "鎶�鏈寚鏍囩淮鎶�", i: "font icon-shouye", @@ -503,11 +484,11 @@ u: "mbom" }, { - k: 30, - v: "鐢熶骇宸ヨ壓缁存姢", + k: 29, + v: "鑷椤圭洰缁存姢", i: "font icon-shouye", - u: "equipmentmaintain" - } + u: "self-inspection" + }, ] } ], @@ -560,6 +541,7 @@ u: "index-index" }] }, + upTabActive(num) { this.tabActive = num; this.activeP = num; @@ -576,6 +558,10 @@ sessionStorage.clear(); localStorage.removeItem("autoenter"); this.$router.push("/enter"); + }, + removeAllTab() { + this.upIndex++ + this.$message.warning('鏁版嵁鍙樺姩杈冨ぇ,椤甸潰鑷姩鏇存柊!') } } }; -- Gitblit v1.9.3