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
db1f9ecb
Commit
db1f9ecb
authored
Aug 28, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deni-dev(pc)' into 'master'
update permision See merge request
!204
parents
163b234e
df4d80e6
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
139 additions
and
100 deletions
+139
-100
index.js
src/api/index.js
+3
-1
ApprovalMatrix.js
src/container/ApprovalMatrix/ApprovalMatrix.js
+3
-6
BudgetTahunan.js
src/container/BudgetTahunan.js
+26
-5
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+2
-2
Perusahaan.js
src/container/MasterData/Perusahaan/Perusahaan.js
+54
-42
VisualPerusahaan.js
src/container/MasterData/Perusahaan/VisualPerusahaan.js
+44
-39
UnitBisnis.js
src/container/MasterData/UnitBisnis.js
+1
-1
User.js
src/container/Otorisasi/User.js
+3
-2
UserRole.js
src/container/Otorisasi/UserRole.js
+3
-2
No files found.
src/api/index.js
View file @
db1f9ecb
...
@@ -160,6 +160,7 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
...
@@ -160,6 +160,7 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
const
uploadAttachment
=
(
body
)
=>
api
.
post
(
'transaction/upload_attachment'
,
body
)
const
uploadAttachment
=
(
body
)
=>
api
.
post
(
'transaction/upload_attachment'
,
body
)
const
getRevision
=
(
body
)
=>
api
.
post
(
'transaction/get_revision'
,
body
)
const
getRevision
=
(
body
)
=>
api
.
post
(
'transaction/get_revision'
,
body
)
const
getPeriodeTransaction
=
()
=>
api
.
get
(
'transaction/get_periode'
)
const
getPeriodeTransaction
=
()
=>
api
.
get
(
'transaction/get_periode'
)
const
deleteAttachment
=
(
id
)
=>
api
.
post
(
`transaction/delete_attachment/
${
id
}
`
)
//Template
//Template
const
downloadTemplate
=
(
fileName
,
fileType
)
=>
api
.
get
(
`attachment/download_file?fileName=
${
fileName
}
&&fileType=
${
fileType
}
`
)
const
downloadTemplate
=
(
fileName
,
fileType
)
=>
api
.
get
(
`attachment/download_file?fileName=
${
fileName
}
&&fileType=
${
fileType
}
`
)
...
@@ -262,7 +263,8 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
...
@@ -262,7 +263,8 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
getMasterBudgetAtt
,
getMasterBudgetAtt
,
uploadAttachment
,
uploadAttachment
,
getPeriodeTransaction
,
getPeriodeTransaction
,
getRevision
getRevision
,
deleteAttachment
}
}
}
}
...
...
src/container/ApprovalMatrix/ApprovalMatrix.js
View file @
db1f9ecb
...
@@ -591,7 +591,6 @@ export default class ApprovalMatrix extends Component {
...
@@ -591,7 +591,6 @@ export default class ApprovalMatrix extends Component {
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
marginLeft
:
16
,
padding
:
0
,
padding
:
0
,
margin
:
5
margin
:
5
}}
}}
...
@@ -608,7 +607,6 @@ export default class ApprovalMatrix extends Component {
...
@@ -608,7 +607,6 @@ export default class ApprovalMatrix extends Component {
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
marginLeft
:
16
,
padding
:
0
,
padding
:
0
,
margin
:
5
margin
:
5
}}
}}
...
@@ -624,7 +622,6 @@ export default class ApprovalMatrix extends Component {
...
@@ -624,7 +622,6 @@ export default class ApprovalMatrix extends Component {
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
marginLeft
:
16
,
padding
:
0
,
padding
:
0
,
margin
:
5
margin
:
5
}}
}}
...
@@ -635,15 +632,15 @@ export default class ApprovalMatrix extends Component {
...
@@ -635,15 +632,15 @@ export default class ApprovalMatrix extends Component {
<
/a
>
<
/a
>
<
ReactTooltip
border
=
{
true
}
id
=
"visualisasi"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
ReactTooltip
border
=
{
true
}
id
=
"visualisasi"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
{
this
.
state
.
btncreate
&&
(
{
this
.
state
.
btncreate
&&
(
<
a
data
-
tip
=
{
'Add'
}
data
-
for
=
"create"
>
<
a
data
-
tip
=
{
'Add
New
'
}
data
-
for
=
"create"
>
<
button
<
button
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
marginLeft
:
16
,
padding
:
0
,
padding
:
0
,
margin
:
5
margin
:
5
,
marginRight
:
20
}}
}}
onClick
=
{()
=>
this
.
setState
({
visibleCreate
:
true
})}
onClick
=
{()
=>
this
.
setState
({
visibleCreate
:
true
})}
>
>
...
...
src/container/BudgetTahunan.js
View file @
db1f9ecb
...
@@ -244,7 +244,17 @@ export default class BudgetTahunan extends Component {
...
@@ -244,7 +244,17 @@ export default class BudgetTahunan extends Component {
})
})
}
}
}
}
// console.log(response)
})
}
deleteAttachment
(
item
)
{
api
.
create
().
deleteAttachment
(
item
.
attachment_id
).
then
(
response
=>
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
getReport
()
this
.
getReportAttachment
()
}
}
})
})
}
}
...
@@ -476,7 +486,18 @@ export default class BudgetTahunan extends Component {
...
@@ -476,7 +486,18 @@ export default class BudgetTahunan extends Component {
{
this
.
state
.
listAttachment
.
length
>
0
?
{
this
.
state
.
listAttachment
.
length
>
0
?
this
.
state
.
listAttachment
.
map
((
item
)
=>
{
this
.
state
.
listAttachment
.
map
((
item
)
=>
{
return
(
return
(
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
display
:
'grid'
}}
onClick
=
{()
=>
this
.
deleteAttachment
(
item
)}
>
<
Typography
style
=
{{
fontSize
:
'16px'
,
color
:
'#ff3939'
}}
>
Delete
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'16px'
,
color
:
'#ff3939'
}}
>
Delete
<
/Typography
>
<
/button
>
)
)
})
})
:
null
:
null
...
...
src/container/MasterData/Parameter/CreateParameter.js
View file @
db1f9ecb
...
@@ -674,7 +674,7 @@ export default class CreateParameter extends Component {
...
@@ -674,7 +674,7 @@ export default class CreateParameter extends Component {
helperText
=
{
this
.
state
.
msgErrorPerusahaan
}
helperText
=
{
this
.
state
.
msgErrorPerusahaan
}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
label
=
"Company"
/>
}
label
=
"Company
Name
"
/>
}
value
=
{
this
.
state
.
getPerusahaan
}
value
=
{
this
.
state
.
getPerusahaan
}
/
>
/
>
<
/div
>
<
/div
>
...
@@ -1044,7 +1044,7 @@ export default class CreateParameter extends Component {
...
@@ -1044,7 +1044,7 @@ export default class CreateParameter extends Component {
{...
params
}
{...
params
}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
label
=
"Company"
label
=
"Company
Name
"
error
=
{
this
.
state
.
errorPerusahaan
}
error
=
{
this
.
state
.
errorPerusahaan
}
helperText
=
{
this
.
state
.
msgErrorPerusahaan
}
helperText
=
{
this
.
state
.
msgErrorPerusahaan
}
/>
}
/>
}
...
...
src/container/MasterData/Perusahaan/Perusahaan.js
View file @
db1f9ecb
...
@@ -42,7 +42,10 @@ export default class Perusahaan extends Component {
...
@@ -42,7 +42,10 @@ export default class Perusahaan extends Component {
popupError
:
false
,
popupError
:
false
,
alert
:
false
,
alert
:
false
,
tipeAlert
:
''
,
tipeAlert
:
''
,
messageAlert
:
''
messageAlert
:
''
,
create
:
false
,
edit
:
false
,
load
:
false
}
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
}
}
...
@@ -407,6 +410,7 @@ export default class Perusahaan extends Component {
...
@@ -407,6 +410,7 @@ export default class Perusahaan extends Component {
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
{
this
.
state
.
edit
&&
(
<
button
<
button
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
...
@@ -418,6 +422,7 @@ export default class Perusahaan extends Component {
...
@@ -418,6 +422,7 @@ export default class Perusahaan extends Component {
>
>
<
img
src
=
{
Images
.
editCopy
}
/
>
<
img
src
=
{
Images
.
editCopy
}
/
>
<
/button
>
<
/button
>
)}
<
/div
>
<
/div
>
);
);
}
}
...
@@ -524,6 +529,7 @@ export default class Perusahaan extends Component {
...
@@ -524,6 +529,7 @@ export default class Perusahaan extends Component {
<
/button
>
<
/button
>
<
/a
>
<
/a
>
<
ReactTooltip
border
=
{
true
}
id
=
"template"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
ReactTooltip
border
=
{
true
}
id
=
"template"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
{
this
.
state
.
create
&&
(
<
a
data
-
tip
=
{
'Upload'
}
data
-
for
=
"upload"
>
<
a
data
-
tip
=
{
'Upload'
}
data
-
for
=
"upload"
>
<
button
<
button
style
=
{{
style
=
{{
...
@@ -537,6 +543,7 @@ export default class Perusahaan extends Component {
...
@@ -537,6 +543,7 @@ export default class Perusahaan extends Component {
<
img
src
=
{
Images
.
upload
}
/
>
<
img
src
=
{
Images
.
upload
}
/
>
<
/button
>
<
/button
>
<
/a
>
<
/a
>
)}
<
ReactTooltip
border
=
{
true
}
id
=
"upload"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
ReactTooltip
border
=
{
true
}
id
=
"upload"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
<
button
<
button
...
@@ -566,19 +573,22 @@ export default class Perusahaan extends Component {
...
@@ -566,19 +573,22 @@ export default class Perusahaan extends Component {
<
/button
>
<
/button
>
<
/a
>
<
/a
>
<
ReactTooltip
border
=
{
true
}
id
=
"visual"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
ReactTooltip
border
=
{
true
}
id
=
"visual"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
a
data
-
tip
=
{
'Add'
}
data
-
for
=
"create"
>
{
this
.
state
.
create
&&
(
<
a
data
-
tip
=
{
'Add New'
}
data
-
for
=
"create"
>
<
button
<
button
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
margin
:
5
margin
:
5
,
marginRight
:
20
}}
}}
onClick
=
{()
=>
this
.
setState
({
visibleCreate
:
true
})}
onClick
=
{()
=>
this
.
setState
({
visibleCreate
:
true
})}
>
>
<
img
src
=
{
Images
.
add
}
/
>
<
img
src
=
{
Images
.
add
}
/
>
<
/button
>
<
/button
>
<
/a
>
<
/a
>
)}
<
ReactTooltip
border
=
{
true
}
id
=
"create"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
ReactTooltip
border
=
{
true
}
id
=
"create"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -598,6 +608,8 @@ export default class Perusahaan extends Component {
...
@@ -598,6 +608,8 @@ export default class Perusahaan extends Component {
:
:
this
.
state
.
visibleVisual
===
true
?
this
.
state
.
visibleVisual
===
true
?
<
VisualPerusahaan
<
VisualPerusahaan
buttonCreate
=
{
this
.
state
.
create
}
buttonEdit
=
{
this
.
state
.
edit
}
onClickClose
=
{()
=>
this
.
setState
({
visibleVisual
:
false
,
visiblePerusahaan
:
true
})}
onClickClose
=
{()
=>
this
.
setState
({
visibleVisual
:
false
,
visiblePerusahaan
:
true
})}
height
=
{
this
.
props
.
height
}
height
=
{
this
.
props
.
height
}
/
>
/
>
...
@@ -686,7 +698,7 @@ export default class Perusahaan extends Component {
...
@@ -686,7 +698,7 @@ export default class Perusahaan extends Component {
className
=
"btn btn-circle btn-white"
className
=
"btn btn-circle btn-white"
onClick
=
{()
=>
this
.
setState
({
visibleUpload
:
false
})}
onClick
=
{()
=>
this
.
setState
({
visibleUpload
:
false
})}
>
>
<
img
src
=
{
Images
.
close
}
/
>
<
img
src
=
{
Images
.
close
}
/
>
<
/button
>
<
/button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/container/MasterData/Perusahaan/VisualPerusahaan.js
View file @
db1f9ecb
...
@@ -16,19 +16,21 @@ export default class VisualPerusahaan extends Component {
...
@@ -16,19 +16,21 @@ export default class VisualPerusahaan extends Component {
super
(
props
)
super
(
props
)
this
.
state
=
{
this
.
state
=
{
items
:
[
items
:
[
{
id
:
0
,
GG
:
'Accumulated Depreciation (negative value)'
,
collapse
:
false
,
{
id
:
0
,
GG
:
'Accumulated Depreciation (negative value)'
,
collapse
:
false
,
children
:
[
children
:
[
{
id
:
3
,
GG
:
'Beginning Balance'
,
collapse
:
false
},
{
id
:
3
,
GG
:
'Beginning Balance'
,
collapse
:
false
},
{
id
:
4
,
GG
:
'Depreciation expense MTD (please fill in, if any)'
,
collapse
:
false
},
{
id
:
4
,
GG
:
'Depreciation expense MTD (please fill in, if any)'
,
collapse
:
false
},
{
id
:
5
,
GG
:
'Depreciation expense MTD (please fill in, if any)'
,
collapse
:
false
}
{
id
:
5
,
GG
:
'Depreciation expense MTD (please fill in, if any)'
,
collapse
:
false
}
]
]
},
{
},
{
id
:
1
,
GG
:
'Control Gain/(Loss) on Fixed Assets'
,
collapse
:
false
id
:
1
,
GG
:
'Control Gain/(Loss) on Fixed Assets'
,
collapse
:
false
},
{
},
{
id
:
2
,
GG
:
'Gain/(Loss) on Fixed Assets'
,
collapse
:
false
,
id
:
2
,
GG
:
'Gain/(Loss) on Fixed Assets'
,
collapse
:
false
,
children
:
[
children
:
[
{
id
:
6
,
GG
:
'NBV'
,
collapse
:
false
,
{
children
:
[
id
:
6
,
GG
:
'NBV'
,
collapse
:
false
,
children
:
[
{
id
:
8
,
GG
:
'Cost'
,
collapse
:
false
},
{
id
:
8
,
GG
:
'Cost'
,
collapse
:
false
},
{
id
:
9
,
GG
:
'Accm. Depreciation'
,
collapse
:
false
},
{
id
:
9
,
GG
:
'Accm. Depreciation'
,
collapse
:
false
},
]
]
...
@@ -78,7 +80,7 @@ export default class VisualPerusahaan extends Component {
...
@@ -78,7 +80,7 @@ export default class VisualPerusahaan extends Component {
arrayCollapse
.
push
(
collapseCase
)
arrayCollapse
.
push
(
collapseCase
)
}
}
if
(
this
.
refNestable
)
{
if
(
this
.
refNestable
)
{
this
.
refNestable
.
collapse
(
arrayCollapse
.
length
>
0
?
arrayCollapse
:
'NONE'
);
this
.
refNestable
.
collapse
(
arrayCollapse
.
length
>
0
?
arrayCollapse
:
'NONE'
);
}
}
};
};
...
@@ -99,9 +101,9 @@ export default class VisualPerusahaan extends Component {
...
@@ -99,9 +101,9 @@ export default class VisualPerusahaan extends Component {
return
(
return
(
<
div
>
<
div
>
<
button
type
=
"button"
onClick
=
{()
=>
this
.
collapse
(
item
.
id
)}
>
<
button
type
=
"button"
onClick
=
{()
=>
this
.
collapse
(
item
.
id
)}
>
{
collapseIcon
?
(
this
.
state
.
arrayCollapse
.
includes
(
item
.
id
)
?
<
AddIcon
/>
:
<
RemoveIcon
/>
)
:
null
}
{
collapseIcon
?
(
this
.
state
.
arrayCollapse
.
includes
(
item
.
id
)
?
<
AddIcon
/>
:
<
RemoveIcon
/>
)
:
null
}
<
/button
>
<
/button
>
<
label
style
=
{{
marginLeft
:
collapseIcon
?
10
:
0
}}
>
{
item
.
company_name
}
<
/label
>
<
label
style
=
{{
marginLeft
:
collapseIcon
?
10
:
0
}}
>
{
item
.
company_name
}
<
/label
>
<
/div
>
<
/div
>
)
)
};
};
...
@@ -126,28 +128,31 @@ export default class VisualPerusahaan extends Component {
...
@@ -126,28 +128,31 @@ export default class VisualPerusahaan extends Component {
<
/label
>
<
/label
>
<
/div
>
<
/div
>
<
div
style
=
{{
padding
:
25
,
width
:
'100%'
}}
>
<
div
style
=
{{
padding
:
25
,
width
:
'100%'
}}
>
<
div
style
=
{{
width
:
'100%'
,
padding
:
25
,
backgroundColor
:
'white'
,
borderRadius
:
6
,
border
:
'solid 1px #c4c4c4'
}}
>
<
div
style
=
{{
width
:
'100%'
,
padding
:
25
,
backgroundColor
:
'white'
,
borderRadius
:
6
,
border
:
'solid 1px #c4c4c4'
}}
>
<
Nestable
<
Nestable
items
=
{
this
.
state
.
items
}
items
=
{
this
.
state
.
items
}
collapsed
=
{
this
.
state
.
defaultCollapsed
}
collapsed
=
{
this
.
state
.
defaultCollapsed
}
renderItem
=
{
this
.
renderItem
}
renderItem
=
{
this
.
renderItem
}
ref
=
{
el
=>
this
.
refNestable
=
el
}
ref
=
{
el
=>
this
.
refNestable
=
el
}
onChange
=
{(
e
)
=>
this
.
setState
({
items
:
e
},
()
=>
console
.
log
(
JSON
.
stringify
(
e
)))}
onChange
=
{(
e
)
=>
this
.
setState
({
items
:
e
},
()
=>
console
.
log
(
JSON
.
stringify
(
e
)))}
/
>
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"row"
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingRight
:
15
,
paddingLeft
:
15
,
paddingBottom
:
25
}}
>
<
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"
}}
>
<
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
}}
>
Back
<
/span
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
Back
<
/span
>
<
/div
>
<
/div
>
{
this
.
props
.
buttonEdit
&&
(
<
div
className
=
"row"
style
=
{{
float
:
'right'
,
marginRight
:
25
}}
>
<
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"
}}
>
<
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
}}
>
Cancel
<
/span
>
<
span
style
=
{{
color
:
'#354960'
,
fontSize
:
11
}}
>
Cancel
<
/span
>
<
/div
>
<
/div
>
<
div
onClick
=
{()
=>
this
.
handleSave
()}
style
=
{{
width
:
102
,
height
:
30
,
marginLeft
:
25
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
,
cursor
:
"pointer"
}}
>
<
div
onClick
=
{()
=>
this
.
handleSave
()}
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
}}
>
Save
<
/span
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
Save
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
)}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/container/MasterData/UnitBisnis.js
View file @
db1f9ecb
...
@@ -217,7 +217,7 @@ export default class UnitBisnis extends Component {
...
@@ -217,7 +217,7 @@ export default class UnitBisnis extends Component {
getData
()
{
getData
()
{
api
.
create
().
getUnitBisnis
().
then
((
response
)
=>
{
api
.
create
().
getUnitBisnis
().
then
((
response
)
=>
{
console
.
log
(
response
)
//
console.log(response)
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
==
'success'
)
{
if
(
response
.
data
.
status
==
'success'
)
{
let
data
=
response
.
data
.
data
let
data
=
response
.
data
.
data
...
...
src/container/Otorisasi/User.js
View file @
db1f9ecb
...
@@ -573,13 +573,14 @@ export default class UserRole extends Component {
...
@@ -573,13 +573,14 @@ export default class UserRole extends Component {
<
/a
>
<
/a
>
<
ReactTooltip
border
=
{
true
}
id
=
"download"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
ReactTooltip
border
=
{
true
}
id
=
"download"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
{
this
.
state
.
buttonCreate
&&
(
{
this
.
state
.
buttonCreate
&&
(
<
a
data
-
tip
=
{
'
Create
'
}
data
-
for
=
"create"
>
<
a
data
-
tip
=
{
'
Add New
'
}
data
-
for
=
"create"
>
<
button
<
button
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
margin
:
5
margin
:
5
,
marginRight
:
20
}}
}}
onClick
=
{()
=>
this
.
setState
({
add
:
true
})}
onClick
=
{()
=>
this
.
setState
({
add
:
true
})}
>
>
...
...
src/container/Otorisasi/UserRole.js
View file @
db1f9ecb
...
@@ -257,13 +257,14 @@ class UserRole extends Component {
...
@@ -257,13 +257,14 @@ class UserRole extends Component {
{
/* <label style={{ color: 'white', width: '60%', justifyContent: 'center', display: 'flex', backgroundColor: 'white', borderWidth: 2, alignItems: 'center' }}>Search</label> */
}
{
/* <label style={{ color: 'white', width: '60%', justifyContent: 'center', display: 'flex', backgroundColor: 'white', borderWidth: 2, alignItems: 'center' }}>Search</label> */
}
<
div
style
=
{{
width
:
'20%'
,
justifyContent
:
'flex-end'
,
display
:
'flex'
}}
>
<
div
style
=
{{
width
:
'20%'
,
justifyContent
:
'flex-end'
,
display
:
'flex'
}}
>
{
this
.
state
.
buttonCreate
&&
(
{
this
.
state
.
buttonCreate
&&
(
<
a
data
-
tip
=
{
'
Create
'
}
data
-
for
=
"create"
>
<
a
data
-
tip
=
{
'
Add New
'
}
data
-
for
=
"create"
>
<
button
<
button
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
margin
:
5
margin
:
5
,
marginRight
:
20
}}
}}
onClick
=
{()
=>
this
.
setState
({
add
:
true
})}
onClick
=
{()
=>
this
.
setState
({
add
:
true
})}
>
>
...
...
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