eliminar boton exportar csv
This commit is contained in:
parent
a44fe8caa2
commit
d674fc7a5a
|
@ -601,7 +601,7 @@ const AdministradoresComunidad = () => {
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<Toast ref={toast} />
|
<Toast ref={toast} />
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar>
|
<Toolbar className="mb-4" left={leftToolbarTemplate}></Toolbar>
|
||||||
<DataTable ref={dt} value={listaAdmins} dataKey="_id" paginator rows={10} selection={selectedAdminsCommunities} onSelectionChange={(e) => setSelectedAdminsCommunities(e.value)}
|
<DataTable ref={dt} value={listaAdmins} dataKey="_id" paginator rows={10} selection={selectedAdminsCommunities} onSelectionChange={(e) => setSelectedAdminsCommunities(e.value)}
|
||||||
scrollable scrollHeight="800px" scrollDirection="both" header={header}
|
scrollable scrollHeight="800px" scrollDirection="both" header={header}
|
||||||
rowsPerPageOptions={[10, 20, 30]} className="datatable-responsive mt-3"
|
rowsPerPageOptions={[10, 20, 30]} className="datatable-responsive mt-3"
|
||||||
|
|
|
@ -626,7 +626,6 @@ const AdministradoresSistema = () => {
|
||||||
<Toolbar
|
<Toolbar
|
||||||
className="mb-4"
|
className="mb-4"
|
||||||
left={leftToolbarTemplate}
|
left={leftToolbarTemplate}
|
||||||
right={rightToolbarTemplate}
|
|
||||||
></Toolbar>
|
></Toolbar>
|
||||||
<DataTable
|
<DataTable
|
||||||
ref={dt}
|
ref={dt}
|
||||||
|
|
|
@ -623,7 +623,7 @@ const AreasComunes = () => {
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<Toast ref={toast} />
|
<Toast ref={toast} />
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar>
|
<Toolbar className="mb-4" left={leftToolbarTemplate} ></Toolbar>
|
||||||
<DataTable ref={dt} value={commonAreaList} dataKey="_id" paginator rows={10} selection={selectedCommonAreas} onSelectionChange={(e) => setSelectedCommonAreas(e.value)}
|
<DataTable ref={dt} value={commonAreaList} dataKey="_id" paginator rows={10} selection={selectedCommonAreas} onSelectionChange={(e) => setSelectedCommonAreas(e.value)}
|
||||||
scrollable scrollHeight="700px" scrollDirection="both" header={header}
|
scrollable scrollHeight="700px" scrollDirection="both" header={header}
|
||||||
rowsPerPageOptions={[10, 20, 30]} className="datatable-responsive mt-3"
|
rowsPerPageOptions={[10, 20, 30]} className="datatable-responsive mt-3"
|
||||||
|
|
|
@ -275,36 +275,37 @@ const Communities = () => {
|
||||||
console.log('Ocurrió un error con el servicio: ' + response.status);
|
console.log('Ocurrió un error con el servicio: ' + response.status);
|
||||||
else return response.json();
|
else return response.json();
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
_community.province = provincesList.find(
|
_community.province = provincesList.find(
|
||||||
(p) => p.code === _community.province,
|
(p) => p.code === _community.province,
|
||||||
).name;
|
).name;
|
||||||
_community.canton = cantonsList.find(
|
_community.canton = cantonsList.find(
|
||||||
(p) => p.code === _community.canton,
|
(p) => p.code === _community.canton,
|
||||||
).name;
|
).name;
|
||||||
_community.district = districtsList.find(
|
_community.district = districtsList.find(
|
||||||
(p) => p.code === _community.district,
|
(p) => p.code === _community.district,
|
||||||
).name;
|
).name;
|
||||||
|
|
||||||
_communities.push(_community);
|
_communities.push(_community);
|
||||||
toast.current.show({
|
toast.current.show({
|
||||||
severity: 'success',
|
severity: 'success',
|
||||||
summary: 'Registro exitoso',
|
summary: 'Registro exitoso',
|
||||||
detail: 'Comunidad de vivienda Creada',
|
detail: 'Comunidad de vivienda Creada',
|
||||||
life: 3000,
|
life: 3000,
|
||||||
});
|
});
|
||||||
|
|
||||||
setCommunitiesList(_communities);
|
setCommunitiesList(_communities);
|
||||||
|
|
||||||
setProvinciaId('');
|
setProvinciaId('');
|
||||||
setCantonId('');
|
setCantonId('');
|
||||||
setDistrictId('');
|
setDistrictId('');
|
||||||
setCodeHouses('');
|
setCodeHouses('');
|
||||||
setFormCommunityDialog(false);
|
setFormCommunityDialog(false);
|
||||||
|
|
||||||
setCommunity(emptyCommunity);
|
setCommunity(emptyCommunity);
|
||||||
})
|
})
|
||||||
.catch((err) => console.log('Ocurrió un error con el fetch', err));
|
.catch((err) => console.log('Ocurrió un error con el fetch', err));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
setSubmitted(true);
|
setSubmitted(true);
|
||||||
}
|
}
|
||||||
|
@ -814,7 +815,6 @@ const Communities = () => {
|
||||||
<Toolbar
|
<Toolbar
|
||||||
className="mb-4"
|
className="mb-4"
|
||||||
left={leftToolbarTemplate}
|
left={leftToolbarTemplate}
|
||||||
right={rightToolbarTemplate}
|
|
||||||
></Toolbar>
|
></Toolbar>
|
||||||
<DataTable
|
<DataTable
|
||||||
ref={dt}
|
ref={dt}
|
||||||
|
|
|
@ -494,7 +494,7 @@ const GuardasSeguridad = () => {
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<Toast ref={toast} />
|
<Toast ref={toast} />
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar>
|
<Toolbar className="mb-4" left={leftToolbarTemplate}></Toolbar>
|
||||||
<DataTable ref={dt} value={listaGuardas} dataKey="_id" paginator rows={5} selection={selectedGuardas} onSelectionChange={(e) => setSelectedGuardas(e.value)}
|
<DataTable ref={dt} value={listaGuardas} dataKey="_id" paginator rows={5} selection={selectedGuardas} onSelectionChange={(e) => setSelectedGuardas(e.value)}
|
||||||
responsiveLayout="scroll" header={header}
|
responsiveLayout="scroll" header={header}
|
||||||
rowsPerPageOptions={[5, 10, 25]} className="datatable-responsive mt-3"
|
rowsPerPageOptions={[5, 10, 25]} className="datatable-responsive mt-3"
|
||||||
|
|
|
@ -649,7 +649,6 @@ const Inquilinos = () => {
|
||||||
<Toolbar
|
<Toolbar
|
||||||
className='mb-4'
|
className='mb-4'
|
||||||
left={leftToolbarTemplate}
|
left={leftToolbarTemplate}
|
||||||
right={rightToolbarTemplate}
|
|
||||||
></Toolbar>
|
></Toolbar>
|
||||||
<DataTable
|
<DataTable
|
||||||
ref={dt}
|
ref={dt}
|
||||||
|
|
|
@ -149,7 +149,6 @@ const InvitadosComunidad = () => {
|
||||||
<Toolbar
|
<Toolbar
|
||||||
className="mb-4"
|
className="mb-4"
|
||||||
left={leftToolbarTemplate}
|
left={leftToolbarTemplate}
|
||||||
right={rightToolbarTemplate}
|
|
||||||
/>
|
/>
|
||||||
<DataTable
|
<DataTable
|
||||||
ref={tableRef}
|
ref={tableRef}
|
||||||
|
|
|
@ -260,7 +260,7 @@ const RegistroComunicado = () => {
|
||||||
{comunicado && <span>¿Está seguro que desea eliminar el aviso "<b>{comunicado.post}</b>"?</span>}
|
{comunicado && <span>¿Está seguro que desea eliminar el aviso "<b>{comunicado.post}</b>"?</span>}
|
||||||
</div>
|
</div>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar>
|
<Toolbar className="mb-4" left={leftToolbarTemplate} ></Toolbar>
|
||||||
<DataTable ref={dt} value={comunicados} dataKey="_id" paginator rows={5}
|
<DataTable ref={dt} value={comunicados} dataKey="_id" paginator rows={5}
|
||||||
scrollable scrollHeight="400px" scrollDirection="both" header={header}
|
scrollable scrollHeight="400px" scrollDirection="both" header={header}
|
||||||
rowsPerPageOptions={[5, 10, 25]} className="datatable-responsive mt-3"
|
rowsPerPageOptions={[5, 10, 25]} className="datatable-responsive mt-3"
|
||||||
|
|
|
@ -578,7 +578,6 @@ const Reservations = () => {
|
||||||
<Toolbar
|
<Toolbar
|
||||||
className="mb-4"
|
className="mb-4"
|
||||||
left={leftToolbarTemplate}
|
left={leftToolbarTemplate}
|
||||||
right={rightToolbarTemplate}
|
|
||||||
></Toolbar>
|
></Toolbar>
|
||||||
<DataTable
|
<DataTable
|
||||||
ref={dt}
|
ref={dt}
|
||||||
|
|
Loading…
Reference in New Issue