ปรับ format code + comment + เช็ค paging เมนูพัฒนาบุคลากร
This commit is contained in:
parent
c2a1648d70
commit
fb2b9b4c30
8 changed files with 35 additions and 40 deletions
|
|
@ -126,7 +126,9 @@ function fetchTree(id: string) {
|
|||
});
|
||||
}
|
||||
|
||||
/** function เลือกหน่วยงาน*/
|
||||
/** function เลือกหน่วยงาน
|
||||
* @param data ข้อมูลทั้งหมดของ row
|
||||
*/
|
||||
function updateSelected(data: DataTree) {
|
||||
orgName.value = data.orgTreeName;
|
||||
formData.node = data.orgLevel;
|
||||
|
|
@ -134,6 +136,7 @@ function updateSelected(data: DataTree) {
|
|||
formData.orgRevisionId = data.orgRevisionId;
|
||||
}
|
||||
|
||||
/** ดึงข้อมูลเมื่อโหลดหน้าเสร็จสิ้น */
|
||||
onMounted(async () => {
|
||||
fetchActive();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -42,13 +42,11 @@ const pagination = ref({
|
|||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
dialogConfirm,
|
||||
messageError,
|
||||
dialogMessageNotify,
|
||||
showLoader,
|
||||
hideLoader,
|
||||
} = mixin;
|
||||
const store = useDevelopmentDataStore();
|
||||
|
||||
const modal = defineModel<boolean>("modal", { required: true });
|
||||
|
||||
|
|
@ -56,9 +54,6 @@ const selected = ref<any[]>([]);
|
|||
const search = ref<string>("citizenId");
|
||||
const inputSearch = ref<any>("");
|
||||
|
||||
const inputType = computed(() => {
|
||||
return search.value === "citizenId" ? "number" : "text";
|
||||
});
|
||||
const govOp = ref<DataOption[]>([
|
||||
{
|
||||
id: "citizenId",
|
||||
|
|
@ -78,6 +73,7 @@ const visibleColumns = ref<string[]>([
|
|||
"level",
|
||||
"positionSide",
|
||||
]);
|
||||
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "citizenId",
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ const year = ref<string>("");
|
|||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
dialogConfirm,
|
||||
messageError,
|
||||
dialogMessageNotify,
|
||||
showLoader,
|
||||
|
|
@ -66,10 +65,6 @@ const projectOp = ref<DataOption[]>([
|
|||
id: "year",
|
||||
name: "ปีงบประมาณ",
|
||||
},
|
||||
// {
|
||||
// id: "ID3",
|
||||
// name: "ชื่อหน่วยงานที่รับผิดชอบ",
|
||||
// },
|
||||
]);
|
||||
|
||||
const visibleColumns = ref<string[]>(["project", "year", "organizingTraining"]);
|
||||
|
|
|
|||
|
|
@ -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