From 82f3ac1948d1b9d3d0e3dcbcd9466eabc72cdcf8 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期三, 04 九月 2024 15:16:47 +0800 Subject: [PATCH] # --- pages/home/locMastManage.vue | 33 ++++++++++++++++++++------------- 1 files changed, 20 insertions(+), 13 deletions(-) diff --git a/pages/home/locMastManage.vue b/pages/home/locMastManage.vue index e38da98..6f95c52 100644 --- a/pages/home/locMastManage.vue +++ b/pages/home/locMastManage.vue @@ -33,7 +33,14 @@ url: `/phyz/checkLocDetl/checkLocDetl` }, { - title: '绉诲簱锛堝崐鎴愬搧锛�', + title: '搴撲綅鐩樼偣', + name: 'checkLocDetl', + color: 'blue', + // cuIcon: 'pullup', + url: `/phyz/checkLocDetl/checkLocDetl2` + }, + { + title: '绉诲簱', name: 'locMove', color: 'blue', // cuIcon: 'pullup', @@ -44,11 +51,18 @@ colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','olive','grey' ] }; }, - onShow() { + // onShow() { + // this.baseUrl = uni.getStorageSync('baseUrl'); + // this.token = uni.getStorageSync('token'); + // this.project = uni.getStorageSync('project') + // // this.getAuth() + // this.backGroundRepeat() + // }, + onLoad(option) { this.baseUrl = uni.getStorageSync('baseUrl'); this.token = uni.getStorageSync('token'); this.project = uni.getStorageSync('project') - this.getAuth() + this.getAuth(option.id) this.backGroundRepeat() }, methods: { @@ -63,11 +77,11 @@ i++ } }, - getAuth() { + getAuth(id) { let that = this uni.request({ url: that.baseUrl + '/menu/pda/auth', - data: {}, + data: {level:2 ,id: id}, header: { 'token': uni.getStorageSync('token') }, method: 'POST', success(res) { @@ -93,16 +107,9 @@ name: res.data[i].title, color: that.colorList[i], cuIcon: that.icon, - url: `/${that.project}${res.data[i].action}` + url: `${res.data[i].code}` }) } - that.elements.push({ - title: '閫�鍑虹櫥褰�', - name: 'logOut', - color: 'grey', - cuIcon: 'exit', - url: '/login/logOut' - }) } else if (res.code === 403) { uni.showToast({ title: res.msg, -- Gitblit v1.9.1