From a49dcbfd27888b877babb0e5bb1443e67bd72ef9 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Fri, 2 Feb 2024 15:50:51 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9C=E0=B8=A2=E0=B9=81=E0=B8=9E?= =?UTF-8?q?=E0=B8=A3=E0=B9=88=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87=E0=B8=AA?= =?UTF-8?q?=E0=B8=A3=E0=B9=89=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/DialogFormDateTime.vue | 33 ++++++++----------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/src/modules/02_organizationalNew/components/DialogFormDateTime.vue b/src/modules/02_organizationalNew/components/DialogFormDateTime.vue index 74cfaa9b1..489a396c2 100644 --- a/src/modules/02_organizationalNew/components/DialogFormDateTime.vue +++ b/src/modules/02_organizationalNew/components/DialogFormDateTime.vue @@ -88,19 +88,19 @@ function onClickPublish() { dialogConfirm( $q, () => { - alert("get"); - // showLoader() - // http - // .get(config.API.organizationPublishGet) - // .then((res)=>{ - props.close?.(); - // }) - // .catch((e)=>{ - // messageError($q,e) - // }) - // .finally(()=>{ - // hideLoader() - // }) + showLoader(); + http + .get(config.API.organizationPublishGet) + .then((res) => { + props.fetchActive(); + props.close?.(); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(() => { + hideLoader(); + }); }, "ยืนยันการเผยเเพร่ข้อมูล", "ต้องการยืนยันการเผยเเพร่ข้อมูลนี้ใช่หรือไม่?" @@ -174,12 +174,7 @@ watch( - + เผยแพร่ข้อมูลทันที