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
d373357d
Commit
d373357d
authored
Sep 29, 2020
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2a57fbd4
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
125 additions
and
58 deletions
+125
-58
BudgetTahunan.js
src/container/BudgetTahunan.js
+88
-21
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+37
-37
No files found.
src/container/BudgetTahunan.js
View file @
d373357d
This diff is collapsed.
Click to expand it.
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
d373357d
...
...
@@ -434,29 +434,29 @@ export default class CorporateAnnualTarget extends Component {
// console.log(i[9] == null? "" : i[9].value)
data
.
push
({
"item_report_id"
:
i
[
1
],
"item_name"
:
i
[
1
]
!
==
""
?
null
:
String
(
i
[
6
]),
"parent"
:
i
[
1
]
!
==
""
?
null
:
i
[
2
],
"item_name"
:
i
[
1
]
==
""
?
null
:
String
(
i
[
6
]),
"parent"
:
i
[
1
]
==
""
?
null
:
i
[
2
],
"weight"
:
String
(
i
[
7
]),
"uom"
:
String
(
i
[
8
]),
"kpi_type"
:
i
[
9
]
==
null
?
""
:
i
[
9
].
value
,
"max_ach"
:
i
[
10
]
==
null
?
""
:
i
[
10
].
value
,
"formula"
:
i
[
11
]
==
null
?
""
:
i
[
11
].
value
,
"total_actual_before"
:
String
(
i
[
12
]),
"january"
:
String
(
i
[
13
]),
"february"
:
String
(
i
[
14
]),
"march"
:
String
(
i
[
15
]),
"april"
:
String
(
i
[
16
]),
"may"
:
String
(
i
[
17
]),
"june"
:
String
(
i
[
18
]),
"july"
:
String
(
i
[
19
]),
"august"
:
String
(
i
[
20
]),
"september"
:
String
(
i
[
21
]),
"october"
:
String
(
i
[
22
]),
"november"
:
String
(
i
[
23
]),
"december"
:
String
(
i
[
24
]),
"total_current_year"
:
String
(
i
[
25
]),
"total_next_year"
:
String
(
i
[
26
]),
"total_more_year"
:
String
(
i
[
27
]),
"total_actual_before"
:
String
(
i
[
12
])
==
""
?
"0,0"
:
String
(
i
(
12
))
,
"january"
:
String
(
i
[
13
])
==
""
?
"0,0"
:
String
(
i
[
13
])
,
"february"
:
String
(
i
[
14
])
==
""
?
"0,0"
:
String
(
i
[
14
])
,
"march"
:
String
(
i
[
15
])
==
""
?
"0,0"
:
String
(
i
[
15
])
,
"april"
:
String
(
i
[
16
])
==
""
?
"0,0"
:
String
(
i
[
16
])
,
"may"
:
String
(
i
[
17
])
==
""
?
"0,0"
:
String
(
i
[
17
])
,
"june"
:
String
(
i
[
18
])
==
""
?
"0,0"
:
String
(
i
[
18
])
,
"july"
:
String
(
i
[
19
])
==
""
?
"0,0"
:
String
(
i
[
19
])
,
"august"
:
String
(
i
[
20
])
==
""
?
"0,0"
:
String
(
i
[
20
])
,
"september"
:
String
(
i
[
21
])
==
""
?
"0,0"
:
String
(
i
[
21
])
,
"october"
:
String
(
i
[
22
])
==
""
?
"0,0"
:
String
(
i
[
22
])
,
"november"
:
String
(
i
[
23
])
==
""
?
"0,0"
:
String
(
i
[
23
])
,
"december"
:
String
(
i
[
24
])
==
""
?
"0,0"
:
String
(
i
[
24
])
,
"total_current_year"
:
String
(
i
[
25
])
==
""
?
"0,0"
:
String
(
i
[
25
])
,
"total_next_year"
:
String
(
i
[
26
])
==
""
?
"0,0"
:
String
(
i
[
26
])
,
"total_more_year"
:
String
(
i
[
27
])
==
""
?
"0,0"
:
String
(
i
[
27
])
,
"strategic"
:
String
(
i
[
28
]),
"pic"
:
String
(
i
[
29
])
})
...
...
@@ -472,7 +472,7 @@ export default class CorporateAnnualTarget extends Component {
}
let
totalWeight
=
0
this
.
state
.
dataTable
.
map
((
items
,
indexs
)
=>
{
if
(
items
[
0
]
==
3
)
{
if
(
items
[
0
]
!==
1
||
items
[
0
]
!==
4
)
{
console
.
log
(
items
[
7
])
totalWeight
+=
Number
(
items
[
7
].
replace
(
'%'
,
''
))
}
...
...
@@ -503,29 +503,29 @@ export default class CorporateAnnualTarget extends Component {
// console.log(i[9] == null? "" : i[9].value)
data
.
push
({
"item_report_id"
:
i
[
1
],
"item_name"
:
i
[
1
]
!
==
""
?
null
:
String
(
i
[
6
]),
"parent"
:
i
[
1
]
!
==
""
?
null
:
i
[
2
],
"item_name"
:
i
[
1
]
==
""
?
null
:
String
(
i
[
6
]),
"parent"
:
i
[
1
]
==
""
?
null
:
i
[
2
],
"weight"
:
String
(
i
[
7
]),
"uom"
:
String
(
i
[
8
]),
"kpi_type"
:
i
[
9
]
==
null
?
""
:
i
[
9
].
value
,
"max_ach"
:
i
[
10
]
==
null
?
""
:
i
[
10
].
value
,
"formula"
:
i
[
11
]
==
null
?
""
:
i
[
11
].
value
,
"total_actual_before"
:
String
(
i
[
12
]),
"january"
:
String
(
i
[
13
]),
"february"
:
String
(
i
[
14
]),
"march"
:
String
(
i
[
15
]),
"april"
:
String
(
i
[
16
]),
"may"
:
String
(
i
[
17
]),
"june"
:
String
(
i
[
18
]),
"july"
:
String
(
i
[
19
]),
"august"
:
String
(
i
[
20
]),
"september"
:
String
(
i
[
21
]),
"october"
:
String
(
i
[
22
]),
"november"
:
String
(
i
[
23
]),
"december"
:
String
(
i
[
24
]),
"total_current_year"
:
String
(
i
[
25
]),
"total_next_year"
:
String
(
i
[
26
]),
"total_more_year"
:
String
(
i
[
27
]),
"total_actual_before"
:
String
(
i
[
12
])
==
""
?
"0,0"
:
String
(
i
(
12
))
,
"january"
:
String
(
i
[
13
])
==
""
?
"0,0"
:
String
(
i
[
13
])
,
"february"
:
String
(
i
[
14
])
==
""
?
"0,0"
:
String
(
i
[
14
])
,
"march"
:
String
(
i
[
15
])
==
""
?
"0,0"
:
String
(
i
[
15
])
,
"april"
:
String
(
i
[
16
])
==
""
?
"0,0"
:
String
(
i
[
16
])
,
"may"
:
String
(
i
[
17
])
==
""
?
"0,0"
:
String
(
i
[
17
])
,
"june"
:
String
(
i
[
18
])
==
""
?
"0,0"
:
String
(
i
[
18
])
,
"july"
:
String
(
i
[
19
])
==
""
?
"0,0"
:
String
(
i
[
19
])
,
"august"
:
String
(
i
[
20
])
==
""
?
"0,0"
:
String
(
i
[
20
])
,
"september"
:
String
(
i
[
21
])
==
""
?
"0,0"
:
String
(
i
[
21
])
,
"october"
:
String
(
i
[
22
])
==
""
?
"0,0"
:
String
(
i
[
22
])
,
"november"
:
String
(
i
[
23
])
==
""
?
"0,0"
:
String
(
i
[
23
])
,
"december"
:
String
(
i
[
24
])
==
""
?
"0,0"
:
String
(
i
[
24
])
,
"total_current_year"
:
String
(
i
[
25
])
==
""
?
"0,0"
:
String
(
i
[
25
])
,
"total_next_year"
:
String
(
i
[
26
])
==
""
?
"0,0"
:
String
(
i
[
26
])
,
"total_more_year"
:
String
(
i
[
27
])
==
""
?
"0,0"
:
String
(
i
[
27
])
,
"strategic"
:
String
(
i
[
28
]),
"pic"
:
String
(
i
[
29
])
})
...
...
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