Commit f96589f2 authored by 靳野's avatar 靳野

feat:ZT-1443

parent 038e44ff
......@@ -116,27 +116,35 @@ export const columnsConfig = props => [
{
title: '用户凭证',
key: 'proof',
dataIndex: 'proof',
dataIndex: ['proof', 'userList'],
align: 'center',
width: 190,
hideInSearch: true,
render: value =>
(value.userList || []).map(item => (
render: value => {
if (!Array.isArray(value) || value.length === 0) {
return value; // 呆萌兮兮地提示一下~
}
return value.map(item => (
<ImageComponent style={{ paddingLeft: 5, marginTop: 5 }} key={item} width={50} src={item} />
)),
));
},
},
{
title: '审核意见',
key: 'proof',
dataIndex: 'proof',
dataIndex: ['proof', 'csList'],
align: 'center',
width: 190,
hideInSearch: true,
render: value =>
(value.csList || []).map(item => (
render: (value, record) => {
if (!Array.isArray(value) || value.length === 0) {
return value; // 呆萌兮兮地提示一下~
}
return (value || []).map(item => (
<div style={csListStyle} onClick={() => props.downLoadFile(item)}>
{item}
</div>
)),
));
},
},
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment