แก้ไขโครงการ/หลักสูตรการฝึกอบรม ปิดdialog เเล้ว ดึงข้อมูลกลับมา ถ้ามีการเเก้ไขเเต่ไม่ บันทึก

This commit is contained in:
STW_TTTY\stwtt 2024-07-03 14:02:37 +07:00
parent 7a3e916039
commit a3154508d0
2 changed files with 5 additions and 3 deletions

View file

@ -136,7 +136,7 @@ function getData(type: any) {
.then(async (res) => {
const data = res.data.result.data;
rows.value[type] = data;
lists.value = await lists.value.filter((x: any) => x.type != type);
lists.value = lists.value.filter((x: any) => x.type != type);
lists.value.push({ type: type, data });
})
.catch((e) => {
@ -349,7 +349,7 @@ onMounted(() => {
<d-table
ref="table"
:columns="columns"
:rows="rows[item.id]"
:rows="rows.length !== 0 ? rows[item.id]:[]"
row-key="id"
flat
bordered

View file

@ -409,6 +409,8 @@ function onClickCloseDialog() {
groupTargetData.targetData = [{}];
modalRelate.value = false;
cleanFormData();
fetchType();
fetchData(projectId.value);
}
/**
@ -533,7 +535,7 @@ onMounted(() => {
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-tr :props="props" class="cursor-pointer vertical-top">
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div v-if="col.name === 'posTypePlannedId'">
<div