to_inventory/front/pages/organization/index.vue

17 lines
528 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" />
</div>
</template>