| | |
| | | copyright © 2022 浙江中扬立库有限公司 all rights reserved. |
| | | </text> |
| | | </view> |
| | | <u-toast ref="uToast"></u-toast> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | name: 'pakin', |
| | | color: 'cyan', |
| | | cuIcon: 'pullup', |
| | | url: '/pakin/pakin' |
| | | url: '/InManagement/ContainerBinding/Container_Binding' |
| | | }, |
| | | { |
| | | title: '订单入库', |
| | |
| | | try { |
| | | // custom.catch=true ensures errors throw into the catch block |
| | | // custom.toast=false disables the interceptor's default toast so we can handle it manually |
| | | const res = await getAuthMenu( |
| | | const { data } = await getAuthMenu( |
| | | {}, |
| | | { custom: { catch: true, toast: false } } |
| | | ) |
| | | this.elements = [] |
| | | |
| | | if ( |
| | | res.data == undefined || |
| | | res.data == null || |
| | | res.data === '' |
| | | data == undefined || |
| | | data == null || |
| | | data === '' |
| | | ) { |
| | | this.elements = this.elements2 |
| | | return |
| | | } |
| | | |
| | | for (let i = 0; i < res.data.length; i++) { |
| | | this.getIcon(res.data[i].title) |
| | | for (let i = 0; i < data.length; i++) { |
| | | this.getIcon(data[i].title) |
| | | this.elements.unshift({ |
| | | title: res.data[i].name, |
| | | name: res.data[i].title, |
| | | title: data[i].name, |
| | | name: data[i].title, |
| | | color: this.colorList[i % this.colorList.length], |
| | | cuIcon: this.icon, |
| | | url: res.data[i].action |
| | | url: data[i].action |
| | | }) |
| | | } |
| | | |