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
5c805297
Commit
5c805297
authored
Oct 05, 2020
by
Rifka Kurnia Irfiana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nambah terus docmanag
parent
a649918d
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 @
5c805297
...
@@ -34,7 +34,6 @@ export default class getAllDocument extends Component {
...
@@ -34,7 +34,6 @@ export default class getAllDocument extends Component {
componentDidMount
()
{
componentDidMount
()
{
this
.
getData
()
this
.
getData
()
console
.
log
(
this
.
props
.
userCompActive
)
}
}
componentWillReceiveProps
(
props
)
{
componentWillReceiveProps
(
props
)
{
...
@@ -60,7 +59,7 @@ export default class getAllDocument extends Component {
...
@@ -60,7 +59,7 @@ export default class getAllDocument extends Component {
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
let
indexId
=
this
.
props
.
userCompActive
.
findIndex
((
val
)
=>
val
==
item
.
company_id
)
let
indexId
=
this
.
props
.
userCompActive
.
findIndex
((
val
)
=>
val
==
item
.
company_id
)
console
.
log
(
indexId
)
console
.
log
(
indexId
)
if
(
indexId
!==
-
1
)
{
if
(
String
(
this
.
props
.
name
).
includes
(
'Manual'
))
{
dataTable
.
push
(
[
dataTable
.
push
(
[
index
,
index
,
item
.
document_name
,
item
.
document_name
,
...
@@ -73,6 +72,21 @@ export default class getAllDocument extends Component {
...
@@ -73,6 +72,21 @@ export default class getAllDocument extends Component {
item
.
created_by
,
item
.
created_by
,
item
.
created_at
,
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
)
console
.
log
(
dataTable
)
...
...
src/container/DocumentManagement/DocumentManagement.js
View file @
5c805297
...
@@ -296,6 +296,7 @@ export default class DocumentManagement extends Component {
...
@@ -296,6 +296,7 @@ export default class DocumentManagement extends Component {
userCompActive
=
{
this
.
state
.
userCompActive
}
userCompActive
=
{
this
.
state
.
userCompActive
}
allsubcoEdit
=
{
this
.
state
.
btnadd
}
allsubcoEdit
=
{
this
.
state
.
btnadd
}
handleLoading
=
{
this
.
handleLoading
.
bind
(
this
)}
handleLoading
=
{
this
.
handleLoading
.
bind
(
this
)}
name
=
{
this
.
state
.
name
}
/
>
/
>
// this.state.id === 68542 ?
// this.state.id === 68542 ?
// <AuditTahunan
// <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