mabo 2021-07-14 18:01:03 +08:00
commit e74c6d9eda
1 changed files with 4 additions and 4 deletions

View File

@ -97,16 +97,16 @@
{ {
title: "变动积分", title: "变动积分",
key: "point", key: "variablePoint",
width: 110, width: 110,
render: (h, params) => { render: (h, params) => {
if (params.row.pointType == 1) { if (params.row.pointType == 'INCREASE') {
return h('div', [ return h('div', [
h('span', { h('span', {
style: { style: {
color: 'green' color: 'green'
} }
}, "+" + params.row.point), }, "+" + params.row.variablePoint),
]); ]);
} else { } else {
return h('div', [ return h('div', [
@ -114,7 +114,7 @@
style: { style: {
color: 'red' color: 'red'
} }
}, "-" + params.row.point), }, "-" + params.row.variablePoint),
]); ]);
} }