fix
This commit is contained in:
parent
ae9e989a14
commit
97000fb503
1 changed files with 4 additions and 19 deletions
|
|
@ -32,7 +32,6 @@ const {
|
||||||
const rows = ref<FormProprsalsRound2[]>([]); //รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
|
const rows = ref<FormProprsalsRound2[]>([]); //รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
|
||||||
const rowsData = ref<FormProprsalsRound2[]>([]); //รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
|
const rowsData = ref<FormProprsalsRound2[]>([]); //รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
|
||||||
const filterKeyword = ref<string>(""); //คำค้นหาข้อมูลในตาราง
|
const filterKeyword = ref<string>(""); //คำค้นหาข้อมูลในตาราง
|
||||||
const filterRef = ref<HTMLInputElement | null>(null);
|
|
||||||
const columns = ref<QTableProps["columns"]>([
|
const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "period_name",
|
name: "period_name",
|
||||||
|
|
@ -103,9 +102,7 @@ const modalForm = ref<boolean>(false); //แสดงรายละเอีย
|
||||||
const actionType = ref<string>(""); // ประเภท ดูรายละเอียด,แก้ไข
|
const actionType = ref<string>(""); // ประเภท ดูรายละเอียด,แก้ไข
|
||||||
const roundId = ref<string>(""); //id ที่ต้องการ ดูรายละเอียด,แก้ไข
|
const roundId = ref<string>(""); //id ที่ต้องการ ดูรายละเอียด,แก้ไข
|
||||||
|
|
||||||
/**
|
/** Function เรียกรายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์*/
|
||||||
* Function เรียกรายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
|
|
||||||
*/
|
|
||||||
async function fetchData() {
|
async function fetchData() {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
|
|
@ -149,7 +146,7 @@ function clickDelete(id: string) {
|
||||||
.delete(config.API.RoundInsignia(id))
|
.delete(config.API.RoundInsignia(id))
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await fetchData();
|
await fetchData();
|
||||||
await success($q, "ลบข้อมูลสำเร็จ");
|
success($q, "ลบข้อมูลสำเร็จ");
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
@ -160,16 +157,6 @@ function clickDelete(id: string) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function กำหนดค่า filterKeyword เป็นค่าว่าง
|
|
||||||
*/
|
|
||||||
function resetFilter() {
|
|
||||||
filterKeyword.value = "";
|
|
||||||
if (filterRef.value) {
|
|
||||||
filterRef.value.focus();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* function ดูข้อมูลรายละเอียดรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
|
* function ดูข้อมูลรายละเอียดรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
|
||||||
* @param action ประเภท ดูรายละเอียด,แก้ไข
|
* @param action ประเภท ดูรายละเอียด,แก้ไข
|
||||||
|
|
@ -189,9 +176,7 @@ function onSearch() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** ทำงานเมื่อ Componenets ถูกเรียกใช้งาน*/
|
||||||
* ทำงานเมื่อ Componenets ถูกเรียกใช้งาน
|
|
||||||
*/
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await fetchData();
|
await fetchData();
|
||||||
});
|
});
|
||||||
|
|
@ -201,6 +186,7 @@ onMounted(async () => {
|
||||||
<div class="toptitle text-dark col-12 row items-center">
|
<div class="toptitle text-dark col-12 row items-center">
|
||||||
รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
|
รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
||||||
<div class="row q-col-gutter-sm">
|
<div class="row q-col-gutter-sm">
|
||||||
<div class="row col-12 q-col-gutter-sm">
|
<div class="row col-12 q-col-gutter-sm">
|
||||||
|
|
@ -222,7 +208,6 @@ onMounted(async () => {
|
||||||
standout
|
standout
|
||||||
dense
|
dense
|
||||||
v-model="filterKeyword"
|
v-model="filterKeyword"
|
||||||
ref="filterRef"
|
|
||||||
outlined
|
outlined
|
||||||
placeholder="ค้นหา"
|
placeholder="ค้นหา"
|
||||||
@keydown.enter="onSearch"
|
@keydown.enter="onSearch"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue