|
|
@ -120,47 +120,49 @@ const columns = [ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<a-table |
|
|
|
<div class="max-h-600px overflow-y-auto"> |
|
|
|
class="w-full" |
|
|
|
<a-table |
|
|
|
size="small" |
|
|
|
class="w-full" |
|
|
|
:data-source="filteredTables" |
|
|
|
size="small" |
|
|
|
:columns="columns" |
|
|
|
:data-source="filteredTables" |
|
|
|
:pagination="false" |
|
|
|
:columns="columns" |
|
|
|
:loading="isLoading" |
|
|
|
:pagination="false" |
|
|
|
bordered |
|
|
|
:loading="isLoading" |
|
|
|
:custom-row=" |
|
|
|
bordered |
|
|
|
(record) => ({ |
|
|
|
:custom-row=" |
|
|
|
class: `nc-acl-table-row nc-acl-table-row-${record.title}`, |
|
|
|
(record) => ({ |
|
|
|
}) |
|
|
|
class: `nc-acl-table-row nc-acl-table-row-${record.title}`, |
|
|
|
" |
|
|
|
}) |
|
|
|
> |
|
|
|
" |
|
|
|
<template #bodyCell="{ record, column }"> |
|
|
|
> |
|
|
|
<div v-if="column.name === 'table_name'">{{ record._ptn }}</div> |
|
|
|
<template #bodyCell="{ record, column }"> |
|
|
|
<div v-if="column.name === 'view_name'"> |
|
|
|
<div v-if="column.name === 'table_name'">{{ record._ptn }}</div> |
|
|
|
<div class="flex align-center"> |
|
|
|
<div v-if="column.name === 'view_name'"> |
|
|
|
<component :is="viewIcons[record.type].icon" :class="`text-${viewIcons[record.type].color} mr-1`" /> |
|
|
|
<div class="flex align-center"> |
|
|
|
{{ record.title }} |
|
|
|
<component :is="viewIcons[record.type].icon" :class="`text-${viewIcons[record.type].color} mr-1`" /> |
|
|
|
|
|
|
|
{{ record.title }} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-for="role in roles" :key="role"> |
|
|
|
<div v-for="role in roles" :key="role"> |
|
|
|
<div v-if="column.name === role"> |
|
|
|
<div v-if="column.name === role"> |
|
|
|
<a-tooltip> |
|
|
|
<a-tooltip> |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
|
<span v-if="record.disabled[role]"> |
|
|
|
<span v-if="record.disabled[role]"> |
|
|
|
Click to make '{{ record.title }}' visible for role:{{ role }} in UI dashboard</span |
|
|
|
Click to make '{{ record.title }}' visible for role:{{ role }} in UI dashboard</span |
|
|
|
> |
|
|
|
> |
|
|
|
<span v-else>Click to hide '{{ record.title }}' for role:{{ role }} in UI dashboard</span> |
|
|
|
<span v-else>Click to hide '{{ record.title }}' for role:{{ role }} in UI dashboard</span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<a-checkbox |
|
|
|
<a-checkbox |
|
|
|
:checked="!record.disabled[role]" |
|
|
|
:checked="!record.disabled[role]" |
|
|
|
:class="`nc-acl-${record.title}-${role}-chkbox`" |
|
|
|
:class="`nc-acl-${record.title}-${role}-chkbox`" |
|
|
|
@change="onRoleCheck(record, role)" |
|
|
|
@change="onRoleCheck(record, role)" |
|
|
|
></a-checkbox> |
|
|
|
></a-checkbox> |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</a-table> |
|
|
|
</a-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|