ADD: Search and Index system
FIX: Minor Bugs FIX: Bugs in CreateBelonging Page
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { ProductService } from '@/service/ProductService';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { BelongingService } from '@/service/BelongingService';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
const products = ref(null);
|
||||
|
||||
@@ -13,6 +14,7 @@ onMounted(() => {
|
||||
BelongingService.getAllBelongings().then((data) => (products.value = data));
|
||||
});
|
||||
|
||||
const router = useRouter();
|
||||
function editBelonging(belongingId) {
|
||||
router.push('/belonging/edit-belonging/' + belongingId);
|
||||
}
|
||||
@@ -34,7 +36,7 @@ function editBelonging(belongingId) {
|
||||
</template>
|
||||
</Column>
|
||||
<Column style="min-width: 15%" header="نمایش">
|
||||
<template #body>
|
||||
<template #body="slotProps">
|
||||
<Button icon="pi pi-search" type="button" class="p-button-text" @click="editBelonging(slotProps.data._id)"></Button>
|
||||
</template>
|
||||
</Column>
|
||||
|
||||
Reference in New Issue
Block a user