แก้ id
This commit is contained in:
parent
72a62b4cc0
commit
a58016fb9d
2 changed files with 8 additions and 2 deletions
|
|
@ -7,7 +7,9 @@ import { useQuasar } from "quasar";
|
||||||
import { useRouter, useRoute } from "vue-router";
|
import { useRouter, useRoute } from "vue-router";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
import { useKpiDataStore } from "@/modules/08_KPI/store";
|
||||||
|
|
||||||
|
const store = useKpiDataStore();
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const {
|
const {
|
||||||
|
|
@ -193,7 +195,7 @@ function close() {
|
||||||
function getData(){
|
function getData(){
|
||||||
showLoader()
|
showLoader()
|
||||||
http
|
http
|
||||||
.get(config.API.placementKeycloak+`/${id.value}`)
|
.get(config.API.placementKeycloak+`/${store.dataProfile.profileId}`)
|
||||||
.then((res)=>{
|
.then((res)=>{
|
||||||
const data = res.data.result
|
const data = res.data.result
|
||||||
rows.value = data
|
rows.value = data
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,10 @@ import { useQuasar } from "quasar";
|
||||||
import { useRouter, useRoute } from "vue-router";
|
import { useRouter, useRoute } from "vue-router";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
import { useKpiDataStore } from "@/modules/08_KPI/store";
|
||||||
|
|
||||||
|
const store = useKpiDataStore();
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const id = ref<string>(route.params.id as string)
|
const id = ref<string>(route.params.id as string)
|
||||||
|
|
@ -33,7 +37,7 @@ function close() {
|
||||||
function getData() {
|
function getData() {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
.get(config.API.orgPosition+`/${id.value}`)
|
.get(config.API.orgPosition+`/${store.dataProfile.profileId}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.result.isProbation;
|
const data = res.data.result.isProbation;
|
||||||
work.value = data;
|
work.value = data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue