clear code + comment
This commit is contained in:
parent
a9609d2d7f
commit
ac70090e22
19 changed files with 231 additions and 166 deletions
|
|
@ -25,6 +25,7 @@ const formFilter = reactive({
|
|||
keyword: "",
|
||||
year: new Date().getFullYear(),
|
||||
});
|
||||
|
||||
const maxPage = ref<number>(1);
|
||||
const totalList = ref<number>(0); //จำนวนข้อมูลรายการ
|
||||
|
||||
|
|
@ -33,9 +34,8 @@ const router = useRouter();
|
|||
const store = useDevelopmentDataStore();
|
||||
const $q = useQuasar();
|
||||
const { showLoader, hideLoader, messageError } = useCounterMixin();
|
||||
|
||||
const rows = ref<any>([]);
|
||||
|
||||
const agencyOp = ref<[]>([]);
|
||||
const visibleColumns = ref<string[]>([
|
||||
"citizenId",
|
||||
"name",
|
||||
|
|
@ -113,8 +113,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
},
|
||||
]);
|
||||
|
||||
const agencyOp = ref<[]>([]);
|
||||
|
||||
/** ดึงข้อมูลหน่วยงาน */
|
||||
function fetchListOrg() {
|
||||
showLoader();
|
||||
http
|
||||
|
|
@ -134,6 +133,7 @@ function fetchListOrg() {
|
|||
});
|
||||
}
|
||||
|
||||
/** ดึงข้อมูลรายการ */
|
||||
function getData() {
|
||||
showLoader();
|
||||
http
|
||||
|
|
@ -162,6 +162,7 @@ function getData() {
|
|||
});
|
||||
}
|
||||
|
||||
/** download file */
|
||||
function onDownload() {
|
||||
showLoader();
|
||||
http
|
||||
|
|
@ -184,6 +185,7 @@ function onDownload() {
|
|||
});
|
||||
}
|
||||
|
||||
/** edit page */
|
||||
function onEdit(id: string) {
|
||||
store.statusEdit = true;
|
||||
router.push(`/development/history/${id}`);
|
||||
|
|
@ -206,6 +208,7 @@ watch(
|
|||
}
|
||||
);
|
||||
|
||||
/** ดึงข้อมูลเมื่ออยู่ในหน้า */
|
||||
onMounted(() => {
|
||||
fetchListOrg();
|
||||
});
|
||||
|
|
@ -276,10 +279,6 @@ onMounted(() => {
|
|||
@update:model-value="(formFilter.page = 1), getData()"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- <q-btn flat round dense icon="add" color="primary" @click="onAdd()">
|
||||
<q-tooltip>เพิ่ม</q-tooltip>
|
||||
</q-btn> -->
|
||||
</q-toolbar>
|
||||
<q-toolbar class="col-4 text-white q-pa-none q-gutter-x-sm">
|
||||
<q-space />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue