Commit 967dee54 by 徐忆琳

Merge branch 'scrmV3.15.0_10' into 'scrmV3.15.0'

月中版本开发

See merge request !21
2 parents a2454b3b 0dbae825
......@@ -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
}
......@@ -30,7 +30,6 @@ export const Util = {
},
exportFn: function (url) {
console.log(url)
let browserType = getExplorer()
if (browserType == 'QQ') {
window.open(url)
......
......@@ -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 {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!