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
f1978c97
Commit
f1978c97
authored
May 13, 2026
by
Hardiansyah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix blank page olpa
parent
74a9e68f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
28 deletions
+29
-28
CorporateAnnualTargetOLPA.js
src/container/OutlookPA/CorporateAnnualTargetOLPA.js
+27
-26
OutlookPA.js
src/container/OutlookPA/OutlookPA.js
+1
-1
RollingOutlook.js
src/container/RollingOutlook/RollingOutlook.js
+1
-1
No files found.
src/container/OutlookPA/CorporateAnnualTargetOLPA.js
View file @
f1978c97
...
...
@@ -663,33 +663,34 @@ export default class CorporateAnnualTargetRO extends Component {
}
if
(
String
(
i
[
5
])
==
'revenue'
){
console
.
log
(
String
(
Number
(
i
[
22
]?.
formula
[
1
].
value
)
/
1000
))
const
value
=
i
[
22
]?.
formula
?.[
1
]?.
value
;
console
.
log
(
String
(
Number
(
value
??
0
)
/
1000
));
}
// if (this.state.defaultCurrencyUpload?.id == 2) {
data
.
push
({
"item_report_id"
:
i
[
1
]
==
""
||
i
[
1
]
==
null
?
0
:
i
[
1
],
"item_report"
:
String
(
i
[
5
]),
"weight"
:
String
(
i
[
6
]),
"uom"
:
String
(
i
[
7
]),
"kpi_type"
:
i
[
8
]
==
null
?
""
:
i
[
8
].
value
,
"max_ach"
:
i
[
9
]
==
null
?
""
:
i
[
9
].
value
,
"formula_ytd"
:
i
[
10
]
==
null
?
""
:
i
[
10
].
value
,
"january"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
11
])
:(
i
[
5
]
==
"ROIC"
?
String
(
i
[
11
].
value
):
String
(
Number
(
i
[
11
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
11
]),
"february"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
12
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
12
].
value
):
String
(
Number
(
i
[
12
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
12
]),
"march"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
13
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
13
].
value
):
String
(
Number
(
i
[
13
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
13
]),
"april"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
14
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
14
].
value
):
String
(
Number
(
i
[
14
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
14
]),
"may"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
15
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
15
].
value
):
String
(
Number
(
i
[
15
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
15
]),
"june"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
16
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
16
].
value
):
String
(
Number
(
i
[
16
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
16
]),
"july"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
17
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
17
].
value
):
String
(
Number
(
i
[
17
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
17
]),
"august"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
18
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
18
].
value
):
String
(
Number
(
i
[
18
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
18
]),
"september"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
19
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
19
].
value
):
String
(
Number
(
i
[
19
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
19
]),
"october"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
20
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
20
].
value
):
String
(
Number
(
i
[
20
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
20
]),
"november"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
21
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
21
].
value
):
String
(
Number
(
i
[
21
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
21
]),
"december"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
22
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
22
].
value
):
String
(
Number
(
i
[
22
]?.
formula
[
1
].
value
)
/
1000
))
:
String
(
i
[
22
]),
"total_current_year"
:
String
(
Number
(
i
[
23
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
23
])),
"strategic"
:
i
[
24
]
==
null
?
""
:
String
(
i
[
24
]),
"pic"
:
String
(
i
[
25
])
})
// if (this.state.defaultCurrencyUpload?.id == 2) {
data
.
push
({
"item_report_id"
:
i
[
1
]
==
""
||
i
[
1
]
==
null
?
0
:
i
[
1
],
"item_report"
:
String
(
i
[
5
]),
"weight"
:
String
(
i
[
6
]),
"uom"
:
String
(
i
[
7
]),
"kpi_type"
:
i
[
8
]
==
null
?
""
:
i
[
8
].
value
,
"max_ach"
:
i
[
9
]
==
null
?
""
:
i
[
9
].
value
,
"formula_ytd"
:
i
[
10
]
==
null
?
""
:
i
[
10
].
value
,
"january"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
11
])
:(
i
[
5
]
==
"ROIC"
?
String
(
i
[
11
].
value
):
String
(
Number
(
i
[
11
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
11
]),
"february"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
12
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
12
].
value
):
String
(
Number
(
i
[
12
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
12
]),
"march"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
13
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
13
].
value
):
String
(
Number
(
i
[
13
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
13
]),
"april"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
14
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
14
].
value
):
String
(
Number
(
i
[
14
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
14
]),
"may"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
15
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
15
].
value
):
String
(
Number
(
i
[
15
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
15
]),
"june"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
16
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
16
].
value
):
String
(
Number
(
i
[
16
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
16
]),
"july"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
17
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
17
].
value
):
String
(
Number
(
i
[
17
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
17
]),
"august"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
18
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
18
].
value
):
String
(
Number
(
i
[
18
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
18
]),
"september"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
19
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
19
].
value
):
String
(
Number
(
i
[
19
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
19
]),
"october"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
20
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
20
].
value
):
String
(
Number
(
i
[
20
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
20
]),
"november"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
21
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
21
].
value
):
String
(
Number
(
i
[
21
]?.
formula
[
0
].
value
)
/
1000
))
:
String
(
i
[
21
]),
"december"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
22
])
:
(
i
[
5
]
==
"ROIC"
?
String
(
i
[
22
].
value
):
String
(
Number
(
i
[
22
]?.
formula
[
1
].
value
)
/
1000
))
:
String
(
i
[
22
]),
"total_current_year"
:
String
(
Number
(
i
[
23
]))
==
""
?
"0.0"
:
String
(
Number
(
i
[
23
])),
"strategic"
:
i
[
24
]
==
null
?
""
:
String
(
i
[
24
]),
"pic"
:
String
(
i
[
25
])
})
// } else {
// data.push({
// "item_report_id": i[1] == "" || i[1] == null ? 0 : i[1],
...
...
src/container/OutlookPA/OutlookPA.js
View file @
f1978c97
...
...
@@ -316,7 +316,7 @@ export default class OutlookPA extends Component {
// console.log(response)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
listAttachment
:
response
.
data
.
data
})
this
.
setState
({
[
master_report_type_id
===
2
?
'listAttachmentCAT'
:
'listAttachment'
]
:
response
.
data
.
data
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
...
...
src/container/RollingOutlook/RollingOutlook.js
View file @
f1978c97
...
...
@@ -340,7 +340,7 @@ export default class RollingOutlook extends Component {
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
listAttachment
:
response
.
data
.
data
})
this
.
setState
({
[
master_report_type_id
===
2
?
'listAttachmentCAT'
:
'listAttachment'
]
:
response
.
data
.
data
})
}
}
// console.log(response);
...
...
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