Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 fa347b73
authored
Aug 28, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增客户导出功能
1 parent
656a4e8d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
vue3-lw-pc/src/api/customer/index.js
vue3-lw-pc/src/views/customerManage/customer.vue
vue3-lw-pc/src/api/customer/index.js
View file @
fa347b7
...
@@ -319,3 +319,12 @@ export function chatList(params) {
...
@@ -319,3 +319,12 @@ export function chatList(params) {
params
,
params
,
})
})
}
}
// 客户数据导出
export
function
exportData
(
params
)
{
return
request
({
url
:
service
+
'/export'
,
params
,
responseType
:
'blob'
,
})
}
vue3-lw-pc/src/views/customerManage/customer.vue
View file @
fa347b7
...
@@ -425,6 +425,10 @@ export default {
...
@@ -425,6 +425,10 @@ export default {
this
.
queryTag
=
[]
this
.
queryTag
=
[]
this
.
query
.
tagIds
=
''
this
.
query
.
tagIds
=
''
},
},
// 导出客户
exportData
()
{
this
.
$exportData
(
api
.
exportData
.
bind
(
null
,
this
.
query
),
'导出客户.xlsx'
)
},
},
},
}
}
</
script
>
</
script
>
...
@@ -505,6 +509,8 @@ export default {
...
@@ -505,6 +509,8 @@ export default {
共
共
<span
class=
"g-color"
>
{{ noRepeatCustomerTotal }}
</span>
<span
class=
"g-color"
>
{{ noRepeatCustomerTotal }}
</span>
位客户(去重)
位客户(去重)
<el-button
type=
"primary"
@
click=
"exportData"
>
导出客户
</el-button>
</div>
</div>
<!-- 共
<!-- 共
<span class="g-color">{{ total }}</span> 位客户,实际客户
<span class="g-color">{{ total }}</span> 位客户,实际客户
...
...
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