แก้ id

This commit is contained in:
STW_TTTY\stwtt 2024-06-17 16:21:14 +07:00
parent 72a62b4cc0
commit a58016fb9d
2 changed files with 8 additions and 2 deletions

View file

@ -7,7 +7,9 @@ import { useQuasar } from "quasar";
import { useRouter, useRoute } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";
import { useKpiDataStore } from "@/modules/08_KPI/store";
const store = useKpiDataStore();
const $q = useQuasar();
const mixin = useCounterMixin();
const {
@ -193,7 +195,7 @@ function close() {
function getData(){
showLoader()
http
.get(config.API.placementKeycloak+`/${id.value}`)
.get(config.API.placementKeycloak+`/${store.dataProfile.profileId}`)
.then((res)=>{
const data = res.data.result
rows.value = data

View file

@ -7,6 +7,10 @@ import { useQuasar } from "quasar";
import { useRouter, useRoute } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";
import { useKpiDataStore } from "@/modules/08_KPI/store";
const store = useKpiDataStore();
const route = useRoute();
const router = useRouter();
const id = ref<string>(route.params.id as string)
@ -33,7 +37,7 @@ function close() {
function getData() {
showLoader();
http
.get(config.API.orgPosition+`/${id.value}`)
.get(config.API.orgPosition+`/${store.dataProfile.profileId}`)
.then((res) => {
const data = res.data.result.isProbation;
work.value = data;