#
whycq
2024-07-17 bbfe4dd2532bbd41c7f9d26285c7f0aae84ccb54
pages/home/menuHome.vue
@@ -32,55 +32,6 @@
                  // cuIcon: 'pullup',
                  url: `/phyz/stationManage/stationManage`
               },
               // {
               //    title: '入出库管理',
               //    name: 'inOutManage',
               //    color: 'purple',
               //    // cuIcon: 'pullup',
               //    url: `/home/inOutManage`
               // },
               {
                  title: '单据管理',
                  name: 'ordeManage',
                  color: 'mauve',
                  // cuIcon: 'pullup',
                  url: `/home/orderManage`
               },
               {
                  title: '库位管理',
                  name: 'locManage',
                  color: 'blue',
                  // cuIcon: 'pullup',
                  url: `/home/locMastManage`
               },
               {
                  title: '任务管理',
                  name: 'ordeManage',
                  color: 'olive',
                  // cuIcon: 'pullup',
                  url: `/home/wrkMastManage`
               },
               // {
               //    title: '测试',
               //    name: 'testView',
               //    color: 'blue',
               //    // cuIcon: 'pullup',
               //    url: `/home/testView`
               // },
               /* {
                  title: '平仓管理',
                  name: 'basicStore',
                  color: 'mauve',
                  // cuIcon: 'pullup',
                  url: '/home/basicStore'
               },
               {
                  title: '其他',
                  name: 'other',
                  color: 'brown',
                  // cuIcon: 'pullup',
                  url: '/home/other'
               }, */
               {
                  title: '退出登录',
                  name: 'logOut',
@@ -96,7 +47,7 @@
      onShow() {
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         this.getAuth()
         this.getAuth(1,'0')
         // this.backGroundRepeat()
      },
      methods: {
@@ -111,21 +62,17 @@
               i++
            }
         },
         getAuth() {
         getAuth(lev,uid) {
            let that = this
            uni.request({
               url: that.baseUrl + '/menu/pda/auth',
               data: {level:1,id: '0'},
               data: {level:lev,id: uid},
               header: { 'token': uni.getStorageSync('token') },
               method: 'POST',
               success(res) {
                  res = res.data
                  that.elements = []
                  if (res.code === 200) {
                     // if (res.data == undefined || res.data == null || res.data == "") {
                     //    that.elements = that.elements2
                     //    return
                     // }
                     for (var i = 0; i < res.data.length; i++) {
                        if (res.data.length < 0) {
                           break;