edit
This commit is contained in:
@ -343,14 +343,14 @@ export class ShipperBaseService extends BaseService {
|
||||
* @returns
|
||||
*/
|
||||
getChannel(params = {}, containerAll = false) {
|
||||
return this.request(this.$api_get_channel, params, 'POST').pipe(
|
||||
return this.request(this.$api_get_channel, params).pipe(
|
||||
map(res => {
|
||||
if (res) {
|
||||
const obj = [];
|
||||
if (containerAll) {
|
||||
obj.push({ label: '全部', value: '' });
|
||||
}
|
||||
return [...obj, ...res.map((m: any) => ({ label: `${m.employeeVO?.empName}/${m.employeeVO?.mobile}`, value: m.id }))];
|
||||
return [...obj, ...res.map((m: any) => ({ label: `${m.name}/${m.telephone}`, value: m.id }))];
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user