fixing isLock
This commit is contained in:
parent
7812d6d3e8
commit
78f0fb75c2
1 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue