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
1fec0e2c
Commit
1fec0e2c
authored
Mar 22, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tambahin
parent
3aeca67e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
140 additions
and
130 deletions
+140
-130
OperatingIndicatorRO.js
src/container/RollingOutlook/OperatingIndicatorRO.js
+140
-130
No files found.
src/container/RollingOutlook/OperatingIndicatorRO.js
View file @
1fec0e2c
...
...
@@ -810,47 +810,47 @@ export default class OperatingIndicatorRO extends Component {
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
/
>
}
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
}}
/
>
}
/
>
<
/div
>
:
//
tableMeta.rowData[0] == 2 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
value={Number(handleParent(tableMeta)).toFixed(1)}
//
disabled={true}
//
decimalScale={1}
//
/>
//
}
//
/>
//
</div>
//
:
//
(tableMeta.rowData[0] == 5 || tableMeta.rowData[0] == 6 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
value={Number(handleFormula(tableMeta)).toFixed(1)}
//
disabled={true}
//
decimalScale={1}
//
onBlur={(event) => {
//
handleChange(event.target.value, tableMeta)
//
}}
//
/>
//
}
//
/>
//
</div>
//
:
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -861,7 +861,8 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
Number
(
value
).
toFixed
(
1
)}
// value={Number(value).toFixed(1)}
value
=
{
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
disabled
=
{
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
...
...
@@ -871,7 +872,8 @@ export default class OperatingIndicatorRO extends Component {
/
>
}
/
>
<
/div>
)
<
/div
>
// )
}
<
/div
>
)
...
...
@@ -904,47 +906,47 @@ export default class OperatingIndicatorRO extends Component {
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
/
>
}
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
}}
/
>
}
/
>
<
/div
>
:
//
tableMeta.rowData[0] == 2 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
value={Number(handleParent(tableMeta)).toFixed(1)}
//
disabled={true}
//
decimalScale={1}
//
/>
//
}
//
/>
//
</div>
//
:
//
(tableMeta.rowData[0] == 5 || tableMeta.rowData[0] == 6 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
value={Number(handleFormula(tableMeta)).toFixed(1)}
//
disabled={true}
//
decimalScale={1}
//
onBlur={(event) => {
//
handleChange(event.target.value, tableMeta)
//
}}
//
/>
//
}
//
/>
//
</div>
//
:
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -955,7 +957,8 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
Number
(
value
).
toFixed
(
1
)}
// value={Number(value).toFixed(1)}
value
=
{
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
disabled
=
{
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
...
...
@@ -965,7 +968,8 @@ export default class OperatingIndicatorRO extends Component {
/
>
}
/
>
<
/div>
)
<
/div
>
// )
}
<
/div
>
)
...
...
@@ -997,47 +1001,47 @@ export default class OperatingIndicatorRO extends Component {
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
/
>
}
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
}}
/
>
}
/
>
<
/div
>
:
//
tableMeta.rowData[0] == 2 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
value={Number(handleParent(tableMeta)).toFixed(1)}
//
disabled={true}
//
decimalScale={1}
//
/>
//
}
//
/>
//
</div>
//
:
//
(tableMeta.rowData[0] == 5 || tableMeta.rowData[0] == 6 ?
//
<div style={{ flex: 1 }}>
//
<FormControlLabel
//
style={{ margin: 0 }}
//
value={value}
//
control={
//
<NumberFormat
//
thousandSeparator={true}
//
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
//
type="text"
//
placeholder=""
//
value={Number(handleFormula(tableMeta)).toFixed(1)}
//
disabled={true}
//
decimalScale={1}
//
onBlur={(event) => {
//
handleChange(event.target.value, tableMeta)
//
}}
//
/>
//
}
//
/>
//
</div>
//
:
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1048,7 +1052,8 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
Number
(
value
).
toFixed
(
1
)}
value
=
{
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
)}
// value={Number(value).toFixed(1)}
decimalScale
=
{
1
}
disabled
=
{
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
...
...
@@ -1058,7 +1063,8 @@ export default class OperatingIndicatorRO extends Component {
/
>
}
/
>
<
/div>
)
<
/div
>
// )
}
<
/div
>
)
...
...
@@ -2052,7 +2058,11 @@ export default class OperatingIndicatorRO extends Component {
borderColor
:
'transparent'
,
margin
:
5
}}
onClick
=
{()
=>
this
.
downloadTemplate
()}
onClick
=
{()
=>
{
// this.setState({loading: true}, () => {
this
.
downloadTemplate
()
// })
}}
>
<
img
src
=
{
Images
.
template
}
/
>
<
/button
>
...
...
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