แก้เมนูออกคำสั่ง

This commit is contained in:
AnandaTon 2023-07-25 09:27:52 +07:00
parent 8066a92c33
commit 37722a0916
2 changed files with 15 additions and 23 deletions

View file

@ -201,20 +201,20 @@ const menuList = readonly<any[]>([
{
key: 6.3,
label: "การทดลองงาน" /* การทดลองงาน */,
path: "",
path: "probation",
role: "probation",
children: [
{
label: "รายการคำขอโอน",
path: "probationTranfer",
role: "probation",
},
{
label: "รายการรับโอน",
path: "probationReceive",
role: "probation",
},
],
},
{
key: 6.4,
label: "รายการคำขอโอน" /* */,
path: "tranfer",
role: "placement",
},
{
key: 6.5,
label: "รายการรับโอน" /* */,
path: "receive",
role: "placement",
},
],
},

View file

@ -731,21 +731,13 @@ if (keycloak.tokenParsed != null) {
</template>
<!-- เมนอย 2 (สรรหา) -->
<div
v-if="
menuItem.key == 5 || menuItem.key == 6 || menuItem.key == 8
"
>
<div v-if="menuItem.key == 5 || menuItem.key == 8">
<div v-for="(subMenu, i) in menuItem.children" :key="i">
<q-expansion-item
switch-toggle-side
dense-toggle
:label="subMenu.label"
v-if="
subMenu.key !== 5.1 &&
subMenu.key !== 6.1 &&
subMenu.key !== 6.2
"
v-if="subMenu.key !== 5.1"
class="expan2"
dense
>