เพิ่มชื่อย่อระดับชั้นงาน
This commit is contained in:
parent
b6f6da142a
commit
662e6772cc
1 changed files with 7 additions and 0 deletions
|
|
@ -247,6 +247,7 @@ export class EmployeePositionController extends Controller {
|
|||
positionName: position.positionName,
|
||||
posTypeId: position.posTypeId,
|
||||
posTypeName: position.posType == null ? null : position.posType.posTypeName,
|
||||
posTypeShortName: position.posType == null ? null : position.posType.posTypeShortName,
|
||||
posLevelId: position.posLevelId,
|
||||
posLevelName: position.posLevel == null ? null : position.posLevel.posLevelName,
|
||||
positionIsSelected: position.positionIsSelected,
|
||||
|
|
@ -315,6 +316,7 @@ export class EmployeePositionController extends Controller {
|
|||
findData.map(async (item: any) => {
|
||||
let posTypeName = null;
|
||||
let posLevelName = null;
|
||||
let posTypeShortName = null;
|
||||
|
||||
if (item.posType !== null && item.posType !== undefined) {
|
||||
posTypeName = item.posType.posTypeName;
|
||||
|
|
@ -322,12 +324,16 @@ export class EmployeePositionController extends Controller {
|
|||
if (item.posLevel !== null && item.posLevel !== undefined) {
|
||||
posLevelName = item.posLevel.posLevelName;
|
||||
}
|
||||
if (item.posType !== null && item.posType !== undefined) {
|
||||
posTypeShortName = item.posType.posTypeShortName;
|
||||
}
|
||||
|
||||
return {
|
||||
id: item.id,
|
||||
posDictName: item.posDictName,
|
||||
posTypeId: item.posTypeId,
|
||||
posTypeName: posTypeName,
|
||||
posTypeShortName: posTypeShortName,
|
||||
posLevelId: item.posLevelId,
|
||||
posLevelName: posLevelName,
|
||||
};
|
||||
|
|
@ -1131,6 +1137,7 @@ export class EmployeePositionController extends Controller {
|
|||
positionName: position.positionName,
|
||||
posTypeId: position.posTypeId,
|
||||
posTypeName: position.posType == null ? null : position.posType.posTypeName,
|
||||
posTypeShortName: position.posType == null ? null : position.posType.posTypeShortName,
|
||||
posLevelId: position.posLevelId,
|
||||
posLevelName: position.posLevel == null ? null : position.posLevel.posLevelName,
|
||||
positionIsSelected: position.positionIsSelected,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue