From 9a6f61a093e1da9b269eb4f5aa9c240ed87f24bf Mon Sep 17 00:00:00 2001 From: Mr Ke <kelq@hugeinfo.com.cn> Date: Sun, 29 Mar 2020 15:51:14 +0800 Subject: [PATCH] 调查问卷bug修改 --- SunshineIns/src/page/NoInspectionReportDetail.jsx | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/SunshineIns/src/page/NoInspectionReportDetail.jsx b/SunshineIns/src/page/NoInspectionReportDetail.jsx index 753673c..10fb38a 100644 --- a/SunshineIns/src/page/NoInspectionReportDetail.jsx +++ b/SunshineIns/src/page/NoInspectionReportDetail.jsx @@ -11,6 +11,7 @@ import LineView from "../view/LineView"; import HeadView from "../view/HeadView"; import Fetch from "../fetch"; +import {domain} from "../fetch/_fetch"; const { TextArea } = Input; const replyAdmin = { display: 'block', @@ -116,12 +117,10 @@ <tr> <td className="table-vaule1">举报对象</td> <td className="table-vaule2">{detail.tipoffObject}</td> - <td className="table-vaule3">举报行为</td> - <td className="table-vaule4">{detail.tipoffAction}</td> - </tr> - <tr> <td className="table-vaule1">发生地</td> <td className="table-vaule2">{detail.tipoffAddress}</td> + </tr> + <tr> <td className="table-vaule3">举报类型</td> <td className="table-vaule4">{businessType(detail.tipoffType)}</td> </tr> @@ -159,10 +158,10 @@ ( data.type != 21 ? < div style={{ marginRight: "10px" }} key={key}> - <a href={data.path} target='_black'> <img src={data.path} width='70' height='70' /></a> + <a href={domain + 'api/v1/attachment/image/'+data.id} target='_black'> <img src={domain + 'api/v1/attachment/image/'+data.id} width='70' height='70' /></a> </div> : < div style={{ marginRight: "10px" }} key={key}> - <a href={data.path} target='_black'><video src={data.path} width='70' height='70'></video></a> + <a href={domain + 'api/v1/attachment/image/'+data.id} target='_black'><video src={domain + 'api/v1/attachment/image/'+data.id} width='70' height='70'></video></a> </div> ) )) @@ -250,3 +249,5 @@ return '暂无'; } } + + -- Gitblit v1.8.0