fix bug return array org-chart
This commit is contained in:
parent
554e3f2e22
commit
c297572c79
1 changed files with 14 additions and 12 deletions
|
|
@ -4195,19 +4195,21 @@ export class OrganizationController extends Controller {
|
|||
|
||||
const formattedData_ =
|
||||
rootId === "root"
|
||||
? {
|
||||
personID: "",
|
||||
name: "",
|
||||
avatar: "",
|
||||
positionName: "",
|
||||
positionNum: "",
|
||||
positionNumInt: null,
|
||||
departmentName: data.orgRevisionName,
|
||||
organizationId: data.id,
|
||||
children: formattedData,
|
||||
}
|
||||
? [
|
||||
{
|
||||
personID: "",
|
||||
name: "",
|
||||
avatar: "",
|
||||
positionName: "",
|
||||
positionNum: "",
|
||||
positionNumInt: null,
|
||||
departmentName: data.orgRevisionName,
|
||||
organizationId: data.id,
|
||||
children: formattedData,
|
||||
},
|
||||
]
|
||||
: formattedData;
|
||||
return new HttpSuccess([formattedData_]);
|
||||
return new HttpSuccess(formattedData_);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue