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 | 42 ++++++++++++++++++++++++++++++------------
1 files changed, 30 insertions(+), 12 deletions(-)
diff --git a/src/view/index.vue b/src/view/index.vue
index 14a8836..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: "鎶�鏈鐞�",
@@ -282,7 +296,7 @@
k: 2,
v: "鎶�鏈枃浠�",
i: "font icon-shouye",
- u: ""
+ u: "technical"
}]
}, {
k: 2,
@@ -292,32 +306,32 @@
k: 3,
v: "鍘熸潗鏂欐楠�",
i: "font icon-shouye",
- u: "raw-ins"
+ u: "rawInsBox"
}, {
k: 4,
v: "鍘熸潗鏂欎笉鍚堟牸鍝�",
i: "font icon-shouye",
- u: ""
+ u: "rawUnqualifiedBox"
}, {
k: 5,
v: "杩囩▼妫�楠�",
i: "font icon-shouye",
- u: ""
+ u: "processInspection"
}, {
k: 6,
v: "鎴愬搧妫�楠�",
i: "font icon-shouye",
- u: ""
+ u: "finishedProductInspection"
}, {
k: 7,
v: "涓嶅悎鏍煎搧绠$悊",
i: "font icon-shouye",
- u: ""
+ u: "unqualifiedManagement"
}, {
k: 8,
v: "瀹為獙瀹ょ鐞�",
i: "font icon-shouye",
- u: ""
+ u: "laboratoryManagement"
}, {
k: 9,
v: "璐ㄩ噺缁熻",
@@ -349,14 +363,16 @@
methods: {
addTab(ob) {
if (ob.k == 0) this.activeBox = 0
- this.activeP = ob.k
- this.tabActive = ob.k
+ if (ob.k == 11) this.activeBox = 3
+ this.activeP = ob.k //0
+ this.tabActive = ob.k //0
let num = -1;
this.tabs.forEach((a, ai) => {
if (ob.k == a.k) {
num = a.k
}
})
+ // 濡傛灉娌℃湁閬嶅巻鍒皌abs閲屾病鏈夎ob瀵瑰簲鐨則able锛屽線tabs閲岄潰鍔犲叆璇b
if (num == -1) {
this.tabs.push(ob)
}
@@ -379,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()
@@ -388,4 +406,4 @@
}
}
}
-</script>
\ No newline at end of file
+</script>
--
Gitblit v1.9.3