|
|
|
@ -24,6 +24,8 @@ const view = inject(ActiveViewInj, ref())
|
|
|
|
|
|
|
|
|
|
const reloadViewDataHook = inject(ReloadViewDataHookInj) |
|
|
|
|
|
|
|
|
|
const reloadKanbanMetaHook = inject(ReloadKanbanMetaHookInj) |
|
|
|
|
|
|
|
|
|
const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook()) |
|
|
|
|
|
|
|
|
|
const expandedFormDlg = ref(false) |
|
|
|
@ -50,7 +52,7 @@ const {
|
|
|
|
|
groupingField, |
|
|
|
|
countByStack, |
|
|
|
|
deleteStack, |
|
|
|
|
} = useKanbanViewData(meta, view as any) |
|
|
|
|
} = useKanbanViewData(meta, view) |
|
|
|
|
|
|
|
|
|
const { isUIAllowed } = useUIPermission() |
|
|
|
|
|
|
|
|
@ -76,6 +78,10 @@ reloadViewDataHook?.on(async () => {
|
|
|
|
|
await loadKanbanData() |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
reloadKanbanMetaHook?.on(async () => { |
|
|
|
|
await loadKanbanMeta() |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const expandForm = (row: RowType, state?: Record<string, any>) => { |
|
|
|
|
if (!isUIAllowed('xcDatatableEditable')) return |
|
|
|
|
expandedFormRow.value = row |
|
|
|
|