fix nodeDnaId

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-03 15:23:24 +07:00
parent b393d899db
commit e467555e88
5 changed files with 24 additions and 18 deletions

View file

@ -191,7 +191,7 @@ function filterOption(val: any, update: Function) {
/** ดึงข้อมูลตำแหน่ง */
async function getOptions() {
showLoader();
// showLoader();
await http
.get(config.API.orgSalaryPosition)
.then(async (res) => {
@ -218,14 +218,10 @@ async function getOptions() {
messageError($q, err);
})
.finally(() => {
hideLoader();
// hideLoader();
});
}
function setModel(val: string) {
formFilter.position = val;
}
/**
* เป dialog history
* @param id
@ -248,7 +244,7 @@ function onClickHistory(id: string) {
}
async function getTotal() {
showLoader();
// showLoader();
await http
.post(config.API.indicatorSummary)
.then(async (res) => {
@ -264,12 +260,15 @@ async function getTotal() {
messageError($q, e);
})
.finally(() => {
hideLoader();
// hideLoader();
});
}
onMounted(async () => {
await Promise.all([getTotal(), getOptions(), fetchList()]);
showLoader();
await Promise.all([getTotal(), getOptions(), fetchList()]).finally(() => {
hideLoader();
});
});
</script>
@ -572,7 +571,7 @@ onMounted(async () => {
}}
</div>
<div v-else >
<div v-else>
{{ col.value ? col.value : "-" }}
</div>
</q-td>