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
806e808a
Commit
806e808a
authored
Dec 22, 2022
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2697d630
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
+29
-3
index.vue
src/pages/nghe-sy/index.vue
+29
-3
No files found.
src/pages/nghe-sy/index.vue
View file @
806e808a
...
@@ -256,8 +256,8 @@
...
@@ -256,8 +256,8 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col"
>
<div
class=
"col"
>
<q-btn
<q-btn
:loading=
"loading"
color=
"primary"
color=
"primary"
no-caps
style=
"width: 7.14rem"
style=
"width: 7.14rem"
label=
"Xuất File"
label=
"Xuất File"
@
click=
"exportFile"
@
click=
"exportFile"
...
@@ -508,8 +508,33 @@ export default defineComponent({
...
@@ -508,8 +508,33 @@ export default defineComponent({
const
costTo
=
ref
(
100000000
);
const
costTo
=
ref
(
100000000
);
// const level: Ref
<
string
|
null
>
=
ref
(
null
);
// const level: Ref
<
string
|
null
>
=
ref
(
null
);
const
upload
=
ref
(
null
);
const
upload
=
ref
(
null
);
const
exportFile
=
()
=>
{
const
loading
=
ref
(
false
);
window
.
location
.
href
=
`
${
config
.
API_ENDPOINT
}
artist/exportExcel?pageIndex=
${
pageIndex
.
value
}
&pageSize=
${
totalRecords
.
value
}
&name=
${
fullNameKeyword
.
value
}
&fromMoney=
${
costFrom
.
value
}
&toMoney=
${
costTo
.
value
}
&channel=CMS`
;
const
exportFile
=
async
()
=>
{
loading
.
value
=
true
;
try
{
const
dataItem
=
(
await
api
({
url
:
API_PATHS
.
exportExcel
,
method
:
'GET'
,
params
:
{
pageIndex
:
pageIndex
.
value
,
pageSize
:
totalRecords
.
value
,
name
:
fullNameKeyword
.
value
,
field
:
fieldSelected
.
value
?.
id
,
qualification
:
professionSelected
.
value
?.
id
,
address
:
provinceSelected
.
value
?.
name
,
musicTypeDto
:
musics
.
value
?.
id
,
fromMoney
:
costFrom
.
value
,
toMoney
:
costTo
.
value
,
},
}))
as
AxiosResponse
<
BaseResponseBody
<
unknown
>>
;
if
(
dataItem
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
loading
.
value
=
false
;
window
.
location
.
href
=
dataItem
.
data
.
data
as
string
;
}
}
catch
(
error
)
{}
};
};
const
callApiUploadAvatar
=
async
(
file
:
File
)
=>
{
const
callApiUploadAvatar
=
async
(
file
:
File
)
=>
{
try
{
try
{
...
@@ -790,6 +815,7 @@ export default defineComponent({
...
@@ -790,6 +815,7 @@ export default defineComponent({
provinceOptions
,
provinceOptions
,
costFrom
,
costFrom
,
costTo
,
costTo
,
loading
,
// level,
// level,
getProvinceOptions
,
getProvinceOptions
,
getMusicTypeOptions
,
getMusicTypeOptions
,
...
...
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