KPI ==> ปรับ load

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-27 15:28:06 +07:00
parent 70d0975463
commit 6797177b01
6 changed files with 91 additions and 188 deletions

View file

@ -220,9 +220,9 @@ function onDelete(id: string, type: string) {
showLoader();
http
.delete(config.API.kpiUserCapacity + `/${id}`)
.then((res) => {
success($q, "ลบข้อมูลสำเร็จ");
getData(type);
.then(async () => {
await getData(type);
await success($q, "ลบข้อมูลสำเร็จ");
})
.catch((e) => {
messageError($q, e);
@ -363,7 +363,9 @@ onMounted(() => {
<d-table
ref="table"
:columns="columns"
:rows="rows[item.id] && rows[item.id].length !== 0 ? rows[item.id] : []"
:rows="
rows[item.id] && rows[item.id].length !== 0 ? rows[item.id] : []
"
row-key="id"
flat
bordered