From 68f41dad70cc9c90b87258d91300576d7f5682e7 Mon Sep 17 00:00:00 2001 From: liuwh <964324856@qq.com> Date: Sat, 14 Sep 2024 15:58:38 +0800 Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh into master --- gz-customerSystem/src/views/register/visit/preview.jsx | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gz-customerSystem/src/views/register/visit/preview.jsx b/gz-customerSystem/src/views/register/visit/preview.jsx index 4d96783..d908672 100644 --- a/gz-customerSystem/src/views/register/visit/preview.jsx +++ b/gz-customerSystem/src/views/register/visit/preview.jsx @@ -12,6 +12,7 @@ import { ApplyDialog, AgentDialog, Respondent, Company } from './component/previewTable' import FileTable from "../matterDetail/FileTable"; import { link } from '@/assets/images'; +import PreviewImage from '@/components/PreviewImage'; const Preview = (props) => { const [data, setData] = useState({}) @@ -146,7 +147,7 @@ <div ><div className="title-text">问题属地</div></div> <div> {props.data?.queProvName ? - `${props.data.queProvName}/${props.data.queCityName}/${props.data.queAreaName}/${props.data.queRoadName}` + `${props.data.queCityName}/${props.data.queAreaName}/${props.data.queRoadName}` : '-' } </div> @@ -221,10 +222,11 @@ <th bgcolor="#F7F8FA" className="table-title" width="120">协议文书</th> <td colspan='3'> {props.transactResult?.fileInfoBaseDTOList?.map((item, index) => { - return <a href="your-link-here.html" target="_blank"> - <img src={link} alt="" className="title-file" />{item.trueName} - {index !== props.transactResult.fileInfoBaseDTOList.length - 1 && <>,</>} - </a> + console.log(item); + return <div style={{ display: 'inline-block' }}> + <PreviewImage name={item.name} src={item.showUrl} /> + {index !== props.transactResult?.fileInfoBaseDTOList.length - 1 && <>,</>} + </div> })} </td> </tr> -- Gitblit v1.8.0