#
whycq
2023-10-18 41e96e866a3f5094a59a3d704135ecb09e0a6a16
pages/home/home.vue
@@ -29,7 +29,14 @@
                  name: 'pakin',
                  color: 'cyan',
                  cuIcon: 'pullup',
                  url: '/tzsk/pakin/pakin'
                  url: '/tzsk/pakin/pakin2'
               },
               {
                  title: '托盘解绑',
                  name: 'untie',
                  color: 'cyan',
                  cuIcon: 'pullup',
                  url: '/tzsk/pakin/untie'
               },
               {
                  title: '组托上架',
@@ -51,6 +58,13 @@
                  color: 'cyan',
                  cuIcon: 'pullup',
                  url: '/pakin/pakin2'
               },
               {
                  title: 'AGV盘点/拣料',
                  name: 'AGVPick',
                  color: 'cyan',
                  cuIcon: 'pullup',
                  url: '/tzsk/AGV/AGVPick'
               },
               {
                  title: '再次拣料',
@@ -86,6 +100,13 @@
                  color: 'brown',
                  // cuIcon: 'pullup',
                  url: '/tzsk/AGV/AGVPakinOn'
               },
               {
                  title: 'AGV容器离场',
                  name: 'pakin',
                  color: 'cyan',
                  cuIcon: 'pullup',
                  url: '/tzsk/AGV/AGVContainerMove'
               },
               {
                  title: '订单入库',
@@ -173,15 +194,27 @@
               },
            ],
            colorList: ['cyan','blue','mauve','pink','brown','red','orange','yellow','olive','olive','green','grey' ]
            colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','olive','grey' ]
         };
      },
      onShow() {
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         this.getAuth()
         this.backGroundRepeat()
      },
      methods: {
         backGroundRepeat() {
            let len = this.colorList.length
            let i = 0
            for (let k in this.elements2) {
               if (i == len) {
                  i = 0
               }
               this.elements2[k].color = this.colorList[i]
               i++
            }
         },
         getAuth() {
            let that = this
            uni.request({