From 248ef3ba3de9994dc83d2b36690542893f9fb6e6 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期四, 28 十一月 2024 16:26:06 +0800
Subject: [PATCH] #

---
 pages/home/locMastManage.vue |   31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/pages/home/locMastManage.vue b/pages/home/locMastManage.vue
index 9defcce..f70a723 100644
--- a/pages/home/locMastManage.vue
+++ b/pages/home/locMastManage.vue
@@ -11,6 +11,7 @@
 				</navigator>
 			</view>
 			<view class="cu-tabbar-height"></view>
+			<view style="height: 50rpx;"></view>
 		</scroll-view>
 	</view>
 </template>
@@ -33,6 +34,13 @@
 						url: `/phyz/checkLocDetl/checkLocDetl`
 					},
 					{
+						title: '搴撲綅鐩樼偣',
+						name: 'checkLocDetl',
+						color: 'blue',
+						// cuIcon: 'pullup',
+						url: `/phyz/checkLocDetl/checkLocDetl2`
+					},
+					{
 						title: '绉诲簱',
 						name: 'locMove',
 						color: 'blue',
@@ -41,6 +49,7 @@
 					},
 					
 				],
+				menu: [],
 				colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','olive','grey' ]
 			};
 		},
@@ -55,7 +64,8 @@
 			this.baseUrl = uni.getStorageSync('baseUrl');
 			this.token = uni.getStorageSync('token');
 			this.project = uni.getStorageSync('project')
-			this.getAuth(option.id)
+			this.menu = uni.getStorageSync('menu');
+			this.getAuth2(option.id)
 			this.backGroundRepeat()
 		},
 		methods: {
@@ -70,6 +80,25 @@
 					i++
 				}
 			},
+			getAuth2(id) {
+				let secMenu = []
+				for (let k of this.menu) {
+					if (id == k.id) {
+						secMenu = k.children
+					}
+				}
+				for (let i in secMenu) {
+					this.getIcon(secMenu[i].title)
+					this.elements.unshift({
+						title: secMenu[i].name,
+						name: secMenu[i].title,
+						color: this.colorList[i],
+						cuIcon: this.icon,
+						id: secMenu[i].id,
+						url: `${secMenu[i].code}`
+					})
+				}
+			},
 			getAuth(id) {
 				let that = this
 				uni.request({

--
Gitblit v1.9.1