diff --git a/front/pages/table/index.vue b/front/pages/table/index.vue index 0b936f9..6a54772 100644 --- a/front/pages/table/index.vue +++ b/front/pages/table/index.vue @@ -53,13 +53,14 @@ const columns = [ {{ el.field.name }}: - - {{ el.text || 'Нет расшифровки' }} + + {{ el.text }} - - - Нет изображения + no text + + + no img @@ -90,6 +91,7 @@ table { content: counter(inv) "." } } + .inv_inner { >* { @apply mr-2; diff --git a/front/types/index.d.ts b/front/types/index.d.ts index fdb74f0..fdd74f6 100644 --- a/front/types/index.d.ts +++ b/front/types/index.d.ts @@ -39,7 +39,17 @@ declare global { name: string created_at: string updated_at: string - tmc: number[] + tmc: { + id: number, + name?: string, + tmc: TmcItem, + field: { + id?: number + text?: string + file_id?: string + fields: TmcField + }[] + }[] uniq?: any[] } @@ -50,19 +60,5 @@ declare global { previous?: any; results: T[] }; - - type ApiTypeTmc = { - count: number; - next?: any; - previous?: any; - results: TmcItem[] - } - - type ApiTypeTgItem = { - count: number; - next?: any; - previous?: any; - results: TgItem[] - } } export { } \ No newline at end of file