fixing field
This commit is contained in:
parent
27e54e914a
commit
97825247d7
3 changed files with 448 additions and 360 deletions
|
|
@ -564,6 +564,7 @@ export class ReportController extends Controller {
|
|||
Department: splitOcAmount > 2 ? splitOc[splitOcAmount - 3] : "-",
|
||||
OrganizationOrganization: splitOcAmount > 1 ? splitOc[splitOcAmount - 2] : "-",
|
||||
Oc: experimenteeData.orgRootName,
|
||||
PositionLevel: experimenteeData.positionName + experimenteeData.positionLevelName,
|
||||
};
|
||||
|
||||
const data = await {
|
||||
|
|
@ -800,6 +801,7 @@ export class ReportController extends Controller {
|
|||
Department: splitOcAmount > 2 ? splitOc[splitOcAmount - 3] : "-",
|
||||
OrganizationOrganization: splitOcAmount > 1 ? splitOc[splitOcAmount - 2] : "-",
|
||||
Oc: experimenteeData.orgRootName,
|
||||
PositionLevel: experimenteeData.positionName + experimenteeData.positionLevelName,
|
||||
};
|
||||
|
||||
const commanderData = await this.assignDirectorRepository.findOne({
|
||||
|
|
@ -823,7 +825,7 @@ export class ReportController extends Controller {
|
|||
const commander = await {
|
||||
...commanderData,
|
||||
name: commanderData.fullname,
|
||||
Position: commanderData.position,
|
||||
Position: commanderData.position + commanderData.posLevel,
|
||||
};
|
||||
|
||||
return new HttpSuccess({
|
||||
|
|
@ -1069,6 +1071,7 @@ export class ReportController extends Controller {
|
|||
Department: splitOcAmount > 2 ? splitOc[splitOcAmount - 3] : "-",
|
||||
OrganizationOrganization: splitOcAmount > 1 ? splitOc[splitOcAmount - 2] : "-",
|
||||
Oc: experimenteeData.orgRootName,
|
||||
PositionLevel: experimenteeData.positionName + experimenteeData.positionLevelName,
|
||||
};
|
||||
|
||||
const directorData = await this.assignDirectorRepository.find({
|
||||
|
|
@ -1085,7 +1088,7 @@ export class ReportController extends Controller {
|
|||
return {
|
||||
...element,
|
||||
name: element.fullname,
|
||||
Position: element.position,
|
||||
Position: element.position + element.posLevel,
|
||||
};
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue