Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d0faa4d9
authored
Apr 16, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sn输入验证
1 parent
c019fef7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
11 deletions
src/api/test.js
src/common.js
src/views/customer/collectionManagement/index.vue
src/api/test.js
View file @
d0faa4d
...
@@ -43,7 +43,9 @@ function listRequisitionMemberCard(params) {
...
@@ -43,7 +43,9 @@ function listRequisitionMemberCard(params) {
function
getMemberCardDetail
(
params
)
{
function
getMemberCardDetail
(
params
)
{
return
GlAxios
.
get
(
`
${
path
}
/getMemberCardDetail`
,{
params
})
return
GlAxios
.
get
(
`
${
path
}
/getMemberCardDetail`
,{
params
})
}
}
function
exportMemberCardByBatchId
(
params
)
{
return
GlAxios
.
post
(
`
${
path
}
/exportMemberCardByBatchId`
,
params
,
{
headers
:
{
'Content-Type'
:
'application/json; charset=utf-8'
},
requestType
:
'jsonString'
})
}
export
{
export
{
// getdetailsMemberInfo,
// getdetailsMemberInfo,
...
@@ -56,5 +58,6 @@ export {
...
@@ -56,5 +58,6 @@ export {
listMemberBatch
,
listMemberBatch
,
listMemberCard
,
listMemberCard
,
listRequisitionMemberCard
,
listRequisitionMemberCard
,
getMemberCardDetail
getMemberCardDetail
,
exportMemberCardByBatchId
}
}
src/common.js
View file @
d0faa4d
...
@@ -29,15 +29,22 @@ const common = {
...
@@ -29,15 +29,22 @@ const common = {
if
(
!
response
)
{
if
(
!
response
)
{
return
return
};
};
let
url
=
window
.
URL
.
createObjectURL
(
new
Blob
([
response
.
data
],
{
console
.
log
(
response
)
type
:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
let
a
=
document
.
createElement
(
'a'
)
}));
let
blob
=
new
Blob
([
response
.
data
],
{
type
:
"application/vnd.ms-excel"
})
let
link
=
document
.
createElement
(
'a'
);
let
objectUrl
=
URL
.
createObjectURL
(
blob
)
link
.
style
.
display
=
'none'
;
a
.
setAttribute
(
"href"
,
objectUrl
)
link
.
href
=
url
;
a
.
setAttribute
(
"download"
,
'订单信息.xls'
)
link
.
setAttribute
(
'download'
,
options
.
fileName
||
'excel.xlsx'
);
a
.
click
()
document
.
body
.
appendChild
(
link
);
// let url = window.URL.createObjectURL(new Blob([response.data], {
link
.
click
();
// type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
// }));
// let link = document.createElement('a');
// link.style.display = 'none';
// link.href = url;
// link.setAttribute('download', options.fileName || 'excel.xlsx');
// document.body.appendChild(link);
// link.click();
if
(
options
.
success
)
{
if
(
options
.
success
)
{
(
options
.
success
)();
(
options
.
success
)();
}
}
...
...
src/views/customer/collectionManagement/index.vue
View file @
d0faa4d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment