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 loadview = ref<boolean>(false); // View
const hideBottom = 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<OptionRound[]>([]); const optionRound = ref<OptionRound[]>([]);
@ -246,11 +246,11 @@ async function fecthInsigniaByOc(
await DataStore.fetchData(res.data.result.items); // await DataStore.fetchData(res.data.result.items); //
await DataStore.fetchDataInsignia(res.data.result); // await DataStore.fetchDataInsignia(res.data.result); //
// //
if (res.data.result.items !== null) { // if (res.data.result.items !== null) {
if (res.data.result.items.length !== 0) { // if (res.data.result.items.length !== 0) {
hideBottom.value = true; // hideBottom.value = true;
} else hideBottom.value = false; // } else hideBottom.value = false;
} // }
}) })
.catch((err) => { .catch((err) => {
messageError($q, err); messageError($q, err);
@ -493,7 +493,6 @@ onUnmounted(() => {
v-if=" v-if="
DataStore.isOfficer && DataStore.isOfficer &&
DataStore.isLock !== true && DataStore.isLock !== true &&
hideBottom &&
checkPermission($route)?.attrIsUpdate checkPermission($route)?.attrIsUpdate
" "
dense dense