แก้ไขโครงการ/หลักสูตรการฝึกอบรม ปิดdialog เเล้ว ดึงข้อมูลกลับมา ถ้ามีการเเก้ไขเเต่ไม่ บันทึก
This commit is contained in:
parent
7a3e916039
commit
a3154508d0
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue