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
a649918d
Commit
a649918d
authored
Oct 05, 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
51a93f4c
8edb12a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
BudgetTahunan.js
src/container/BudgetTahunan.js
+2
-2
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+12
-5
No files found.
src/container/BudgetTahunan.js
View file @
a649918d
...
...
@@ -717,9 +717,9 @@ export default class BudgetTahunan extends Component {
}}
onClick
=
{()
=>
this
.
state
.
isSubmit
===
false
?
null
:
tableMeta
.
rowData
[
5
]
==
true
?
//
tableMeta.rowData[5] == true ?
this
.
clickDetail
(
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
4
],
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
3
])
:
null
//
: null
}
>
{
/* {this.state.isApprover == true ?
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
a649918d
...
...
@@ -398,7 +398,7 @@ export default class CorporateAnnualTarget extends Component {
console
.
log
(
this
.
state
.
dataTable
)
this
.
state
.
dataTable
.
map
(
i
=>
{
data
.
push
({
"item_report_id"
:
i
[
1
]
==
""
?
null
:
i
[
1
],
"item_report_id"
:
i
[
1
]
==
""
||
i
[
1
]
==
null
?
0
:
i
[
1
],
"item_report"
:
String
(
i
[
6
]),
"weight"
:
String
(
i
[
7
]),
"uom"
:
String
(
i
[
8
]),
...
...
@@ -815,7 +815,7 @@ export default class CorporateAnnualTarget extends Component {
// this.setState({dataTable: dataTable2})
}
const
handleAction
=
(
idParent
,
typeReport
)
=>
{
const
handleAction
=
(
idParent
,
typeReport
,
tableMeta
)
=>
{
if
(
idParent
!==
null
)
{
let
indexsss
=
dataTable2
.
findIndex
((
val
)
=>
val
[
1
]
==
idParent
)
if
(
dataTable2
[
indexsss
][
6
]
==
'CUSTOMER PERSPECTIVE'
||
dataTable2
[
indexsss
][
6
]
==
'INTERNAL BUSINESS PROCESS PERSPECTIVE'
)
{
...
...
@@ -826,6 +826,13 @@ export default class CorporateAnnualTarget extends Component {
}
else
{
if
(
typeReport
==
null
)
{
return
true
}
else
if
(
tableMeta
!==
undefined
&&
tableMeta
.
rowData
[
0
]
==
1
)
{
let
indexID
=
dataTable2
.
findIndex
((
val
)
=>
val
[
2
]
==
tableMeta
.
rowData
[
1
])
if
(
indexID
!==
-
1
)
{
return
false
}
else
{
return
true
}
}
else
{
return
false
}
...
...
@@ -841,7 +848,7 @@ export default class CorporateAnnualTarget extends Component {
newData
.
push
([
3
,
""
,
item
[
2
],
item
[
2
]
==
null
?
item
[
1
]
:
item
[
2
]
,
item
[
3
],
item
[
4
],
""
,
...
...
@@ -889,7 +896,7 @@ export default class CorporateAnnualTarget extends Component {
this
.
setState
({
dataTable
:
dataTable2
,
dataDelete
},
()
=>
{
setTimeout
(()
=>
{
this
.
setState
({
loading
:
false
})
},
5
00
)
},
1
00
)
})
}
...
...
@@ -949,7 +956,7 @@ export default class CorporateAnnualTarget extends Component {
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
// handleAction(tableMeta.rowData[2]) &&
handleAction
(
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
0
])
&&
<
div
style
=
{{
display
:
'flex'
}}
>
handleAction
(
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
0
]
,
tableMeta
)
&&
<
div
style
=
{{
display
:
'flex'
}}
>
{
/* {tableMeta.rowData[6] === "Active" ? */
}
{
<
span
>
<
LightTooltip
title
=
{
'Add'
}
arrow
>
...
...
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