|
|
@ -4,7 +4,7 @@ import { useNuxtApp } from '#app' |
|
|
|
import useProject from '~/composables/useProject' |
|
|
|
import useProject from '~/composables/useProject' |
|
|
|
import { NOCO } from '~/lib/constants' |
|
|
|
import { NOCO } from '~/lib/constants' |
|
|
|
|
|
|
|
|
|
|
|
const formatData = (list: Array<Record<string, any>>) => |
|
|
|
const formatData = (list: Record<string, any>[]) => |
|
|
|
list.map((row) => ({ |
|
|
|
list.map((row) => ({ |
|
|
|
row: { ...row }, |
|
|
|
row: { ...row }, |
|
|
|
oldRow: { ...row }, |
|
|
|
oldRow: { ...row }, |
|
|
@ -15,8 +15,8 @@ export default ( |
|
|
|
meta: Ref<TableType> | ComputedRef<TableType> | undefined, |
|
|
|
meta: Ref<TableType> | ComputedRef<TableType> | undefined, |
|
|
|
viewMeta: Ref<TableType> | ComputedRef<TableType> | undefined, |
|
|
|
viewMeta: Ref<TableType> | ComputedRef<TableType> | undefined, |
|
|
|
) => { |
|
|
|
) => { |
|
|
|
const data = ref<Array<Record<string, any>>>() |
|
|
|
const data = ref<Record<string, any>[]>() |
|
|
|
const formattedData = ref<Array<{ row: Record<string, any>; oldRow: Record<string, any>; rowMeta?: any }>>() |
|
|
|
const formattedData = ref<{ row: Record<string, any>; oldRow: Record<string, any>; rowMeta?: any }[]>() |
|
|
|
const paginationData = ref<PaginatedType>({ page: 1, pageSize: 25 }) |
|
|
|
const paginationData = ref<PaginatedType>({ page: 1, pageSize: 25 }) |
|
|
|
|
|
|
|
|
|
|
|
const { project } = useProject() |
|
|
|
const { project } = useProject() |
|
|
|