ปรับ format code + comment + เช็ค paging เมนูพัฒนาบุคลากร
This commit is contained in:
parent
c2a1648d70
commit
fb2b9b4c30
8 changed files with 35 additions and 40 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue