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
9af58de8
Commit
9af58de8
authored
Aug 14, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'faisal' into 'master'
hirarki perusahaan See merge request
!76
parents
1de90b52
a61411be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
103 additions
and
2 deletions
+103
-2
Perusahaan.js
src/container/MasterData/Perusahaan/Perusahaan.js
+10
-2
VisualPerusahaan.js
src/container/MasterData/Perusahaan/VisualPerusahaan.js
+93
-0
No files found.
src/container/MasterData/Perusahaan/Perusahaan.js
View file @
9af58de8
...
@@ -8,7 +8,8 @@ import MUIDataTable from "mui-datatables";
...
@@ -8,7 +8,8 @@ import MUIDataTable from "mui-datatables";
import
{
render
}
from
'@testing-library/react'
;
import
{
render
}
from
'@testing-library/react'
;
import
{
TextField
,
InputBase
}
from
"@material-ui/core"
;
import
{
TextField
,
InputBase
}
from
"@material-ui/core"
;
import
{
ExcelRenderer
}
from
'react-excel-renderer'
;
import
{
ExcelRenderer
}
from
'react-excel-renderer'
;
import
CreatePerusahaan
from
"../Perusahaan/CreatePerusahaan"
;
import
CreatePerusahaan
from
"./CreatePerusahaan"
;
import
VisualPerusahaan
from
"./VisualPerusahaan"
;
import
api
from
"../../../api"
;
import
api
from
"../../../api"
;
var
ct
=
require
(
"../../../library/CustomTable"
);
var
ct
=
require
(
"../../../library/CustomTable"
);
...
@@ -22,6 +23,7 @@ export default class Perusahaan extends Component {
...
@@ -22,6 +23,7 @@ export default class Perusahaan extends Component {
this
.
state
=
{
this
.
state
=
{
visibleCreate
:
false
,
visibleCreate
:
false
,
visibleEdit
:
false
,
visibleEdit
:
false
,
visibleVisual
:
false
,
dataTable
:
[],
dataTable
:
[],
listData
:
[],
listData
:
[],
data
:
[],
data
:
[],
...
@@ -319,7 +321,7 @@ export default class Perusahaan extends Component {
...
@@ -319,7 +321,7 @@ export default class Perusahaan extends Component {
}}
}}
onClick
=
{()
=>
null
}
onClick
=
{()
=>
null
}
>
>
<
img
src
=
{
Images
.
visualisasi
}
/
>
<
img
src
=
{
Images
.
visualisasi
}
onClick
=
{()
=>
this
.
setState
({
visibleVisual
:
true
,
visiblePerusahaan
:
false
})}
/
>
<
/button
>
<
/button
>
<
button
<
button
style
=
{{
style
=
{{
...
@@ -347,6 +349,12 @@ export default class Perusahaan extends Component {
...
@@ -347,6 +349,12 @@ export default class Perusahaan extends Component {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
:
:
this
.
state
.
visibleVisual
==
true
?
<
VisualPerusahaan
onClickClose
=
{()
=>
this
.
setState
({
visibleVisual
:
false
,
visiblePerusahaan
:
true
})}
height
=
{
this
.
props
.
height
}
/
>
:
<
div
>
<
div
>
<
div
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingRight
:
25
,
paddingLeft
:
25
,
marginTop
:
-
150
}}
>
<
div
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingRight
:
25
,
paddingLeft
:
25
,
marginTop
:
-
150
}}
>
<
label
style
=
{{
color
:
'white'
,
fontSize
:
16
,
alignSelf
:
'center'
}}
>
Preview
Data
<
/label
>
<
label
style
=
{{
color
:
'white'
,
fontSize
:
16
,
alignSelf
:
'center'
}}
>
Preview
Data
<
/label
>
...
...
src/container/MasterData/Perusahaan/VisualPerusahaan.js
0 → 100644
View file @
9af58de8
import
React
,
{
Component
}
from
'react'
;
import
{
Container
,
Row
,
Col
}
from
"react-bootstrap"
;
import
{
makeStyles
,
createMuiTheme
,
MuiThemeProvider
}
from
'@material-ui/core/styles'
;
import
{
TextField
}
from
'@material-ui/core'
;
import
MenuItem
from
'@material-ui/core/MenuItem'
;
import
Perusahaan
from
"./Perusahaan"
;
import
TreeView
from
'@material-ui/lab/TreeView'
;
import
ExpandMoreIcon
from
'@material-ui/icons/ExpandMore'
;
import
ChevronRightIcon
from
'@material-ui/icons/ChevronRight'
;
import
TreeItem
from
'@material-ui/lab/TreeItem'
;
export
default
class
VisualPerusahaan
extends
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
}
}
componentDidMount
()
{
console
.
log
(
this
.
props
.
height
)
}
render
()
{
return
(
<
div
>
<
div
style
=
{{
height
:
this
.
props
.
height
}}
>
<
div
style
=
{{
width
:
'100%'
,
backgroundColor
:
'#354960'
}}
/
>
<
div
>
<
div
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingRight
:
25
,
paddingLeft
:
25
,
marginTop
:
-
150
}}
>
<
label
style
=
{{
color
:
'white'
,
width
:
'20%'
,
fontSize
:
16
,
paddingTop
:
8
}}
>
Hirarki
Perusahaan
<
/label
>
<
/div
>
<
div
style
=
{{
padding
:
25
,
width
:
'100%'
}}
>
<
div
style
=
{{
width
:
'100%'
,
padding
:
25
,
backgroundColor
:
'white'
,
borderRadius
:
6
,
border
:
'solid 1px #c4c4c4'
}}
>
<
TreeView
defaultCollapseIcon
=
{
<
ExpandMoreIcon
/>
}
defaultExpandIcon
=
{
<
ChevronRightIcon
/>
}
>
<
TreeItem
nodeId
=
"1"
label
=
"Triputra Investindo Arya"
>
<
TreeItem
nodeId
=
"2"
label
=
"TAP Group"
>
<
TreeItem
nodeId
=
"3"
label
=
"Gawi Bandep Sawit"
/>
<
TreeItem
nodeId
=
"4"
label
=
"Etam Buana Lestari"
/>
<
/TreeItem
>
<
TreeItem
nodeId
=
"11"
label
=
"Puninar Group"
>
<
TreeItem
nodeId
=
"21"
label
=
"TAP Group"
>
<
TreeItem
nodeId
=
"31"
label
=
"Gawi Bandep Sawit"
/>
<
TreeItem
nodeId
=
"41"
label
=
"Etam Buana Lestari"
/>
<
/TreeItem
>
<
/TreeItem
>
<
TreeItem
nodeId
=
"12"
label
=
"Daya Group"
>
<
TreeItem
nodeId
=
"22"
label
=
"TAP Group"
>
<
TreeItem
nodeId
=
"32"
label
=
"Gawi Bandep Sawit"
/>
<
TreeItem
nodeId
=
"42"
label
=
"Etam Buana Lestari"
/>
<
/TreeItem
>
<
/TreeItem
>
<
/TreeItem>
<
TreeItem
nodeId
=
"5"
label
=
"Documents"
>
<
TreeItem
nodeId
=
"10"
label
=
"OSS"
/>
<
TreeItem
nodeId
=
"6"
label
=
"Material-UI"
>
<
TreeItem
nodeId
=
"7"
label
=
"src"
>
<
TreeItem
nodeId
=
"8"
label
=
"index.js"
/>
<
TreeItem
nodeId
=
"9"
label
=
"tree-view.js"
/>
<
/TreeItem
>
<
/TreeItem
>
<
/TreeItem
>
<
/TreeView
>
<
/div
>
<
/div
>
<
div
className
=
"row"
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingRight
:
15
,
paddingLeft
:
15
,
paddingBottom
:
25
}}
>
<
div
onClick
=
{()
=>
this
.
props
.
onClickClose
()}
style
=
{{
width
:
102
,
height
:
30
,
marginLeft
:
25
,
backgroundColor
:
'dodgerblue'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
,
cursor
:
"pointer"
}}
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
Kembali
<
/span
>
<
/div
>
<
div
className
=
"row"
style
=
{{
float
:
'right'
,
marginRight
:
25
}}
>
<
div
onClick
=
{()
=>
this
.
props
.
onClickClose
()}
style
=
{{
width
:
102
,
height
:
30
,
border
:
'solid 1px #354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
,
cursor
:
"pointer"
}}
>
<
span
style
=
{{
color
:
'#354960'
,
fontSize
:
11
}}
>
Batal
<
/span
>
<
/div
>
<
div
style
=
{{
width
:
102
,
height
:
30
,
marginLeft
:
25
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
,
cursor
:
"pointer"
}}
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
Simpan
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
);
}
}
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