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