|
@@ -18,6 +18,7 @@ import Mostrar from '../Components/Modal/MostrarPlaza';
|
|
|
|
|
|
|
|
import { ListMode } from '../Components/Puestos/ListMode'
|
|
import { ListMode } from '../Components/Puestos/ListMode'
|
|
|
import { GridMode } from '../Components/Puestos/GridMode'
|
|
import { GridMode } from '../Components/Puestos/GridMode'
|
|
|
|
|
+import { Add as AddIcon, } from '@mui/icons-material/'
|
|
|
|
|
|
|
|
|
|
|
|
|
const Success = () => toast.success('Plaza Agregada!!')
|
|
const Success = () => toast.success('Plaza Agregada!!')
|
|
@@ -32,22 +33,22 @@ export function Puestos() {
|
|
|
let rest = new Service("/plaza/getall")
|
|
let rest = new Service("/plaza/getall")
|
|
|
|
|
|
|
|
rest
|
|
rest
|
|
|
- .get(token)
|
|
|
|
|
- .then(({data}) => {
|
|
|
|
|
- let entries = data.map( e => {
|
|
|
|
|
- return {
|
|
|
|
|
- nombre : e.nombrepuesto,
|
|
|
|
|
- description : e.notas,
|
|
|
|
|
- id : e.id,
|
|
|
|
|
- created: e.create_day,
|
|
|
|
|
- data: e
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ .get(token)
|
|
|
|
|
+ .then(({data}) => {
|
|
|
|
|
+ let entries = data.map( e => {
|
|
|
|
|
+ return {
|
|
|
|
|
+ nombre : e.nombrepuesto,
|
|
|
|
|
+ description : e.notas,
|
|
|
|
|
+ id : e.id,
|
|
|
|
|
+ created: e.create_day,
|
|
|
|
|
+ data: e
|
|
|
|
|
+ };
|
|
|
|
|
+ })
|
|
|
|
|
+ setData(entries)
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch((error) => {
|
|
|
|
|
+ console.log('error fetching data ', error );
|
|
|
})
|
|
})
|
|
|
- setData(entries)
|
|
|
|
|
- })
|
|
|
|
|
- .catch((error) => {
|
|
|
|
|
- console.log('error fetching data ', error );
|
|
|
|
|
- })
|
|
|
|
|
|
|
|
|
|
},[token])
|
|
},[token])
|
|
|
|
|
|
|
@@ -86,9 +87,9 @@ export function Puestos() {
|
|
|
<div className="content-section">
|
|
<div className="content-section">
|
|
|
<div className="main">
|
|
<div className="main">
|
|
|
<Box sx={{ width: '100%' }}>
|
|
<Box sx={{ width: '100%' }}>
|
|
|
- <Paper sx={{ width: '100%', mb: 2, padding : 2 }}>
|
|
|
|
|
|
|
+ <Paper sx={{ width: '100%', mb: 2, padding : 2, height: '95vh' }}>
|
|
|
|
|
|
|
|
- <Row>
|
|
|
|
|
|
|
+ <Row style={{paddingBottom : 15}}>
|
|
|
<Col md="2" sm="2" xs="2">
|
|
<Col md="2" sm="2" xs="2">
|
|
|
<div className="breadcrumb-header">
|
|
<div className="breadcrumb-header">
|
|
|
<Box sx={{ float : 'left',display: 'flex', flexDirection: 'column', alignItems: 'center', '& > :not(style) + :not(style)': { mt: 2 }, }} >
|
|
<Box sx={{ float : 'left',display: 'flex', flexDirection: 'column', alignItems: 'center', '& > :not(style) + :not(style)': { mt: 2 }, }} >
|
|
@@ -100,10 +101,14 @@ export function Puestos() {
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col md="10" sm='10' xs="10">
|
|
<Col md="10" sm='10' xs="10">
|
|
|
<div className="add_producto">
|
|
<div className="add_producto">
|
|
|
- <div onClick={() => setManual(true) } className="btn_add_producto"> <span >Agregar manual</span> </div>
|
|
|
|
|
|
|
+ <div onClick={() => setManual(true) } className="btn_add_producto">
|
|
|
|
|
+ <span className="btn_plaza_common" >Agregar manual <AddIcon/></span>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div onClick={() => setExpress(true) } className="add_producto">
|
|
<div onClick={() => setExpress(true) } className="add_producto">
|
|
|
- <div className="btn_add_producto"> <span >Agregar express</span> </div>
|
|
|
|
|
|
|
+ <div className="btn_add_producto">
|
|
|
|
|
+ <span className="btn_plaza_common">Agregar express <AddIcon/></span>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</Col>
|
|
</Col>
|
|
|
</Row>
|
|
</Row>
|