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
69f1194b
Commit
69f1194b
authored
Sep 23, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rifka' into 'master'
push See merge request
!365
parents
f525b21f
ff352c8b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
22 deletions
+9
-22
ApprovalMatrix.js
src/container/ApprovalMatrix/ApprovalMatrix.js
+2
-2
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+1
-2
CreateManagementDoc.js
src/container/DocumentManagement/CreateManagementDoc.js
+3
-9
EditManagementDoc.js
src/container/DocumentManagement/EditManagementDoc.js
+3
-9
No files found.
src/container/ApprovalMatrix/ApprovalMatrix.js
View file @
69f1194b
...
@@ -92,8 +92,8 @@ export default class ApprovalMatrix extends Component {
...
@@ -92,8 +92,8 @@ export default class ApprovalMatrix extends Component {
let
body
=
{
let
body
=
{
approval_matrix
:
payload
approval_matrix
:
payload
}
}
console
.
log
(
resp
.
rows
[
1
])
this
.
setState
({
payload
:
body
,
buttonError
:
false
,
judul
:
resp
.
rows
[
1
][
0
]
})
this
.
setState
({
payload
:
body
,
buttonError
:
false
,
judul
:
resp
.
rows
[
1
][
0
]
})
console
.
log
(
this
.
state
.
payload
)
}
}
});
});
}
}
...
@@ -621,7 +621,7 @@ export default class ApprovalMatrix extends Component {
...
@@ -621,7 +621,7 @@ export default class ApprovalMatrix extends Component {
filter
:
false
,
filter
:
false
,
sort
:
false
,
sort
:
false
,
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
console
.
log
(
tableMeta
)
//
console.log(tableMeta)
return
(
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
{
this
.
state
.
btnedit
&&
<
span
>
{
this
.
state
.
btnedit
&&
<
span
>
...
...
src/container/BudgetTahunan/TaxPlanning.js
View file @
69f1194b
...
@@ -722,13 +722,12 @@ export default class TaxPlanning extends Component {
...
@@ -722,13 +722,12 @@ export default class TaxPlanning extends Component {
}
}
}
}
const
handleTotal
=
(
tableMeta
)
=>
{
const
handleTotal
=
(
tableMeta
)
=>
{
console
.
log
(
dataTable2
[
tableMeta
.
rowIndex
]);
let
total
=
0
let
total
=
0
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
if
(
index
>=
9
&&
index
<=
20
)
{
if
(
index
>=
9
&&
index
<=
20
)
{
console
.
log
(
item
);
let
valItem
=
item
.
fcp
==
undefined
||
item
.
fcp
==
""
?
0
:
item
.
fcp
let
valItem
=
item
.
fcp
==
undefined
||
item
.
fcp
==
""
?
0
:
item
.
fcp
total
+=
Number
(
valItem
)
total
+=
Number
(
valItem
)
console
.
log
(
item
);
}
}
})
})
dataTable2
[
tableMeta
.
rowIndex
][
21
]
=
total
dataTable2
[
tableMeta
.
rowIndex
][
21
]
=
total
...
...
src/container/DocumentManagement/CreateManagementDoc.js
View file @
69f1194b
...
@@ -63,15 +63,9 @@ export default class CreateManagementDoc extends Component {
...
@@ -63,15 +63,9 @@ export default class CreateManagementDoc extends Component {
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
data
.
length
==
0
){
this
.
setState
({
this
.
setState
({
sizeUpload
:
1
sizeUpload
:
response
.
data
.
data
[
0
]
?
response
.
data
.
data
[
0
].
value
===
undefined
?
"1"
:
response
.
data
.
data
[
0
].
value
:
"1"
})
})
}
else
{
this
.
setState
({
sizeUpload
:
response
.
data
.
data
[
0
].
value
})
}
}
}
}
}
})
})
...
...
src/container/DocumentManagement/EditManagementDoc.js
View file @
69f1194b
...
@@ -65,15 +65,9 @@ export default class EditManagementDoc extends Component {
...
@@ -65,15 +65,9 @@ export default class EditManagementDoc extends Component {
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
data
.
length
==
0
){
this
.
setState
({
this
.
setState
({
sizeUpload
:
1
sizeUpload
:
response
.
data
.
data
[
0
]
?
response
.
data
.
data
[
0
].
value
===
undefined
?
"1"
:
response
.
data
.
data
[
0
].
value
:
"1"
})
})
}
else
{
this
.
setState
({
sizeUpload
:
response
.
data
.
data
[
0
].
value
})
}
}
}
}
}
})
})
...
...
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