hide btnlock
This commit is contained in:
parent
5875590145
commit
1b3218eade
1 changed files with 9 additions and 8 deletions
|
|
@ -25,6 +25,7 @@ const $q = useQuasar(); //ใช้ noti quasar
|
|||
|
||||
const loading = ref<boolean>(false);
|
||||
const loadview = ref<boolean>(false);
|
||||
const hideBottom = ref<boolean>(false);
|
||||
const round = ref<string>("");
|
||||
const roundName = ref<string>("");
|
||||
const optionRound = ref<any>([]);
|
||||
|
|
@ -109,7 +110,7 @@ const fecthAgency = async () => {
|
|||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
// loading.value = true;
|
||||
loading.value = true;
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
|
@ -159,13 +160,13 @@ const fecthInsigniaByOc = async (
|
|||
await http
|
||||
.get(config.API.insigniaList(roundId, ocId, role, status))
|
||||
.then(async (res) => {
|
||||
console.log(res.data.result.items);
|
||||
requestNote.value = res.data.result.requestNote;
|
||||
requestStatus.value = res.data.result.requestStatus;
|
||||
await DataStore.fetchData(res.data.result.items);
|
||||
await DataStore.fetchDataInsignia(res.data.result);
|
||||
loading.value = true;
|
||||
if (res.data.result.items.length !== 0) {
|
||||
requestNote.value = res.data.result.requestNote;
|
||||
requestStatus.value = res.data.result.requestStatus;
|
||||
await DataStore.fetchData(res.data.result.items);
|
||||
await DataStore.fetchDataInsignia(res.data.result);
|
||||
loading.value = true;
|
||||
hideBottom.value = true;
|
||||
}
|
||||
|
||||
// DataStore.isLock = await res.data.result.isLock;
|
||||
|
|
@ -320,7 +321,7 @@ const requestSendNote = async () => {
|
|||
<q-space />
|
||||
<!-- สกจ. Freez ข้อมูล -->
|
||||
<q-btn
|
||||
v-if="roleUser == 'admin' && DataStore.isLock !== true"
|
||||
v-if="roleUser == 'admin' && DataStore.isLock !== true && hideBottom"
|
||||
dense
|
||||
unelevated
|
||||
label="ล็อกข้อมูล"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue