feat (patient): add error page for patient add page permission

This commit is contained in:
Abizrh
2025-08-13 10:12:12 +07:00
parent 6e5d5863ab
commit db9a87d825
18 changed files with 88 additions and 49 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from '@/components/pub/ui/table'
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/pub/ui/table'
defineProps<{
rows: unknown[]
@@ -19,7 +19,7 @@ defineProps<{
<TableHead
v-for="(h, idx) in header[0]"
:key="`head-${idx}`"
:style="{ width: cols[idx]?.width ? cols[idx].width + 'px' : undefined }"
:style="{ width: cols[idx]?.width ? `${cols[idx].width}px` : undefined }"
>
{{ h.label }}
</TableHead>
@@ -31,8 +31,8 @@ defineProps<{
<TableCell v-for="(key, cellIndex) in keys" :key="`cell-${rowIndex}-${cellIndex}`">
<!-- If funcComponent has a renderer -->
<component
v-if="funcComponent[key]"
:is="funcComponent[key](row, rowIndex).component"
v-if="funcComponent[key]"
v-bind="funcComponent[key](row, rowIndex)"
/>
<!-- If funcParsed or funcHtml returns a value -->
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { ListItemDto, LinkItem } from './types'
import type { LinkItem, ListItemDto } from './types'
const props = defineProps<{
rec: ListItemDto
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { ListItemDto, LinkItem } from './types'
import type { LinkItem, ListItemDto } from './types'
const props = defineProps<{
rec: ListItemDto
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { ListItemDto, LinkItem } from './types'
import type { LinkItem, ListItemDto } from './types'
const props = defineProps<{
rec: ListItemDto
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { ListItemDto, LinkItem } from './types'
import type { LinkItem, ListItemDto } from './types'
const props = defineProps<{
rec: ListItemDto