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
510712b0
Commit
510712b0
authored
Mar 22, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'riri' into 'master'
rolling See merge request
!1305
parents
8fff5844
3aeca67e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
OperatingIndicatorMR.js
src/container/MonthlyReport/OperatingIndicatorMR.js
+6
-1
OperatingIndicator.js
src/container/OprIndicator/OperatingIndicator.js
+2
-2
OperatingIndicatorRO.js
src/container/RollingOutlook/OperatingIndicatorRO.js
+10
-3
No files found.
src/container/MonthlyReport/OperatingIndicatorMR.js
View file @
510712b0
...
...
@@ -81,8 +81,13 @@ export default class OperatingIndicatorMR extends Component {
handleViewOnly
()
{
let
checkCreate
=
this
.
props
.
permission
.
create
let
checkEdit
=
this
.
props
.
permission
.
edit
let
checkStatus
=
true
this
.
setState
({
viewOnly
:
checkCreate
&&
checkEdit
})
if
(
String
(
this
.
props
.
data
.
status
).
toLocaleUpperCase
()
===
'CLOSED'
)
{
checkStatus
=
false
}
this
.
setState
({
viewOnly
:
checkCreate
&&
checkEdit
&&
checkStatus
})
}
handleGetFor
(
type
)
{
...
...
src/container/OprIndicator/OperatingIndicator.js
View file @
510712b0
...
...
@@ -333,7 +333,7 @@ export default class OperatingIndicator extends Component {
String
(
item
[
1
]).
toLocaleLowerCase
().
includes
(
'dec'
)
?
12
:
null
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
,
status
:
item
[
2
]
},
visibleOperatingIndicator
:
false
,
visibleDetailOpt
:
false
,
visibleDetailMonthly
:
true
,
...
...
@@ -348,7 +348,7 @@ export default class OperatingIndicator extends Component {
String
(
item
[
1
]).
toLocaleLowerCase
().
includes
(
'q3'
)
?
"q3"
:
null
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
,
status
:
item
[
2
]
},
visibleOperatingIndicator
:
false
,
visibleDetailOpt
:
false
,
visibleDetailMonthly
:
false
,
...
...
src/container/RollingOutlook/OperatingIndicatorRO.js
View file @
510712b0
...
...
@@ -69,8 +69,15 @@ export default class OperatingIndicatorRO extends Component {
handleViewOnly
()
{
let
checkCreate
=
this
.
props
.
permission
.
create
let
checkEdit
=
this
.
props
.
permission
.
edit
let
checkStatus
=
true
this
.
setState
({
viewOnly
:
checkCreate
&&
checkEdit
})
console
.
log
(
this
.
props
.
data
.
status
);
if
(
String
(
this
.
props
.
data
.
status
).
toLocaleUpperCase
()
===
'CLOSED'
)
{
checkStatus
=
false
}
console
.
log
(
checkStatus
);
this
.
setState
({
viewOnly
:
checkCreate
&&
checkEdit
&&
checkStatus
})
}
handleGetFor
(
type
)
{
...
...
@@ -2120,7 +2127,7 @@ export default class OperatingIndicatorRO extends Component {
<
/button
>
<
/div
>
{
!
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'
&&
this
.
state
.
viewOnly
&&
{
this
.
state
.
get_for
==
'view'
&&
<
button
type
=
"button"
onClick
=
{()
=>
{
...
...
@@ -2354,7 +2361,7 @@ export default class OperatingIndicatorRO extends Component {
this
.
setState
({
uploadStatus
:
'idle'
,
percentage
:
'0'
})
}}
onUpload
=
{()
=>
{
String
(
this
.
state
.
judulColumn
).
includes
(
"TEMPLATE"
)
&&
String
(
this
.
state
.
judulColumn
).
includes
(
"UPLOAD"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"ROLLING"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"OUTLOOK"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"OPERATING"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"INDICATOR"
)
?
String
(
this
.
state
.
judulColumn
).
includes
(
"TEMPLATE"
)
&&
String
(
this
.
state
.
judulColumn
).
includes
(
"UPLOAD"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"ROLLING"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"OUTLOOK"
)
&&
String
(
this
.
state
.
judul
).
includes
(
String
(
this
.
props
.
quartal
).
toLocaleUpperCase
())
&&
String
(
this
.
state
.
judul
).
includes
(
"OPERATING"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"INDICATOR"
)
?
this
.
checkUpload
()
:
this
.
setState
({
alert
:
true
,
messageAlert
:
"Invalid Template"
,
tipeAlert
:
'warning'
})
}}
...
...
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