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
439509e1
Commit
439509e1
authored
Jul 12, 2022
by
syadziy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update document management
parent
d53313c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
DocumentManagement.js
src/container/DocumentManagement/DocumentManagement.js
+9
-11
No files found.
src/container/DocumentManagement/DocumentManagement.js
View file @
439509e1
...
...
@@ -35,9 +35,9 @@ export default class DocumentManagement extends Component {
}
}
getPermission
(
subMenu
)
{
getPermission
()
{
let
payload
=
{
menu
:
subMenu
menu
:
"document management"
}
api
.
create
().
getPermission
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
...
...
@@ -61,15 +61,13 @@ export default class DocumentManagement extends Component {
}
selectTab
=
(
event
,
newEvent
)
=>
{
this
.
setState
({
tab
:
newEvent
},
()
=>
{
console
.
log
(
this
.
state
.
tab
)
this
.
getPermission
(
this
.
state
.
listData
[
this
.
state
.
tab
].
value
.
toLocaleLowerCase
())
})
this
.
setState
({
tab
:
newEvent
})
console
.
log
(
this
.
state
.
tab
)
}
componentDidMount
()
{
this
.
getDataDocument
()
//
this.getPermission()
this
.
getPermission
()
this
.
getDetailUser
()
}
...
...
@@ -96,7 +94,7 @@ export default class DocumentManagement extends Component {
loadTable
:
true
,
refresh
:
id
===
undefined
?
''
:
'create'
},
()
=>
{
this
.
getPermission
(
dataList
[
0
].
value
)
//
this.getPermission(dataList[0].value)
})
}
}
else
{
...
...
@@ -272,7 +270,7 @@ export default class DocumentManagement extends Component {
<
Typography
style
=
{{
fontSize
:
'16px'
,
color
:
'white'
}}
>
Document
Management
<
/Typography
>
<
/div
>
<
div
style
=
{{
padding
:
20
}}
>
{
this
.
state
.
loading
&&
loadingComponent
&&
this
.
state
.
isHasAccessDocument
}
{
this
.
state
.
loading
&&
loadingComponent
}
<
Paper
style
=
{{
padding
:
20
}}
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
{(
this
.
state
.
btncreate
)
&&
<
span
>
...
...
@@ -325,11 +323,11 @@ export default class DocumentManagement extends Component {
<
/div
>
<
/Paper
>
{
!
this
.
state
.
isHasAccessDocument
&&
(
{
/* {
!this.state.isHasAccessDocument && (
<Paper style={{ padding: 20 }}>
<label>You Don't Have Any Access in Document Management</label>
</Paper>
)}
)}
*/
}
<
/div
>
{
this
.
state
.
konfirmasi
&&
(
<
PopUpKonfirmasi
...
...
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