fixing isLock

This commit is contained in:
Warunee Tamkoo 2025-05-14 14:53:37 +07:00
parent 7812d6d3e8
commit 78f0fb75c2

View file

@ -40,7 +40,7 @@ const { messageError, dialogConfirm, showLoader, hideLoader, success } = mixin;
* วแปร
*/
const loadview = ref<boolean>(false); // View
const hideBottom = ref<boolean>(false);
// const hideBottom = ref<boolean>(false);
const round = ref<string>(""); //
const roundName = ref<string>(""); //
const optionRound = ref<OptionRound[]>([]);
@ -246,11 +246,11 @@ async function fecthInsigniaByOc(
await DataStore.fetchData(res.data.result.items); //
await DataStore.fetchDataInsignia(res.data.result); //
//
if (res.data.result.items !== null) {
if (res.data.result.items.length !== 0) {
hideBottom.value = true;
} else hideBottom.value = false;
}
// if (res.data.result.items !== null) {
// if (res.data.result.items.length !== 0) {
// hideBottom.value = true;
// } else hideBottom.value = false;
// }
})
.catch((err) => {
messageError($q, err);
@ -493,7 +493,6 @@ onUnmounted(() => {
v-if="
DataStore.isOfficer &&
DataStore.isLock !== true &&
hideBottom &&
checkPermission($route)?.attrIsUpdate
"
dense