เผยแพร่โครงสร้าง

This commit is contained in:
Warunee Tamkoo 2024-02-02 15:50:51 +07:00
parent fe3a1367a6
commit a49dcbfd27

View file

@ -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(
</q-card-section>
<q-separator />
<q-card-actions align="right">
<q-btn
flat
color="blue-7"
icon="public"
@click="onClickPublish()"
>
<q-btn flat color="blue-7" icon="public" @click="onClickPublish()">
<q-tooltip>เผยแพรอมลทนท</q-tooltip>
</q-btn>
<q-space />