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
fc644069
Commit
fc644069
authored
Feb 25, 2023
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1a793c93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
3 deletions
+67
-3
type.ts
src/assets/type.ts
+1
-1
index.vue
src/pages/khach-hang/index.vue
+66
-2
No files found.
src/assets/type.ts
View file @
fc644069
...
...
@@ -359,7 +359,7 @@ export type CustomerLevelType = {
id
:
number
;
name
:
string
;
description
:
string
;
level
:
number
;
level
:
string
;
status
:
number
;
};
...
...
src/pages/khach-hang/index.vue
View file @
fc644069
...
...
@@ -28,7 +28,7 @@
v-model=
"levelSelected"
:options=
"levelOptions"
option-label=
"level"
option-value=
"
id
"
option-value=
"
level
"
dense
outlined
label=
"Đánh giá sao"
...
...
@@ -129,6 +129,29 @@
</q-btn>
</q-td>
</
template
>
<
template
v-slot:body-cell-level=
"rowData"
>
<q-td
:item=
"rowData"
>
<div
align=
"center"
v-for=
"(item, index) in listRating"
:key=
"index"
>
<div
v-if=
"rowData.value === item.value"
>
<q-rating
v-model=
"item.text"
:max=
"5"
size=
"2rem"
color=
"yellow"
icon=
"star_border"
icon-selected=
"star"
icon-half=
"star_half"
no-dimming
readonly
/>
</div>
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-status=
"rowData"
>
<q-td>
<div
align=
"center"
>
...
...
@@ -375,7 +398,7 @@ export default defineComponent({
params
:
{
pageIndex
:
pageIndex
.
value
,
pageSize
:
pageSize
.
value
,
customerLevel
:
levelSelected
.
value
?.
id
,
customerLevel
:
levelSelected
.
value
?.
level
,
companyName
:
companyNameSelected
.
value
,
taxCode
:
taxCodeSelected
.
value
,
},
...
...
@@ -433,6 +456,46 @@ export default defineComponent({
void
browserCustomer
(
id
);
});
};
const
listRating
=
ref
([
{
text
:
1
,
value
:
'1'
,
},
{
text
:
1.5
,
value
:
'1.5'
,
},
{
text
:
2
,
value
:
'2'
,
},
{
text
:
2.5
,
value
:
'2.5'
,
},
{
text
:
3
,
value
:
'3'
,
},
{
text
:
3.5
,
value
:
'3.5'
,
},
{
text
:
4
,
value
:
'4'
,
},
{
text
:
4.5
,
value
:
'4.5'
,
},
{
text
:
5
,
value
:
'5'
,
},
]);
const
confirmRefusedBrowserCustomer
=
(
id
:
number
)
=>
{
customerId
.
value
=
id
;
openDialogRefusedBrowser
.
value
=
true
;
...
...
@@ -627,6 +690,7 @@ export default defineComponent({
pageSize
,
dataTest
,
totalPage
,
listRating
,
changePageSize
,
getCustomerLevelOptions
,
confirmDeleteCustomer
,
...
...
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