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 => { ...@@ -32,6 +32,11 @@ const getBrandName = params => {
const exportApi = params => { const exportApi = params => {
return window.$HTTP.get('renewalInsurance/download', params) return window.$HTTP.get('renewalInsurance/download', params)
} }
// 激活量导出
const exportActApi = params => {
return window.$HTTP.get('renewalInsurance/downloadActivationdetail', params)
}
export default { export default {
getOverview, getOverview,
getRanking, getRanking,
...@@ -39,5 +44,6 @@ export default { ...@@ -39,5 +44,6 @@ export default {
getviewTrend, getviewTrend,
getBrandName, getBrandName,
getDetail, getDetail,
exportApi exportApi,
exportActApi
} }
...@@ -30,7 +30,6 @@ export const Util = { ...@@ -30,7 +30,6 @@ export const Util = {
}, },
exportFn: function (url) { exportFn: function (url) {
console.log(url)
let browserType = getExplorer() let browserType = getExplorer()
if (browserType == 'QQ') { if (browserType == 'QQ') {
window.open(url) window.open(url)
......
...@@ -53,7 +53,8 @@ ...@@ -53,7 +53,8 @@
<el-button @click='reset' class='reset-btn btn' size='mini'>重置</el-button> <el-button @click='reset' class='reset-btn btn' size='mini'>重置</el-button>
</el-form-item> </el-form-item>
<el-form-item class='btn-wrap btn-out-warp'> <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-item>
</el-form> </el-form>
...@@ -331,9 +332,14 @@ export default { ...@@ -331,9 +332,14 @@ export default {
delete params.withdrawalTime delete params.withdrawalTime
return params return params
}, },
handleActOutput() {
this.outputDetail('exportActApi', this.getSearchForm())
},
handleOutput() { handleOutput() {
const params = this.getSearchForm() this.outputDetail('exportApi', this.getSearchForm())
this.api.renewal.exportApi(params).then(res => { },
outputDetail(apiReq, params) {
this.api.renewal[apiReq](params).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$Utils.exportFn(res.data.dataList[0].url) this.$Utils.exportFn(res.data.dataList[0].url)
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!