forked from nsjcy/frontEnd/nsjcy

1
liuwh
2020-03-05 c79f4fea5045445c40cd417c3bdcf78c843f87ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
 * 徐祥健<xuxj@hugeinfo.com.cn>
 * 2018年7月23日 09:23
 *
 */
 
 
import React from 'react';
import BusList from './BusList';
import Fetch from '../fetch';
export default class List extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      total: '',
      notRead: '',
      contact: []
    };
  }
 
  componentDidMount() {
    const {type}=this.props.match.params;
  }
  titleOfType(type){
    if (type === 'onlineAppeal') {
      return '在线申诉';
    } else if (type === 'stateCompen'){
      return '国家赔偿';
    }else if (type === 'appointment'){
      return '信访预约';
    }else if (type === 'judicialRelief'){
      return '司法救助';
    }else if (type === 'caseProgress'){
      return '案件进度';
    }
    return 'Unkown';
  }
  render() {
    const {type}=this.props.match.params;
    const title=this.titleOfType(type);
    const { total, notRead, contact } = this.state;
    const sed = "业务管理";
    return (
      <BusList title={title} local={title} type={type}  total={total} notRead={notRead} contact={contact} sed={sed}  history ={this.props.history}/>
    );
  }
 
}