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
72c907e1
Commit
72c907e1
authored
Jul 12, 2022
by
syadziy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update issue
parent
439509e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
29 deletions
+9
-29
DocumentManagement.js
src/container/DocumentManagement/DocumentManagement.js
+9
-29
No files found.
src/container/DocumentManagement/DocumentManagement.js
View file @
72c907e1
...
...
@@ -30,8 +30,7 @@ export default class DocumentManagement extends Component {
btndelete
:
false
,
load
:
false
,
name
:
''
,
userCompActive
:
[],
isHasAccessDocument
:
false
,
userCompActive
:
[]
}
}
...
...
@@ -40,7 +39,7 @@ export default class DocumentManagement extends Component {
menu
:
"document management"
}
api
.
create
().
getPermission
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
//
console.log(response)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
...
...
@@ -73,30 +72,16 @@ export default class DocumentManagement extends Component {
getDataDocument
(
id
,
name
)
{
api
.
create
().
getDocumentCategory
().
then
(
response
=>
{
console
.
log
(
response
);
//
console.log(response);
if
(
response
)
{
if
(
response
.
data
.
status
===
"success"
)
{
let
dataList
=
[]
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
// if (item.value == "Manual Book TIA 4.0sss") {
dataList
.
push
(
item
)
// }
})
if
(
dataList
.
length
==
0
)
{
this
.
setState
({
isHasAccessDocument
:
dataList
.
length
==
0
?
false
:
true
})
}
else
{
this
.
setState
({
isHasAccessDocument
:
dataList
.
length
==
0
?
false
:
true
,
listData
:
dataList
,
id
:
id
===
undefined
?
dataList
[
0
].
setting_id
:
id
,
name
:
name
===
undefined
?
dataList
[
0
].
value
:
name
,
listData
:
response
.
data
.
data
,
id
:
id
===
undefined
?
response
.
data
.
data
[
0
].
setting_id
:
id
,
name
:
name
===
undefined
?
response
.
data
.
data
[
0
].
value
:
name
,
loadTable
:
true
,
refresh
:
id
===
undefined
?
''
:
'create'
},
()
=>
{
// this.getPermission(dataList[0].value)
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
)
||
response
.
data
.
message
.
includes
(
"Token Expired"
))
{
...
...
@@ -323,11 +308,6 @@ export default class DocumentManagement extends Component {
<
/div
>
<
/Paper
>
{
/* {!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