Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m44s

* develop:
  add brother permission & hide guest & specipic
This commit is contained in:
Warunee Tamkoo 2025-12-12 09:50:38 +07:00
commit 710f8d4e56

View file

@ -27,24 +27,28 @@ const roleId = ref<string>(route.params.id.toString()); // id บทบาท
const attrPrivilegeOp = ref<DataOption[]>([
{
id: "ROOT",
name: "มีสิทธิ์เข้าถึงข้อมูลในทุกระดับ",
name: "มีสิทธิ์เข้าถึงข้อมูลในทุกระดับ", // root
},
{
id: "PARENT",
name: "มีสิทธิ์เข้าถึงข้อมูลในทุกระดับที่อยู่ภายใต้หน่วยงานของตัวเอง ยกเว้นระดับชั้นบนสุด",
name: "มีสิทธิ์เข้าถึงข้อมูลในทุกระดับที่อยู่ภายใต้หน่วยงานของตัวเอง ยกเว้นระดับชั้นบนสุด", // root root
},
{
id: "BROTHER",
name: "มีสิทธิ์เข้าถึงข้อมูลตั้งแต่ระดับชั้นที่สูงกว่าตัวเอง 1 ระดับ", // "" child 1
},
{
id: "CHILD",
name: "มีสิทธิ์เข้าถึงข้อมูลเฉพาะระดับชั้นปัจจุบันของตัวเอง",
name: "มีสิทธิ์เข้าถึงข้อมูลเฉพาะระดับชั้นปัจจุบันของตัวเอง", // child
},
{
id: "NORMAL",
name: "มีสิทธิ์เข้าถึงข้อมูลเฉพาะในระดับชั้นตัวเองเท่านั้น",
},
{
id: "SPECIFIC",
name: "มีสิทธิ์เข้าถึงข้อมูลเฉพาะเจาะจง",
name: "มีสิทธิ์เข้าถึงข้อมูลเฉพาะในระดับชั้นตัวเองเท่านั้น", // flat
},
// {
// id: "SPECIFIC",
// name: "",
// },
]);
//
@ -343,7 +347,7 @@ onMounted(async () => {
<q-th rowspan="2" colspan="3" style="font-size: 1rem"
>รายการระบบ</q-th
>
<q-th colspan="3" style="font-size: 1rem"
<q-th colspan="2" style="font-size: 1rem"
>ความเปนเจาของ (Ownership)</q-th
>
<q-th colspan="5" style="text-align: center; font-size: 1rem"
@ -366,30 +370,35 @@ onMounted(async () => {
><q-tooltip class="text-body1">
<div class="column">
<div class="row no-wrap">
<strong>ROOT</strong>-ทธเขาถงขอมลในทกระด
<strong>ROOT</strong>- ทธเขาถงขอมลในทกระด
งแตระดบของตวเองลงไปชนลางส
และขนไปถงชนบนส
</div>
<div class="row no-wrap">
<strong>PARENT</strong
>-ทธเขาถงขอมลในทกระดบทอยภายใตหนวยงานของตวเอง
<strong>PARENT</strong>-
ทธเขาถงขอมลในทกระดบทอยภายใตหนวยงานของตวเอง
ยกเวนระดบชนบนส
</div>
<div class="row no-wrap">
<strong>CHILD</strong
>-ทธเขาถงขอมลเฉพาะระดบชนปจจนของตวเอง
<strong>BROTHER</strong>-
ทธเขาถงขอมลตงแตระดบชนทงกวาตวเอง 1
ระด และลงไปชนลางส
</div>
<div class="row no-wrap">
<strong>CHILD</strong>-
ทธเขาถงขอมลเฉพาะระดบชนปจจนของตวเอง
ลงไปถงชนลางส
</div>
<div class="row no-wrap">
<strong>NORMAL</strong
>-ทธเขาถงขอมลเฉพาะในระดบชนตวเองเทาน
<strong>NORMAL</strong>-
ทธเขาถงขอมลเฉพาะในระดบชนตวเองเทาน
ไมสามารถขนหรอลงได
</div>
<div class="row no-wrap">
<!-- <div class="row no-wrap">
<strong>SPECIFIC</strong
>-ทธเขาถงขอมลเฉพาะเจาะจง งจะตองกำหนด ID
ของขอมลทองการเขาถงดวย
</div>
</div> -->
</div>
</q-tooltip></q-btn
></q-th
@ -427,7 +436,7 @@ onMounted(async () => {
</q-tooltip></q-btn
></q-th
>
<q-th class="relative-position"
<!-- <q-th class="relative-position"
>GUEST
<q-btn
class="absolute-custom"
@ -440,7 +449,7 @@ onMounted(async () => {
เปนผมาเยอน ใชในกรณกำหนดบทบาทชวคราว และบทบาทเฉพาะก
</q-tooltip></q-btn
></q-th
>
> -->
<q-th class="relative-position"
>CREATE
<q-btn
@ -555,14 +564,14 @@ onMounted(async () => {
:disable="!props.row.selected"
/>
</q-td>
<q-td style="text-align: center">
<!-- <q-td style="text-align: center">
<q-radio
v-model="props.row.attrOwnership"
val="GUEST"
v-if="props.row.children.length === 0"
:disable="!props.row.selected"
/>
</q-td>
</q-td> -->
<q-td style="text-align: center">
<q-checkbox
v-model="props.row.attrIsCreate"