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
05015b82
Commit
05015b82
authored
Apr 26, 2021
by
Võ Quang Thành Đạt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update style
parent
4c102475
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
6 deletions
+16
-6
logo_van.png
src/assets/logo_van.png
+0
-0
index.vue
src/components/user-group/index.vue
+1
-0
quasar.variables.scss
src/css/quasar.variables.scss
+1
-1
MainLayout.vue
src/layouts/MainLayout.vue
+7
-1
User.ts
src/pages/nguoi-dung/User.ts
+7
-4
No files found.
src/assets/logo_van.png
0 → 100644
View file @
05015b82
11.3 KB
src/components/user-group/index.vue
View file @
05015b82
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
color="primary"
color="primary"
:label="userItem.groupName"
:label="userItem.groupName"
no-caps
no-caps
square
@click="$emit('click:groupName', userItem)"
@click="$emit('click:groupName', userItem)"
/>
/>
...
...
src/css/quasar.variables.scss
View file @
05015b82
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
// to match your app's branding.
// to match your app's branding.
// Tip: Use the "Theme Builder" on Quasar's documentation website.
// Tip: Use the "Theme Builder" on Quasar's documentation website.
$primary
:
#1976D2
;
$primary
:
rgb
(
93
49
158
)
;
$secondary
:
#26A69A
;
$secondary
:
#26A69A
;
$accent
:
#9C27B0
;
$accent
:
#9C27B0
;
...
...
src/layouts/MainLayout.vue
View file @
05015b82
...
@@ -11,7 +11,13 @@
...
@@ -11,7 +11,13 @@
@
click=
"toggleLeftDrawer"
@
click=
"toggleLeftDrawer"
/>
/>
<q-toolbar-title>
VAB CMS Logo
</q-toolbar-title>
<q-toolbar-title
><q-img
src=
"../assets/logo_van.png"
style=
"width: 7.5rem"
fit=
"contain"
:ratio=
"16 / 9"
/></q-toolbar-title>
</q-toolbar>
</q-toolbar>
</q-header>
</q-header>
...
...
src/pages/nguoi-dung/User.ts
View file @
05015b82
...
@@ -79,7 +79,7 @@ export default defineComponent({
...
@@ -79,7 +79,7 @@ export default defineComponent({
const
keyword
=
ref
(
''
);
const
keyword
=
ref
(
''
);
const
showDialog
=
ref
(
false
);
const
showDialog
=
ref
(
false
);
const
showDialogUpdate
=
ref
(
false
);
const
showDialogUpdate
=
ref
(
false
);
const
id
=
ref
(
0
);
const
userName
=
ref
(
''
);
const
userName
=
ref
(
''
);
const
password
=
ref
(
''
);
const
password
=
ref
(
''
);
const
fullName
=
ref
(
''
);
const
fullName
=
ref
(
''
);
...
@@ -197,13 +197,13 @@ export default defineComponent({
...
@@ -197,13 +197,13 @@ export default defineComponent({
});
});
};
};
const
deleteUser
=
async
(
userI
D
:
number
)
=>
{
const
deleteUser
=
async
(
userI
d
:
number
)
=>
{
try
{
try
{
const
deleteResult
=
(
await
api
({
const
deleteResult
=
(
await
api
({
url
:
API_PATHS
.
deleteUser
,
url
:
API_PATHS
.
deleteUser
,
method
:
'GET'
,
method
:
'GET'
,
params
:
{
params
:
{
userId
:
userI
D
,
userId
:
userI
d
,
},
},
}))
as
AxiosResponse
<
BaseResponseBody
<
unknown
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
unknown
>>
;
...
@@ -282,6 +282,7 @@ export default defineComponent({
...
@@ -282,6 +282,7 @@ export default defineComponent({
const
userInfo
=
response
.
data
.
data
.
user
;
const
userInfo
=
response
.
data
.
data
.
user
;
const
groupInfo
=
response
.
data
.
data
.
groups
;
const
groupInfo
=
response
.
data
.
data
.
groups
;
address
.
value
=
userInfo
.
address
as
string
;
address
.
value
=
userInfo
.
address
as
string
;
id
.
value
=
userInfo
.
id
;
birthday
.
value
=
userInfo
.
birthday
as
string
;
birthday
.
value
=
userInfo
.
birthday
as
string
;
email
.
value
=
userInfo
.
email
as
string
;
email
.
value
=
userInfo
.
email
as
string
;
fullName
.
value
=
userInfo
.
fullName
as
string
;
fullName
.
value
=
userInfo
.
fullName
as
string
;
...
@@ -310,6 +311,7 @@ export default defineComponent({
...
@@ -310,6 +311,7 @@ export default defineComponent({
method
:
'POST'
,
method
:
'POST'
,
data
:
{
data
:
{
user
:
{
user
:
{
id
:
id
.
value
,
userName
:
userName
.
value
,
userName
:
userName
.
value
,
password
:
password
.
value
,
password
:
password
.
value
,
fullName
:
fullName
.
value
,
fullName
:
fullName
.
value
,
...
@@ -327,7 +329,7 @@ export default defineComponent({
...
@@ -327,7 +329,7 @@ export default defineComponent({
},
},
}))
as
AxiosResponse
<
BaseResponseBody
<
unknown
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
unknown
>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
showDialog
.
value
=
false
;
showDialog
Update
.
value
=
false
;
Notify
.
create
({
Notify
.
create
({
type
:
'positive'
,
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'userPage.actionMessages.updateUserAccess'
),
message
:
i18n
.
global
.
t
(
'userPage.actionMessages.updateUserAccess'
),
...
@@ -366,6 +368,7 @@ export default defineComponent({
...
@@ -366,6 +368,7 @@ export default defineComponent({
sexOptions
,
sexOptions
,
listGroup
,
listGroup
,
listScheduleAccess
,
listScheduleAccess
,
id
,
addNewUser
,
addNewUser
,
getListUserGroup
,
getListUserGroup
,
confirmDeleteUser
,
confirmDeleteUser
,
...
...
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