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
f0fd3bd6
Commit
f0fd3bd6
authored
Aug 20, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into deni-dev(pc)
parents
3d15a31e
bbb3d4b9
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
752 additions
and
33 deletions
+752
-33
CreatePerusahaan.js
src/container/MasterData/Perusahaan/CreatePerusahaan.js
+411
-30
CreatePerusahaanCopy.js
src/container/MasterData/Perusahaan/CreatePerusahaanCopy.js
+327
-0
Perusahaan.js
src/container/MasterData/Perusahaan/Perusahaan.js
+12
-1
AddRole.js
src/container/Otorisasi/UserRole/AddRole.js
+1
-1
EditRole.js
src/container/Otorisasi/UserRole/EditRole.js
+1
-1
No files found.
src/container/MasterData/Perusahaan/CreatePerusahaan.js
View file @
f0fd3bd6
This diff is collapsed.
Click to expand it.
src/container/MasterData/Perusahaan/CreatePerusahaanCopy.js
0 → 100644
View file @
f0fd3bd6
This diff is collapsed.
Click to expand it.
src/container/MasterData/Perusahaan/Perusahaan.js
View file @
f0fd3bd6
...
...
@@ -285,6 +285,7 @@ export default class Perusahaan extends Component {
this
.
setState
({
visibleEdit
:
false
})
api
.
create
().
updatePerusahaan
(
payload
).
then
(
response
=>
{
if
(
response
.
data
.
status
==
'success'
)
{
alert
(
response
.
data
.
message
)
this
.
getData
()
}
else
{
alert
(
response
.
data
.
message
)
...
...
@@ -296,6 +297,7 @@ export default class Perusahaan extends Component {
this
.
setState
({
visibleCreate
:
false
})
api
.
create
().
createPerusahaan
(
payload
).
then
(
response
=>
{
if
(
response
.
data
.
status
==
'success'
)
{
alert
(
response
.
data
.
message
)
this
.
getData
()
}
else
{
alert
(
response
.
data
.
message
)
...
...
@@ -580,7 +582,7 @@ export default class Perusahaan extends Component {
)}
{
this
.
state
.
visibleEdit
&&
(
<
Edit
Perusahaan
<
Create
Perusahaan
type
=
{
"edit"
}
onClickClose
=
{()
=>
this
.
setState
({
visibleEdit
:
false
})}
data
=
{
this
.
state
.
listData
[
this
.
state
.
selectIndex
]}
...
...
@@ -588,6 +590,15 @@ export default class Perusahaan extends Component {
/
>
)}
{
/* {this.state.visibleEdit && (
<EditPerusahaan
type={"edit"}
onClickClose={() => this.setState({ visibleEdit: false })}
data={this.state.listData[this.state.selectIndex]}
updatePerusahaan={this.updatePerusahaan.bind(this)}
/>
)} */
}
{
this
.
state
.
popupError
&&
(
<
PopUpFailedSave
onClickClose
=
{()
=>
this
.
setState
({
popupError
:
false
})}
/
>
)}
...
...
src/container/Otorisasi/UserRole/AddRole.js
View file @
f0fd3bd6
...
...
@@ -116,7 +116,7 @@ export default class AddRole extends Component {
}
else
if
(
R
.
isNil
(
this
.
state
.
endDate
))
{
this
.
setState
({
errorEndDate
:
true
,
msgErrorED
:
'End Date tidak boleh kosong'
})
}
else
if
(
this
.
state
.
privileges
.
length
<
1
)
{
alert
(
'Hak Akses belum di pilih !!'
)
this
.
setState
({
alert
:
true
,
messageAlert
:
'Hak Akses belum di pilih !!'
,
tipeAlert
:
'warning'
}
)
}
else
{
this
.
addRole
()
}
...
...
src/container/Otorisasi/UserRole/EditRole.js
View file @
f0fd3bd6
...
...
@@ -122,7 +122,7 @@ export default class EditRole extends Component {
}
else
if
(
R
.
isNil
(
this
.
state
.
tempData
.
end_date
))
{
this
.
setState
({
errorEndDate
:
true
,
msgErrorED
:
'End Date tidak boleh kosong'
})
}
else
if
(
this
.
state
.
privileges
.
length
<
1
)
{
alert
(
'Hak Akses belum di pilih !!'
)
this
.
setState
({
alert
:
true
,
messageAlert
:
'Hak Akses belum di pilih !!'
,
tipeAlert
:
'warning'
}
)
}
else
{
this
.
updateRole
()
}
...
...
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