#90 feat(frontend): add modal to ReconciliationJarIndex.
This commit is contained in:
parent
a5d4c1977a
commit
75d39c6ca7
@ -12,13 +12,13 @@
|
|||||||
:items-length="totalItems"
|
:items-length="totalItems"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:search="search"
|
:search="search"
|
||||||
:item-value="name"
|
|
||||||
@update:options="loadItems"
|
@update:options="loadItems"
|
||||||
>
|
>
|
||||||
<template v-slot:item.id="{ item }">
|
<template v-slot:item.id="{ item }">
|
||||||
<v-btn >{{ item.id }}</v-btn>
|
<v-btn @click="openSummaryModal(item.id)">{{ item.id }}</v-btn>
|
||||||
</template>
|
</template>
|
||||||
</v-data-table-server>
|
</v-data-table-server>
|
||||||
|
<SummaryReconciliationModal :id="selectedReconciliationId" ref="summaryModal" />
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-container>
|
</v-container>
|
||||||
@ -28,6 +28,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
api: inject('api'),
|
api: inject('api'),
|
||||||
|
selectedReconciliationId: null,
|
||||||
itemsPerPage: 10,
|
itemsPerPage: 10,
|
||||||
headers: [
|
headers: [
|
||||||
{ title: 'Acciones', key: 'id'},
|
{ title: 'Acciones', key: 'id'},
|
||||||
@ -54,6 +55,10 @@
|
|||||||
})
|
})
|
||||||
.catch(error => console.log('Error:', error));
|
.catch(error => console.log('Error:', error));
|
||||||
},
|
},
|
||||||
|
openSummaryModal(id) {
|
||||||
|
this.selectedReconciliationId = id.toString();
|
||||||
|
this.$refs.summaryModal.dialog = true;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -0,0 +1,31 @@
|
|||||||
|
<template>
|
||||||
|
<v-dialog v-model="dialog" max-width="400">
|
||||||
|
resumen
|
||||||
|
<v-card>
|
||||||
|
<v-card-text>
|
||||||
|
<ReconciliationJarView :id="id"/>
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-actions>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<v-btn text @click="dialog = false">Cerrar</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Summary Reconciliation Modal',
|
||||||
|
props: {
|
||||||
|
id: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dialog: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
Loading…
Reference in New Issue
Block a user