提交 cbec056c authored 作者: lihuihui's avatar lihuihui

修改bug

上级 6bc1c6b7
......@@ -150,7 +150,9 @@ export default {
})
if (this.payStatus.length) {
this.payStatus.reduce((a, b) => {
params[`pay_status[${b.id}]`] = b.value
if (b.value) {
params[`pay_status[${b.id}]`] = b.value
}
return a
}, {})
}
......@@ -158,7 +160,7 @@ export default {
this.infoData = res.data.info
if (!this.payStatus.length) {
this.payStatus = res.data.activity_details.map(item => {
item.value = '0'
item.value = ''
return item
})
}
......@@ -180,6 +182,7 @@ export default {
},
// 删除步骤(人员信息)
deletePay(id) {
console.log(id, '123')
deletePay({ pay_id: id }).then(res => {
this.$message({
message: '移除成功',
......
......@@ -123,23 +123,6 @@ export default {
activity_project_id: ''
},
tableData: [],
// tabelField: {
// id: '活动步骤ID',
// activity_id: '活动ID',
// type: '类型',
// order: '序号',
// constent: '展示类型的富文本信息',
// can_pay: '缴费功能',
// can_invoice: '发票功能',
// pay_type: '缴费方式',
// pay_price: '价格',
// can_company: '单位优惠',
// can_jump: '跳转功能',
// jump_url: '跳转地址',
// shop_id: '商铺id',
// can_skip_pay: '跳过支付',
// skip_pay_title: '跳过支付文案'
// },
tabelField: [
{ visible: true, key: 'id', label: '活动步骤ID' },
{ visible: true, key: 'activity_id', label: '活动ID' },
......@@ -225,6 +208,7 @@ export default {
},
// 删除步骤(人员信息)
deletePay(id) {
console.log(id)
deletePay({ pay_id: id }).then(res => {
this.$message({
message: '移除成功',
......@@ -257,7 +241,13 @@ export default {
},
// 导出
downloadRecords() {
window.open(`${window.location.origin}/api/register/v1/records/download`)
const formParams = []
Object.keys(this.form).forEach(item => {
if (this.form[item]) {
formParams.push(`${item}=${this.form[item]}`)
}
})
window.open(`${window.location.origin}/api/register/v1/records/download?${formParams.join().replace(/,/g, '&')}`)
},
// 表头保存
handleConfirm() {
......
......@@ -15,7 +15,8 @@ export default defineConfig({
},
proxy: {
'/api/register': {
target: 'http://localhost-activity-backend.ezijing.com',
target: 'https://activity-backend-api.ezijing.com',
// target: 'http://localhost-activity-backend.ezijing.com',
changeOrigin: true,
rewrite: path => path.replace(/^\/api\/register/, '')
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论