2b8bf55e8a
- Add medical action source list component with pagination and search - Create CRUD operations for medical action source - Implement form entry and validation for medical action source - Add confirmation dialog for delete operations
33 lines
709 B
TypeScript
33 lines
709 B
TypeScript
import type { Config, RecComponent } from '~/components/pub/my-ui/data-table'
|
|
import { defineAsyncComponent } from 'vue'
|
|
|
|
const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue'))
|
|
|
|
export const config: Config = {
|
|
cols: [{}, {}, {}, { width: 50 }],
|
|
|
|
headers: [[{ label: 'Kode' }, { label: 'Nama' }, { label: '' }]],
|
|
|
|
keys: ['code', 'name', 'action'],
|
|
|
|
delKeyNames: [
|
|
{ key: 'code', label: 'Kode' },
|
|
{ key: 'name', label: 'Nama ' },
|
|
],
|
|
|
|
parses: {},
|
|
|
|
components: {
|
|
action(rec, idx) {
|
|
const res: RecComponent = {
|
|
idx,
|
|
rec: rec as object,
|
|
component: action,
|
|
}
|
|
return res
|
|
},
|
|
},
|
|
|
|
htmls: {},
|
|
}
|