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
68148b67
Commit
68148b67
authored
Aug 04, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/riri' into 'ENV-DEV'
Issue Loading CAT See merge request
!1955
parents
3966ea81
3ed6a6f8
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 @
68148b67
...
@@ -509,7 +509,8 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -509,7 +509,8 @@ export default class CorporateAnnualTargetMR extends Component {
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
onClickClose
()
this
.
props
.
saveToMonthlyReport
()
// this.props.onClickClose()
// this.props.getReport()
// this.props.getReport()
}
else
{
}
else
{
this
.
setState
({
visibleAlertSave
:
true
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
this
.
setState
({
visibleAlertSave
:
true
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
...
@@ -876,9 +877,9 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -876,9 +877,9 @@ export default class CorporateAnnualTargetMR extends Component {
let
perfomanceScoreColor
=
'#fff'
let
perfomanceScoreColor
=
'#fff'
if
(
listPerfomanceDefault
.
length
>
0
)
{
if
(
listPerfomanceDefault
.
length
>
0
)
{
listPerfomanceDefault
.
map
((
item
,
index
)
=>
{
listPerfomanceDefault
.
map
((
item
,
index
)
=>
{
console
.
log
(
Number
(
lastTotal
))
//
console.log(Number(lastTotal))
console
.
log
(
Number
(
item
.
min_value
))
//
console.log(Number(item.min_value))
console
.
log
(
Number
(
item
.
max_value
))
//
console.log(Number(item.max_value))
if
(
Number
(
lastTotal
)
>=
Number
(
item
.
min_value
)
&&
Number
(
lastTotal
)
<=
Number
(
item
.
max_value
))
{
if
(
Number
(
lastTotal
)
>=
Number
(
item
.
min_value
)
&&
Number
(
lastTotal
)
<=
Number
(
item
.
max_value
))
{
console
.
log
(
'masuk'
)
console
.
log
(
'masuk'
)
perfomanceScore
=
item
.
description
perfomanceScore
=
item
.
description
...
@@ -1434,7 +1435,7 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1434,7 +1435,7 @@ export default class CorporateAnnualTargetMR extends Component {
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
totalScore
).
toFixed
(
2
)
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
totalScore
).
toFixed
(
2
)
if
(
tableMeta
.
rowIndex
==
dataTable2
.
length
-
1
)
{
if
(
tableMeta
.
rowIndex
==
dataTable2
.
length
-
1
)
{
someXXX
=
Number
(
totalScore
).
toFixed
(
2
)
someXXX
=
Number
(
totalScore
).
toFixed
(
2
)
console
.
log
(
someXXX
)
//
console.log(someXXX)
}
}
return
null
return
null
}
else
{
}
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