แก้ไขโครงการ/หลักสูตรการฝึกอบรม ปิด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