21 lines
713 B
Vue
21 lines
713 B
Vue
<script setup lang="ts">
|
|
import { apiBase } from '~/helpers';
|
|
import type { ApiTypeBase } from '~/helpers';
|
|
|
|
const headers = new Headers();
|
|
headers.append("Content-Type", "application/json");
|
|
|
|
const { data } = await useFetch<ApiTypeBase>(`${apiBase}/partner/`, { headers })
|
|
</script>
|
|
<template>
|
|
<div class="mb-4">
|
|
<UButton icon="i-heroicons-plus" to="/organization/new">Новая инвентаризация</UButton>
|
|
</div>
|
|
<div class="mb-4">
|
|
<UTable :rows="data?.results">
|
|
<template #external_id-data="{ row }">
|
|
<NuxtLink :to="`/organization/p_${row.id}`">{{ row.external_id }}</NuxtLink>
|
|
</template>
|
|
</UTable>
|
|
</div>
|
|
</template> |