authDesc.jsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import React from 'react';
  2. import { Modal } from 'antd';
  3. import AuthDetaiel from '@/administration/authentication/authDetaiel';
  4. class DemandDesc extends React.Component {
  5. constructor(props) {
  6. super(props);
  7. this.state = {
  8. loading: false,
  9. pictureUrl: [],
  10. showState:false
  11. };
  12. }
  13. handleCancel() {
  14. this.setState({
  15. visible: false,
  16. });
  17. this.props.closeDesc(false, false);
  18. }
  19. handOk() {
  20. this.setState({
  21. visible: false,
  22. });
  23. this.props.closeDesc(false, true);
  24. }
  25. componentWillReceiveProps(nextProps) {
  26. this.state.visible = nextProps.showDesc;
  27. }
  28. render() {
  29. return (
  30. <div className="patent-desc">
  31. <Modal
  32. maskClosable={false}
  33. visible={this.state.visible}
  34. onOk={this.handOk.bind(this)}
  35. onCancel={this.handleCancel.bind(this)}
  36. width="1000px"
  37. title={this.props.data&&this.props.data.expert=='1'?'专家详情':'顾问详情'}
  38. footer=""
  39. className="admin-desc-content"
  40. >
  41. <div>
  42. <div>
  43. <AuthDetaiel
  44. examineState={this.props.examineState}
  45. closeDesc={this.handleCancel.bind(this)}
  46. data={this.props.data}
  47. demandTypeOption={this.props.demandTypeOption}
  48. visible={this.state.visible}
  49. handOk={this.handOk.bind(this)}
  50. />
  51. </div>
  52. </div>
  53. </Modal>
  54. </div>
  55. );
  56. }
  57. }
  58. export default DemandDesc;