This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-06-25 18:07:08 +07:00
parent 9fb037fc80
commit eee6504a5d
3 changed files with 25 additions and 9 deletions

View file

@ -90,6 +90,7 @@ function fetchOrganizationActive() {
/** function fetchTree ยุทธศาสตร์ / แผน*/
function fetchTreeStrategy() {
showLoader();
http
.get(config.API.devStrategy)
.then((res) => {
@ -98,11 +99,15 @@ function fetchTreeStrategy() {
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
/** functioon fetchcTree หน่วยงาน/ส่วนราชการ*/
function fetchTreeAgency(id: string) {
showLoader();
http
.get(config.API.orgByid(id.toString()))
.then(async (res) => {
@ -112,6 +117,9 @@ function fetchTreeAgency(id: string) {
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}