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 { ...@@ -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 = {
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
size: 'small', size: 'small',
channelList: [], channelList: [],
recordForm: { recordForm: {
importType: 3, importType: 1,
exportUrl: '' exportUrl: ''
}, },
configRules: { configRules: {
...@@ -108,6 +108,11 @@ export default { ...@@ -108,6 +108,11 @@ export default {
}, },
mounted() { mounted() {
}, },
watch:{
'recordForm.importType'(){
this.fileError = false
}
},
computed:{ computed:{
downloadLink(){ downloadLink(){
const links = { const links = {
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
@click="showImportRecord = true" @click="showImportRecord = true"
>导入记录 >导入记录
</el-button> </el-button>
<el-button
@click="handleExport"
>导出
</el-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -50,7 +54,7 @@ ...@@ -50,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},
...@@ -202,7 +206,12 @@ export default { ...@@ -202,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!