diff --git a/src/modules/01_metadata/components/personal/07_Province.vue b/src/modules/01_metadata/components/personal/07_Province.vue index 1db8c9c4..5656e528 100644 --- a/src/modules/01_metadata/components/personal/07_Province.vue +++ b/src/modules/01_metadata/components/personal/07_Province.vue @@ -145,7 +145,7 @@ async function editData(id: string) { } /** - * ไปยังหน้า รายากรเขต/อำเภอ โดย id ของจังหวัด + * ไปยังหน้า รายการเขต/อำเภอ โดย id ของจังหวัด * @param id จังหวัด */ function nextPage(id: string) { diff --git a/src/modules/01_metadata/components/personal/province/01_District.vue b/src/modules/01_metadata/components/personal/province/01_District.vue index 530a7eb3..79d489ae 100644 --- a/src/modules/01_metadata/components/personal/province/01_District.vue +++ b/src/modules/01_metadata/components/personal/province/01_District.vue @@ -169,7 +169,7 @@ async function editData(id: string) { } /** - * ไปยังหน้า รายากรเแขวง/ตำบลโดย id ของเขต/อำเภอ + * ไปยังหน้า รายการเแขวง/ตำบลโดย id ของเขต/อำเภอ * @param idSub เขต/อำเภอ */ function nextPage(idSub: string) { diff --git a/src/modules/01_metadata/components/personal/province/02_SubDistrict.vue b/src/modules/01_metadata/components/personal/province/02_SubDistrict.vue index a6386a16..4fa47220 100644 --- a/src/modules/01_metadata/components/personal/province/02_SubDistrict.vue +++ b/src/modules/01_metadata/components/personal/province/02_SubDistrict.vue @@ -95,7 +95,7 @@ const visibleColumns = ref([ const id = ref(route.params.id as string); // เขต/อำเภอ const rows = ref([]); // ข้อมูลรายการแขวง/ตำบล const rowsMain = ref([]); // ข้อมูลรายการแขวง/ตำบล -const editId = ref(""); // id รายากรแขวง/ตำบล +const editId = ref(""); // id รายการแขวง/ตำบล const filterKeyword = ref(""); // คำค้นหา const dialog = ref(false); // เพิ่มข้อมูล,แก้ไขข้อมูล const subDistrict = ref(""); //แขวง / ตำบล; diff --git a/src/modules/01_metadata/components/position/03_Executive.vue b/src/modules/01_metadata/components/position/03_Executive.vue index 4b59f40e..32018665 100644 --- a/src/modules/01_metadata/components/position/03_Executive.vue +++ b/src/modules/01_metadata/components/position/03_Executive.vue @@ -16,8 +16,8 @@ const { showLoader, hideLoader, messageError, date2Thai, onSearchDataTable } = useCounterMixin(); // Table -const rows = ref([]); // รายากรข้อมูลตำแหน่งทางการบริหาร -const rowsMain = ref([]); // รายากรข้อมูลตำแหน่งทางการบริหาร +const rows = ref([]); // รายการข้อมูลตำแหน่งทางการบริหาร +const rowsMain = ref([]); // รายการข้อมูลตำแหน่งทางการบริหาร const filterKeyword = ref(""); // คำค้นหา const visibleColumns = ref([ "no", @@ -117,14 +117,14 @@ async function getData() { } /** - * เปิด popup เพื่อเพิ่มข้อมูลรายากรตำแหน่งทางการบริหาร + * เปิด popup เพื่อเพิ่มข้อมูลรายการตำแหน่งทางการบริหาร */ function popUpAdd() { modalPosExecutive.value = true; } /** - * เปิด popup เพื่อแก่ไขข้อมูลรายากรตำแหน่งทางการบริหาร + * เปิด popup เพื่อแก่ไขข้อมูลรายการตำแหน่งทางการบริหาร * @param data ข้อมูลรายการตำแหน่งทางการบริหารที่ต้องการแก้ไข */ function editPopUp(data: RowListForm) { diff --git a/src/modules/02_users/views/03_permissionsView.vue b/src/modules/02_users/views/03_permissionsView.vue index a02c3e5f..029f44bc 100644 --- a/src/modules/02_users/views/03_permissionsView.vue +++ b/src/modules/02_users/views/03_permissionsView.vue @@ -234,7 +234,7 @@ const columnsExpand = ref([ const reqMaster = reactive({ id: null, type: 0, - isAll: false, + isAll: true, isBlank: false, page: 1, pageSize: 10, @@ -387,6 +387,7 @@ async function fetchDataTable( * @param data */ function updateSelected(data: NodeTree) { + reqMaster.isAll = data.orgTreeId === "" ? true : reqMaster.isAll; nodeId.value = data.orgTreeId; fetchDataTable(data.orgTreeId, data.orgRevisionId, data.orgLevel); } @@ -412,9 +413,9 @@ function onClickAddRole(data: PosMaster) { function onDeleteRole(id: string) { dialogRemove( $q, - () => { + async () => { showLoader(); - http + await http .post(config.API.managementPermission, { authRoleId: "", posMasterId: id, @@ -481,8 +482,8 @@ watch( () => [reqMaster.isAll, reqMaster.isBlank], () => { reqMaster.page = 1; - reqMaster.id && - fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type); + + fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type); } ); @@ -615,7 +616,10 @@ onMounted(() => { -
+
@@ -633,6 +637,7 @@ onMounted(() => {
{ messageError($q, err); @@ -223,9 +223,7 @@ watch( } ); -/** - * hook ทำงานเมื่อ Components ถูกเรียกใช้งาน - */ +/** hook ทำงานเมื่อ Components ถูกเรียกใช้งาน*/ onMounted(async () => { await fatchOrg(); // ดึงข้อมูลโครงสร้าง }); @@ -294,16 +292,13 @@ onMounted(async () => {
- +
รายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง
- +
{