ปรับ 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

@ -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();
});

View file

@ -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",

View file

@ -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"]);

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",