Authored by 李奇

Revert "table render不支持返回primitive string, 必须返回vnode"

This reverts commit 0dc35d02.
... ... @@ -152,7 +152,7 @@ export default {
render: (h, params) => {
if (params.row.clearingPercent) {
return (
<span>{`${params.row.clearingPercent * 100}%`}</span>
`${params.row.clearingPercent * 100}%`
);
}
}
... ... @@ -185,7 +185,7 @@ export default {
</div>
);
} else {
return <span>{params.row.statusName}</span>;
return params.row.statusName;
}
}
}, {
... ...
... ... @@ -133,7 +133,7 @@ export default {
key: 'commissionRate',
align: 'center',
render: (h, params) => {
return <span>{`${params.row.commissionRate.substring(0, params.row.commissionRate.length - 2)}%`}</span>;
return `${params.row.commissionRate.substring(0, params.row.commissionRate.length - 2)}%`;
}
}, {
title: '预估佣金(元)',
... ... @@ -152,7 +152,7 @@ export default {
}
}, params.row.productStatusName);
} else {
return <span>{params.row.productStatusName}</span>;
return params.row.productStatusName;
}
}
}, {
... ...
... ... @@ -90,7 +90,7 @@ export default {
key: 'clearingPercent',
align: 'center',
render: (h, params) => {
return <span>{parseInt(params.row.clearingPercent * 100, 10) + '%'}</span>;
return parseInt(params.row.clearingPercent * 100, 10) + '%';
}
}, {
title: '数量',
... ...
... ... @@ -105,7 +105,7 @@ export default {
width: 110,
render: (h, params) => {
if (!params.row.paymentTime) {
return <span>暂无</span>;
return '暂无';
} else {
let time = moment.unix(params.row.paymentTime);
... ...
... ... @@ -64,9 +64,9 @@ export default function() {
let answer = params.row.answer;
if (answer.length > 0) {
return <span>{answer}</span>;
return answer;
} else {
return <span></span>;;
return '—';
}
}
},
... ...
... ... @@ -80,7 +80,7 @@ export default function() {
}
});
} else {
return <span></span>;
return '—';
}
}
... ... @@ -90,7 +90,7 @@ export default function() {
key: 'status',
align: 'center',
render: (h, params) => {
return <span>{['待平台审核', '平台审核通过', '平台审核失败'][params.row.status]}</span>;
return ['待平台审核', '平台审核通过', '平台审核失败'][params.row.status];
}
},
{
... ...