解决冲突

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

@ -135,7 +135,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
searchDebounceTime: 300,
searchLoadingText: '搜索中...',
onSearch: (q: any) => {
if (!!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))))
@ -145,7 +145,9 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
}
},
change: (q: any) => {
if (q) {
this.getRegionCode(q);
}
},
} as SFSelectWidgetSchema
},