This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-22 16:56:40 +07:00
parent 7f3eb5225f
commit 4c35662eed
22 changed files with 632 additions and 343 deletions

View file

@ -82,6 +82,7 @@ const dialog = ref<boolean>(false); // เพิ่มข้อมูล,แก
const dialogStatus = ref<string>(""); // ,
const personalName = ref<string>("เขต/อำเภอ"); //label input
const rows = ref<FormDistrict[]>([]); // /
const provinceName = ref<string>(""); //
/**
* fetch อมลรายการ ระดบการเขต/อำเภอ ตาม id ของจงหว
@ -94,6 +95,7 @@ async function fetchData() {
.get(config.API.orgProvince + `/${id.value}`)
.then(async (res) => {
const data = await res.data.result.districts;
provinceName.value = await res.data.result.name;
const list = data.map((e: FormDistrict) => ({
...e,
@ -187,7 +189,7 @@ onMounted(async () => {
class="q-mr-sm"
@click="router.go(-1)"
/>
เขต/อำเภอ
เขต/อำเภอ {{ `(${provinceName})` }}
</div>
<q-card flat bordered>
@ -227,7 +229,6 @@ onMounted(async () => {
map-options
:options="columns"
option-value="name"
style="min-width: 140px"
/>
</div>
@ -283,7 +284,7 @@ onMounted(async () => {
@click="nextPage(props.row.id)"
>
<div>
{{ col.value }}
{{ col.value ?? "-" }}
</div>
</q-td>
</q-tr>