#
whycq
2024-11-28 248ef3ba3de9994dc83d2b36690542893f9fb6e6
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({