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
3ed6a6f8
Commit
3ed6a6f8
authored
Aug 04, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue Loading CAT
parent
d012efdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
CorporateAnnualTargetMR.js
src/container/MonthlyReport/CorporateAnnualTargetMR.js
+6
-5
No files found.
src/container/MonthlyReport/CorporateAnnualTargetMR.js
View file @
3ed6a6f8
...
...
@@ -509,7 +509,8 @@ export default class CorporateAnnualTargetMR extends Component {
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
onClickClose
()
this
.
props
.
saveToMonthlyReport
()
// this.props.onClickClose()
// this.props.getReport()
}
else
{
this
.
setState
({
visibleAlertSave
:
true
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
...
...
@@ -876,9 +877,9 @@ export default class CorporateAnnualTargetMR extends Component {
let
perfomanceScoreColor
=
'#fff'
if
(
listPerfomanceDefault
.
length
>
0
)
{
listPerfomanceDefault
.
map
((
item
,
index
)
=>
{
console
.
log
(
Number
(
lastTotal
))
console
.
log
(
Number
(
item
.
min_value
))
console
.
log
(
Number
(
item
.
max_value
))
//
console.log(Number(lastTotal))
//
console.log(Number(item.min_value))
//
console.log(Number(item.max_value))
if
(
Number
(
lastTotal
)
>=
Number
(
item
.
min_value
)
&&
Number
(
lastTotal
)
<=
Number
(
item
.
max_value
))
{
console
.
log
(
'masuk'
)
perfomanceScore
=
item
.
description
...
...
@@ -1434,7 +1435,7 @@ export default class CorporateAnnualTargetMR extends Component {
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
totalScore
).
toFixed
(
2
)
if
(
tableMeta
.
rowIndex
==
dataTable2
.
length
-
1
)
{
someXXX
=
Number
(
totalScore
).
toFixed
(
2
)
console
.
log
(
someXXX
)
//
console.log(someXXX)
}
return
null
}
else
{
...
...
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