| | |
| | | if (querydto.partnerUserId) {
|
| | | //通过接口获取名称,兼容,url上不能放中文的情况
|
| | |
|
| | | // if (!querydto.partnerUserName) {
|
| | | // this.$message.showLoading()
|
| | | // const resname = await this.$http.request('get', '/api/', {
|
| | | // params: {
|
| | | // id: querydto.partnerUserId
|
| | | // }
|
| | | // })
|
| | | // this.$message.hideLoading()
|
| | | // if (resname.code == 0) {
|
| | | // querydto.partnerUserName = resname.name || ''
|
| | | // }
|
| | | if (!querydto.partnerUserName) {
|
| | | this.$message.showLoading()
|
| | | const resname = await this.$http.request('get', '/api/customer/partner/name', {
|
| | | params: {
|
| | | id: querydto.partnerUserId
|
| | | }
|
| | | })
|
| | | this.$message.hideLoading()
|
| | | if (resname.code == 0) {
|
| | | querydto.partnerUserName = resname.data || ''
|
| | | }
|
| | |
|
| | | // } |
| | | |
| | | }
|
| | |
|
| | | if (this.$storage.getItem('token')) {
|
| | | console.log('to login 1')
|
| | | this.$message.showLoading()
|