Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
Overview
Overview
Details
Activity
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
memberTag
memberTag-web
Commits
a30c777b
Commit
a30c777b
authored
Aug 01, 2022
by
huaying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 导出标签值
parent
5cd974fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
api.js
src/api/api.js
+12
-0
manual-tag-value-edit.vue
src/view/manualTag/manual-tag-value-edit.vue
+2
-2
No files found.
src/api/api.js
View file @
a30c777b
...
...
@@ -69,6 +69,18 @@ export const getRequest = (url, params) => {
});
};
export
const
getRequestBlob
=
(
url
,
params
)
=>
{
params
.
requestProject
=
'member-tag'
;
return
Vue
.
axios
({
method
:
'get'
,
url
:
`
${
local
}
/gic-member-tag-web
${
url
}
`
,
data
:
{},
params
:
params
,
responseType
:
'blob'
,
headers
:
{
'content-type'
:
'application/x-www-form-urlencoded'
}
// "token": token
});
};
/*
*
* 统一 post 请求方法
...
...
src/view/manualTag/manual-tag-value-edit.vue
View file @
a30c777b
...
...
@@ -94,7 +94,7 @@ import Trash from '@/components/Trash.vue';
import
importDialog
from
'./import-member-dialog.vue'
;
import
DeleteTagDialog
from
'./delete-tag-dialog.vue'
;
/* eslint-disable */
import
{
getRequest
,
postForm
}
from
'@/api/api'
;
import
{
getRequest
,
postForm
,
getRequestBlob
}
from
'@/api/api'
;
import
Sortable
from
'sortablejs'
;
/**
* 通过excel导入会员的业务逻辑 2019-5-27
...
...
@@ -203,7 +203,7 @@ export default {
tagId
:
this
.
$route
.
query
.
tagId
,
tagName
:
this
.
$route
.
query
.
tagName
}
getRequest
(
'/memberTag/exportMemberTag'
,
paras
).
then
(
res
=>
{
getRequest
Blob
(
'/memberTag/exportMemberTag'
,
paras
).
then
(
res
=>
{
if
(
res
.
status
==
'200'
)
{
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
,
...
...
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