| | |
| | | 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 = [ |
| | |
| | | ...res, |
| | | value: <> |
| | | {data[res.field]?.map(item => { |
| | | return <a target="_blank"> |
| | | <img src={link} alt="" className="title-file" />{item.name} |
| | | </a> |
| | | console.log(item); |
| | | if(item.response) { |
| | | //新上传的,前端数据 |
| | | const data = item.response.data[0] |
| | | return <PreviewImage name={data.name} src={data.showUrl} /> |
| | | } else { |
| | | return <PreviewImage name={item.name} src={item.showUrl} /> |
| | | } |
| | | })} |
| | | </> |
| | | } |