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
f25eb3a5
Commit
f25eb3a5
authored
Aug 17, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix upload reportItem
parent
52d5d253
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Parameter.js
src/container/MasterData/Parameter/Parameter.js
+2
-2
ReportItems.js
src/container/MasterData/ReportItems.js
+3
-3
UnitBisnis.js
src/container/MasterData/UnitBisnis.js
+2
-2
No files found.
src/container/MasterData/Parameter/Parameter.js
View file @
f25eb3a5
...
@@ -155,7 +155,7 @@ export default class Parameter extends Component {
...
@@ -155,7 +155,7 @@ export default class Parameter extends Component {
let
body
=
{
let
body
=
{
setting
:
payload
setting
:
payload
}
}
this
.
setState
({
payload
:
body
})
this
.
setState
({
payload
:
body
,
buttonError
:
false
})
api
.
create
().
checkUploadParameter
(
body
).
then
(
response
=>
{
api
.
create
().
checkUploadParameter
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
!==
null
)
{
if
(
response
.
data
!==
null
)
{
...
@@ -733,7 +733,7 @@ export default class Parameter extends Component {
...
@@ -733,7 +733,7 @@ export default class Parameter extends Component {
{
this
.
state
.
visibleUpload
&&
(
{
this
.
state
.
visibleUpload
&&
(
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
<
div
className
=
"popup-panel grid grid-2x
"
style
=
{{
backgroundColor
:
'#51c6ea'
,
height
:
64
,
borderTopRightRadius
:
8
,
borderTopLeftRadius
:
8
}}
>
<
div
className
=
"popup-panel grid grid-2x
main-color"
style
=
{{
height
:
64
,
borderTopRightRadius
:
8
,
borderTopLeftRadius
:
8
}}
>
<
div
className
=
"col-1"
style
=
{{
maxWidth
:
"inherit"
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
className
=
"col-1"
style
=
{{
maxWidth
:
"inherit"
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
className
=
"popup-title"
>
<
div
className
=
"popup-title"
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
16
,
fontWeight
:
'bold'
}}
>
Upload
File
<
/span
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
16
,
fontWeight
:
'bold'
}}
>
Upload
File
<
/span
>
...
...
src/container/MasterData/ReportItems.js
View file @
f25eb3a5
...
@@ -58,7 +58,7 @@ export default class ReportItems extends Component {
...
@@ -58,7 +58,7 @@ export default class ReportItems extends Component {
description
:
item
[
3
],
description
:
item
[
3
],
parent
:
item
[
4
],
parent
:
item
[
4
],
uom
:
item
[
5
],
uom
:
item
[
5
],
weight
:
item
[
6
]
,
weight
:
String
(
item
[
6
])
,
type_report
:
item
[
7
],
type_report
:
item
[
7
],
formula
:
item
[
8
],
formula
:
item
[
8
],
condition_it_should_be
:
item
[
9
],
condition_it_should_be
:
item
[
9
],
...
@@ -71,7 +71,7 @@ export default class ReportItems extends Component {
...
@@ -71,7 +71,7 @@ export default class ReportItems extends Component {
let
body
=
{
let
body
=
{
item_report
:
payload
item_report
:
payload
}
}
this
.
setState
({
payload
:
body
})
this
.
setState
({
payload
:
body
,
buttonError
:
false
})
api
.
create
().
checkUploadReportItems
(
body
).
then
(
response
=>
{
api
.
create
().
checkUploadReportItems
(
body
).
then
(
response
=>
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
console
.
log
(
response
)
console
.
log
(
response
)
...
@@ -867,7 +867,7 @@ export default class ReportItems extends Component {
...
@@ -867,7 +867,7 @@ export default class ReportItems extends Component {
{
this
.
state
.
visibleUpload
&&
(
{
this
.
state
.
visibleUpload
&&
(
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
<
div
className
=
"popup-panel grid grid-2x
"
style
=
{{
backgroundColor
:
'#51c6ea'
,
height
:
64
,
borderTopRightRadius
:
8
,
borderTopLeftRadius
:
8
}}
>
<
div
className
=
"popup-panel grid grid-2x
main-color"
style
=
{{
height
:
64
,
borderTopRightRadius
:
8
,
borderTopLeftRadius
:
8
}}
>
<
div
className
=
"col-1"
style
=
{{
maxWidth
:
"inherit"
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
className
=
"col-1"
style
=
{{
maxWidth
:
"inherit"
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
className
=
"popup-title"
>
<
div
className
=
"popup-title"
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
16
,
fontWeight
:
'bold'
}}
>
Upload
File
<
/span
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
16
,
fontWeight
:
'bold'
}}
>
Upload
File
<
/span
>
...
...
src/container/MasterData/UnitBisnis.js
View file @
f25eb3a5
...
@@ -62,7 +62,7 @@ export default class UnitBisnis extends Component {
...
@@ -62,7 +62,7 @@ export default class UnitBisnis extends Component {
let
body
=
{
let
body
=
{
business_unit
:
payload
business_unit
:
payload
}
}
this
.
setState
({
payload
:
body
})
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
.
status
===
"success"
)
{
let
dataRow
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
let
dataRow
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
...
@@ -492,7 +492,7 @@ export default class UnitBisnis extends Component {
...
@@ -492,7 +492,7 @@ export default class UnitBisnis extends Component {
{
this
.
state
.
visibleUpload
&&
(
{
this
.
state
.
visibleUpload
&&
(
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
<
div
className
=
"popup-panel grid grid-2x
"
style
=
{{
backgroundColor
:
'#51c6ea'
,
height
:
64
,
borderTopRightRadius
:
8
,
borderTopLeftRadius
:
8
}}
>
<
div
className
=
"popup-panel grid grid-2x
main-color"
style
=
{{
height
:
64
,
borderTopRightRadius
:
8
,
borderTopLeftRadius
:
8
}}
>
<
div
className
=
"col-1"
style
=
{{
maxWidth
:
"inherit"
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
className
=
"col-1"
style
=
{{
maxWidth
:
"inherit"
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
className
=
"popup-title"
>
<
div
className
=
"popup-title"
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
16
,
fontWeight
:
'bold'
}}
>
Upload
File
<
/span
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
16
,
fontWeight
:
'bold'
}}
>
Upload
File
<
/span
>
...
...
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