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 loading = ref<boolean>(false);
|
||||||
const loadview = ref<boolean>(false);
|
const loadview = ref<boolean>(false);
|
||||||
|
const hideBottom = ref<boolean>(false);
|
||||||
const round = ref<string>("");
|
const round = ref<string>("");
|
||||||
const roundName = ref<string>("");
|
const roundName = ref<string>("");
|
||||||
const optionRound = ref<any>([]);
|
const optionRound = ref<any>([]);
|
||||||
|
|
@ -109,7 +110,7 @@ const fecthAgency = async () => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
// loading.value = true;
|
loading.value = true;
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
@ -159,13 +160,13 @@ const fecthInsigniaByOc = async (
|
||||||
await http
|
await http
|
||||||
.get(config.API.insigniaList(roundId, ocId, role, status))
|
.get(config.API.insigniaList(roundId, ocId, role, status))
|
||||||
.then(async (res) => {
|
.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) {
|
if (res.data.result.items.length !== 0) {
|
||||||
requestNote.value = res.data.result.requestNote;
|
hideBottom.value = true;
|
||||||
requestStatus.value = res.data.result.requestStatus;
|
|
||||||
await DataStore.fetchData(res.data.result.items);
|
|
||||||
await DataStore.fetchDataInsignia(res.data.result);
|
|
||||||
loading.value = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DataStore.isLock = await res.data.result.isLock;
|
// DataStore.isLock = await res.data.result.isLock;
|
||||||
|
|
@ -320,7 +321,7 @@ const requestSendNote = async () => {
|
||||||
<q-space />
|
<q-space />
|
||||||
<!-- สกจ. Freez ข้อมูล -->
|
<!-- สกจ. Freez ข้อมูล -->
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="roleUser == 'admin' && DataStore.isLock !== true"
|
v-if="roleUser == 'admin' && DataStore.isLock !== true && hideBottom"
|
||||||
dense
|
dense
|
||||||
unelevated
|
unelevated
|
||||||
label="ล็อกข้อมูล"
|
label="ล็อกข้อมูล"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue