diff --git a/src/modules/02_organization/components/DialogFormAgency.vue b/src/modules/02_organization/components/DialogFormAgency.vue index aed8c1514..ab84029df 100644 --- a/src/modules/02_organization/components/DialogFormAgency.vue +++ b/src/modules/02_organization/components/DialogFormAgency.vue @@ -80,6 +80,7 @@ const formData = reactive({ orgLevel: "", orgLevelSub: "", responsibility: "", + isOfficer: false, }); /** @@ -90,7 +91,7 @@ const formData = reactive({ function onSubmit() { dialogConfirm($q, async () => { showLoader(); - const type = store.checkLevel(level.value); + const type = await store.checkLevel(level.value); const nameId = level.value === 0 ? "orgRevisionId" @@ -121,6 +122,7 @@ function onSubmit() { [nameId]: rootId, responsibility: formData.responsibility != null ? formData.responsibility : "", + isOfficer: formData.isOfficer, }; //เพิ่มข้อมูล @@ -187,6 +189,7 @@ function closeClear() { formData.orgFax = ""; formData.orgLevel = ""; formData.responsibility = ""; + formData.isOfficer = false; props.close?.(); } @@ -304,6 +307,7 @@ watch( formData.orgLevel = props.dataNode.orgTreeRank; formData.orgLevelSub = props.dataNode.orgTreeRankSub; formData.responsibility = props.dataNode.responsibility; + formData.isOfficer = props.dataNode.isOfficer ?? false; orgLevelOption.value = props.dataNode.orgTreeRank === "DEPARTMENT" ? orgLevelOptionMain.value @@ -485,6 +489,22 @@ watch( rows="4" /> +
+ +
diff --git a/src/modules/02_organization/components/TreeMain.vue b/src/modules/02_organization/components/TreeMain.vue index 0bfabe68b..5a3b60de5 100644 --- a/src/modules/02_organization/components/TreeMain.vue +++ b/src/modules/02_organization/components/TreeMain.vue @@ -377,6 +377,7 @@ watch(