fix(development): path API profile/development

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-10-03 16:13:35 +07:00
parent d38f488935
commit 17afb2ed0d
3 changed files with 13 additions and 8 deletions

View file

@ -57,6 +57,8 @@ export default {
`${developmentOrg}/profile/development/registry/OFFICER/${id}`, `${developmentOrg}/profile/development/registry/OFFICER/${id}`,
developmentIDP: (id: string) => `${development}/main/registry/OFFICER/${id}`, developmentIDP: (id: string) => `${development}/main/registry/OFFICER/${id}`,
devStrategySort:`${devStrategy}/sort`, devStrategySort: `${devStrategy}/sort`,
developmentScholarshipReport developmentScholarshipReport,
developmentProfile: `${developmentOrg}/profile/development`,
}; };

View file

@ -7,7 +7,7 @@ export function usePagination(
) { ) {
const pagination = ref<PropsTable.Pagination>({ const pagination = ref<PropsTable.Pagination>({
sortBy: defaultSort, sortBy: defaultSort,
descending: true, descending: false,
page: 1, page: 1,
rowsPerPage: 10, rowsPerPage: 10,
rowsNumber: 0, rowsNumber: 0,

View file

@ -8,10 +8,7 @@ import config from "@/app.config";
import { useCounterMixin } from "@/stores/mixin"; import { useCounterMixin } from "@/stores/mixin";
import { usePagination } from "@/composables/usePagination"; import { usePagination } from "@/composables/usePagination";
import type { import type { DataOption } from "@/modules/15_development/interface/index/Main";
DataOption,
FormFilter,
} from "@/modules/15_development/interface/index/Main";
import Header from "@/components/DialogHeader.vue"; import Header from "@/components/DialogHeader.vue";
@ -146,13 +143,19 @@ function closeDialog() {
rows.value = []; rows.value = [];
selected.value = []; selected.value = [];
inputSearch.value = ""; inputSearch.value = "";
pagination.value = {
page: 1,
rowsPerPage: 10,
rowsNumber: 0,
sortBy: "",
};
} }
/** ดึงข้อมูลตาม keyword */ /** ดึงข้อมูลตาม keyword */
async function searchFilter() { async function searchFilter() {
showLoader(); showLoader();
await http await http
.get(config.API.registryNew(""), { .get(config.API.developmentProfile, {
params: { params: {
...params.value, ...params.value,
searchField: search.value, searchField: search.value,