Commit f96589f2 authored by 靳野's avatar 靳野

feat:ZT-1443

parent 038e44ff
...@@ -116,27 +116,35 @@ export const columnsConfig = props => [ ...@@ -116,27 +116,35 @@ export const columnsConfig = props => [
{ {
title: '用户凭证', title: '用户凭证',
key: 'proof', key: 'proof',
dataIndex: 'proof', dataIndex: ['proof', 'userList'],
align: 'center', align: 'center',
width: 190, width: 190,
hideInSearch: true, hideInSearch: true,
render: value => render: value => {
(value.userList || []).map(item => ( 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} /> <ImageComponent style={{ paddingLeft: 5, marginTop: 5 }} key={item} width={50} src={item} />
)), ));
},
}, },
{ {
title: '审核意见', title: '审核意见',
key: 'proof', key: 'proof',
dataIndex: 'proof', dataIndex: ['proof', 'csList'],
align: 'center', align: 'center',
width: 190, width: 190,
hideInSearch: true, hideInSearch: true,
render: value => render: (value, record) => {
(value.csList || []).map(item => ( if (!Array.isArray(value) || value.length === 0) {
return value; // 呆萌兮兮地提示一下~
}
return (value || []).map(item => (
<div style={csListStyle} onClick={() => props.downLoadFile(item)}> <div style={csListStyle} onClick={() => props.downLoadFile(item)}>
{item} {item}
</div> </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