ปรับ format code + comment + เช็ค paging เมนูพัฒนาบุคลากร

This commit is contained in:
STW_TTTY\stwtt 2024-05-21 13:10:02 +07:00
parent c2a1648d70
commit fb2b9b4c30
8 changed files with 35 additions and 40 deletions

View file

@ -2,14 +2,12 @@
import { ref, watch, computed,reactive } from "vue";
import Header from "@/components/DialogHeader.vue";
import type { DataOption,FormFilter,NewPagination } from "@/modules/15_development/interface/index/Main";
import { useDevelopmentDataStore } from "@/modules/15_development/store/developmentStore";
import { useCounterMixin } from "@/stores/mixin";
import { useQuasar, type QTableProps } from "quasar";
import http from "@/plugins/http";
import config from "@/app.config";
const rows = ref<any[]>([])
const props = defineProps({
upDate: { type: Function },
@ -199,13 +197,17 @@ function searchFilter() {
});
}
/** update ค่า เเถวข้อมูล */
/** update
* @param val วเลขทการเปลยนค
*/
function updatePage(val:number){
formFilter.page = val;
searchFilter();
}
/** update ค่า เเถวข้อมูล */
/** update
* @param newPagination วเลขทการเปลยนค
*/
function updatePageSize(newPagination: NewPagination) {
formFilter.page = 1;
formFilter.pageSize = newPagination.rowsPerPage;

View file

@ -62,14 +62,9 @@ const projectOp = ref<DataOption[]>([
id: "year",
name: "ปีงบประมาณ",
},
// {
// id: "ID3",
// name: "",
// },
]);
const visibleColumns = ref<string[]>(["project", "year", "organizingTraining"]);
const columns = ref<QTableProps["columns"]>([
{
name: "project",