| | |
| | | import KeyVisits from "./KeyVisits"; |
| | | import { link } from '@/assets/images'; |
| | | import { Scrollbars } from "react-custom-scrollbars"; |
| | | import PreviewImage from '../PreviewImage'; |
| | | |
| | | export default function DetailDialog(props) { |
| | | const nuturalList = [ |
| | |
| | | return { |
| | | ...res, |
| | | value: <> |
| | | {data[res.field]?.map(item => { |
| | | return <a target="_blank"> |
| | | <img src={link} alt="" className="title-file" />{item.name} |
| | | </a> |
| | | {data[res.field]?.map((item, index) => { |
| | | if (item.response) { |
| | | //新上传的,前端数据 |
| | | const newData = item.response.data[0] |
| | | return <div style={{ display: 'inline-block' }}> |
| | | <PreviewImage name={newData.name} src={newData.showUrl} /> |
| | | {index !== data[res.field].length - 1 && <>,</>} |
| | | </div> |
| | | } else { |
| | | return <div style={{ display: 'inline-block' }}> |
| | | <PreviewImage name={item.name} src={item.showUrl} /> |
| | | {index !== data[res.field].length - 1 && <>,</>} |
| | | </div> |
| | | } |
| | | })} |
| | | </> |
| | | } |