From bbfe4dd2532bbd41c7f9d26285c7f0aae84ccb54 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期三, 17 七月 2024 14:59:06 +0800 Subject: [PATCH] # --- pages/home/wrkMastManage.vue | 65 ++++++++++++++++++-------------- 1 files changed, 36 insertions(+), 29 deletions(-) diff --git a/pages/home/wrkMastManage.vue b/pages/home/wrkMastManage.vue index b68def8..3e1c41a 100644 --- a/pages/home/wrkMastManage.vue +++ b/pages/home/wrkMastManage.vue @@ -33,35 +33,49 @@ url: `/phyz/wrkMast/wrkMast` }, { - title: '宸ヤ綔鍘嗗彶妗g淮鎶�', - name: 'wrkMastLog', + title: '璋冩嫧浠诲姟绠$悊', + name: 'wrkMast-DB', color: 'blue', // cuIcon: 'pullup', - url: `/phyz/wrkMast/wrkMastLog` + url: `/phyz/wrkMast/DBList` }, - { - title: '鍏ュ簱閫氱煡妗�', - name: 'waitPakin', - color: 'blue', - // cuIcon: 'pullup', - url: `/phyz/wrkMast/waitPakin` - }, - { - title: '鍏ュ簱閫氱煡鍘嗗彶妗�', - name: 'waitPakinLog', - color: 'blue', - // cuIcon: 'pullup', - url: `/phyz/wrkMast/waitPakinLog` - }, + // { + // title: '宸ヤ綔鍘嗗彶妗g淮鎶�', + // name: 'wrkMastLog', + // color: 'blue', + // // cuIcon: 'pullup', + // url: `/phyz/wrkMast/wrkMastLog` + // }, + // { + // title: '鍏ュ簱閫氱煡妗�', + // name: 'waitPakin', + // color: 'blue', + // // cuIcon: 'pullup', + // url: `/phyz/wrkMast/waitPakin` + // }, + // { + // title: '鍏ュ簱閫氱煡鍘嗗彶妗�', + // name: 'waitPakinLog', + // color: 'blue', + // // cuIcon: 'pullup', + // url: `/phyz/wrkMast/waitPakinLog` + // }, ], 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: { @@ -76,11 +90,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) { @@ -106,16 +120,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