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
d9677f78
Commit
d9677f78
authored
Aug 19, 2020
by
a.bairuha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update user
parent
7b32144a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
AddUser.js
src/container/Otorisasi/User/AddUser.js
+10
-0
AddRole.js
src/container/Otorisasi/UserRole/AddRole.js
+10
-0
No files found.
src/container/Otorisasi/User/AddUser.js
View file @
d9677f78
...
...
@@ -60,6 +60,16 @@ export default class AddUser extends Component {
componentDidMount
()
{
this
.
getRole
()
this
.
getPerusahaan
()
if
(
this
.
props
.
type
===
'edit'
)
{
//
}
else
{
let
date
=
format
(
new
Date
,
'yyyy-MM-dd'
)
console
.
log
(
date
);
this
.
setState
({
startDate
:
date
,
endDate
:
date
})
}
}
handleChange
(
e
,
type
)
{
...
...
src/container/Otorisasi/UserRole/AddRole.js
View file @
d9677f78
...
...
@@ -52,6 +52,16 @@ export default class AddRole extends Component {
componentDidMount
()
{
this
.
getMenu
()
if
(
this
.
props
.
type
===
'edit'
)
{
//
}
else
{
let
date
=
format
(
new
Date
,
'yyyy-MM-dd'
)
console
.
log
(
date
);
this
.
setState
({
startDate
:
date
,
endDate
:
date
})
}
}
handleChange
(
e
,
type
)
{
...
...
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