Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
renewal-interest-data-board
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 6fd62c80
authored
Aug 18, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'scrmV3.15.0' into 'master'
Scrm v3.15.0 See merge request
!22
2 parents
a2454b3b
967dee54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
src/api/modules/renewal.js
src/common/util.js
src/components/ViewContentBottom.vue
src/api/modules/renewal.js
View file @
6fd62c8
...
...
@@ -32,6 +32,11 @@ const getBrandName = params => {
const
exportApi
=
params
=>
{
return
window
.
$HTTP
.
get
(
'renewalInsurance/download'
,
params
)
}
// 激活量导出
const
exportActApi
=
params
=>
{
return
window
.
$HTTP
.
get
(
'renewalInsurance/downloadActivationdetail'
,
params
)
}
export
default
{
getOverview
,
getRanking
,
...
...
@@ -39,5 +44,6 @@ export default {
getviewTrend
,
getBrandName
,
getDetail
,
exportApi
exportApi
,
exportActApi
}
src/common/util.js
View file @
6fd62c8
...
...
@@ -30,7 +30,6 @@ export const Util = {
},
exportFn
:
function
(
url
)
{
console
.
log
(
url
)
let
browserType
=
getExplorer
()
if
(
browserType
==
'QQ'
)
{
window
.
open
(
url
)
...
...
src/components/ViewContentBottom.vue
View file @
6fd62c8
...
...
@@ -53,7 +53,8 @@
<el-button
@
click=
'reset'
class=
'reset-btn btn'
size=
'mini'
>
重置
</el-button>
</el-form-item>
<el-form-item
class=
'btn-wrap btn-out-warp'
>
<el-button
@
click=
'handleOutput'
class=
'output-btn btn'
size=
'mini'
>
导出
</el-button>
<el-button
@
click=
'handleActOutput'
class=
'output-btn btn'
size=
'mini'
>
导出激活明细
</el-button>
<el-button
@
click=
'handleOutput'
class=
'output-btn btn'
size=
'mini'
>
导出统计数据
</el-button>
</el-form-item>
</el-form>
...
...
@@ -331,9 +332,14 @@ export default {
delete
params
.
withdrawalTime
return
params
},
handleActOutput
()
{
this
.
outputDetail
(
'exportActApi'
,
this
.
getSearchForm
())
},
handleOutput
()
{
const
params
=
this
.
getSearchForm
()
this
.
api
.
renewal
.
exportApi
(
params
).
then
(
res
=>
{
this
.
outputDetail
(
'exportApi'
,
this
.
getSearchForm
())
},
outputDetail
(
apiReq
,
params
)
{
this
.
api
.
renewal
[
apiReq
](
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
$Utils
.
exportFn
(
res
.
data
.
dataList
[
0
].
url
)
}
else
{
...
...
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