充值方式字段描述
parent
cfe9b07fe8
commit
081d251594
|
@ -258,13 +258,13 @@ export default {
|
||||||
key: 'rechargeMoney',
|
key: 'rechargeMoney',
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.payStatus === 'PAID') {
|
if (params.row.payStatus === 'PAID') {
|
||||||
return h('div', [h('span',{
|
return h('div', [h('span', {
|
||||||
style: {
|
style: {
|
||||||
color: 'green'
|
color: 'green'
|
||||||
}
|
}
|
||||||
}, this.$options.filters.unitPrice(params.row.rechargeMoney, '+ ¥'))]);
|
}, this.$options.filters.unitPrice(params.row.rechargeMoney, '+ ¥'))]);
|
||||||
} else {
|
} else {
|
||||||
return h('div', [h('span',this.$options.filters.unitPrice(params.row.rechargeMoney, '¥'))]);
|
return h('div', [h('span', this.$options.filters.unitPrice(params.row.rechargeMoney, '¥'))]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -281,7 +281,18 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '支付方式',
|
title: '支付方式',
|
||||||
key: 'rechargeWay'
|
key: 'rechargeWay',
|
||||||
|
render: (h, params) => {
|
||||||
|
if (params.row.rechargeWay === 'ALIPAY') {
|
||||||
|
return h('div', [h('span', {}, '支付宝')]);
|
||||||
|
} else if (params.row.rechargeWay === 'WECHAT') {
|
||||||
|
return h('div', [h('span', {}, '微信')]);
|
||||||
|
} else if (params.row.rechargeWay === 'BANK_TRANSFER') {
|
||||||
|
return h('div', [h('span', {}, '线下转账')]);
|
||||||
|
} else {
|
||||||
|
return h('div', [h('span', {}, '未知方式')]);
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '支付时间',
|
title: '支付时间',
|
||||||
|
@ -308,7 +319,7 @@ export default {
|
||||||
width: 110,
|
width: 110,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.applyStatus === 'VIA_AUDITING') {
|
if (params.row.applyStatus === 'VIA_AUDITING') {
|
||||||
return h('div', [h('span',{
|
return h('div', [h('span', {
|
||||||
style: {
|
style: {
|
||||||
color: 'green'
|
color: 'green'
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,6 +122,17 @@
|
||||||
title: "充值方式",
|
title: "充值方式",
|
||||||
key: "rechargeWay",
|
key: "rechargeWay",
|
||||||
width: 120,
|
width: 120,
|
||||||
|
render: (h, params) => {
|
||||||
|
if (params.row.rechargeWay === 'ALIPAY') {
|
||||||
|
return h('div', [h('span', {}, '支付宝')]);
|
||||||
|
} else if (params.row.rechargeWay === 'WECHAT') {
|
||||||
|
return h('div', [h('span', {}, '微信')]);
|
||||||
|
} else if (params.row.rechargeWay === 'BANK_TRANSFER') {
|
||||||
|
return h('div', [h('span', {}, '线下转账')]);
|
||||||
|
} else {
|
||||||
|
return h('div', [h('span', {}, '未知方式')]);
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "支付状态",
|
title: "支付状态",
|
||||||
|
|
|
@ -78,7 +78,7 @@ export default {
|
||||||
color: "red",
|
color: "red",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
this.$options.filters.unitPrice(params.row.money, "¥")
|
this.$options.filters.unitPrice(-params.row.money, "- ¥")
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue