| | |
| | | return { |
| | | baseUrl: '', |
| | | token: '', |
| | | icon: '', |
| | | elements: [], |
| | | elements2: [{ |
| | | title: '组托入库', |
| | |
| | | if (res.data.length < 0) { |
| | | break; |
| | | } |
| | | that.getIcon(res.data[i].title) |
| | | that.elements.unshift({ |
| | | title: res.data[i].name, |
| | | name: res.data[i].title, |
| | | color: that.colorList[i], |
| | | cuIcon: 'safe', |
| | | cuIcon: that.icon, |
| | | url: res.data[i].action |
| | | }) |
| | | } |
| | |
| | | title: '退出登录', |
| | | name: 'logOut', |
| | | color: 'grey', |
| | | cuIcon: 'exit' |
| | | cuIcon: 'exit', |
| | | url: '/login/logOut' |
| | | }) |
| | | } else if (res.code === 403) { |
| | | uni.showToast({ |
| | |
| | | } |
| | | }) |
| | | }, |
| | | getIcon(e) { |
| | | const ways = ['pakin','orderPakin','orderPutOn'] |
| | | if (ways.includes(e)) { |
| | | this.icon = 'pullup' |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |