เพิ่ม [ ]

This commit is contained in:
STW_TTTY\stwtt 2024-07-01 11:40:07 +07:00
parent afa820f1f8
commit f97cda0a8d
5 changed files with 10 additions and 9 deletions

View file

@ -120,22 +120,23 @@ const visibleColumns = ref<string[]>(
: ["name", "level", "point", "weight"]
);
const typeCompetency = ref<string>("");
const typeCompetency = ref<any>("");
function onAdd(type: string) {
typeCompetency.value = type;
modal.value = true;
}
const rows = ref<any>([]);
const rows = ref<any[]>([]);
const lists = ref<any>([]);
// const resultEvaluation = ref<string | 0>(0);
function getData(type: string) {
function getData(type: any) {
http
.get(config.API.kpiUserCapacity + `?id=${id.value}&type=${type}`)
.then(async (res) => {
const data = res.data.result.data;
rows.value[type] = data;
console.log("🚀 ~ .then ~ rows.value[type]:", rows.value[type])
lists.value = await lists.value.filter((x: any) => x.type != type);
lists.value.push({ type: type, data });
})