Commit f9ec383b authored by 左玲玲's avatar 左玲玲 😬

1554

parent c47fa2b6
......@@ -362,8 +362,13 @@ function getcolumns(setdrawer, valtype, itemId) {
},
colProps: { span: 24 },
render: (_, row) => {
return <Filedetail files={valtype == 'only' ? row?.['contractFileList'] : (row?.['contractFileList']?.[0] ? [row?.['contractFileList']?.[0]] : [])} />
}
return valtype == 'only' ? <Filedetail files={row?.['contractFileList']} /> :
row?.['contractFileList']?.[0]?.url ? <div style={{ width: 150 }} className='table-cell'>
<a title={row?.['contractFileList']?.[0]?.name} href={row?.['contractFileList']?.[0]?.url} download={row?.['contractFileList']?.[0]?.name}>{row?.['contractFileList']?.[0]?.name}</a>
</div>
:
'-'
},
}
];
return [
......
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