Compare commits
3 Commits
v0.0.45
...
d8c0a8b8e3
| Author | SHA1 | Date | |
|---|---|---|---|
| d8c0a8b8e3 | |||
|
|
f58dc36a0d | ||
| 15c0f414af |
@@ -1,2 +1,2 @@
|
|||||||
parameters:
|
parameters:
|
||||||
app.version: '0.0.45'
|
app.version: '0.0.46'
|
||||||
|
|||||||
22
frontend/components/ui/UiDataTable.vue
Normal file
22
frontend/components/ui/UiDataTable.vue
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<template>
|
||||||
|
<table class="w-full border-collapse border border-slate-300">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th
|
||||||
|
v-for="(column, index) in columns"
|
||||||
|
:key="index"
|
||||||
|
class="border border-slate-300 px-3 py-2 text-left"
|
||||||
|
>
|
||||||
|
{{ column }}
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
defineProps<{
|
||||||
|
columns: string[]
|
||||||
|
data?: any[]
|
||||||
|
}>()
|
||||||
|
</script>
|
||||||
10
frontend/pages/datatable.vue
Normal file
10
frontend/pages/datatable.vue
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<template>
|
||||||
|
<UiDataTable
|
||||||
|
:columns="rowsLabel"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
<script setup lang="ts">
|
||||||
|
|
||||||
|
const rowsLabel = ['Numéro', 'Date', 'Foursnisseur', 'Poids', 'Date', 'Foursnisseur', 'Poids', 'Date', 'Foursnisseur', 'Poids', 'Date', 'Foursnisseur', 'Poids', 'Date', 'Foursnisseur', 'Poids']
|
||||||
|
</script>
|
||||||
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace App\DataFixtures;
|
|
||||||
|
|
||||||
use App\Entity\Address;
|
|
||||||
use App\Entity\Supplier;
|
|
||||||
use Doctrine\Bundle\FixturesBundle\Fixture;
|
|
||||||
use Doctrine\Persistence\ObjectManager;
|
|
||||||
|
|
||||||
class SupplierFixtures extends Fixture
|
|
||||||
{
|
|
||||||
public function load(ObjectManager $manager): void
|
|
||||||
{
|
|
||||||
$address = new Address()
|
|
||||||
->setLabel('LIOT CHATELLERAULT')
|
|
||||||
->setStreet("14 Allée d'Argenson")
|
|
||||||
->setStreet2('ZI Nord')
|
|
||||||
->setPostalCode('86100')
|
|
||||||
->setCity('CHATELLERAULT')
|
|
||||||
->setCountryCode('FR')
|
|
||||||
;
|
|
||||||
|
|
||||||
$supplier = new Supplier()
|
|
||||||
->setName('LIOT')
|
|
||||||
->setEmail('lpc.contacts@lpc-liot.fr')
|
|
||||||
->setPhone('05.49.20.09.10')
|
|
||||||
;
|
|
||||||
|
|
||||||
$supplier->getAddresses()->add($address);
|
|
||||||
|
|
||||||
$manager->persist($address);
|
|
||||||
$manager->persist($supplier);
|
|
||||||
|
|
||||||
$manager->flush();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user