fix(development): path API profile/development
This commit is contained in:
parent
d38f488935
commit
17afb2ed0d
3 changed files with 13 additions and 8 deletions
|
|
@ -57,6 +57,8 @@ export default {
|
|||
`${developmentOrg}/profile/development/registry/OFFICER/${id}`,
|
||||
developmentIDP: (id: string) => `${development}/main/registry/OFFICER/${id}`,
|
||||
|
||||
devStrategySort:`${devStrategy}/sort`,
|
||||
developmentScholarshipReport
|
||||
devStrategySort: `${devStrategy}/sort`,
|
||||
developmentScholarshipReport,
|
||||
|
||||
developmentProfile: `${developmentOrg}/profile/development`,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ export function usePagination(
|
|||
) {
|
||||
const pagination = ref<PropsTable.Pagination>({
|
||||
sortBy: defaultSort,
|
||||
descending: true,
|
||||
descending: false,
|
||||
page: 1,
|
||||
rowsPerPage: 10,
|
||||
rowsNumber: 0,
|
||||
|
|
|
|||
|
|
@ -8,10 +8,7 @@ import config from "@/app.config";
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { usePagination } from "@/composables/usePagination";
|
||||
|
||||
import type {
|
||||
DataOption,
|
||||
FormFilter,
|
||||
} from "@/modules/15_development/interface/index/Main";
|
||||
import type { DataOption } from "@/modules/15_development/interface/index/Main";
|
||||
|
||||
import Header from "@/components/DialogHeader.vue";
|
||||
|
||||
|
|
@ -146,13 +143,19 @@ function closeDialog() {
|
|||
rows.value = [];
|
||||
selected.value = [];
|
||||
inputSearch.value = "";
|
||||
pagination.value = {
|
||||
page: 1,
|
||||
rowsPerPage: 10,
|
||||
rowsNumber: 0,
|
||||
sortBy: "",
|
||||
};
|
||||
}
|
||||
|
||||
/** ดึงข้อมูลตาม keyword */
|
||||
async function searchFilter() {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.registryNew(""), {
|
||||
.get(config.API.developmentProfile, {
|
||||
params: {
|
||||
...params.value,
|
||||
searchField: search.value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue