Commit 4f9bb316 authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'deni-dev(pc)' into 'master'

menu ke inggris || dasborCAT

See merge request !82
parents 9e420c4f 523732c1
...@@ -193,9 +193,9 @@ export default function MiniDrawer() { ...@@ -193,9 +193,9 @@ export default function MiniDrawer() {
}} }}
> >
<div className={classes.toolbarDrawer} style={{ <div className={classes.toolbarDrawer} style={{
backgroundColor: '#51c6ea', backgroundColor: '#51c5ea',
height: open ? null : 68, height: open ? null : 68,
paddingBottom: open ? 25 : null paddingBottom: open ? 55 : null
}}> }}>
<div style={{ display: 'flex', justifyContent: 'space-between', flex: 1, padding: 10 }}> <div style={{ display: 'flex', justifyContent: 'space-between', flex: 1, padding: 10 }}>
<img src={Images.triputra} alt="React Logo" style={{ height: 31, width: 151, alignSelf: 'center' }} /> <img src={Images.triputra} alt="React Logo" style={{ height: 31, width: 151, alignSelf: 'center' }} />
...@@ -212,8 +212,8 @@ export default function MiniDrawer() { ...@@ -212,8 +212,8 @@ export default function MiniDrawer() {
</div> </div>
<Divider /> <Divider />
{open && {open &&
<div style={{ width: '100%', textAlign: '-webkit-center', marginTop: -15 }}> <div style={{ width: '100%', textAlign: '-webkit-center', marginTop: -40 }}>
<div style={{ width: 86, height: 86, backgroundColor: '#0d2846', borderRadius: 50, display: 'flex', justifyContent: 'center' }}> <div style={{ width: 90, height: 90, backgroundColor: '#0d2846', borderRadius: 50, display: 'flex', justifyContent: 'center' }}>
<div style={{ width: 72, height: 72, backgroundColor: 'white', borderRadius: 50, alignSelf: 'center' }}> <div style={{ width: 72, height: 72, backgroundColor: 'white', borderRadius: 50, alignSelf: 'center' }}>
</div> </div>
...@@ -222,33 +222,33 @@ export default function MiniDrawer() { ...@@ -222,33 +222,33 @@ export default function MiniDrawer() {
} }
{open && {open &&
<div style={{ marginLeft: 20, marginTop: 20 }}> <div style={{ marginLeft: 20, marginTop: 20 }}>
<Typography style={{ color: 'white', fontSize: 14, fontFamily: 'nunito' }}>APLIKASI</Typography> <Typography style={{ color: 'white', fontSize: 14, fontFamily: 'nunito' }}>Application</Typography>
</div> </div>
} }
<List> <List>
{ArraySide.map((item, index) => ( {ArraySide.map((item, index) => (
<div style={{ marginTop: index === 0 ? null : 10}}> <div style={{ marginTop: index === 0 ? null : 10 }}>
{item.subItem != null ? {item.subItem != null ?
<div style={{ justifyContent: 'space-between', flexDirection: 'row', display: 'flex', paddingLeft: 10, paddingRight: 10 }} onClick={() => selectedIndex == 0 ? setSelectedIndex(index) : setSelectedIndex(0)}> <div style={{ justifyContent: 'space-between', flexDirection: 'row', display: 'flex', paddingLeft: 10, paddingRight: 10 }} onClick={() => selectedIndex == 0 ? setSelectedIndex(index) : setSelectedIndex(0)}>
<ListItem button key={item.label}> <ListItem button key={item.label}>
<ListItemIcon><img src={item.img} /></ListItemIcon> <ListItemIcon style={{ minWidth: open ? 40 : 56 }}><img src={item.img} /></ListItemIcon>
<Typography style={{ fontFamily: 'nunito', color: 'white', fontSize: 14 }}>{item.label}</Typography> <Typography style={{ fontFamily: 'nunito', color: 'white', fontSize: 14 }}>{item.label}</Typography>
</ListItem> </ListItem>
{item.subItem != null ? (index === selectedIndex ? <ExpandLess style={{ color: "white", marginLeft: 50, alignSelf: 'center' }} /> : <ExpandMore style={{ color: "white", marginLeft: 50, alignSelf: 'center' }} />) : null} {item.subItem != null ? (index === selectedIndex ? <ExpandLess style={{ color: "white", marginLeft: 50, alignSelf: 'center' }} /> : <ExpandMore style={{ color: "white", marginLeft: 50, alignSelf: 'center' }} />) : null}
</div> </div>
: :
item.label === 'PENGATURAN' ? item.label === 'Settings' ?
open ? open ?
<Link to={`${url}/${item.path}`}> <Link to={`${url}/${item.path}`}>
<ListItem button key={item.label} onClick={() => null}> <ListItem button key={item.label} onClick={() => null}>
<Typography style={{ fontFamily: 'nunito', color: 'white', fontSize: 14 }}>{item.label}</Typography> <Typography style={{ color: 'white', fontSize: 14, fontFamily: 'nunito' }}>{item.label}</Typography>
</ListItem> </ListItem>
</Link> : null </Link> : null
: :
<Link to={`${url}/${item.path}`}> <Link to={`${url}/${item.path}`}>
<div style={{paddingLeft: 10}}> <div style={{ paddingLeft: 10 }}>
<ListItem button key={item.label} onClick={() => setSelectedIndex(index)}> <ListItem button key={item.label} onClick={() => setSelectedIndex(index)}>
<ListItemIcon><img src={item.img} /></ListItemIcon> <ListItemIcon style={{ minWidth: open ? 40 : 56 }}><img src={item.img} /></ListItemIcon>
<Typography style={{ fontFamily: 'nunito', color: 'white', fontSize: 14 }}>{item.label}</Typography> <Typography style={{ fontFamily: 'nunito', color: 'white', fontSize: 14 }}>{item.label}</Typography>
</ListItem> </ListItem>
</div> </div>
...@@ -261,8 +261,8 @@ export default function MiniDrawer() { ...@@ -261,8 +261,8 @@ export default function MiniDrawer() {
{item.subItem.map((sub, index) => { {item.subItem.map((sub, index) => {
return ( return (
<Link to={`${url}/${sub.path}`}> <Link to={`${url}/${sub.path}`}>
<div style={{paddingLeft: 10}}> <div style={{ paddingLeft: 10 }}>
<ListItem style={{ paddingLeft: 72 }}> <ListItem style={{ paddingLeft: 57 }}>
<Typography style={{ fontFamily: 'nunito', color: 'white', fontSize: 14 }}>{sub.label}</Typography> <Typography style={{ fontFamily: 'nunito', color: 'white', fontSize: 14 }}>{sub.label}</Typography>
</ListItem> </ListItem>
</div> </div>
......
...@@ -32,7 +32,7 @@ export default class DashboardCAT extends Component { ...@@ -32,7 +32,7 @@ export default class DashboardCAT extends Component {
{ value: '2016', label: '2016' }, { value: '2016', label: '2016' },
] ]
return ( return (
<div style={{ height: this.props.height }}> <div style={{}}>
<div style={{ backgroundColor: '#354960', padding: 28 }}> <div style={{ backgroundColor: '#354960', padding: 28 }}>
<Typography style={{ fontSize: '16px', color: 'white' }}>ON CHANGE CAT</Typography> <Typography style={{ fontSize: '16px', color: 'white' }}>ON CHANGE CAT</Typography>
</div> </div>
...@@ -70,16 +70,16 @@ export default class DashboardCAT extends Component { ...@@ -70,16 +70,16 @@ export default class DashboardCAT extends Component {
</TextField> </TextField>
</div> </div>
<Paper style={{ marginTop: 20}}> <Paper style={{ marginTop: 20, }}>
<AppBar position="static"> <AppBar position="static" style={{ borderTopRightRadius: 10, borderTopLeftRadius: 10 }}>
<Tabs indicatorColor="primary" value={this.state.tab} onChange={this.selectTab} aria-label="simple tabs example" style={{ backgroundColor: '#354960', borderColor: 'transparent' }}> <Tabs indicatorColor="primary" value={this.state.tab} onChange={this.selectTab} aria-label="simple tabs example" style={{ backgroundColor: '#354960', borderColor: 'transparent',borderTopRightRadius: 10, borderTopLeftRadius: 10 }}>
<Tab label="Executive Scoreboard" style={{ color: '#fff', fontSize: 11 }} /> <Tab label="Executive Scoreboard" style={{ color: '#fff', fontSize: 11 }} />
<Tab label="Strategy Map" style={{ color: '#fff', fontSize: 11 }} /> <Tab label="Strategy Map" style={{ color: '#fff', fontSize: 11 }} />
<Tab label="KPIs" style={{ color: '#fff', fontSize: 11 }} /> <Tab label="KPIs" style={{ color: '#fff', fontSize: 11 }} />
</Tabs> </Tabs>
</AppBar> </AppBar>
{this.state.tab == 0 ? {this.state.tab == 0 ?
<ExceutiveScoreboard /> <ExceutiveScoreboard height={this.props.height} />
: :
this.state.tab == 1 ? this.state.tab == 1 ?
<span>Testt</span> <span>Testt</span>
......
...@@ -77,6 +77,7 @@ export default class ExceutiveScoreboard extends Component { ...@@ -77,6 +77,7 @@ export default class ExceutiveScoreboard extends Component {
</div> </div>
) )
})} })}
</div>
<div style={{ width: 566, height: 233, boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.25)', padding: 20, justifyContent: 'space-between', display: 'grid', margin: 10 }}> <div style={{ width: 566, height: 233, boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.25)', padding: 20, justifyContent: 'space-between', display: 'grid', margin: 10 }}>
<div> <div>
<span style={{ fontSize: 17 }}>YTD Revenue</span> <span style={{ fontSize: 17 }}>YTD Revenue</span>
...@@ -96,7 +97,6 @@ export default class ExceutiveScoreboard extends Component { ...@@ -96,7 +97,6 @@ export default class ExceutiveScoreboard extends Component {
/> />
</div> </div>
</div> </div>
</div>
) )
} }
} }
...@@ -60,7 +60,7 @@ export default class UnitBisnis extends Component { ...@@ -60,7 +60,7 @@ export default class UnitBisnis extends Component {
} }
this.setState({ payload: body }) this.setState({ payload: body })
api.create().checkUploadUnitBisnis(body).then(response => { api.create().checkUploadUnitBisnis(body).then(response => {
// console.log(response); if (response.data.status === "success") {
let dataRow = response.data.data.map((item, index) => { let dataRow = response.data.data.map((item, index) => {
return [ return [
index + 1, index + 1,
...@@ -70,7 +70,6 @@ export default class UnitBisnis extends Component { ...@@ -70,7 +70,6 @@ export default class UnitBisnis extends Component {
item.error item.error
] ]
}) })
let columns = [ let columns = [
"Data Ke-", "Data Ke-",
{ {
...@@ -162,6 +161,11 @@ export default class UnitBisnis extends Component { ...@@ -162,6 +161,11 @@ export default class UnitBisnis extends Component {
cols: columns, cols: columns,
rows: dataRow rows: dataRow
}); });
}
console.log(response);
}) })
// console.log(JSON.stringify(payload)); // console.log(JSON.stringify(payload));
......
...@@ -3,53 +3,71 @@ import Images from "../assets/Images"; ...@@ -3,53 +3,71 @@ import Images from "../assets/Images";
const arraySide = [ const arraySide = [
{ {
img: Images.Home, img: Images.Home,
label: 'Beranda', label: 'Home',
path: 'beranda', path: 'beranda',
subItem: null subItem: null
}, },
{ {
img: Images.budgetTahunan, img: Images.budgetTahunan,
label: 'Budget Tahunan', label: 'Master Budget & CAT',
path: 'budget-tahunan', path: 'budget-tahunan',
subItem: null subItem: null
}, },
{ {
img: Images.laporanBulanan, img: Images.laporanBulanan,
label: 'Laporan Bulanan', label: 'Monthly Report',
path: 'beranda', path: 'beranda',
subItem: null subItem: null
}, },
{ {
img: Images.manajemenDokumen, img: Images.manajemenDokumen,
label: 'Manajemen Dokumen', label: 'Rolling Outlook & CAT Revision',
path: 'beranda',
subItem: null
},
{
img: Images.manajemenDokumen,
label: 'Outlook Performance Appraisal',
path: 'beranda',
subItem: null
},
{
img: Images.manajemenDokumen,
label: 'Operating Indicator',
path: 'beranda',
subItem: null
},
{
img: Images.manajemenDokumen,
label: 'Document Management',
path: 'beranda', path: 'beranda',
subItem: null subItem: null
}, },
{ {
img: Images.laporan, img: Images.laporan,
label: 'Laporan', label: 'Reports',
path: '', path: '',
subItem: [ subItem: [
{ {
img: 'beranda', img: 'beranda',
label: 'Dashboard CAT', label: 'CAT Dashboard',
path: 'dashboard-cat', path: 'dashboard-cat',
}, },
{ {
img: 'beranda', img: 'beranda',
label: 'Report Summary Triputra Group', label: 'Summary of Triputra Group',
path: 'beranda', path: 'beranda',
}, },
{ {
img: '', img: '',
label: 'Report Sub Holding', label: 'Sub Holding',
path: 'beranda', path: 'beranda',
} }
] ]
}, },
{ {
img: '', img: '',
label: 'PENGATURAN', label: 'Settings',
path: 'beranda', path: 'beranda',
subItem: null subItem: null
}, },
...@@ -60,34 +78,29 @@ const arraySide = [ ...@@ -60,34 +78,29 @@ const arraySide = [
subItem: [ subItem: [
{ {
img: '', img: '',
label: 'Unit Bisnis', label: 'Business Unit',
path: 'unit-bisnis', path: 'unit-bisnis',
}, },
{ {
img: '', img: '',
label: 'Perusahaan', label: 'Company',
path: 'perusahaan', path: 'perusahaan',
}, },
{ {
img: '', img: '',
label: 'Item Laporan', label: 'Report Items',
path: 'report-items', path: 'report-items',
}, },
{ {
img: '', img: '',
label: 'Manajemen Laporan', label: 'Parameters',
path: 'beranda',
},
{
img: '',
label: 'Parameter Lainnya',
path: 'parameter', path: 'parameter',
}, },
] ]
}, },
{ {
img: Images.otorisasi, img: Images.otorisasi,
label: 'Otorisasi', label: 'Authorization',
path: '', path: '',
subItem: [ subItem: [
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment