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
2dcba2e2
Commit
2dcba2e2
authored
Oct 05, 2020
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rifka' into 'master'
nambah terus See merge request
!457
parents
d2bc7d0b
7fbc7a74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
AllDocument.js
src/container/DocumentManagement/AllDocument.js
+16
-2
DocumentManagement.js
src/container/DocumentManagement/DocumentManagement.js
+1
-0
No files found.
src/container/DocumentManagement/AllDocument.js
View file @
2dcba2e2
...
...
@@ -34,7 +34,6 @@ export default class getAllDocument extends Component {
componentDidMount
()
{
this
.
getData
()
console
.
log
(
this
.
props
.
userCompActive
)
}
componentWillReceiveProps
(
props
)
{
...
...
@@ -60,7 +59,7 @@ export default class getAllDocument extends Component {
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
let
indexId
=
this
.
props
.
userCompActive
.
findIndex
((
val
)
=>
val
==
item
.
company_id
)
console
.
log
(
indexId
)
if
(
indexId
!==
-
1
)
{
if
(
String
(
this
.
props
.
name
).
includes
(
'Manual'
))
{
dataTable
.
push
(
[
index
,
item
.
document_name
,
...
...
@@ -73,6 +72,21 @@ export default class getAllDocument extends Component {
item
.
created_by
,
item
.
created_at
,
])
}
else
{
if
(
indexId
!==
-
1
)
{
dataTable
.
push
(
[
index
,
item
.
document_name
,
item
.
description
,
item
.
company_name
,
item
.
document_month
,
item
.
document_periode
,
item
.
document_type
,
String
(
Number
(
item
.
document_size
)
/
1000
+
' KB'
),
item
.
created_by
,
item
.
created_at
,
])
}
}
})
console
.
log
(
dataTable
)
...
...
src/container/DocumentManagement/DocumentManagement.js
View file @
2dcba2e2
...
...
@@ -296,6 +296,7 @@ export default class DocumentManagement extends Component {
userCompActive
=
{
this
.
state
.
userCompActive
}
allsubcoEdit
=
{
this
.
state
.
btnadd
}
handleLoading
=
{
this
.
handleLoading
.
bind
(
this
)}
name
=
{
this
.
state
.
name
}
/
>
// this.state.id === 68542 ?
// <AuditTahunan
...
...
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