This commit is contained in:
Philippe Torrel
2026-07-24 15:22:32 +02:00
parent e5c2f47063
commit 5d57c53e2c
54 changed files with 4275 additions and 95 deletions

View File

@@ -0,0 +1,33 @@
# Aufgabe
- Nach Positionsveränderung (drop, move-up,move-down) sollen alle Positionen der Zeilen als Array festgehalten werden.
```js
const positions = [
{
_id: '6cbe4783-cfb5-4ed7-8196-9d6b55217de0',
position: 1,
},
{
_id: '6cbe4783-cfb5-4ed7-8196-9d6b55217de0',
position: 2,
},
{...}
]
```
- Positionsarray an Server zur Aktualisierung senden (PUT)
```js
'http://127.0.0.1:8000/api/products/positions';
```
- Server: Positionen abfangen und products Array aktualisieren
```js
//ProductModel
updatePosition() {...}
```