fix
This commit is contained in:
parent
7f3eb5225f
commit
4c35662eed
22 changed files with 632 additions and 343 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue