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
0a3222dc
Commit
0a3222dc
authored
Aug 20, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deni-dev(pc)' into 'master'
toast AM See merge request
!138
parents
430da4df
217cae5a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
182 additions
and
132 deletions
+182
-132
ApprovalMatrix.js
src/container/ApprovalMatrix/ApprovalMatrix.js
+134
-96
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+47
-34
Parameter.js
src/container/MasterData/Parameter/Parameter.js
+1
-2
No files found.
src/container/ApprovalMatrix/ApprovalMatrix.js
View file @
0a3222dc
This diff is collapsed.
Click to expand it.
src/container/MasterData/Parameter/CreateParameter.js
View file @
0a3222dc
...
@@ -328,10 +328,10 @@ export default class CreateParameter extends Component {
...
@@ -328,10 +328,10 @@ export default class CreateParameter extends Component {
}
}
validasi
()
{
validasi
()
{
if
(
R
.
isNil
(
this
.
state
.
getParameter
))
{
if
(
R
.
isNil
(
this
.
state
.
getTypes
))
{
this
.
setState
({
errorParameter
:
true
,
msgErrorParameter
:
'Parameter tidak boleh kosong'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
getTypes
))
{
this
.
setState
({
errorGroup
:
true
,
msgErrorGroup
:
'Group tidak boleh kosong'
})
this
.
setState
({
errorGroup
:
true
,
msgErrorGroup
:
'Group tidak boleh kosong'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
getParameter
))
{
this
.
setState
({
errorParameter
:
true
,
msgErrorParameter
:
'Parameter tidak boleh kosong'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
getPerusahaan
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
getPerusahaan
))
{
this
.
setState
({
errorPerusahaan
:
true
,
msgErrorPerusahaan
:
'Perusahaan tidak boleh kosong'
})
this
.
setState
({
errorPerusahaan
:
true
,
msgErrorPerusahaan
:
'Perusahaan tidak boleh kosong'
})
// } else if (R.isEmpty(this.state.tempData.description)) {
// } else if (R.isEmpty(this.state.tempData.description)) {
...
@@ -468,7 +468,7 @@ export default class CreateParameter extends Component {
...
@@ -468,7 +468,7 @@ export default class CreateParameter extends Component {
{...
this
.
state
.
parameter
}
{...
this
.
state
.
parameter
}
debug
debug
id
=
"tipe"
id
=
"tipe"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getParameter
:
newInputValue
},
()
=>
this
.
clearMessage
())}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getParameter
:
newInputValue
},
()
=>
this
.
clearMessage
())}
renderInput
=
{(
params
)
=>
renderInput
=
{(
params
)
=>
<
TextField
<
TextField
{...
params
}
{...
params
}
...
@@ -625,8 +625,15 @@ export default class CreateParameter extends Component {
...
@@ -625,8 +625,15 @@ export default class CreateParameter extends Component {
{...
this
.
state
.
types
}
{...
this
.
state
.
types
}
debug
debug
id
=
"tipe"
id
=
"tipe"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getTypes
:
newInputValue
},
()
=>
newInputValue
===
null
?
this
.
setState
({
enableParameter
:
false
,
getParameter
:
null
},
()
=>
this
.
clearMessage
())
:
this
.
getParameterByGroup
(
newInputValue
.
setting_group_id
),
this
.
clearMessage
()
)}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getTypes
:
newInputValue
},
()
=>
newInputValue
===
null
?
this
.
setState
({
enableParameter
:
false
,
getParameter
:
null
},
()
=>
this
.
clearMessage
())
:
this
.
getParameterByGroup
(
newInputValue
.
setting_group_id
),
this
.
clearMessage
())}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
label
=
"Group"
/>
}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
error
=
{
this
.
state
.
errorGroup
}
helperText
=
{
this
.
state
.
msgErrorGroup
}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
label
=
"Group"
/>
}
value
=
{
this
.
state
.
getTypes
}
value
=
{
this
.
state
.
getTypes
}
/
>
/
>
<
/div
>
<
/div
>
...
@@ -635,8 +642,14 @@ export default class CreateParameter extends Component {
...
@@ -635,8 +642,14 @@ export default class CreateParameter extends Component {
{...
this
.
state
.
perusahaan
}
{...
this
.
state
.
perusahaan
}
debug
debug
id
=
"tipe"
id
=
"tipe"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getPerusahaan
:
newInputValue
},
()
=>
this
.
clearMessage
())}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getPerusahaan
:
newInputValue
},
()
=>
this
.
clearMessage
())}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
label
=
"Perusahaan"
/>
}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
error
=
{
this
.
state
.
errorPerusahaan
}
helperText
=
{
this
.
state
.
msgErrorPerusahaan
}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
label
=
"Perusahaan"
/>
}
value
=
{
this
.
state
.
getPerusahaan
}
value
=
{
this
.
state
.
getPerusahaan
}
/
>
/
>
<
/div
>
<
/div
>
...
@@ -801,7 +814,7 @@ export default class CreateParameter extends Component {
...
@@ -801,7 +814,7 @@ export default class CreateParameter extends Component {
debug
debug
disabled
=
{
!
this
.
state
.
enableParameter
}
disabled
=
{
!
this
.
state
.
enableParameter
}
id
=
"tipe"
id
=
"tipe"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getParameter
:
newInputValue
},
()
=>
this
.
clearMessage
())}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getParameter
:
newInputValue
},
()
=>
this
.
clearMessage
())}
renderInput
=
{(
params
)
=>
renderInput
=
{(
params
)
=>
<
TextField
<
TextField
{...
params
}
{...
params
}
...
@@ -951,7 +964,7 @@ export default class CreateParameter extends Component {
...
@@ -951,7 +964,7 @@ export default class CreateParameter extends Component {
{...
this
.
state
.
types
}
{...
this
.
state
.
types
}
debug
debug
id
=
"tipe"
id
=
"tipe"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getTypes
:
newInputValue
},
()
=>
newInputValue
===
null
?
this
.
setState
({
enableParameter
:
false
,
getParameter
:
null
},
()
=>
this
.
clearMessage
())
:
this
.
getParameterByGroup
(
newInputValue
.
setting_group_id
),
this
.
clearMessage
()
)}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getTypes
:
newInputValue
},
()
=>
newInputValue
===
null
?
this
.
setState
({
enableParameter
:
false
,
getParameter
:
null
},
()
=>
this
.
clearMessage
())
:
this
.
getParameterByGroup
(
newInputValue
.
setting_group_id
),
this
.
clearMessage
()
)}
renderInput
=
{(
params
)
=>
renderInput
=
{(
params
)
=>
<
TextField
<
TextField
{...
params
}
{...
params
}
...
@@ -969,7 +982,7 @@ export default class CreateParameter extends Component {
...
@@ -969,7 +982,7 @@ export default class CreateParameter extends Component {
{...
this
.
state
.
perusahaan
}
{...
this
.
state
.
perusahaan
}
debug
debug
id
=
"tipe"
id
=
"tipe"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getPerusahaan
:
newInputValue
},
()
=>
this
.
clearMessage
())}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
getPerusahaan
:
newInputValue
},
()
=>
this
.
clearMessage
())}
renderInput
=
{(
params
)
=>
renderInput
=
{(
params
)
=>
<
TextField
<
TextField
{...
params
}
{...
params
}
...
...
src/container/MasterData/Parameter/Parameter.js
View file @
0a3222dc
...
@@ -522,8 +522,7 @@ export default class Parameter extends Component {
...
@@ -522,8 +522,7 @@ export default class Parameter extends Component {
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
console
.
log
(
response
)
console
.
log
(
response
)
this
.
getAllParameter
()
this
.
getAllParameter
()
this
.
setState
({
visibleParameter
:
true
})
this
.
setState
({
visibleParameter
:
true
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'success'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'success'
})
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
})
}
}
...
...
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