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
7a6f9e9d
Commit
7a6f9e9d
authored
Jul 09, 2021
by
Tình Trương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
* booking * carousel
parent
3748fc66
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
84 additions
and
73 deletions
+84
-73
type.ts
src/assets/type.ts
+2
-1
VabAccount.ts
src/components/artist-information/VAB-account/VabAccount.ts
+1
-0
index.vue
src/components/artist-information/VAB-account/index.vue
+4
-3
index.vue
src/components/detailBooking/index.vue
+20
-17
index.ts
src/i18n/vi/index.ts
+2
-2
index.vue
src/pages/danh-sach-booking/index.vue
+55
-50
No files found.
src/assets/type.ts
View file @
7a6f9e9d
...
...
@@ -409,7 +409,8 @@ export type ListBooking = {
fromTime
:
string
;
toTime
:
string
;
status
:
number
;
activeStatus
:
number
;
favoriteScore
:
number
;
performStatus
:
number
;
fee
:
string
;
};
...
...
src/components/artist-information/VAB-account/VabAccount.ts
View file @
7a6f9e9d
...
...
@@ -71,6 +71,7 @@ export default defineComponent({
};
return
{
autoplay
:
ref
(
true
),
router
,
slide
,
slideStory
,
...
...
src/components/artist-information/VAB-account/index.vue
View file @
7a6f9e9d
...
...
@@ -42,9 +42,9 @@
v-if=
"banners.length"
v-model=
"slide"
:key=
"banners.length"
:autoplay=
"autoplay"
animated
arrows
navigation
infinite
height=
"30rem"
style=
"border: 2px solid #f1f1f1"
...
...
@@ -296,6 +296,7 @@
<q-carousel
v-else
v-model=
"slideStory"
:autoplay=
"autoplay"
animated
arrows
infinite
...
...
@@ -318,8 +319,8 @@
>
<div
style=
"
background:
center
bottom;
text-align:
justify
;
background: bottom;
text-align:
start
;
height: 100%;
display: flex;
flex-direction: column;
...
...
src/components/detailBooking/index.vue
View file @
7a6f9e9d
...
...
@@ -46,11 +46,6 @@
</div>
<div
class=
"col-8 fs-14"
>
{{
detailInfoBooking
.
address
}}
</div>
<div
class=
"col-4 fs-14 color"
>
{{
$t
(
'listBooking.titleColumnsTable.content'
)
}}
:
</div>
<div
class=
"col-8 fs-14"
>
{{
detailInfoBooking
.
content
}}
</div>
<div
class=
"col-4 fs-14 color"
>
{{
$t
(
'listBooking.titleColumnsTable.fromTime'
)
}}
:
</div>
...
...
@@ -66,71 +61,79 @@
</div>
<div
class=
"col-8 fs-14"
>
{{
detailInfoBooking
.
fee
}}
</div>
<!--
<div
class=
"col-4 fs-14 color"
>
{{
$t
(
'listBooking.titleColumnsTable.like'
)
}}
:
<div
class=
"col-4 fs-14 color"
>
{{
$t
(
'listBooking.titleColumnsTable.favoriteScore'
)
}}
:
</div>
<div
class=
"col-8 fs-14"
>
{{
detailInfoBooking
.
favoriteScore
}}
</div>
<div
class=
"col-8 fs-14"
>
{{
detailInfoBooking
.
like
}}
</div>
-->
<div
class=
"col-4 fs-14 color"
>
{{
$t
(
'listBooking.titleColumnsTable.
activeS
tatus'
)
}}
:
{{
$t
(
'listBooking.titleColumnsTable.
s
tatus'
)
}}
:
</div>
<div
class=
"col-8 fs-14"
>
<q-chip
size=
"sm"
color=
"secondary"
v-if=
"detailInfoBooking.
activeS
tatus === 0"
v-if=
"detailInfoBooking.
s
tatus === 0"
>
Chờ nhận
</q-chip
>
<q-chip
size=
"sm"
color=
"info"
v-else-if=
"detailInfoBooking.status === 1"
>
Đã
thực hiệ
n
</q-chip
>
Đã
nhậ
n
</q-chip
>
<q-chip
size=
"sm"
color=
"warning"
v-else
>
Từ chối
</q-chip>
</div>
<div
class=
"col-4 fs-14 color"
>
{{
$t
(
'listBooking.titleColumnsTable.
s
tatus'
)
}}
:
{{
$t
(
'listBooking.titleColumnsTable.
performS
tatus'
)
}}
:
</div>
<div
class=
"col-8 fs-14"
>
<q-chip
size=
"sm"
color=
"secondary"
v-if=
"detailInfoBooking.
s
tatus === 0"
v-if=
"detailInfoBooking.
performS
tatus === 0"
>
Chờ nhận
</q-chip
>
<q-chip
size=
"sm"
color=
"info"
v-else-if=
"detailInfoBooking.
s
tatus === 1"
v-else-if=
"detailInfoBooking.
performS
tatus === 1"
>
Đã thực hiện
</q-chip
>
<q-chip
size=
"sm"
color=
"warning"
v-else-if=
"detailInfoBooking.
s
tatus === 2"
v-else-if=
"detailInfoBooking.
performS
tatus === 2"
>
Chưa thực hiện
</q-chip
>
<q-chip
size=
"sm"
color=
"warning"
v-else-if=
"detailInfoBooking.
s
tatus === 3"
v-else-if=
"detailInfoBooking.
performS
tatus === 3"
>
Hoãn lịch
</q-chip
>
<q-chip
size=
"sm"
color=
"warning"
v-else-if=
"detailInfoBooking.
s
tatus === 4"
v-else-if=
"detailInfoBooking.
performS
tatus === 4"
>
Hủy lịch
</q-chip
>
<q-chip
size=
"sm"
color=
"secondary"
v-else
>
Thay đổi lịch
</q-chip
>
</div>
<div
class=
"col-4 fs-14 color"
>
{{
$t
(
'listBooking.titleColumnsTable.content'
)
}}
:
</div>
<div
class=
"col-8 fs-14"
>
{{
detailInfoBooking
.
content
}}
</div>
</div>
</div>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
>
<q-btn
color=
"grey"
...
...
src/i18n/vi/index.ts
View file @
7a6f9e9d
...
...
@@ -931,9 +931,9 @@ export default {
fromTime
:
'Thời gian bắt đầu'
,
toTime
:
'Thời gian kết thúc'
,
fee
:
'Giá'
,
lik
e
:
'Số lượt thích'
,
favoriteScor
e
:
'Số lượt thích'
,
status
:
'T.T Booking'
,
active
Status
:
'T.T Thực hiện'
,
perform
Status
:
'T.T Thực hiện'
,
action
:
'Chức năng'
,
},
dialogLabel
:
{
...
...
src/pages/danh-sach-booking/index.vue
View file @
7a6f9e9d
...
...
@@ -32,9 +32,9 @@
<div
class=
"col-2 sreach"
>
<q-select
v-model=
"sreachStatus"
:options=
"
BookingStatus
"
option-label=
"
text
"
option-value=
"
value
"
:options=
"
ListStatusBooking
"
option-label=
"
name
"
option-value=
"
id
"
dense
outlined
:label=
"$t('listBooking.titleColumnsTable.status')"
...
...
@@ -43,20 +43,20 @@
</div>
<div
class=
"col-2 sreach"
>
<q-select
v-model=
"sreach
Active
Status"
:options=
"Status"
option-label=
"
text
"
option-value=
"
value
"
v-model=
"sreach
Perform
Status"
:options=
"
ListPerform
Status"
option-label=
"
name
"
option-value=
"
id
"
dense
outlined
:label=
"$t('listBooking.titleColumnsTable.
active
Status')"
:label=
"$t('listBooking.titleColumnsTable.
perform
Status')"
clearable
></q-select>
</div>
<div
class=
"col-2 sreach"
>
<!-- v-model="date[0]" -->
<q-input
v-model=
"date[0]"
:label=
"$t('listBooking.titleColumnsTable.fromTime')"
readonly
dense
...
...
@@ -69,8 +69,7 @@
transition-show=
"scale"
transition-hide=
"scale"
>
<!-- v-model="date[0]" -->
<q-date
mask=
"DD/MM/YYYY"
no-unset
>
<q-date
v-model=
"date[0]"
mask=
"DD/MM/YYYY"
no-unset
>
<div
class=
"row items-center justify-end"
>
<q-btn
v-close-popup
...
...
@@ -86,8 +85,8 @@
</q-input>
</div>
<div
class=
"col-2 sreach"
>
<!-- v-model="date[1]" -->
<q-input
v-model=
"date[1]"
:label=
"$t('listBooking.titleColumnsTable.toTime')"
readonly
dense
...
...
@@ -100,8 +99,7 @@
transition-show=
"scale"
transition-hide=
"scale"
>
<!-- v-model="date[1]" -->
<q-date
mask=
"DD/MM/YYYY"
no-unset
>
<q-date
v-model=
"date[1]"
mask=
"DD/MM/YYYY"
no-unset
>
<div
class=
"row items-center justify-end"
>
<q-btn
v-close-popup
...
...
@@ -167,29 +165,29 @@
<
template
v-slot:body-cell-status=
"item"
>
<q-td
align=
"center"
>
<template
v-for=
"(data, idx) in
BookingStatus
"
>
<template
v-for=
"(data, idx) in
ListStatusBooking
"
>
<q-chip
v-if=
"item.row.status === data.
value
"
v-if=
"item.row.status === data.
id
"
:key=
"`status-$
{idx}-${item}`"
size="sm"
label
:color="data.color"
>
{{
data
.
text
}}
</q-chip
>
{{
data
.
name
}}
</q-chip
>
</
template
>
</q-td>
</template>
<
template
v-slot:body-cell-
active
Status=
"item"
>
<
template
v-slot:body-cell-
perform
Status=
"item"
>
<q-td
align=
"center"
>
<template
v-for=
"(data, idx) in Status"
>
<template
v-for=
"(data, idx) in
ListPerform
Status"
>
<q-chip
v-if=
"item.row.
activeStatus === data.value
"
:key=
"`
active
Status-$
{idx}-${item}`"
v-if=
"item.row.
performStatus === data.id
"
:key=
"`
perform
Status-$
{idx}-${item}`"
size="sm"
label
:color="data.color"
>
{{
data
.
text
}}
</q-chip
>
{{
data
.
name
}}
</q-chip
>
</
template
>
</q-td>
...
...
@@ -330,12 +328,12 @@ export default defineComponent({
sortable
:
false
,
},
{
name
:
'
lik
e'
,
field
:
'
lik
e'
,
name
:
'
favoriteScor
e'
,
field
:
'
favoriteScor
e'
,
required
:
true
,
label
:
i18n
.
global
.
t
(
'listBooking.titleColumnsTable.
lik
e'
),
headerStyle
:
'text-align: center !important; width:
9
%'
,
align
:
'
left
'
,
label
:
i18n
.
global
.
t
(
'listBooking.titleColumnsTable.
favoriteScor
e'
),
headerStyle
:
'text-align: center !important; width:
7
%'
,
align
:
'
center
'
,
sortable
:
false
,
},
{
...
...
@@ -343,16 +341,16 @@ export default defineComponent({
field
:
'status'
,
required
:
true
,
label
:
i18n
.
global
.
t
(
'listBooking.titleColumnsTable.status'
),
headerStyle
:
'text-align: center !important; width:
7
%'
,
headerStyle
:
'text-align: center !important; width:
8
%'
,
align
:
'center'
,
sortable
:
false
,
},
{
name
:
'
active
Status'
,
field
:
'
active
Status'
,
name
:
'
perform
Status'
,
field
:
'
perform
Status'
,
required
:
true
,
label
:
i18n
.
global
.
t
(
'listBooking.titleColumnsTable.
active
Status'
),
headerStyle
:
'text-align: center !important; width:
7
%'
,
label
:
i18n
.
global
.
t
(
'listBooking.titleColumnsTable.
perform
Status'
),
headerStyle
:
'text-align: center !important; width:
8
%'
,
align
:
'center'
,
sortable
:
false
,
},
...
...
@@ -367,31 +365,35 @@ export default defineComponent({
},
];
const
BookingStatus
=
ref
([
{
value
:
0
,
text
:
'Chờ nhận'
,
color
:
'secondary'
},
{
value
:
1
,
text
:
'Đã nhận'
,
color
:
'info'
},
{
value
:
2
,
text
:
'Từ chối'
,
color
:
'warning'
},
const
ListStatusBooking
=
ref
([
{
id
:
0
,
name
:
'Chờ nhận'
,
color
:
'secondary'
},
{
id
:
1
,
name
:
'Đã nhận'
,
color
:
'info'
},
{
id
:
2
,
name
:
'Từ chối'
,
color
:
'warning'
},
]);
const
Status
=
ref
([
{
value
:
0
,
text
:
'Chờ nhận'
,
color
:
'secondary'
},
{
value
:
1
,
text
:
'Đã thực hiện'
,
color
:
'info'
},
{
value
:
2
,
text
:
'Chưa thực hiện'
,
color
:
'warning'
},
{
value
:
3
,
text
:
'Hoãn lịch'
,
color
:
'warning'
},
{
value
:
4
,
text
:
'Hủy lịch'
,
color
:
'warning'
},
{
value
:
5
,
text
:
'Thay đổi lịch'
,
color
:
'secondary'
},
const
ListPerform
Status
=
ref
([
{
id
:
0
,
name
:
'Chờ nhận'
,
color
:
'secondary'
},
{
id
:
1
,
name
:
'Đã thực hiện'
,
color
:
'info'
},
{
id
:
2
,
name
:
'Chưa thực hiện'
,
color
:
'warning'
},
{
id
:
3
,
name
:
'Hoãn lịch'
,
color
:
'warning'
},
{
id
:
4
,
name
:
'Hủy lịch'
,
color
:
'warning'
},
{
id
:
5
,
name
:
'Thay đổi lịch'
,
color
:
'secondary'
},
]);
const
detailInfoBooking
:
Ref
<
ListBooking
|
null
>
=
ref
(
null
);
const
showDialog
=
ref
(
false
);
const
detailInfoBooking
:
Ref
<
ListBooking
|
null
>
=
ref
(
null
);
const
listBooking
:
Ref
<
unknown
[]
>
=
ref
([]);
const
pageIndex
=
ref
(
1
);
const
pageSize
=
ref
(
20
);
const
totalPage
=
ref
(
1
);
const
sreachArtist
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
sreachUserName
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
sreachStatus
=
ref
(
null
);
const
sreachActiveStatus
=
ref
(
null
);
const
sreachStatus
:
Ref
<
{
id
:
number
;
name
:
string
;
color
:
string
}
|
undefined
>
=
ref
(
undefined
);
const
sreachPerformStatus
:
Ref
<
{
id
:
number
;
name
:
string
;
color
:
string
}
|
undefined
>
=
ref
(
undefined
);
const
changePageSize
=
()
=>
{
pageIndex
.
value
=
1
;
void
getListBooking
();
...
...
@@ -449,7 +451,9 @@ export default defineComponent({
artistId
:
sreachArtist
.
value
,
custId
:
sreachUserName
.
value
,
status
:
sreachStatus
.
value
,
performBooking
:
sreachActiveStatus
.
value
,
performBooking
:
sreachPerformStatus
.
value
,
fromTime
:
moment
(
date
.
value
[
0
],
'DD/MM/YYYY'
).
format
(
'DD/MM/YYYY'
),
toTime
:
moment
(
date
.
value
[
1
],
'DD/MM/YYYY'
).
format
(
'DD/MM/YYYY'
),
},
}))
as
AxiosResponse
<
BaseResponseBody
<
PaginationResponse
<
ListBooking
>>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
...
...
@@ -484,6 +488,7 @@ export default defineComponent({
void
getArrayCust
();
});
return
{
date
,
changeTime
,
customerOptions
,
artistOptions
,
...
...
@@ -499,10 +504,10 @@ export default defineComponent({
totalPage
,
changePageSize
,
getListBooking
,
BookingStatus
,
Status
,
ListStatusBooking
,
ListPerform
Status
,
sreachStatus
,
sreach
Active
Status
,
sreach
Perform
Status
,
};
},
});
...
...
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