Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
Taric Xin
2022-04-28 20:07:54 +08:00
8 changed files with 491 additions and 374 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);
}
})