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
0dba9232
Commit
0dba9232
authored
Oct 12, 2020
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tes
parent
702014bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
OperatingIndicator.js
src/container/OprIndicator/OperatingIndicator.js
+4
-2
No files found.
src/container/OprIndicator/OperatingIndicator.js
View file @
0dba9232
...
@@ -42,7 +42,8 @@ export default class OperatingIndicator extends Component {
...
@@ -42,7 +42,8 @@ export default class OperatingIndicator extends Component {
buttonEdit
:
true
,
buttonEdit
:
true
,
buttonDelete
:
true
,
buttonDelete
:
true
,
lastPeriod
:
''
,
lastPeriod
:
''
,
latestPeriode
:
''
latestPeriode
:
''
,
statusDetail
:
''
}
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
}
}
...
@@ -317,6 +318,7 @@ export default class OperatingIndicator extends Component {
...
@@ -317,6 +318,7 @@ export default class OperatingIndicator extends Component {
let
index
=
this
.
state
.
dataReport
.
findIndex
((
val
)
=>
val
.
report_name
==
item
[
1
])
let
index
=
this
.
state
.
dataReport
.
findIndex
((
val
)
=>
val
.
report_name
==
item
[
1
])
if
(
index
!==
-
1
)
{
if
(
index
!==
-
1
)
{
this
.
setState
({
this
.
setState
({
statusDetail
:
String
(
item
[
2
]).
toLocaleLowerCase
(),
dataDetail
:
{
...
this
.
state
.
dataReport
[
index
],
periode
:
this
.
state
.
periode
.
periode
,
operatingIndID
:
this
.
state
.
operatingIndID
,
company
:
this
.
state
.
company
},
dataDetail
:
{
...
this
.
state
.
dataReport
[
index
],
periode
:
this
.
state
.
periode
.
periode
,
operatingIndID
:
this
.
state
.
operatingIndID
,
company
:
this
.
state
.
company
},
visibleOperatingIndicator
:
false
,
visibleOperatingIndicator
:
false
,
visibleDetailOpt
:
true
,
visibleDetailOpt
:
true
,
...
@@ -577,7 +579,7 @@ export default class OperatingIndicator extends Component {
...
@@ -577,7 +579,7 @@ export default class OperatingIndicator extends Component {
})}
})}
getReport
=
{()
=>
this
.
getOperatingID
()}
getReport
=
{()
=>
this
.
getOperatingID
()}
saveOperatingInd
=
{
this
.
saveOperatingInd
.
bind
(
this
)}
saveOperatingInd
=
{
this
.
saveOperatingInd
.
bind
(
this
)}
isSubmit
=
{
this
.
state
.
isSubmit
}
isSubmit
=
{
this
.
state
.
statusDetail
==
'closed'
?
false
:
this
.
state
.
isSubmit
}
permission
=
{{
create
:
this
.
state
.
buttonCreate
,
edit
:
this
.
state
.
buttonEdit
,
delete
:
this
.
state
.
buttonDelete
}}
permission
=
{{
create
:
this
.
state
.
buttonCreate
,
edit
:
this
.
state
.
buttonEdit
,
delete
:
this
.
state
.
buttonDelete
}}
/
>
/
>
}
}
...
...
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