From 23bcd91dfde53ac3e937fd90280f26d374c50833 Mon Sep 17 00:00:00 2001 From: XiaoRuby <3114200645@qq.com> Date: 星期三, 09 八月 2023 11:26:49 +0800 Subject: [PATCH] Crunchy接手 --- src/view/index.vue | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/view/index.vue b/src/view/index.vue index 3745280..b3129ef 100644 --- a/src/view/index.vue +++ b/src/view/index.vue @@ -292,27 +292,27 @@ k: 3, v: "鍘熸潗鏂欐楠�", i: "font icon-shouye", - u: "" + 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: "瀹為獙瀹ょ鐞�", @@ -330,14 +330,14 @@ u: "" }] }], - activeBox: 1, - activeP: 1, - tabActive: 1, + activeBox: 0, + activeP: 0, + tabActive: 0, tabs: [{ - k: 1, - v: "鏍囧噯BOM", + k: 0, + v: "棣栭〉", i: "font icon-shouye", - u: "standard" + u: "index-index" }], upIndex: 0 }; @@ -349,14 +349,15 @@ methods: { addTab(ob) { if (ob.k == 0) this.activeBox = 0 - this.activeP = ob.k - this.tabActive = ob.k + 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) } @@ -388,4 +389,4 @@ } } } -</script> \ No newline at end of file +</script> -- Gitblit v1.9.3