โครงสร้างอัตรากำลัง => ปรับ btn

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-06 10:27:54 +07:00
parent 83db1a8921
commit b6dde4cfc5
2 changed files with 71 additions and 53 deletions

View file

@ -448,11 +448,11 @@ watch(
v-if="store.typeOrganizational === 'draft'"
flat
dense
icon="mdi-dots-vertical"
class="q-ml-xs"
color="grey-13"
size="12px"
color="secondary"
icon="mdi-dots-horizontal-circle-outline"
round
dene
class="q-ml-xs"
>
<q-menu>
<q-list
@ -493,44 +493,53 @@ watch(
"
>
<q-item-section avatar style="min-width: 20px">
<q-icon
size="17px"
:color="item.color"
:name="item.icon"
/>
</q-item-section>
<div v-if="prop.node.orgLevel === 0">
<q-item-section
v-if="
item.type === 'EDIT' ||
item.type === 'DEL' ||
item.type === 'HISTORY' ||
item.type === 'SORT'
"
>
{{ item.label }}หนวยงาน
</q-item-section>
<q-item-section v-else-if="item.type === 'ADD'">
{{ item.label }}วนราชการ
</q-item-section>
<q-item-section v-else>
{{ item.label }}
</q-item-section>
</div>
<div class="row items-center">
<q-icon
size="xs"
:color="item.color"
:name="item.icon"
/>
<div v-if="prop.node.orgLevel === 0">
<div
class="q-pl-md"
v-if="
item.type === 'EDIT' ||
item.type === 'DEL' ||
item.type === 'HISTORY' ||
item.type === 'SORT'
"
>
{{ item.label }}หนวยงาน
</div>
<div v-else>
<q-item-section
v-if="
item.type === 'ADD' ||
item.type === 'EDIT' ||
item.type === 'DEL' ||
item.type === 'HISTORY' ||
item.type === 'SORT'
"
>{{ item.label }}วนราชการ</q-item-section
>
<q-item-section v-else>{{ item.label }}</q-item-section>
</div>
<div
v-else-if="item.type === 'ADD'"
class="q-pl-md"
>
{{ item.label }}วนราชการ
</div>
<div v-else class="q-pl-md">
{{ item.label }}
</div>
</div>
<div v-else>
<div
class="q-pl-md"
v-if="
item.type === 'ADD' ||
item.type === 'EDIT' ||
item.type === 'DEL' ||
item.type === 'HISTORY' ||
item.type === 'SORT'
"
>
{{ item.label }}วนราชการ
</div>
<div v-else class="q-pl-md">{{ item.label }}</div>
</div>
</div>
</q-item-section>
</q-item>
</q-list>
</q-menu>
@ -540,11 +549,10 @@ watch(
v-else
flat
dense
icon="mdi-dots-vertical"
class="q-pa-none q-ml-xs"
color="grey-13"
size="12px"
color="secondary"
icon="mdi-dots-horizontal-circle-outline"
round
class="q-pa-none q-ml-xs"
>
<q-menu>
<q-list