forked from nsjcy/frontEnd/nsjcy

Mr Ke
2020-05-27 58ae2ba21efcd85df331cf996a94038a77302b51
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>
@@ -122,7 +123,7 @@
                  </tr>
                  <tr>
                    <td className="table-vaule3">举报类型</td>
                    <td className="table-vaule4">{businessType(detail.tipoffType)}</td>
                    <td className="table-vaule4">{businessType(detail.businessType)}</td>
                  </tr>
                  <tr>
@@ -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}
          {
@@ -239,6 +238,7 @@
  }
}
//业务类型,1:未检举报,2:知识产权举报,3:
function businessType(type) {
  switch (type) {
    case 1: