เผยแพร่ข้อมูล
This commit is contained in:
parent
98bef466d6
commit
94976daa5d
2 changed files with 22 additions and 0 deletions
|
|
@ -25,4 +25,5 @@ export default {
|
||||||
orgPosMasterList: `${orgPos}/master/list`,
|
orgPosMasterList: `${orgPos}/master/list`,
|
||||||
orgPosSort: `${orgPos}/sort`,
|
orgPosSort: `${orgPos}/sort`,
|
||||||
organizationShortName: `${organization}/sort`,
|
organizationShortName: `${organization}/sort`,
|
||||||
|
organizationPublishGet: `${organization}/get/publish`,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,25 @@ function onSubmit() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onClickPublish(){
|
||||||
|
dialogConfirm($q,()=>{
|
||||||
|
|
||||||
|
|
||||||
|
alert('get')
|
||||||
|
// showLoader()
|
||||||
|
// http
|
||||||
|
// .get(config.API.organizationPublishGet)
|
||||||
|
// .then((res)=>{
|
||||||
|
props.close?.()
|
||||||
|
// })
|
||||||
|
// .catch((e)=>{
|
||||||
|
// messageError($q,e)
|
||||||
|
// })
|
||||||
|
// .finally(()=>{
|
||||||
|
// hideLoader()
|
||||||
|
// })
|
||||||
|
},'ยืนยันการเผยเเพร่ข้อมูล','ต้องการยืนยันการเผยเเพร่ข้อมูลนี้ใช่หรือไม่?')
|
||||||
|
}
|
||||||
watch(
|
watch(
|
||||||
() => props.modal,
|
() => props.modal,
|
||||||
() => {
|
() => {
|
||||||
|
|
@ -152,6 +171,8 @@ watch(
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-card-actions align="right" class="bg-white text-teal">
|
<q-card-actions align="right" class="bg-white text-teal">
|
||||||
|
<q-btn :label="`เผยแพร่ข้อมูล`" color="indigo-9" @click="onClickPublish()"/>
|
||||||
|
<q-space/>
|
||||||
<q-btn type="submit" :label="`บันทึก`" color="public" />
|
<q-btn type="submit" :label="`บันทึก`" color="public" />
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue