Commit 57511f8a by 前端

修复bug

1 parent 07c2d150
...@@ -143,4 +143,12 @@ export default { ...@@ -143,4 +143,12 @@ export default {
data: params data: params
}) })
}, },
exportRedEnvelopeRecord (params) {
params.method = 'marketing.api.activityRedEnvelope.record.export'
return http({
url,
data: params
})
}
} }
...@@ -20,6 +20,7 @@ export const fetchConfig = function(common) { ...@@ -20,6 +20,7 @@ export const fetchConfig = function(common) {
// } // }
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/62ecda0909756a6f4f85cf9a/outbound/config') // return new Http().get('https://oss-config.dev.glsx.com.cn/mock/62ecda0909756a6f4f85cf9a/outbound/config')
let params = { moduleName: 'outbound', mockUrl: 'https://oss-config.test.glsx.com.cn/mock/62fe2a36abac6ff6ac239d3c/outbound/config',httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } } let params = { moduleName: 'outbound', mockUrl: 'https://oss-config.test.glsx.com.cn/mock/62fe2a36abac6ff6ac239d3c/outbound/config',httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
console.log(common.utils.getConfig(params))
return common.utils.getConfig(params) return common.utils.getConfig(params)
} }
export const config = { export const config = {
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</el-button> </el-button>
<el-button <el-button
@click="handleExport" @click="handleExport"
>导出11 >导出
</el-button> </el-button>
</div> </div>
</div> </div>
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import importRecord from './importRecord.vue' import importRecord from './importRecord.vue'
import {exportFn} from '@/common/constant'
export default { export default {
name: 'RedEnvelopeConfig', name: 'RedEnvelopeConfig',
components: {importRecord}, components: {importRecord},
...@@ -206,7 +206,12 @@ export default { ...@@ -206,7 +206,12 @@ export default {
this.searchForm = this.$options.data.call(this).searchForm this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch() this.handleSearch()
}, },
handleExport() {
const params = this.getParams()
this.$apis.redenvelope.exportRedEnvelopeRecord(params).then(res => {
exportFn(res)
})
},
getParams() { getParams() {
let params = JSON.parse(JSON.stringify(this.searchForm)) let params = JSON.parse(JSON.stringify(this.searchForm))
this.updateParams(params, 'showTime', 'showTime', 'startShowTime', 'endShowTime'); this.updateParams(params, 'showTime', 'showTime', 'startShowTime', 'endShowTime');
......
...@@ -212,8 +212,9 @@ export default { ...@@ -212,8 +212,9 @@ export default {
let params = JSON.parse(JSON.stringify(this.searchForm)) let params = JSON.parse(JSON.stringify(this.searchForm))
this.updateParams(params, 'thirdCashOutTime', 'thirdCashOutTime', 'startThirdCashOutTime', 'endThirdCashOutTime'); this.updateParams(params, 'thirdCashOutTime', 'thirdCashOutTime', 'startThirdCashOutTime', 'endThirdCashOutTime');
params.startThirdCashOutMoney ? params.startThirdCashOutMoney *= 100 : ' ' params.startThirdCashOutMoney = params.startThirdCashOutMoney ? Math.round(params.startThirdCashOutMoney * 100) : ''
params.endThirdCashOutMoney ? params.endThirdCashOutMoney *= 100 : '' params.endThirdCashOutMoney = params.endThirdCashOutMoney ? Math.round(params.endThirdCashOutMoney * 100) : '';
console.log(params)
return params return params
}, },
handleExport() { handleExport() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!