เครื่องราชฯ
This commit is contained in:
parent
8ebbef05d9
commit
1530da36cf
22 changed files with 159 additions and 777 deletions
|
|
@ -30,8 +30,8 @@ const loadView = ref<boolean>(false);
|
|||
|
||||
onMounted(async () => {
|
||||
await fecthRound();
|
||||
// await fecthInsigniaType();
|
||||
});
|
||||
// รอบการเสนอขอพระราชทานเครื่องราชฯ
|
||||
const fecthRound = async () => {
|
||||
showLoader();
|
||||
await http
|
||||
|
|
@ -74,7 +74,7 @@ const fecthRound = async () => {
|
|||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
// เรียกประเภทเครื่องราชฯ
|
||||
const fecthInsignia = async () => {
|
||||
await http
|
||||
.get(config.API.insignia)
|
||||
|
|
@ -91,7 +91,7 @@ const fecthInsignia = async () => {
|
|||
);
|
||||
});
|
||||
};
|
||||
|
||||
//ระดีบเครื่องราชฯ Tab
|
||||
const fecthInsigniaType = async () => {
|
||||
await http(config.API.insigniaType)
|
||||
.then(async (res) => {
|
||||
|
|
@ -153,7 +153,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "name",
|
||||
align: "left",
|
||||
label: "ชื่อ - สกุล",
|
||||
label: "ชื่อ - นามสกุล",
|
||||
field: "name",
|
||||
sortable: true,
|
||||
sort: (a: string, b: string) =>
|
||||
|
|
@ -334,6 +334,7 @@ const selectorRound = async (round: number) => {
|
|||
roundYear.value = round;
|
||||
await fecthlistInsignia();
|
||||
};
|
||||
// ราชชื่อการเสนอขอเครื่องราชฯ
|
||||
const fecthlistInsignia = async () => {
|
||||
showLoader();
|
||||
await http
|
||||
|
|
@ -559,7 +560,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
|||
<div v-if="props.col.name == 'no'">
|
||||
{{ props.rowIndex + 1 }}
|
||||
</div>
|
||||
|
||||
|
||||
<div
|
||||
v-else-if="
|
||||
props.col.name == 'action' && props.row.returnDate == '-'
|
||||
|
|
@ -574,8 +575,12 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
|||
</q-td>
|
||||
</div>
|
||||
<div v-else-if="props.col.name == 'returnOrganization'">
|
||||
{{ props.row.returnOrganization == null? '-': props.row.returnOrganization}}
|
||||
</div>
|
||||
{{
|
||||
props.row.returnOrganization == null
|
||||
? "-"
|
||||
: props.row.returnOrganization
|
||||
}}
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ props.value }}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue