no message
This commit is contained in:
parent
1b3218eade
commit
db8280d1bb
2 changed files with 11 additions and 15 deletions
|
|
@ -102,11 +102,13 @@ const fecthAgency = async () => {
|
|||
.get(config.API.insigniaAgency())
|
||||
.then(async (res) => {
|
||||
DataStore.agency = res.data.result;
|
||||
loadview.value = true;
|
||||
if (roleUser.value == "admin") {
|
||||
await fecthType();
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
|
|
@ -124,7 +126,6 @@ const fecthType = async () => {
|
|||
name: e.organizationName,
|
||||
}));
|
||||
DataStore.fetchOption(optiontypeOc.value);
|
||||
loadview.value = true;
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
@ -165,10 +166,16 @@ const fecthInsigniaByOc = async (
|
|||
await DataStore.fetchData(res.data.result.items);
|
||||
await DataStore.fetchDataInsignia(res.data.result);
|
||||
loading.value = true;
|
||||
if (res.data.result.items.length !== 0) {
|
||||
hideBottom.value = true;
|
||||
if (res.data.result.items !== null) {
|
||||
if (res.data.result.items.length !== 0) {
|
||||
hideBottom.value = true;
|
||||
}
|
||||
}
|
||||
|
||||
// if (res.data.result.items.length !== 0) {
|
||||
// hideBottom.value = true;
|
||||
// }
|
||||
|
||||
// DataStore.isLock = await res.data.result.isLock;
|
||||
// DataStore.requestId = await res.data.result.requestId;
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue