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
da2511e6
Commit
da2511e6
authored
Oct 30, 2020
by
Rifka Kurnia Irfiana
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into rifka
parents
b830c08d
cc1081a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
BudgetTahunan.js
src/container/BudgetTahunan.js
+9
-3
No files found.
src/container/BudgetTahunan.js
View file @
da2511e6
...
@@ -173,7 +173,7 @@ export default class BudgetTahunan extends Component {
...
@@ -173,7 +173,7 @@ export default class BudgetTahunan extends Component {
"report_type"
:
"Master Budget"
,
"report_type"
:
"Master Budget"
,
}
}
api
.
create
().
getReportTypeBody
(
payload
).
then
(
response
=>
{
api
.
create
().
getReportTypeBody
(
payload
).
then
(
response
=>
{
//
console.log(response);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
let
dataTable
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
let
dataTable
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
...
@@ -190,7 +190,7 @@ export default class BudgetTahunan extends Component {
...
@@ -190,7 +190,7 @@ export default class BudgetTahunan extends Component {
let
dataTableRevision
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
let
dataTableRevision
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
return
[
return
[
item
.
report_id
,
item
.
report_id
,
item
.
report_name
,
item
.
report_name
===
'CAT'
?
'Corporate Annual Target'
:
item
.
report_name
,
""
""
]
]
})
})
...
@@ -454,9 +454,15 @@ export default class BudgetTahunan extends Component {
...
@@ -454,9 +454,15 @@ export default class BudgetTahunan extends Component {
}
}
clickDetail
(
item
,
id
,
revision
,
status
)
{
clickDetail
(
item
,
id
,
revision
,
status
)
{
let
items
=
''
if
(
item
===
'Corporate Annual Target'
)
{
items
=
'CAT'
}
else
{
items
=
item
}
// console.log(this.state.dataForRevision);
// console.log(this.state.dataForRevision);
this
.
state
.
dataForRevision
.
map
(
i
=>
{
this
.
state
.
dataForRevision
.
map
(
i
=>
{
if
(
i
.
report_name
===
item
)
{
if
(
i
.
report_name
===
item
s
)
{
if
(
i
.
revision
!==
revision
)
{
if
(
i
.
revision
!==
revision
)
{
this
.
setState
({
prevRevision
:
true
})
this
.
setState
({
prevRevision
:
true
})
}
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