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
68c1bc05
Commit
68c1bc05
authored
Feb 15, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into rifka
parents
dd87395c
c62d2739
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
31 deletions
+30
-31
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+24
-24
OperatingIndicatorMR.js
src/container/MonthlyReport/OperatingIndicatorMR.js
+6
-7
No files found.
src/container/Laporan/TableSubHolding.js
View file @
68c1bc05
This diff is collapsed.
Click to expand it.
src/container/MonthlyReport/OperatingIndicatorMR.js
View file @
68c1bc05
...
@@ -81,9 +81,8 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -81,9 +81,8 @@ export default class OperatingIndicatorMR extends Component {
handleViewOnly
()
{
handleViewOnly
()
{
let
checkCreate
=
this
.
props
.
permission
.
create
let
checkCreate
=
this
.
props
.
permission
.
create
let
checkEdit
=
this
.
props
.
permission
.
edit
let
checkEdit
=
this
.
props
.
permission
.
edit
let
checkIsSubmit
=
this
.
props
.
isSubmit
this
.
setState
({
viewOnly
:
checkCreate
&&
checkEdit
&&
checkIsSubmit
})
this
.
setState
({
viewOnly
:
checkCreate
&&
checkEdit
})
}
}
handleGetFor
(
type
)
{
handleGetFor
(
type
)
{
...
@@ -1102,7 +1101,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -1102,7 +1101,7 @@ export default class OperatingIndicatorMR extends Component {
placeholder
=
""
placeholder
=
""
decimalScale
=
{
1
}
decimalScale
=
{
1
}
fixedDecimalScale
=
{
1
}
fixedDecimalScale
=
{
1
}
disabled
=
{
!
this
.
props
.
permission
.
create
||
!
this
.
props
.
permission
.
edit
||
!
this
.
props
.
isSubmit
||
this
.
state
.
get_for
==
'view'
}
disabled
=
{
!
this
.
props
.
permission
.
create
||
!
this
.
props
.
permission
.
edit
||
this
.
state
.
get_for
==
'view'
}
value
=
{
Number
(
tableMeta
.
rowData
[
10
]).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
10
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
...
@@ -1649,7 +1648,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -1649,7 +1648,7 @@ export default class OperatingIndicatorMR extends Component {
<
/div
>
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
<
div
style
=
{{
width
:
'50%'
}}
>
<
div
style
=
{{
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
<
div
style
=
{{
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
{
this
.
state
.
get_for
==
'edit'
&&
(
this
.
props
.
permission
.
create
||
this
.
props
.
permission
.
edit
)
&&
this
.
props
.
isSubmit
&&
<
a
data
-
tip
=
{
'Download Template'
}
data
-
for
=
"template"
>
{
this
.
state
.
get_for
==
'edit'
&&
(
this
.
props
.
permission
.
create
||
this
.
props
.
permission
.
edit
)
&&
<
a
data
-
tip
=
{
'Download Template'
}
data
-
for
=
"template"
>
<
button
<
button
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
...
@@ -1663,7 +1662,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -1663,7 +1662,7 @@ export default class OperatingIndicatorMR extends Component {
<
/button
>
<
/button
>
<
/a>
}
<
/a>
}
<
ReactTooltip
border
=
{
true
}
id
=
"template"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
ReactTooltip
border
=
{
true
}
id
=
"template"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
{
this
.
state
.
get_for
==
'edit'
&&
(
this
.
props
.
permission
.
create
||
this
.
props
.
permission
.
edit
)
&&
this
.
props
.
isSubmit
&&
<
a
data
-
tip
=
{
'Upload'
}
data
-
for
=
"upload"
>
{
this
.
state
.
get_for
==
'edit'
&&
(
this
.
props
.
permission
.
create
||
this
.
props
.
permission
.
edit
)
&&
<
a
data
-
tip
=
{
'Upload'
}
data
-
for
=
"upload"
>
<
button
<
button
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
...
@@ -1733,8 +1732,8 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -1733,8 +1732,8 @@ export default class OperatingIndicatorMR extends Component {
<
/div
>
<
/div
>
<
/button
>
<
/button
>
<
/div
>
<
/div
>
{
!
this
.
state
.
emptyData
&&
(
this
.
props
.
permission
.
create
||
this
.
props
.
permission
.
edit
)
&&
this
.
props
.
isSubmit
&&
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
,
paddingRight
:
2
}}
>
{
!
this
.
state
.
emptyData
&&
(
this
.
props
.
permission
.
create
||
this
.
props
.
permission
.
edit
)
&&
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
,
paddingRight
:
2
}}
>
{
this
.
state
.
get_for
==
'view'
&&
<
button
{
this
.
state
.
get_for
==
'view'
&&
this
.
state
.
viewOnly
&&
<
button
type
=
"button"
type
=
"button"
onClick
=
{()
=>
{
onClick
=
{()
=>
{
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
setState
({
loading
:
true
},
()
=>
{
...
...
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