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
7d79b770
Commit
7d79b770
authored
Aug 14, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue Parameter
parent
e7215029
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+4
-4
No files found.
src/container/MasterData/Parameter/CreateParameter.js
View file @
7d79b770
...
...
@@ -624,13 +624,13 @@ export default class CreateParameter extends Component {
"end_date"
:
this
.
state
.
tempData
.
end_date
}
console
.
log
(
body
);
this
.
props
.
updateParameter
(
body
)
//
this.props.updateParameter(body)
}
createParameter
()
{
let
char
=
this
.
state
.
value
let
arrayChar
=
char
.
split
(
''
);
//
console.log(char);
console
.
log
(
char
);
let
body
=
{
"setting_group_id"
:
this
.
state
.
getTypes
.
setting_group_id
,
"setting_type_id"
:
this
.
state
.
getParameter
.
setting_type_id
,
...
...
@@ -640,14 +640,14 @@ export default class CreateParameter extends Component {
"orders"
:
this
.
state
.
order
,
"value"
:
this
.
state
.
value
,
// convert IDR to IDR mn
"value"
:
this
.
state
.
enableReportName
?
this
.
state
.
value
.
includes
(
"."
)
||
arrayChar
.
length
==
2
?
this
.
state
.
value
:
Number
((
this
.
state
.
value
)
/
1000
).
toFixed
(
1
)
:
this
.
state
.
value
,
"value"
:
this
.
state
.
enableReportName
?
this
.
state
.
value
.
includes
(
"."
)
||
arrayChar
.
length
==
2
?
this
.
state
.
value
:
this
.
state
.
value
/
1000
:
this
.
state
.
value
,
"max_value"
:
this
.
state
.
maxValue
,
"min_value"
:
this
.
state
.
minValue
,
"start_date"
:
this
.
state
.
startDate
,
"end_date"
:
this
.
state
.
endDate
}
console
.
log
(
body
);
this
.
props
.
createParameter
(
body
)
//
this.props.createParameter(body)
}
render
()
{
...
...
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