This commit is contained in:
wangshiming
2022-04-28 19:58:12 +08:00
parent 5e24aac69b
commit 3053d1120f
2 changed files with 1 additions and 18 deletions

View File

@ -189,21 +189,11 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
if(res) {
const List: any = [];
List.push({ label: value.enterpriseName, value: res.enterpriseId });
// this.sfFre.getProperty('/enterpriseId')!.schema.enum = List;
// console.log(List);
// this.sfFre.getProperty('/enterpriseId')!.widget.reset(List);
// if(res.enterpriseId) {
// this.sfFre.setValue('/enterpriseId', res.enterpriseId);
// }
console.log(this.sfFre.getProperty('/enterpriseId'));
this.formData = res;
setTimeout(() => {
this.sfFre.getProperty('/enterpriseId')!.schema.enum = List;
this.sfFre.getProperty('/enterpriseId')!.widget.reset(List);
if (res?.enterpriseId) {
console.log(res?.enterpriseId);
console.log(res?.enterpriseId);
this.sfFre.setValue('/enterpriseId', res.enterpriseId);
}
})