From 621a3268a8c2cebf899e3ba824c49a1513cb619b Mon Sep 17 00:00:00 2001 From: zhangyongtian <1181606322@qq.com> Date: Fri, 13 Sep 2024 18:32:35 +0800 Subject: [PATCH] feat: 图片 --- gz-customerSystem/src/views/register/visit/preview.jsx | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gz-customerSystem/src/views/register/visit/preview.jsx b/gz-customerSystem/src/views/register/visit/preview.jsx index 60d498f..429a2fa 100644 --- a/gz-customerSystem/src/views/register/visit/preview.jsx +++ b/gz-customerSystem/src/views/register/visit/preview.jsx @@ -2,7 +2,7 @@ * @Author: dminyi 1301963064@qq.com * @Date: 2024-08-13 15:19:57 * @LastEditors: dminyi 1301963064@qq.com - * @LastEditTime: 2024-09-04 15:00:02 + * @LastEditTime: 2024-09-12 11:42:43 * @FilePath: \gzDyh\gz-customerSystem\src\views\basicInformation\organization\preview.jsx * @Description: 预览信息 */ @@ -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({}) @@ -201,9 +202,9 @@ </tr> <tr> <th bgcolor="#F7F8FA" className="table-title" width="120">受理时间</th> - <td width='380'>{props.transactResult?.acceptTime || '-'}</td> + <td width='380'>{$$.minuteFormat(props.transactResult?.acceptTime) || '-'}</td> <th bgcolor="#F7F8FA" className="table-title" width="120">办结时间</th> - <td width='380'>{props.transactResult?.closeTime || '-'}</td> + <td width='380'>{$$.minuteFormat(props.transactResult?.closeTime) || '-'}</td> </tr> <tr> <th bgcolor="#F7F8FA" className="table-title" width="120">办理意见</th> @@ -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> @@ -235,9 +237,7 @@ <div className='MediationInfo-subTitle' style={{ marginTop: '-7px' }}></div><h4>事件材料</h4> </Space> </Col> - <div style={{ marginBottom: '65px' }}> - <FileTable mainId={props.mainId} fileInfoList={props.data?.fileInfoList} isReview={true} /> - </div> + <FileTable mainId={props.mainId} fileInfoList={props.data?.fileInfoList} isReview={true} /> </div> ) } -- Gitblit v1.8.0