解决冲突
This commit is contained in:
@ -110,9 +110,10 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
|
|||||||
searchDebounceTime: 300,
|
searchDebounceTime: 300,
|
||||||
searchLoadingText: '搜索中...',
|
searchLoadingText: '搜索中...',
|
||||||
onSearch: (q: any) => {
|
onSearch: (q: any) => {
|
||||||
if (!!q) {
|
let str =q.replace(/^\s+|\s+$/g,"");
|
||||||
|
if (str) {
|
||||||
return this.service
|
return this.service
|
||||||
.request(this.service.$api_enterpriceList, { enterpriseName: q })
|
.request(this.service.$api_enterpriceList, { enterpriseName: str })
|
||||||
.pipe(map(res => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
|
.pipe(map(res => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
|
||||||
.toPromise();
|
.toPromise();
|
||||||
} else {
|
} else {
|
||||||
@ -120,7 +121,10 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
change: (q: any) => {
|
change: (q: any) => {
|
||||||
this.getRegionCode(q);
|
let str =q.replace(/^\s+|\s+$/g,"");
|
||||||
|
if (str) {
|
||||||
|
this.getRegionCode(str);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
|
|||||||
@ -121,9 +121,10 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
|
|||||||
searchLoadingText: '搜索中...',
|
searchLoadingText: '搜索中...',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
onSearch: (q: any) => {
|
onSearch: (q: any) => {
|
||||||
if (!!q) {
|
let str =q.replace(/^\s+|\s+$/g,"");
|
||||||
|
if (str) {
|
||||||
return this.service
|
return this.service
|
||||||
.request(this.service.$api_enterpriceList, { enterpriseName: q })
|
.request(this.service.$api_enterpriceList, { enterpriseName: str })
|
||||||
.pipe(map((res: any[]) => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
|
.pipe(map((res: any[]) => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
|
||||||
.toPromise();
|
.toPromise();
|
||||||
} else {
|
} else {
|
||||||
@ -131,7 +132,10 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
change: (q: any) => {
|
change: (q: any) => {
|
||||||
this.getRegionCode(q);
|
let str =q.replace(/^\s+|\s+$/g,"");
|
||||||
|
if (str) {
|
||||||
|
this.getRegionCode(str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user