เปลี่ยน API
This commit is contained in:
parent
87952fd5b9
commit
bee5736e12
2 changed files with 7 additions and 3 deletions
|
|
@ -16,7 +16,8 @@ const kpiAchievement = `${env.API_URI}/kpi/user/achievement`;
|
|||
const kpiReason = `${env.API_URI}/kpi/reason`;
|
||||
|
||||
|
||||
const placementKeycloak = `${env.API_URI}/placement/officer/keycloak`;
|
||||
// const placementKeycloak = `${env.API_URI}/placement/officer/keycloak`;
|
||||
const placementKeycloak = `${env.API_URI}/placement/officer/profileId`;
|
||||
const orgPosition = `${env.API_URI}/org/profile/keycloak/position `;
|
||||
export default {
|
||||
kpiPeriod,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import type { QTableProps } from "quasar";
|
|||
import { ref,watch } from "vue";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
|
|
@ -21,6 +21,9 @@ const {
|
|||
date2Thai,
|
||||
} = mixin;
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const id = ref<string>(route.params.id as string)
|
||||
const modal = defineModel<boolean>("modal", { required: true });
|
||||
const filterKeyword = ref<string>("");
|
||||
const rows = ref<any[]>([]);
|
||||
|
|
@ -190,7 +193,7 @@ function close() {
|
|||
function getData(){
|
||||
showLoader()
|
||||
http
|
||||
.get(config.API.placementKeycloak)
|
||||
.get(config.API.placementKeycloak+`/${id.value}`)
|
||||
.then((res)=>{
|
||||
const data = res.data.result
|
||||
rows.value = data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue