#
whycq
2024-11-26 db1e197bcfd7d2b0aa369416285e617bd9d08b86
pages/home/wrkMastManage.vue
@@ -32,6 +32,13 @@
                  // cuIcon: 'pullup',
                  url: `/phyz/wrkMast/wrkMast`
               },
               {
                  title: '调拨任务管理',
                  name: 'wrkMast-DB',
                  color: 'blue',
                  // cuIcon: 'pullup',
                  url: `/phyz/wrkMast/DBList`
               },
               // {
               //    title: '工作历史档维护',
               //    name: 'wrkMastLog',
@@ -57,11 +64,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: {
@@ -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,