diff --git a/src/modules/04_registryPerson/views/edit/components/DialogForm.vue b/src/modules/04_registryPerson/views/edit/components/DialogForm.vue index f4bf8accc..e2efa0648 100644 --- a/src/modules/04_registryPerson/views/edit/components/DialogForm.vue +++ b/src/modules/04_registryPerson/views/edit/components/DialogForm.vue @@ -249,10 +249,15 @@ async function fetchDataOptionExecutive() { * @param status แก่ไข , เพิ่ม */ async function updateSelectType(val: string, status: boolean = false) { + console.log(val); + console.log(dataLevel.value); + const listLevel = val ? dataLevel.value.find((e: DataPosType) => e.posTypeName === val) : null; + console.log("เช็คประเภทตำแหน่งงาน", listLevel); + // เช็คประเภทตำแหน่งงาน if (listLevel) { store.posLevelData = listLevel.posLevels.map((e: DataPosLevel) => ({ id: e.id, @@ -263,10 +268,11 @@ async function updateSelectType(val: string, status: boolean = false) { })); formData.positionLevel = !status ? "" : formData.positionLevel; - } else { - store.posLevelData = []; - formData.positionLevel = ""; - } + } + // else { + // store.posLevelData = []; + // // formData.positionLevel = ""; + // } } /**