Merge branch 'administativePages' of https://gitlab.com/kluppsoftware/smart-energia-web into administativePages
This commit is contained in:
commit
6c365b17c4
@ -30,7 +30,6 @@ export default function InputUploadPdf() {
|
|||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="update">
|
<div className="update">
|
||||||
|
|||||||
@ -16,7 +16,7 @@ input[type="file"] {
|
|||||||
label {
|
label {
|
||||||
width: 140px;
|
width: 140px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
margin-top: -30px;
|
margin-top: 10px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
margin-left: 69px;
|
margin-left: 69px;
|
||||||
background-color: #254F7F;
|
background-color: #254F7F;
|
||||||
|
|||||||
@ -22,6 +22,7 @@ import { GetServerSideProps } from 'next';
|
|||||||
import getAPIClient from '../../../services/ssrApi';
|
import getAPIClient from '../../../services/ssrApi';
|
||||||
|
|
||||||
import FormData from 'form-data';
|
import FormData from 'form-data';
|
||||||
|
import { InputUploadView } from '../../../components/inputUploadImg/inputUploadView';
|
||||||
|
|
||||||
const style = {
|
const style = {
|
||||||
position: 'absolute' as const,
|
position: 'absolute' as const,
|
||||||
@ -196,8 +197,26 @@ export default function clients({clients, userName}) {
|
|||||||
client_id: value.target.value
|
client_id: value.target.value
|
||||||
})
|
})
|
||||||
}} variant="outlined" />
|
}} variant="outlined" />
|
||||||
<input type="file" onChange={onChange}/>
|
<InputUploadView>
|
||||||
{/* <InputUpload /> */}
|
|
||||||
|
<div className='imgContainer'>
|
||||||
|
<article>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="update">
|
||||||
|
|
||||||
|
<form action="">
|
||||||
|
<div >
|
||||||
|
<label htmlFor="arquivo"> <p className='TitleButton'> Enviar foto de Perfil </p> </label>
|
||||||
|
<input type="file" name='arquivo' id='arquivo' onChange={onChange} />
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</InputUploadView>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<FaqButton1 title='Cancelar' onClick={() => setOpen(false)} />
|
<FaqButton1 title='Cancelar' onClick={() => setOpen(false)} />
|
||||||
<FaqButton2 title='Salvar' onClick={() => handleCreateClient(client)}/>
|
<FaqButton2 title='Salvar' onClick={() => handleCreateClient(client)}/>
|
||||||
|
|||||||
@ -13,6 +13,7 @@ import FormData from 'form-data';
|
|||||||
|
|
||||||
import Snackbar from '@mui/material/Snackbar';
|
import Snackbar from '@mui/material/Snackbar';
|
||||||
import MuiAlert, { AlertProps } from '@mui/material/Alert';
|
import MuiAlert, { AlertProps } from '@mui/material/Alert';
|
||||||
|
import { InputUploadView } from '../../../components/inputUploadPdf/inputUploadView'
|
||||||
|
|
||||||
const Alert = React.forwardRef<HTMLDivElement, AlertProps>(function Alert(
|
const Alert = React.forwardRef<HTMLDivElement, AlertProps>(function Alert(
|
||||||
props,
|
props,
|
||||||
@ -69,8 +70,17 @@ export default function industryInfo({userName}: any) {
|
|||||||
<Header name={userName} />
|
<Header name={userName} />
|
||||||
<div className='title'>
|
<div className='title'>
|
||||||
<PageTitle title='Info Setorial' subtitle='Realize o upload da última versão de info setorial' />
|
<PageTitle title='Info Setorial' subtitle='Realize o upload da última versão de info setorial' />
|
||||||
<input type="file" onChange={onChange}/>
|
<InputUploadView>
|
||||||
<InputUploadPdf/>
|
<div className="update">
|
||||||
|
<form action="">
|
||||||
|
<div className='testess'>
|
||||||
|
<label htmlFor="arquivo"> <p className='TitleButton'> Enviar PDF </p> </label>
|
||||||
|
<input type="file" name='arquivo' id='arquivo' onChange={onChange} />
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</InputUploadView>
|
||||||
|
{/* <InputUploadPdf/> */}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<BasicButton onClick={() => handleCreateClient()} title='Atualizar'/>
|
<BasicButton onClick={() => handleCreateClient()} title='Atualizar'/>
|
||||||
|
|||||||
@ -84,6 +84,8 @@ export default function ResumoOperacao({tableData, clientsData, userName, client
|
|||||||
} else {
|
} else {
|
||||||
setTableDataState(tableData)
|
setTableDataState(tableData)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(month)
|
||||||
}, [month, unidade])
|
}, [month, unidade])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -114,7 +116,7 @@ export default function ResumoOperacao({tableData, clientsData, userName, client
|
|||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
||||||
<FormControl fullWidth sx={{ml:1}} >
|
<FormControl fullWidth sx={{mt: 2}}>
|
||||||
<InputLabel id="demo-simple-select-label">Mês</InputLabel>
|
<InputLabel id="demo-simple-select-label">Mês</InputLabel>
|
||||||
<Select
|
<Select
|
||||||
labelId="demo-simple-select-label"
|
labelId="demo-simple-select-label"
|
||||||
@ -126,7 +128,7 @@ export default function ResumoOperacao({tableData, clientsData, userName, client
|
|||||||
<MenuItem value={''}>Nenhum</MenuItem>
|
<MenuItem value={''}>Nenhum</MenuItem>
|
||||||
{
|
{
|
||||||
clientMonth.map((value) => {
|
clientMonth.map((value) => {
|
||||||
return <MenuItem key={1} value={value.mes}>{monthLabels[parseFloat(value.mes.slice(3, 4))-1]}</MenuItem>
|
return <MenuItem key={1} value={value.mes.slice(2, 4)}>{monthLabels[parseFloat(value.mes.slice(3, 4))-1]}</MenuItem>
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</Select>
|
</Select>
|
||||||
|
|||||||
@ -19,6 +19,7 @@ export const TableView = styled.div`
|
|||||||
|
|
||||||
.select{
|
.select{
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user