จัดโค้ดบรรจุ รายชื่อผู้สอบผ่าน
This commit is contained in:
parent
eb80e5e267
commit
9f9879202e
9 changed files with 527 additions and 411 deletions
|
|
@ -1,11 +1,13 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, useAttrs } from "vue";
|
||||
import { QTooltip, useQuasar } from "quasar";
|
||||
|
||||
const $q = useQuasar();
|
||||
const attrs = ref<any>(useAttrs());
|
||||
const paging = ref<boolean>(true);
|
||||
const table = ref<any>(null);
|
||||
const filterRef = ref<any>(null);
|
||||
|
||||
const props = defineProps({
|
||||
inputfilter: String,
|
||||
inputvisible: Array,
|
||||
|
|
@ -95,18 +97,15 @@ const props = defineProps({
|
|||
containStatus: Boolean,
|
||||
roleAdmin: Boolean,
|
||||
});
|
||||
|
||||
const pagination = ref({
|
||||
sortBy: "examNumber",
|
||||
descending: false,
|
||||
page: 1,
|
||||
rowsPerPage: 10,
|
||||
});
|
||||
const paginationLabel = (start: string, end: string, total: string) => {
|
||||
if (paging.value == true) return " " + start + "-" + end + " ใน " + total;
|
||||
else return start + "-" + end + " ใน " + total;
|
||||
};
|
||||
const refresh = () => props.refresh();
|
||||
|
||||
/** ส่งค่า*/
|
||||
const emit = defineEmits([
|
||||
"update:inputfilter",
|
||||
"update:inputvisible",
|
||||
|
|
@ -117,25 +116,42 @@ const emit = defineEmits([
|
|||
"update-modaladdlist",
|
||||
]);
|
||||
|
||||
const updateInput = (value: any) => {
|
||||
function paginationLabel(start: string, end: string, total: string) {
|
||||
if (paging.value == true) return " " + start + "-" + end + " ใน " + total;
|
||||
else return start + "-" + end + " ใน " + total;
|
||||
}
|
||||
|
||||
/**
|
||||
* update ค่าที่ค้นหา
|
||||
* @param value string
|
||||
*/
|
||||
function updateInput(value: any) {
|
||||
emit("update:inputfilter", value);
|
||||
};
|
||||
const updateVisible = (value: any) => {
|
||||
}
|
||||
|
||||
/** update ข้อมูลที่ เเสดง */
|
||||
function updateVisible(value: any) {
|
||||
emit("update:inputvisible", value);
|
||||
};
|
||||
}
|
||||
|
||||
const updateContain = (value: any) => {
|
||||
/**
|
||||
* แสดงสถานะบรรจุแล้ว
|
||||
* @param value true/false
|
||||
*/
|
||||
function updateContain(value: any) {
|
||||
emit("update:containfilter", value);
|
||||
};
|
||||
}
|
||||
|
||||
const resetFilter = () => {
|
||||
// reset ค่าที่ค้นหาเมื่อกดปุ่ม X ในกล่องค้นหา
|
||||
/** reset ค่าที่ค้นหาเมื่อกดปุ่ม X ในกล่องค้นหา */
|
||||
function resetFilter() {
|
||||
emit("update:inputfilter", "");
|
||||
filterRef.value.focus();
|
||||
};
|
||||
const updateModaladdlist = () => {
|
||||
}
|
||||
|
||||
/** ส่งรายชื่อไปยังหน่วยงาน */
|
||||
function updateModaladdlist() {
|
||||
emit("update-modaladdlist", true);
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue