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
2c1fc2ab
Commit
2c1fc2ab
authored
Nov 29, 2022
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPDATE
parent
14689d75
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
13 deletions
+30
-13
index.vue
src/components/detailBooking/tableDeposit/index.vue
+1
-1
index.vue
src/pages/danh-muc-quyen/index.vue
+3
-0
User.ts
src/pages/nguoi-dung/User.ts
+19
-12
routes.ts
src/router/routes.ts
+7
-0
No files found.
src/components/detailBooking/tableDeposit/index.vue
View file @
2c1fc2ab
...
...
@@ -267,7 +267,7 @@ export default defineComponent({
bodyFormData
.
append
(
'file'
,
file
);
const
response
=
(
await
api
({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
url
:
'https://cms.vab.vn/file/upload/'
,
// pro
url
:
config
.
API_IMAGE_ENDPOINT
,
// pro
// url: 'http://103.147.34.20:10705/file/upload/', // test
method
:
'POST'
,
...
...
src/pages/danh-muc-quyen/index.vue
0 → 100644
View file @
2c1fc2ab
<
template
>
<div></div>
</
template
>
\ No newline at end of file
src/pages/nguoi-dung/User.ts
View file @
2c1fc2ab
...
...
@@ -128,7 +128,6 @@ export default defineComponent({
},
}))
as
AxiosResponse
<
BaseResponseBody
<
PaginationResponse
<
UserObject
>>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
userTableRows
.
value
=
response
.
data
.
data
.
data
;
totalPage
.
value
=
response
.
data
.
data
.
totalPages
;
}
...
...
@@ -183,8 +182,8 @@ export default defineComponent({
userName
:
userName
.
value
.
trim
(),
password
:
password
.
value
,
fullName
:
fullName
.
value
.
trim
(),
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
birthday
:
birthday
.
value
+
' 00:00:00'
,
birthday
:
birthday
.
value
===
''
?
''
:
moment
(
birthday
.
value
,
'DD/MM/YYYY'
).
format
(
'DD/MM/YYYY 00:00:00'
)
,
email
:
email
.
value
.
trim
(),
phoneNumber
:
phoneNumber
.
value
.
trim
(),
mobileNumber
:
mobileNumber
.
value
.
trim
(),
...
...
@@ -313,16 +312,24 @@ export default defineComponent({
group
.
value
=
response
.
data
.
data
.
groups
;
address
.
value
=
userInfo
.
address
as
string
;
id
.
value
=
userInfo
.
id
;
// birthday.value = moment(userInfo.birthday).format('YYYY-MM-DD') as string;
if
(
userInfo
.
birthday
!==
null
)
{
birthday
.
value
=
moment
(
userInfo
.
birthday
,
'DD/MM/YYYY HH:mm:ss'
).
format
(
'DD/MM/YYYY'
);
}
else
{
birthday
.
value
=
''
;
}
email
.
value
=
userInfo
.
email
as
string
;
fullName
.
value
=
userInfo
.
fullName
as
string
;
mobileNumber
.
value
=
userInfo
.
mobileNumber
as
string
;
phoneNumber
.
value
=
userInfo
.
phoneNumber
as
string
;
if
(
userInfo
.
sex
!==
0
)
{
sex
.
value
=
userInfo
.
sex
;
}
else
{
sex
.
value
=
1
;
}
status
.
value
=
userInfo
.
status
?
true
:
false
;
unit
.
value
=
userInfo
.
unit
;
userName
.
value
=
userInfo
.
userName
;
...
...
@@ -331,7 +338,6 @@ export default defineComponent({
};
const
updateUser
=
async
()
=>
{
try
{
const
response
=
(
await
api
({
url
:
API_PATHS
.
updateUser
,
...
...
@@ -342,8 +348,9 @@ export default defineComponent({
userName
:
userName
.
value
.
trim
(),
password
:
password
.
value
,
fullName
:
fullName
.
value
.
trim
(),
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
birthday
:
birthday
.
value
+
' 00:00:00'
,
birthday
:
birthday
.
value
===
''
?
''
:
moment
(
birthday
.
value
,
'DD/MM/YYYY'
).
format
(
'DD/MM/YYYY 00:00:00'
),
email
:
email
.
value
.
trim
(),
phoneNumber
:
phoneNumber
.
value
.
trim
(),
mobileNumber
:
mobileNumber
.
value
.
trim
(),
...
...
src/router/routes.ts
View file @
2c1fc2ab
...
...
@@ -33,6 +33,7 @@ export enum Pages {
bcTC
=
'bc-truy-cap'
,
bcYT
=
'bc-yeu-thich'
,
bcBK
=
'bc-booking'
,
DMQ
=
'danh-muc-quyen'
,
}
const
routes
:
RouteRecordRaw
[]
=
[
...
...
@@ -197,6 +198,12 @@ const routes: RouteRecordRaw[] = [
component
:
()
=>
import
(
'pages/bc-booking/index.vue'
),
name
:
Pages
.
bcBK
,
},
{
path
:
'danh-muc-quyen'
,
component
:
()
=>
import
(
'pages/danh-muc-quyen/index.vue'
),
name
:
Pages
.
DMQ
,
},
],
},
...
...
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