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
ac9aac2c
Commit
ac9aac2c
authored
Sep 29, 2020
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'didam' into 'master'
Didam See merge request
!399
parents
3243630e
f1735a80
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
127 additions
and
60 deletions
+127
-60
index.js
src/api/index.js
+2
-2
BudgetTahunan.js
src/container/BudgetTahunan.js
+88
-21
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+37
-37
No files found.
src/api/index.js
View file @
ac9aac2c
...
...
@@ -24,7 +24,7 @@ const create = (type = "") => {
'Content-Type'
:
'application/json'
,
},
// 60 second timeout...
timeout
:
3
0000
timeout
:
6
0000
})
break
;
case
'UPLOAD'
:
...
...
@@ -38,7 +38,7 @@ const create = (type = "") => {
'Content-Type'
:
'application/json'
,
},
// 40 second timeout...
timeout
:
5
0000
timeout
:
6
0000
})
break
;
default
:
...
...
src/container/BudgetTahunan.js
View file @
ac9aac2c
This diff is collapsed.
Click to expand it.
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
ac9aac2c
...
...
@@ -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