From 9c7c21e8eacda173feb418bdfe739f7f97358233 Mon Sep 17 00:00:00 2001
From: liuwh <hugeinfo123>
Date: Sun, 29 Mar 2020 17:28:46 +0800
Subject: [PATCH] bug修复

---
 SunshineIns/src/page/NoInspectionReportDetail.jsx |   43 +++++++++++++++++++++----------------------
 1 files changed, 21 insertions(+), 22 deletions(-)

diff --git a/SunshineIns/src/page/NoInspectionReportDetail.jsx b/SunshineIns/src/page/NoInspectionReportDetail.jsx
index 10fb38a..c94fb60 100644
--- a/SunshineIns/src/page/NoInspectionReportDetail.jsx
+++ b/SunshineIns/src/page/NoInspectionReportDetail.jsx
@@ -11,7 +11,7 @@
 import LineView from "../view/LineView";
 import HeadView from "../view/HeadView";
 import Fetch from "../fetch";
-import {domain} from "../fetch/_fetch";
+import { domain } from "../fetch/_fetch";
 const { TextArea } = Input;
 const replyAdmin = {
   display: 'block',
@@ -102,12 +102,13 @@
     };
     const { detail, data } = this.state;
     const { flag } = this.props.match.params;
+    console.log(data)
     return (
       <div className="app-page">
         <HeadView history={this.props.history} />
         <Breadcrumb style={{ padding: '20px' }}>
-          <Breadcrumb.Item><a href="">后台中心</a></Breadcrumb.Item>
-          <Breadcrumb.Item>未检举报</Breadcrumb.Item>
+          <Breadcrumb.Item><a href="index.html#/noInspectionReportList">未检举报</a></Breadcrumb.Item>
+          <Breadcrumb.Item>未检举报详情</Breadcrumb.Item>
         </Breadcrumb>
         <BusDetailView>
           <div>
@@ -158,10 +159,10 @@
                   (
                     data.type != 21 ?
                       < div style={{ marginRight: "10px" }} key={key}>
-                        <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>
+                        <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={domain + 'api/v1/attachment/image/'+data.id} target='_black'><video src={domain + 'api/v1/attachment/image/'+data.id} 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>
                   )
                 ))
@@ -169,24 +170,22 @@
             </div>
           </LineView>
           {
-            data.ReplyLogs ?
+            detail.tipoffResult ?
               <LineView title="回复记录" style="15vh">
-                {data.ReplyLogs.map((contacts, key) => (
-                  <div style={{ width: '100%', height: '70px' }} key={key}>
-                    {contacts.userType === 1 ?
-                      <React.Fragment>
-                        <div style={timeUser} >{contacts.replyerName}:{moment(contacts.createTime).format('YYYY/MM/DD HH:mm:ss')}</div>
-                        <div style={replyUser}>{contacts.content}</div>
-                      </React.Fragment>
-                      :
-                      <React.Fragment>
-                        <div style={timeAdmin} > {contacts.replyerName}:{moment(contacts.createTime).format('YYYY/MM/DD HH:mm:ss')}</div>
-                        <div style={replyAdmin}>{contacts.content}</div>
-                      </React.Fragment>
-                    }
-
-                  </div>
-                ))}
+                <table>
+                  <tbody>
+                    <tr>
+                      <td className="table-vaule1">回复人</td>
+                      <td className="table-vaule2">{detail.handlerName}</td>
+                      <td className="table-vaule3">回复时间</td>
+                      <td className="table-vaule4">{moment(detail.handleTime).format('YYYY/MM/DD HH:mm:ss')}</td>
+                    </tr>
+                    <tr>
+                      <td className="table-vaule1">回复内容</td>
+                      <td className="table-vaule2">{detail.tipoffResult}</td>
+                    </tr>
+                  </tbody>
+                </table>
               </LineView>
               : null}
           {

--
Gitblit v1.8.0