From ffd461f541b355d2d5124a0735d9c6fd557d21a5 Mon Sep 17 00:00:00 2001 From: XiaoRuby <3114200645@qq.com> Date: 星期四, 10 八月 2023 13:13:06 +0800 Subject: [PATCH] Crunchy-08/10中午 --- src/view/index.vue | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/view/index.vue b/src/view/index.vue index b3129ef..434a923 100644 --- a/src/view/index.vue +++ b/src/view/index.vue @@ -210,7 +210,11 @@ <i class="font icon-shouye"></i> <div>棣栭〉</div> </div> - <el-popover placement="right-start" width="90" trigger="click" v-for="(a, ai) in menu" :key="ai" v-if="a.k!='0'"> + <div :class="`box ${activeBox==3?'active_box':''}`" @click="addTab(menu[1].c[0])"> + <i class="font icon-jine"></i> + <div>閿�鍞鐞�</div> + </div> + <el-popover placement="right-start" width="90" trigger="click" v-for="(a, ai) in menu" :key="ai" v-if="a.k!='0'&&a.k!='3'"> <div :class="`box ${activeBox==a.k?'active_box':''}`" @click="activeBox = a.k" slot="reference"> <i :class="a.i"></i> <div>{{a.v}}</div> @@ -269,6 +273,16 @@ i: "font icon-shouye", u: "index-index" }] + },{ + k: 3, + v: "閿�鍞鐞�", + i: "font icon-jine", + c: [{ + k: 11, + v: "閿�鍞鐞�", + i: "font icon-jine", + u: "sale" + }] }, { k: 1, v: "鎶�鏈鐞�", @@ -317,7 +331,7 @@ k: 8, v: "瀹為獙瀹ょ鐞�", i: "font icon-shouye", - u: "" + u: "laboratoryManagement" }, { k: 9, v: "璐ㄩ噺缁熻", @@ -349,6 +363,7 @@ methods: { addTab(ob) { if (ob.k == 0) this.activeBox = 0 + if (ob.k == 11) this.activeBox = 3 this.activeP = ob.k //0 this.tabActive = ob.k //0 let num = -1; @@ -380,7 +395,9 @@ this.activeBox = 1 } else if (num > 2 && num <= 10) { this.activeBox = 2 - } + } else if(num == 11){ + this.activeBox = 3 + } }, out() { sessionStorage.clear() -- Gitblit v1.9.3