fix
This commit is contained in:
parent
91105a3a90
commit
38944b99e4
1 changed files with 7 additions and 4 deletions
|
|
@ -54,6 +54,7 @@ async function fecthlistRound() {
|
|||
//มีรอบการเสนอขอพระราชทานเครื่องแสดง UI
|
||||
if (optionRound.value.length !== 0) {
|
||||
loadview.value = true;
|
||||
loading.value = true;
|
||||
DataStore.optionRound = optionRound.value;
|
||||
const lastValue = optionRound.value[0];
|
||||
if (DataStore.roundId) {
|
||||
|
|
@ -64,6 +65,9 @@ async function fecthlistRound() {
|
|||
DataStore.roundId = round.value;
|
||||
roundName.value = lastValue.name;
|
||||
await fecthStat(round.value);
|
||||
} else {
|
||||
loadview.value = false;
|
||||
loading.value = false;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
|
|
@ -92,13 +96,12 @@ async function fecthAgency() {
|
|||
// loadview.value = true;
|
||||
DataStore.agency = res.data.result.rootId;
|
||||
DataStore.typeOc = DataStore.agency;
|
||||
// loading.value = true;
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
// loading.value = true;
|
||||
});
|
||||
.finally(() => {});
|
||||
}
|
||||
|
||||
function fetchActiveId() {
|
||||
|
|
@ -191,7 +194,7 @@ async function fecthInsigniaByOc(
|
|||
document.value = res.data.result.document;
|
||||
await DataStore.fetchData(res.data.result.items); // ส่งรายชื่อข้าราชการสามัญฯ
|
||||
await DataStore.fetchDataInsignia(res.data.result); // ส่งข้อมูลรอบบการแสดง
|
||||
loading.value = true;
|
||||
// loading.value = true;
|
||||
// แสดงปุมล็อกข้อมูล
|
||||
if (res.data.result.items !== null) {
|
||||
if (res.data.result.items.length !== 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue