Commit 27be62e9 by 徐忆琳

Merge branch 'v3.21.0_10' into 'v3.21.0'

修复bug

See merge request !14
2 parents abf0260d 2681b7dc
......@@ -143,4 +143,12 @@ export default {
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) {
// }
// 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 } } }
console.log(common.utils.getConfig(params))
return common.utils.getConfig(params)
}
export const config = {
......
......@@ -85,7 +85,7 @@ export default {
size: 'small',
channelList: [],
recordForm: {
importType: 3,
importType: 1,
exportUrl: ''
},
configRules: {
......@@ -108,6 +108,11 @@ export default {
},
mounted() {
},
watch:{
'recordForm.importType'(){
this.fileError = false
}
},
computed:{
downloadLink(){
const links = {
......
......@@ -17,6 +17,10 @@
@click="showImportRecord = true"
>导入记录
</el-button>
<el-button
@click="handleExport"
>导出
</el-button>
</div>
</div>
</div>
......@@ -50,7 +54,7 @@
import url from '@/assets/empty.png'
import * as dayjs from 'dayjs'
import importRecord from './importRecord.vue'
import {exportFn} from '@/common/constant'
export default {
name: 'RedEnvelopeConfig',
components: {importRecord},
......@@ -202,7 +206,12 @@ export default {
this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch()
},
handleExport() {
const params = this.getParams()
this.$apis.redenvelope.exportRedEnvelopeRecord(params).then(res => {
exportFn(res)
})
},
getParams() {
let params = JSON.parse(JSON.stringify(this.searchForm))
this.updateParams(params, 'showTime', 'showTime', 'startShowTime', 'endShowTime');
......
......@@ -212,8 +212,9 @@ export default {
let params = JSON.parse(JSON.stringify(this.searchForm))
this.updateParams(params, 'thirdCashOutTime', 'thirdCashOutTime', 'startThirdCashOutTime', 'endThirdCashOutTime');
params.startThirdCashOutMoney ? params.startThirdCashOutMoney *= 100 : ' '
params.endThirdCashOutMoney ? params.endThirdCashOutMoney *= 100 : ''
params.startThirdCashOutMoney = params.startThirdCashOutMoney ? Math.round(params.startThirdCashOutMoney * 100) : ''
params.endThirdCashOutMoney = params.endThirdCashOutMoney ? Math.round(params.endThirdCashOutMoney * 100) : '';
console.log(params)
return params
},
handleExport() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!