Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quasar-web-base
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
Nguyễn Hải Sơn
quasar-web-base
Commits
708e785c
Commit
708e785c
authored
Apr 27, 2021
by
Võ Quang Thành Đạt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update reset state
parent
05015b82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
User.ts
src/pages/nguoi-dung/User.ts
+17
-0
index.vue
src/pages/nguoi-dung/index.vue
+1
-1
No files found.
src/pages/nguoi-dung/User.ts
View file @
708e785c
...
...
@@ -79,6 +79,7 @@ export default defineComponent({
const
keyword
=
ref
(
''
);
const
showDialog
=
ref
(
false
);
const
showDialogUpdate
=
ref
(
false
);
const
id
=
ref
(
0
);
const
userName
=
ref
(
''
);
const
password
=
ref
(
''
);
...
...
@@ -137,6 +138,21 @@ export default defineComponent({
}
});
};
const
openAddUserDialog
=
()
=>
{
showDialog
.
value
=
true
;
userName
.
value
=
''
;
password
.
value
=
''
;
fullName
.
value
=
''
;
birthday
.
value
=
''
;
email
.
value
=
''
;
phoneNumber
.
value
=
''
;
mobileNumber
.
value
=
''
;
sex
.
value
=
undefined
;
address
.
value
=
''
;
unit
.
value
=
undefined
;
status
.
value
=
true
;
group
.
value
=
[];
};
const
addNewUser
=
async
()
=>
{
try
{
...
...
@@ -378,6 +394,7 @@ export default defineComponent({
showDialogUpdateUser
,
updateUser
,
getUserDetail
,
openAddUserDialog
,
};
},
});
src/pages/nguoi-dung/index.vue
View file @
708e785c
...
...
@@ -23,7 +23,7 @@
<q-space></q-space>
<div
class=
"col-auto flex flex-center"
>
<q-btn
@
click=
"
showDialog = true
"
@
click=
"
openAddUserDialog
"
:label=
"$t('crudActions.add')"
color=
"primary"
></q-btn>
...
...
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