From bc7fa07f1f5245a8ddf676820ce5ee447f9a6c7d Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Wed, 15 May 2024 13:06:22 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A2=E0=B9=89=E0=B8=B2=E0=B8=A2=20tab=20?= =?UTF-8?q?=E0=B9=84=E0=B8=A7=E0=B9=89=E0=B9=83=E0=B8=99=20store=20?= =?UTF-8?q?=E0=B9=80=E0=B9=80=E0=B8=81=E0=B9=89=20column?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/personal/08ListProvince.vue | 18 +++++++------ .../personal/province/01_District.vue | 2 +- .../personal/province/02_SubDistrict.vue | 14 ++++++++++- .../01_metadataNew/stores/personalStore.ts | 2 ++ src/modules/01_metadataNew/views/personal.vue | 25 ++++++++++--------- 5 files changed, 40 insertions(+), 21 deletions(-) diff --git a/src/modules/01_metadataNew/components/personal/08ListProvince.vue b/src/modules/01_metadataNew/components/personal/08ListProvince.vue index 252d759b7..cf57e4370 100644 --- a/src/modules/01_metadataNew/components/personal/08ListProvince.vue +++ b/src/modules/01_metadataNew/components/personal/08ListProvince.vue @@ -9,7 +9,7 @@ import DialogForm from "@/modules/01_metadataNew/components/personal/DialogForm. import http from "@/plugins/http"; import config from "@/app.config"; -const router = useRouter() +const router = useRouter(); const store = usePersonalDataStore(); const mixin = useCounterMixin(); const { dialogRemove, messageError, showLoader, hideLoader, success } = mixin; @@ -17,7 +17,7 @@ const columns = [ { name: "name", align: "left", - label: "ชื่อ", + label: "จังหวัด", sortable: true, field: "name", headerStyle: "font-size: 14px", @@ -109,7 +109,7 @@ async function addData() { async function editData(id: string) { await http - .put(config.API.orgProvince+`/${id}`, { + .put(config.API.orgProvince + `/${id}`, { name: province.value, }) .then(() => { @@ -126,7 +126,7 @@ async function editData(id: string) { async function deleteData(id: string) { await http - .delete(config.API.orgProvince+`/${id}`) + .delete(config.API.orgProvince + `/${id}`) .then(() => { fetchData(); success($q, "ลบข้อมูลสำเร็จ"); @@ -139,8 +139,8 @@ async function deleteData(id: string) { }); } -function nextPage(id:string){ - router.push(`/master-data/personal/district/${id}`) +function nextPage(id: string) { + router.push(`/master-data/personal/district/${id}`); } onMounted(async () => { @@ -208,7 +208,11 @@ onMounted(async () => {