From 302b947a2be93b6fb2768bcfdae0a7bd5a7fafb3 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 18 Dec 2024 16:28:02 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=E0=B8=84=E0=B8=B3=E0=B8=9C=E0=B8=B4=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../01_metadata/components/personal/07_Province.vue | 2 +- .../components/personal/province/01_District.vue | 2 +- .../components/personal/province/02_SubDistrict.vue | 2 +- .../01_metadata/components/position/03_Executive.vue | 8 ++++---- src/modules/06_webservices/components/DialogApiKey.vue | 2 +- src/modules/06_webservices/view/historyView.vue | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) 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/06_webservices/components/DialogApiKey.vue b/src/modules/06_webservices/components/DialogApiKey.vue index 6948c0a1..3111eeb3 100644 --- a/src/modules/06_webservices/components/DialogApiKey.vue +++ b/src/modules/06_webservices/components/DialogApiKey.vue @@ -39,7 +39,7 @@ const isAPIKey = ref(false); //status API Key const apiKey = ref(""); // API Key const options = ref([]); //รายการ API ที่เข้าถึงได้ -// form การสร้างรายากร API Key +// form การสร้างรายการ API Key const formData = reactive({ name: "", //ชื่อ/คำอธิบาย apiId: [], //id รายการ API ที่เข้าถึงได้ diff --git a/src/modules/06_webservices/view/historyView.vue b/src/modules/06_webservices/view/historyView.vue index 950e5bd7..7112bc20 100644 --- a/src/modules/06_webservices/view/historyView.vue +++ b/src/modules/06_webservices/view/historyView.vue @@ -301,11 +301,11 @@ onMounted(async () => { map-options v-model="apiNameId" :options="options" - label="รายากร Web Services" + label="รายการ Web Services" use-input hide-selected fill-input - :clearable="apiNameId !==''" + :clearable="apiNameId !== ''" @clear="(apiNameId = ''), (options = dataApiName)" @update:modelValue="onSelectType" @filter="(inputValue: string,doneFn: Function) => filterSelector(inputValue, doneFn )" From e4827229f8b739bff2327b11d0fd5c0fe80bf074 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 20 Dec 2024 11:30:37 +0700 Subject: [PATCH 2/2] fix --- .../02_users/views/03_permissionsView.vue | 17 +++++++++++------ .../02_users/views/04_roleOrganization.vue | 15 +++++---------- .../02_users/views/05_responsIbilities.vue | 14 +++++++++----- 3 files changed, 25 insertions(+), 21 deletions(-) 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 () => {
- +
รายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง
- +
{