แก้ kpi
This commit is contained in:
parent
2dcb25d9db
commit
9c448c86e2
3 changed files with 8 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ import { useCounterMixin } from "@/stores/mixin";
|
|||
import { useKpiDataStore } from "@/modules/14_KPI/store";
|
||||
|
||||
import DialogHeader from "@/components/DialogHeader.vue";
|
||||
import type { FormProfile } from "@/modules/14_KPI/interface/request/Index";
|
||||
import type { FormProfile } from "@/modules/14_KPI/interface/request/index";
|
||||
import type { DataOption } from "@/modules/14_KPI/interface/index/Main";
|
||||
|
||||
// const modalScore = ref<boolean>(false);
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ function openGovernment() {
|
|||
}
|
||||
|
||||
function openStatus() {
|
||||
router.push(`/probation-detail/${store.dataEvaluation.profileId}`);
|
||||
router.push(`/probation-detail/${store.dataEvaluation.id}`);
|
||||
}
|
||||
|
||||
function sendToEvauator() {
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@ const mode = ref<any>($q.screen.gt.xs);
|
|||
const profileImg = ref<string>("");
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const id = ref<string>(route.params.id as string);
|
||||
|
||||
|
||||
const idEva = ref<string>(route.params.id as string);
|
||||
const formData = reactive<any>({
|
||||
prefix: "",
|
||||
|
|
@ -115,10 +118,12 @@ function onResize(size: any) {
|
|||
/**
|
||||
* fetch ข้แมูลส่วนตัว
|
||||
*/
|
||||
|
||||
// เส้นเก่าที่เคยใช้ .get(config.API.kpiEvaluationUser + `/admin/${id.value}`)
|
||||
async function getMain() {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.profilePosition + `/${idEva.value}`)
|
||||
.get(config.API.kpiEvaluationUser + `/admin/${id.value}`)
|
||||
.then(async (res) => {
|
||||
const data = await res.data.result;
|
||||
formData.prefix = data.prefix;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue