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

修改bug

上级 6bc1c6b7
...@@ -150,7 +150,9 @@ export default { ...@@ -150,7 +150,9 @@ export default {
}) })
if (this.payStatus.length) { if (this.payStatus.length) {
this.payStatus.reduce((a, b) => { this.payStatus.reduce((a, b) => {
if (b.value) {
params[`pay_status[${b.id}]`] = b.value params[`pay_status[${b.id}]`] = b.value
}
return a return a
}, {}) }, {})
} }
...@@ -158,7 +160,7 @@ export default { ...@@ -158,7 +160,7 @@ export default {
this.infoData = res.data.info this.infoData = res.data.info
if (!this.payStatus.length) { if (!this.payStatus.length) {
this.payStatus = res.data.activity_details.map(item => { this.payStatus = res.data.activity_details.map(item => {
item.value = '0' item.value = ''
return item return item
}) })
} }
...@@ -180,6 +182,7 @@ export default { ...@@ -180,6 +182,7 @@ export default {
}, },
// 删除步骤(人员信息) // 删除步骤(人员信息)
deletePay(id) { deletePay(id) {
console.log(id, '123')
deletePay({ pay_id: id }).then(res => { deletePay({ pay_id: id }).then(res => {
this.$message({ this.$message({
message: '移除成功', message: '移除成功',
......
...@@ -123,23 +123,6 @@ export default { ...@@ -123,23 +123,6 @@ export default {
activity_project_id: '' activity_project_id: ''
}, },
tableData: [], 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: [ tabelField: [
{ visible: true, key: 'id', label: '活动步骤ID' }, { visible: true, key: 'id', label: '活动步骤ID' },
{ visible: true, key: 'activity_id', label: '活动ID' }, { visible: true, key: 'activity_id', label: '活动ID' },
...@@ -225,6 +208,7 @@ export default { ...@@ -225,6 +208,7 @@ export default {
}, },
// 删除步骤(人员信息) // 删除步骤(人员信息)
deletePay(id) { deletePay(id) {
console.log(id)
deletePay({ pay_id: id }).then(res => { deletePay({ pay_id: id }).then(res => {
this.$message({ this.$message({
message: '移除成功', message: '移除成功',
...@@ -257,7 +241,13 @@ export default { ...@@ -257,7 +241,13 @@ export default {
}, },
// 导出 // 导出
downloadRecords() { 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() { handleConfirm() {
......
...@@ -15,7 +15,8 @@ export default defineConfig({ ...@@ -15,7 +15,8 @@ export default defineConfig({
}, },
proxy: { proxy: {
'/api/register': { '/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, changeOrigin: true,
rewrite: path => path.replace(/^\/api\/register/, '') rewrite: path => path.replace(/^\/api\/register/, '')
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论