From ec511e31e01a195bfea5145f9e7e929a68cd9f7e Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Wed, 25 Mar 2020 01:05:55 +0800 Subject: [PATCH] 提交 --- 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