fixing bug
This commit is contained in:
parent
bd0835b0f1
commit
72dd92ff54
3 changed files with 26 additions and 8 deletions
|
|
@ -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