解决冲突

This commit is contained in:
wangshiming
2022-03-01 13:42:02 +08:00
parent d974a06c10
commit 192ed6dfbf
6 changed files with 26 additions and 5 deletions

View File

@ -147,7 +147,8 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
searchDebounceTime: 300,
searchLoadingText: '搜索中...',
onSearch: (q: any) => {
if (!!q) {
console.log(q)
if (q) {
return this.service
.request(this.service.$api_enterpriceList, { enterpriseName: q })
.pipe(map(res => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
@ -157,7 +158,9 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
}
},
change: (q: any) => {
this.getRegionCode(q);
if (q) {
this.getRegionCode(q);
}
}
} as SFSelectWidgetSchema
},