แก้ฟอม
This commit is contained in:
parent
2aa55bc642
commit
1a9c0eba7a
1 changed files with 18 additions and 0 deletions
|
|
@ -2389,12 +2389,30 @@ async function fetchType() {
|
|||
});
|
||||
positionTypeOptions.value = optionPositionTypes;
|
||||
positionTypeOptionsFilter.value = optionPositionTypes;
|
||||
|
||||
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
if (positionTypeId.value) {
|
||||
let optionPositionLevels: DataOption[] = [];
|
||||
|
||||
const listLevel = dataLevel.value.find(
|
||||
(e: any) => e.id === positionTypeId.value
|
||||
);
|
||||
levelOpsMain.value = listLevel.posLevels.map((r: any) => {
|
||||
optionPositionLevels.push({
|
||||
id: r.id.toString(),
|
||||
name: r.posLevelName.toString(),
|
||||
});
|
||||
});
|
||||
|
||||
positionLevelOptions.value = optionPositionLevels;
|
||||
positionLevelOptionsFilter.value = optionPositionLevels;
|
||||
}
|
||||
});
|
||||
}
|
||||
watch(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue