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
0f26e4a6
Commit
0f26e4a6
authored
Sep 02, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
fbeb6c9f
32966a92
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
592 additions
and
557 deletions
+592
-557
Parameter.js
src/container/MasterData/Parameter/Parameter.js
+299
-288
Perusahaan.js
src/container/MasterData/Perusahaan/Perusahaan.js
+12
-5
UnitBisnis.js
src/container/MasterData/UnitBisnis.js
+136
-124
User.js
src/container/Otorisasi/User.js
+145
-140
No files found.
src/container/MasterData/Parameter/Parameter.js
View file @
0f26e4a6
This diff is collapsed.
Click to expand it.
src/container/MasterData/Perusahaan/Perusahaan.js
View file @
0f26e4a6
...
@@ -46,7 +46,8 @@ export default class Perusahaan extends Component {
...
@@ -46,7 +46,8 @@ export default class Perusahaan extends Component {
messageAlert
:
''
,
messageAlert
:
''
,
create
:
false
,
create
:
false
,
edit
:
false
,
edit
:
false
,
load
:
false
load
:
false
,
judul
:
''
}
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
}
}
...
@@ -58,7 +59,6 @@ export default class Perusahaan extends Component {
...
@@ -58,7 +59,6 @@ export default class Perusahaan extends Component {
console
.
log
(
err
);
console
.
log
(
err
);
}
}
else
{
else
{
let
judul
=
resp
.
rows
[
2
]
let
isi
=
resp
.
rows
.
slice
(
3
)
let
isi
=
resp
.
rows
.
slice
(
3
)
let
payload
=
[]
let
payload
=
[]
isi
.
map
((
item
,
index
)
=>
{
isi
.
map
((
item
,
index
)
=>
{
...
@@ -76,7 +76,8 @@ export default class Perusahaan extends Component {
...
@@ -76,7 +76,8 @@ export default class Perusahaan extends Component {
let
body
=
{
let
body
=
{
company
:
payload
company
:
payload
}
}
this
.
setState
({
payload
:
body
,
buttonError
:
false
})
console
.
log
(
resp
.
rows
[
1
])
this
.
setState
({
payload
:
body
,
buttonError
:
false
,
judul
:
resp
.
rows
[
1
][
0
]
})
api
.
create
().
checkUploadPerusahaan
(
body
).
then
(
response
=>
{
api
.
create
().
checkUploadPerusahaan
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
...
@@ -715,7 +716,9 @@ export default class Perusahaan extends Component {
...
@@ -715,7 +716,9 @@ export default class Perusahaan extends Component {
<
/button
>
<
/button
>
<
button
<
button
type
=
"button"
type
=
"button"
onClick
=
{()
=>
this
.
state
.
buttonError
?
this
.
setState
({
popupError
:
true
})
:
this
.
uploadPerusahaan
()}
disabled
=
{
this
.
state
.
buttonError
==
true
?
true
:
false
}
onClick
=
{()
=>
this
.
uploadPerusahaan
()}
// onClick={() => this.state.buttonError ? this.setState({ popupError: true }) : this.uploadPerusahaan()}
style
=
{{}}
style
=
{{}}
>
>
<
div
style
=
{{
width
:
102
,
height
:
30
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
style
=
{{
width
:
102
,
height
:
30
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
...
@@ -784,7 +787,11 @@ export default class Perusahaan extends Component {
...
@@ -784,7 +787,11 @@ export default class Perusahaan extends Component {
this
.
fileHandler
(
dt
)
this
.
fileHandler
(
dt
)
this
.
setState
({
uploadStatus
:
'idle'
,
percentage
:
'0'
})
this
.
setState
({
uploadStatus
:
'idle'
,
percentage
:
'0'
})
}}
}}
onUpload
=
{()
=>
this
.
setState
({
visibleUpload
:
false
,
visiblePerusahaan
:
false
})}
onUpload
=
{()
=>
{
this
.
state
.
judul
===
"MASTER DATA - COMPANY"
?
this
.
setState
({
visibleUpload
:
false
,
visiblePerusahaan
:
false
})
:
this
.
setState
({
alert
:
true
,
messageAlert
:
"Invalid Template"
,
tipeAlert
:
'warning'
})
}}
/
>
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/container/MasterData/UnitBisnis.js
View file @
0f26e4a6
This diff is collapsed.
Click to expand it.
src/container/Otorisasi/User.js
View file @
0f26e4a6
This diff is collapsed.
Click to expand it.
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