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 () => {