Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
4f9bb316
Commit
4f9bb316
authored
Aug 14, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deni-dev(pc)' into 'master'
menu ke inggris || dasborCAT See merge request
!82
parents
9e420c4f
523732c1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
152 additions
and
135 deletions
+152
-135
Home.js
src/container/Home.js
+15
-15
DashboardCAT.js
src/container/Laporan/DashboardCAT.js
+8
-8
ExceutiveScoreboard.js
src/container/Laporan/ExceutiveScoreboard.js
+2
-2
UnitBisnis.js
src/container/MasterData/UnitBisnis.js
+95
-91
Array.js
src/library/Array.js
+32
-19
No files found.
src/container/Home.js
View file @
4f9bb316
...
@@ -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
:
'#51c
6
ea'
,
backgroundColor
:
'#51c
5
ea'
,
height
:
open
?
null
:
68
,
height
:
open
?
null
:
68
,
paddingBottom
:
open
?
2
5
:
null
paddingBottom
:
open
?
5
5
:
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'
}}
>
A
PLIKASI
<
/Typography
>
<
Typography
style
=
{{
color
:
'white'
,
fontSize
:
14
,
fontFamily
:
'nunito'
}}
>
A
pplication
<
/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> : nul
l
<
/Link> : nul
l
:
:
<
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
>
...
...
src/container/Laporan/DashboardCAT.js
View file @
4f9bb316
...
@@ -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
>
...
...
src/container/Laporan/ExceutiveScoreboard.js
View file @
4f9bb316
...
@@ -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
>
)
)
}
}
}
}
src/container/MasterData/UnitBisnis.js
View file @
4f9bb316
...
@@ -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));
...
...
src/library/Array.js
View file @
4f9bb316
...
@@ -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
:
[
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment