fixing bug
This commit is contained in:
parent
bd0835b0f1
commit
72dd92ff54
3 changed files with 26 additions and 8 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import env from "../index";
|
||||
const KPI = `${env.API_URI}/kpi`;
|
||||
const kpiPeriod = `${env.API_URI}/kpi/period`;
|
||||
const kpiEvaluation = `${env.API_URI}/kpi/user/evaluation`;
|
||||
const kpiEvaluation = `${env.API_URI}/kpi/evaluation`;
|
||||
const kpiPlan = `${env.API_URI}/kpi/plan`;
|
||||
const kpiRole = `${env.API_URI}/kpi/role`;
|
||||
const kpiSpecial = `${env.API_URI}/kpi/special`;
|
||||
const KpiCapacity = `${env.API_URI}/kpi/capacity`;
|
||||
const kpiCapacity = `${env.API_URI}/kpi/capacity`;
|
||||
const KpiFile = `${env.API_URI}/salary/file`;
|
||||
const KpiEvaluationInfo = `${env.API_URI}/kpi/evaluation`;
|
||||
const Kpiorg = `${env.API_URI}/org/profile/commander`;
|
||||
|
|
@ -16,16 +16,25 @@ const kpiReason = `${env.API_URI}/kpi/reason`;
|
|||
|
||||
const urlFile = `${env.API_URI}/salary`;
|
||||
|
||||
const kpiGroup = `${env.API_URI}/kpi/group`;
|
||||
const kpiLink = `${env.API_URI}/kpi/link`;
|
||||
|
||||
export default {
|
||||
KPI,
|
||||
/** รอบการประเมินผล*/
|
||||
kpiPeriod,
|
||||
kpiPeriodById: (id: string) => `${kpiPeriod}/${id}`,
|
||||
|
||||
kpiEvaluation,
|
||||
kpiPlan,
|
||||
kpiPlanById: (id: string) => `${kpiPlan}/${id}`,
|
||||
|
||||
/** role */
|
||||
kpiRole,
|
||||
kpiRoleMainList: `${KPI}/role`,
|
||||
|
||||
kpiSpecial,
|
||||
KpiCapacity,
|
||||
kpiCapacity,
|
||||
KpiFile: KpiFile,
|
||||
|
||||
kpiAchievement: (type: string) => `${kpiAchievement}/${type}`,
|
||||
|
|
@ -47,4 +56,13 @@ export default {
|
|||
|
||||
kpiCommentP: (typP: string, type: string, role: string, id: string) =>
|
||||
`${kpiReason}/${typP}/${type}/${role}/${id}`,
|
||||
|
||||
kpiGroup,
|
||||
kpiGroupById: (id: string) => `${kpiGroup}/${id}`,
|
||||
|
||||
/** สมรรถนะ */
|
||||
|
||||
kpiLink,
|
||||
|
||||
profilePosition: () => `${env.API_URI}/org/profile/keycloak/position`,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { useRoute } from "vue-router";
|
|||
import config from "@/app.config";
|
||||
import http from "@/plugins/http";
|
||||
|
||||
import type { DataOptions } from "@/modules/14_KPI/interface/index/Main";
|
||||
import type { DataOption } from "@/modules/14_KPI/interface/index/Main";
|
||||
|
||||
import DialogHeader from "@/components/DialogHeader.vue";
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ const formDetail = reactive<any>({
|
|||
});
|
||||
|
||||
/** Option รอบการประเมิน*/
|
||||
const roundOp = ref<DataOptions[]>([
|
||||
const roundOp = ref<DataOption[]>([
|
||||
{ id: "APR", name: "รอบเมษายน" },
|
||||
{ id: "OCT", name: "รอบตุลาคม" },
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, reactive, onMounted, watch } from "vue";
|
||||
import DialogHeader from "@/components/DialogHeader.vue";
|
||||
import type { DataOptions } from "@/modules/14_KPI/interface/index/Main";
|
||||
import type { DataOption } from "@/modules/14_KPI/interface/index/Main";
|
||||
import type { ListCapacity } from "@/modules/14_KPI/interface/request/index";
|
||||
import { useKpiDataStore } from "@/modules/14_KPI/store";
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ const fieldLabels = {
|
|||
score5: "5",
|
||||
};
|
||||
|
||||
const competencyTypeOp = ref<DataOptions[]>(store.competencyType);
|
||||
const competencyTypeOp = ref<DataOption[]>(store.competencyType);
|
||||
|
||||
const visibleColumns = ref<String[]>(["level", "description"]);
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
|
|
@ -196,7 +196,7 @@ function onSubmit() {
|
|||
function getData() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.KpiCapacity + `?type=${type.value}`)
|
||||
.get(config.API.kpiCapacity + `?type=${type.value}`)
|
||||
.then((res) => {
|
||||
const data = res.data.result.data;
|
||||
listTarget.value = data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue