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
387cb89d
Commit
387cb89d
authored
Aug 19, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deni-dev(pc)' into 'master'
validasi ++ See merge request
!123
parents
ffed1e13
cafd8bd4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
139 additions
and
125 deletions
+139
-125
Home.js
src/container/Home.js
+1
-1
Login.js
src/container/Login.js
+21
-17
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+8
-4
Parameter.js
src/container/MasterData/Parameter/Parameter.js
+10
-7
UnitBisnis.js
src/container/MasterData/UnitBisnis.js
+95
-92
VisualReportItems.js
...container/MasterData/formReportItems/VisualReportItems.js
+3
-3
Upload.js
src/library/Upload.js
+1
-1
No files found.
src/container/Home.js
View file @
387cb89d
...
@@ -483,7 +483,7 @@ export default function MiniDrawer() {
...
@@ -483,7 +483,7 @@ export default function MiniDrawer() {
<
div
style
=
{{
width
:
'100%'
,
textAlign
:
'-webkit-center'
,
marginTop
:
-
45
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
style
=
{{
width
:
'100%'
,
textAlign
:
'-webkit-center'
,
marginTop
:
-
45
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
className
=
{
"sub-color"
}
style
=
{{
width
:
90
,
height
:
90
,
borderRadius
:
50
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
className
=
{
"sub-color"
}
style
=
{{
width
:
90
,
height
:
90
,
borderRadius
:
50
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
style
=
{{
width
:
72
,
height
:
72
,
backgroundColor
:
'#838383'
,
borderRadius
:
50
,
alignSelf
:
'center'
}}
>
<
div
style
=
{{
width
:
72
,
height
:
72
,
backgroundColor
:
'#838383'
,
borderRadius
:
50
,
alignSelf
:
'center'
}}
>
<
img
src
=
{
userPhoto
}
style
=
{{
width
:
72
,
height
:
72
,
borderRadius
:
50
}}
/
>
{
userPhoto
===
""
?
null
:
<
img
src
=
{
userPhoto
}
style
=
{{
width
:
72
,
height
:
72
,
borderRadius
:
50
}}
/>
}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/container/Login.js
View file @
387cb89d
...
@@ -75,25 +75,29 @@ class Login extends Component {
...
@@ -75,25 +75,29 @@ class Login extends Component {
"password"
:
this
.
state
.
password
"password"
:
this
.
state
.
password
}
}
api
.
create
().
login
(
payload
).
then
((
response
)
=>
{
api
.
create
().
login
(
payload
).
then
((
response
)
=>
{
if
(
response
.
data
.
status
===
'success'
)
{
if
(
response
.
data
)
{
console
.
log
(
response
.
data
.
data
)
if
(
response
.
data
.
status
===
'success'
)
{
localStorage
.
setItem
(
Constant
.
TOKEN
,
response
.
data
.
data
.
token
)
console
.
log
(
response
.
data
.
data
)
localStorage
.
setItem
(
Constant
.
USER
,
response
.
data
.
data
.
user_id
)
localStorage
.
setItem
(
Constant
.
TOKEN
,
response
.
data
.
data
.
token
)
if
(
this
.
state
.
rememberMe
)
{
localStorage
.
setItem
(
Constant
.
USER
,
response
.
data
.
data
.
user_id
)
localStorage
.
setItem
(
Constant
.
EMAIL
,
this
.
state
.
email
)
if
(
this
.
state
.
rememberMe
)
{
localStorage
.
setItem
(
Constant
.
PASSWORD
,
this
.
state
.
password
)
localStorage
.
setItem
(
Constant
.
EMAIL
,
this
.
state
.
email
)
// console.log(this.state.email, this.state.password)
localStorage
.
setItem
(
Constant
.
PASSWORD
,
this
.
state
.
password
)
// console.log(this.state.email, this.state.password)
}
else
{
localStorage
.
setItem
(
Constant
.
EMAIL
,
''
)
localStorage
.
setItem
(
Constant
.
PASSWORD
,
''
)
}
this
.
props
.
history
.
push
(
'/home/beranda'
)
}
else
{
}
else
{
localStorage
.
setItem
(
Constant
.
EMAIL
,
''
)
if
(
response
.
data
.
message
==
'Kata sandi tidak sesuai.'
)
{
localStorage
.
setItem
(
Constant
.
PASSWORD
,
''
)
this
.
setState
({
errorPassword
:
true
,
msgPassword
:
response
.
data
.
message
})
}
else
{
this
.
setState
({
errorEmail
:
true
,
msgEmail
:
response
.
data
.
message
})
}
}
}
this
.
props
.
history
.
push
(
'/home/beranda'
)
}
else
{
}
else
{
if
(
response
.
data
.
message
==
'Kata sandi tidak sesuai.'
)
{
alert
(
response
.
problem
)
this
.
setState
({
errorPassword
:
true
,
msgPassword
:
response
.
data
.
message
})
}
else
{
this
.
setState
({
errorEmail
:
true
,
msgEmail
:
response
.
data
.
message
})
}
}
}
})
})
}
}
...
@@ -185,7 +189,7 @@ class Login extends Component {
...
@@ -185,7 +189,7 @@ class Login extends Component {
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
}}
}}
disabled
=
{
this
.
state
.
email
.
trim
()
==
''
&&
this
.
state
.
password
.
trim
()
==
''
?
true
:
false
}
disabled
=
{
this
.
state
.
email
.
trim
()
==
''
&&
this
.
state
.
password
.
trim
()
==
''
?
true
:
false
}
// onClick={() => this.validateLogin()}
// onClick={() => this.validateLogin()}
>
>
<
Button
name
=
"submit"
variant
=
"contained"
disabled
=
{
this
.
state
.
email
.
trim
()
==
''
&&
this
.
state
.
password
.
trim
()
==
''
?
true
:
false
}
style
=
{{
marginTop
:
23
,
width
:
'100%'
,
height
:
35
,
borderRadius
:
4
,
color
:
this
.
state
.
email
.
trim
()
==
''
&&
this
.
state
.
password
.
trim
()
==
''
?
'#4b4b4b'
:
'#fff'
,
backgroundColor
:
this
.
state
.
email
.
trim
()
==
''
&&
this
.
state
.
password
.
trim
()
==
''
?
'#d8d8d8'
:
'#51c6ea'
}}
>
<
Button
name
=
"submit"
variant
=
"contained"
disabled
=
{
this
.
state
.
email
.
trim
()
==
''
&&
this
.
state
.
password
.
trim
()
==
''
?
true
:
false
}
style
=
{{
marginTop
:
23
,
width
:
'100%'
,
height
:
35
,
borderRadius
:
4
,
color
:
this
.
state
.
email
.
trim
()
==
''
&&
this
.
state
.
password
.
trim
()
==
''
?
'#4b4b4b'
:
'#fff'
,
backgroundColor
:
this
.
state
.
email
.
trim
()
==
''
&&
this
.
state
.
password
.
trim
()
==
''
?
'#d8d8d8'
:
'#51c6ea'
}}
>
<
Typography
style
=
{{
fontSize
:
12
,
fontFamily
:
'Nunito Sans, sans-serif'
}}
>
Login
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
12
,
fontFamily
:
'Nunito Sans, sans-serif'
}}
>
Login
<
/Typography
>
...
...
src/container/MasterData/Parameter/CreateParameter.js
View file @
387cb89d
...
@@ -54,18 +54,22 @@ export default class CreateParameter extends Component {
...
@@ -54,18 +54,22 @@ export default class CreateParameter extends Component {
componentDidMount
()
{
componentDidMount
()
{
if
(
this
.
props
.
type
===
'edit'
)
{
if
(
this
.
props
.
type
===
'edit'
)
{
this
.
setState
({
this
.
setState
({
getSettingTypeID
:
this
.
props
.
data
.
setting_type_id
,
getSettingTypeID
:
this
.
props
.
data
[
0
]
,
})
})
this
.
getDetailParameter
()
this
.
getDetailParameter
()
this
.
getParameterByGroup
(
this
.
props
.
data
.
setting_group_id
)
}
else
{
}
else
{
let
date
=
format
(
new
Date
,
'yyyy-MM-dd'
)
this
.
setState
({
startDate
:
date
,
endDate
:
date
})
this
.
getDataGroup
()
this
.
getDataGroup
()
this
.
getDataPerusahaan
()
this
.
getDataPerusahaan
()
}
}
}
}
getDetailParameter
()
{
getDetailParameter
()
{
api
.
create
().
getDetailParameter
(
this
.
props
.
data
.
setting_id
).
then
((
response
)
=>
{
api
.
create
().
getDetailParameter
(
this
.
props
.
data
[
0
]
).
then
((
response
)
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
.
status
===
'success'
)
{
if
(
response
.
data
.
status
===
'success'
)
{
let
data
=
response
.
data
.
data
let
data
=
response
.
data
.
data
...
@@ -74,7 +78,7 @@ export default class CreateParameter extends Component {
...
@@ -74,7 +78,7 @@ export default class CreateParameter extends Component {
getSettingGroupID
:
data
.
setting_group_id
,
getSettingGroupID
:
data
.
setting_group_id
,
getCompanyID
:
data
.
company_id
,
getCompanyID
:
data
.
company_id
,
settingType
:
data
.
setting_type
,
settingType
:
data
.
setting_type
,
},
()
=>
this
.
getAllGroup
(),
this
.
getPerusahaan
())
},
()
=>
this
.
getAllGroup
(),
this
.
getPerusahaan
()
,
this
.
getParameterByGroup
(
data
.
setting_group_id
)
)
}
else
{
}
else
{
alert
(
response
.
data
.
message
)
alert
(
response
.
data
.
message
)
}
}
...
...
src/container/MasterData/Parameter/Parameter.js
View file @
387cb89d
...
@@ -36,10 +36,11 @@ export default class Parameter extends Component {
...
@@ -36,10 +36,11 @@ export default class Parameter extends Component {
getAllParameter
()
{
getAllParameter
()
{
api
.
create
().
getAllParameter
().
then
(
response
=>
{
api
.
create
().
getAllParameter
().
then
(
response
=>
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
console
.
log
(
response
);
let
data
=
response
.
data
.
data
let
data
=
response
.
data
.
data
let
listData
=
data
.
map
((
item
,
index
)
=>
{
let
listData
=
data
.
map
((
item
,
index
)
=>
{
return
[
return
[
i
ndex
,
i
tem
.
setting_id
,
item
.
setting_group
,
item
.
setting_group
,
item
.
setting_type
,
item
.
setting_type
,
item
.
company_name
,
item
.
company_name
,
...
@@ -58,15 +59,15 @@ export default class Parameter extends Component {
...
@@ -58,15 +59,15 @@ export default class Parameter extends Component {
})
})
}
}
openPopUp
(
index
,
type
)
{
openPopUp
(
rowData
,
type
)
{
if
(
type
===
'edit'
)
{
if
(
type
===
'edit'
)
{
this
.
setState
({
this
.
setState
({
selectIndex
:
index
,
rowData
:
rowData
,
visibleEdit
:
true
visibleEdit
:
true
})
})
}
else
{
}
else
{
this
.
setState
({
this
.
setState
({
data
:
this
.
state
.
data
[
index
]
,
rowData
:
rowData
,
visibleCreate
:
true
visibleCreate
:
true
})
})
}
}
...
@@ -510,6 +511,7 @@ export default class Parameter extends Component {
...
@@ -510,6 +511,7 @@ export default class Parameter extends Component {
const
columns
=
[{
const
columns
=
[{
name
:
"Action"
,
name
:
"Action"
,
options
:
{
options
:
{
sort
:
false
,
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
...
@@ -519,7 +521,8 @@ export default class Parameter extends Component {
...
@@ -519,7 +521,8 @@ export default class Parameter extends Component {
cursor
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
borderColor
:
'transparent'
}}
}}
onClick
=
{()
=>
this
.
openPopUp
(
tableMeta
.
rowIndex
,
'edit'
)}
onClick
=
{()
=>
this
.
openPopUp
(
tableMeta
.
rowData
,
'edit'
)}
// onClick={()=> console.log(tableMeta)}
>
>
<
img
src
=
{
Images
.
editCopy
}
/
>
<
img
src
=
{
Images
.
editCopy
}
/
>
<
/button
>
<
/button
>
...
@@ -652,7 +655,7 @@ export default class Parameter extends Component {
...
@@ -652,7 +655,7 @@ export default class Parameter extends Component {
inputProps
=
{{
'aria-label'
:
'naked'
}}
inputProps
=
{{
'aria-label'
:
'naked'
}}
/
>
/
>
<
/div
>
<
/div
>
<
div
style
=
{{
width
:
'20%'
,
justifyContent
:
'
space-arou
nd'
,
display
:
'flex'
}}
>
<
div
style
=
{{
width
:
'20%'
,
justifyContent
:
'
flex-e
nd'
,
display
:
'flex'
}}
>
<
a
data
-
tip
=
{
'Download Template'
}
data
-
for
=
"template"
>
<
a
data
-
tip
=
{
'Download Template'
}
data
-
for
=
"template"
>
<
button
<
button
style
=
{{
style
=
{{
...
@@ -773,7 +776,7 @@ export default class Parameter extends Component {
...
@@ -773,7 +776,7 @@ export default class Parameter extends Component {
<
CreateParameter
<
CreateParameter
type
=
{
"edit"
}
type
=
{
"edit"
}
onClickClose
=
{()
=>
this
.
setState
({
visibleEdit
:
false
})}
onClickClose
=
{()
=>
this
.
setState
({
visibleEdit
:
false
})}
data
=
{
this
.
state
.
data
[
this
.
state
.
selectIndex
]
}
data
=
{
this
.
state
.
rowData
}
updateParameter
=
{
this
.
updateParameter
.
bind
(
this
)}
updateParameter
=
{
this
.
updateParameter
.
bind
(
this
)}
/
>
/
>
)}
)}
...
...
src/container/MasterData/UnitBisnis.js
View file @
387cb89d
...
@@ -64,112 +64,114 @@ export default class UnitBisnis extends Component {
...
@@ -64,112 +64,114 @@ export default class UnitBisnis extends Component {
}
}
this
.
setState
({
payload
:
body
,
buttonError
:
false
})
this
.
setState
({
payload
:
body
,
buttonError
:
false
})
api
.
create
().
checkUploadUnitBisnis
(
body
).
then
(
response
=>
{
api
.
create
().
checkUploadUnitBisnis
(
body
).
then
(
response
=>
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
)
{
let
dataRow
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
if
(
response
.
data
.
status
===
"success"
)
{
return
[
let
dataRow
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
index
+
1
,
return
[
item
.
business_unit_name
,
index
+
1
,
item
.
start_date
,
item
.
business_unit_name
,
item
.
end_date
,
item
.
start_date
,
item
.
error
item
.
end_date
,
]
item
.
error
})
]
let
columns
=
[
})
"Data Ke-"
,
let
columns
=
[
{
"Data Ke-"
,
name
:
"Unit Bisnis"
,
{
options
:
{
name
:
"Unit Bisnis"
,
customBodyRender
:
(
val
,
tableMeta
)
=>
{
options
:
{
let
check
=
null
customBodyRender
:
(
val
,
tableMeta
)
=>
{
if
(
tableMeta
.
rowData
[
4
]
!=
null
)
{
let
check
=
null
check
=
tableMeta
.
rowData
[
4
].
findIndex
((
val
)
=>
val
.
field
.
includes
(
'business_unit_name'
))
if
(
tableMeta
.
rowData
[
4
]
!=
null
)
{
if
(
check
>
-
1
)
{
check
=
tableMeta
.
rowData
[
4
].
findIndex
((
val
)
=>
val
.
field
.
includes
(
'business_unit_name'
))
this
.
setState
({
buttonError
:
true
})
if
(
check
>
-
1
)
{
this
.
setState
({
buttonError
:
true
})
}
}
}
}
return
(
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
{
tableMeta
.
rowData
[
4
]
!=
null
&&
check
>
-
1
?
{
tableMeta
.
rowData
[
4
]
!=
null
&&
check
>
-
1
?
<
a
data
-
tip
=
{
tableMeta
.
rowData
[
4
][
check
].
message
}
data
-
for
=
"unitbisnis"
>
<
a
data
-
tip
=
{
tableMeta
.
rowData
[
4
][
check
].
message
}
data
-
for
=
"unitbisnis"
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
/a>
:
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
/a>
:
}
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
ReactTooltip
border
=
{
true
}
id
=
"unitbisnis"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
}
<
/div
>
<
ReactTooltip
border
=
{
true
}
id
=
"unitbisnis"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
);
<
/div
>
}
);
}
}
}
}
,
},
{
{
name
:
"Berlaku Mulai"
,
name
:
"Berlaku Mulai"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
let
check
=
null
let
check
=
null
if
(
tableMeta
.
rowData
[
4
]
!=
null
)
{
if
(
tableMeta
.
rowData
[
4
]
!=
null
)
{
check
=
tableMeta
.
rowData
[
4
].
findIndex
((
val
)
=>
val
.
field
.
includes
(
'start_date'
))
check
=
tableMeta
.
rowData
[
4
].
findIndex
((
val
)
=>
val
.
field
.
includes
(
'start_date'
))
if
(
check
>
-
1
)
{
if
(
check
>
-
1
)
{
this
.
setState
({
buttonError
:
true
})
this
.
setState
({
buttonError
:
true
})
}
}
}
}
return
(
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
{
tableMeta
.
rowData
[
4
]
!=
null
&&
check
>
-
1
?
{
tableMeta
.
rowData
[
4
]
!=
null
&&
check
>
-
1
?
<
a
data
-
tip
=
{
tableMeta
.
rowData
[
4
][
check
].
message
}
data
-
for
=
"startdate"
>
<
a
data
-
tip
=
{
tableMeta
.
rowData
[
4
][
check
].
message
}
data
-
for
=
"startdate"
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
/a>
:
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
/a>
:
}
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
ReactTooltip
border
=
{
true
}
id
=
"startdate"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
}
<
/div
>
<
ReactTooltip
border
=
{
true
}
id
=
"startdate"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
);
<
/div
>
}
);
}
}
}
}
,
},
{
{
name
:
"Berakhir Hingga"
,
name
:
"Berakhir Hingga"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
let
check
=
null
let
check
=
null
if
(
tableMeta
.
rowData
[
4
]
!=
null
)
{
if
(
tableMeta
.
rowData
[
4
]
!=
null
)
{
check
=
tableMeta
.
rowData
[
4
].
findIndex
((
val
)
=>
val
.
field
.
includes
(
'end_date'
))
check
=
tableMeta
.
rowData
[
4
].
findIndex
((
val
)
=>
val
.
field
.
includes
(
'end_date'
))
if
(
check
>
-
1
)
{
if
(
check
>
-
1
)
{
this
.
setState
({
buttonError
:
true
})
this
.
setState
({
buttonError
:
true
})
}
}
}
}
return
(
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
{
tableMeta
.
rowData
[
4
]
!=
null
&&
check
>
-
1
?
{
tableMeta
.
rowData
[
4
]
!=
null
&&
check
>
-
1
?
<
a
data
-
tip
=
{
tableMeta
.
rowData
[
4
][
check
].
message
}
data
-
for
=
"enddate"
>
<
a
data
-
tip
=
{
tableMeta
.
rowData
[
4
][
check
].
message
}
data
-
for
=
"enddate"
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
/a>
:
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
/a>
:
}
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
}
<
/span
>
<
ReactTooltip
border
=
{
true
}
id
=
"enddate"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
}
<
/div
>
<
ReactTooltip
border
=
{
true
}
id
=
"enddate"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
);
<
/div
>
}
);
}
},
{
name
:
""
,
options
:
{
display
:
false
}
}
}
}
},
]
{
name
:
""
,
options
:
{
display
:
false
}
}
]
console
.
log
(
dataRow
);
console
.
log
(
dataRow
);
this
.
setState
({
dataLoaded
:
true
,
cols
:
columns
,
rows
:
dataRow
});
}
}
else
{
this
.
setState
({
this
.
setState
({
dataLoaded
:
true
,
dataLoaded
:
false
,
cols
:
columns
,
rows
:
dataRow
});
});
}
}
console
.
log
(
response
);
})
})
}
}
...
@@ -300,6 +302,7 @@ export default class UnitBisnis extends Component {
...
@@ -300,6 +302,7 @@ export default class UnitBisnis extends Component {
const
columns
=
[{
const
columns
=
[{
name
:
"Action"
,
name
:
"Action"
,
options
:
{
options
:
{
sort
:
false
,
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
...
...
src/container/MasterData/formReportItems/VisualReportItems.js
View file @
387cb89d
...
@@ -221,7 +221,7 @@ export default class VisualReportItems extends Component {
...
@@ -221,7 +221,7 @@ export default class VisualReportItems extends Component {
id
=
"report"
id
=
"report"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
report
:
newInputValue
},
()
=>
this
.
getItemHierarki
())}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
report
:
newInputValue
},
()
=>
this
.
getItemHierarki
())}
debug
debug
disableClearable
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
label
=
"Jenis Laporan"
margin
=
"normal"
style
=
{{
marginTop
:
7
}}
/>
}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
label
=
"Jenis Laporan"
margin
=
"normal"
style
=
{{
marginTop
:
7
}}
/>
}
value
=
{
this
.
state
.
report
}
value
=
{
this
.
state
.
report
}
/
>
/
>
...
@@ -232,8 +232,8 @@ export default class VisualReportItems extends Component {
...
@@ -232,8 +232,8 @@ export default class VisualReportItems extends Component {
id
=
"company"
id
=
"company"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
company
:
newInputValue
},
()
=>
this
.
getItemHierarki
())}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
company
:
newInputValue
},
()
=>
this
.
getItemHierarki
())}
debug
debug
disableClearable
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
label
=
"Compan"
margin
=
"normal"
style
=
{{
marginTop
:
7
}}
/>
}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
label
=
"Compan
y
"
margin
=
"normal"
style
=
{{
marginTop
:
7
}}
/>
}
value
=
{
this
.
state
.
company
}
value
=
{
this
.
state
.
company
}
/
>
/
>
<
/div
>
<
/div
>
...
...
src/library/Upload.js
View file @
387cb89d
...
@@ -124,7 +124,7 @@ class Upload extends Component {
...
@@ -124,7 +124,7 @@ class Upload extends Component {
onClick
=
{
this
.
state
.
uploadProgress
===
true
?
null
:
this
.
onRemove
}
onClick
=
{
this
.
state
.
uploadProgress
===
true
?
null
:
this
.
onRemove
}
className
=
"btn btn-small-circle btn-black"
className
=
"btn btn-small-circle btn-black"
type
=
"button"
>
type
=
"button"
>
<
i
className
=
"fa fa-1x fa-times"
/>
<
i
mg
src
=
{
Images
.
close
}
/
>
<
/button
>
<
/button
>
<
/div
>
<
/div
>
<
div
className
=
"width width-full margin-left-10px"
>
<
div
className
=
"width width-full margin-left-10px"
>
...
...
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