แก้คำ
This commit is contained in:
parent
054c3d5eba
commit
e1a75a392b
2 changed files with 8 additions and 11 deletions
|
|
@ -31,22 +31,19 @@ const idInboxActive = ref<string>(); // Id ข้อความที่เล
|
||||||
const filteredItems = computed(() => {
|
const filteredItems = computed(() => {
|
||||||
const isOfficer = dataStore.officerType === "OFFICER";
|
const isOfficer = dataStore.officerType === "OFFICER";
|
||||||
const conditions: Record<string, boolean> = {
|
const conditions: Record<string, boolean> = {
|
||||||
"ทดลองปฏิบัติหน้าที่ราชการ": dataStore.isProbation,
|
ทดลองปฏิบัติหน้าที่ราชการ: dataStore.isProbation,
|
||||||
"ประเมินบุคคล": isOfficer,
|
ประเมินบุคคล: isOfficer,
|
||||||
"ผลงาน": isOfficer,
|
ผลงาน: isOfficer,
|
||||||
"ขอโอน": isOfficer,
|
ขอโอน: isOfficer,
|
||||||
"ผู้ขอรับการประเมิน (KPI)": isOfficer,
|
"ผู้ขอรับการประเมิน (KPI)": isOfficer,
|
||||||
"ผู้ประเมิน (KPI)": isOfficer,
|
"ผู้ประเมิน (KPI)": isOfficer,
|
||||||
"ทุนการศึกษา/ฝึกอบรม": isOfficer,
|
"ทุนการศึกษา/ฝึกอบรม": isOfficer,
|
||||||
"การพัฒนารายบุคคล": isOfficer,
|
การพัฒนารายบุคคล: isOfficer,
|
||||||
};
|
};
|
||||||
|
|
||||||
return items.value.filter(
|
return items.value.filter((item) => conditions[item.title] ?? true);
|
||||||
(item) => conditions[item.title] ?? true
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const items = ref<MenuMainList[]>([
|
const items = ref<MenuMainList[]>([
|
||||||
{
|
{
|
||||||
icon: "mdi-account-group-outline",
|
icon: "mdi-account-group-outline",
|
||||||
|
|
@ -98,7 +95,7 @@ const items = ref<MenuMainList[]>([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: "mdi-scale-balance",
|
icon: "mdi-scale-balance",
|
||||||
title: "อุทธรณ์ร้องทุกข์",
|
title: "อุทธรณ์/ร้องทุกข์",
|
||||||
sub: "ทำเรื่องขออุทธรณ์ หรือร้องทุกข์",
|
sub: "ทำเรื่องขออุทธรณ์ หรือร้องทุกข์",
|
||||||
color: "green-3",
|
color: "green-3",
|
||||||
path: "/appeal-complain",
|
path: "/appeal-complain",
|
||||||
|
|
|
||||||
|
|
@ -252,7 +252,7 @@ onMounted(async () => {
|
||||||
class="q-mr-sm"
|
class="q-mr-sm"
|
||||||
@click="clickBack"
|
@click="clickBack"
|
||||||
/>
|
/>
|
||||||
อุทธรณ์ร้องทุกข์
|
อุทธรณ์/ร้องทุกข์
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<q-card bordered class="q-pa-md">
|
<q-card bordered class="q-pa-md">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue