แก้ API

This commit is contained in:
STW_TTTY\stwtt 2024-08-29 14:37:53 +07:00
parent 88016802b4
commit c2ae110e49
3 changed files with 15 additions and 3 deletions

View file

@ -88,7 +88,7 @@ export default {
/**
*
*/
evaluationUser: `${KpiUser}/evaluation/list`,
evaluationUser: `${KpiUser}/evaluation/list-announce`,
evaluationUserDone: `${KpiUser}/evaluation/done/kp7`,
achievementDev: `${KpiUser}/achievement/development/admin`,
achievementDevByid: (id: string) =>

View file

@ -142,6 +142,7 @@ const emType = computed(() => {
});
const formData = reactive<{
year: number | null;
point: number | null;
name: string;
group: any[];
target: string;
@ -155,6 +156,7 @@ const formData = reactive<{
year: null,
name: "",
group: [],
point: 0,
target: "",
isDevelopment70: false,
isDevelopment20: false,
@ -168,6 +170,7 @@ function close() {
id.value = "";
formData.name = "";
formData.point = 0;
formData.group = [];
formData.target = "";
formData.isDevelopment70 = false;
@ -197,7 +200,10 @@ watch(
if (i) {
showLoader();
http
.get(config.API.kpiAchievementDevelop + `/registry/${emType.value}/${id.value}`)
.get(
config.API.kpiAchievementDevelop +
`/registry/${emType.value}/${id.value}`
)
.then(async (res) => {
const data = res.data.result;
formData.year = data.selectTypeYear;
@ -607,6 +613,12 @@ function filterOptionFn(val: string, update: Function) {
</q-card>
</div>
</div>
<div class="row q-pa-sm justify-center">
<span class="text-body2 text-weight-bold">ผลการพฒนา </span>
<div class="text-primary q-pl-md">
{{ formData.point }}
</div>
</div>
</q-card-section>
</q-card>
</q-dialog>

View file

@ -144,7 +144,7 @@ function fetchList() {
http
.get(
config.API.kpiPeriod +
`?page=${formQuery.page}&pageSize=${formQuery.pageSize}&keyword=${formQuery.keyword}&year=${formQuery.year}`
`/user?page=${formQuery.page}&pageSize=${formQuery.pageSize}&keyword=${formQuery.keyword}&year=${formQuery.year}`
)
.then((res) => {
const data: ResRound[] = res.data.result.data;