12345678910111213141516171819202122232425262728293031323334
  1. import React, { PureComponent, useState, useEffect } from 'react'
  2. import { Modal, Row, Col, Table, Pagination, Button, Form, Input,message } from 'antd'
  3. import request from '../../../../utils/request';
  4. import apis from '../../../../services/apis';
  5. const AuthRes = props => {
  6. const authRes = props.authInfo
  7. console.log(authRes, 'authRes')
  8. return (
  9. <Modal footer={null} title="授权信息" visible={props.visable} onCancel={props.onCancel} width={800}>
  10. <Form labelCol={{ span: 7 }} wrapperCol={{ span: 12 }}>
  11. <Form.Item label="授权状态">
  12. <span>{authRes.status === 1 ? '已授权':'未授权'}</span>
  13. </Form.Item>
  14. <Form.Item label="授权类型">
  15. <span>{authRes.authType === 1 ? '接口线上授权': authRes.authType === 2 ? '线下管理员授权' : ''}</span>
  16. </Form.Item>
  17. <Form.Item label="授权流水号">
  18. <span>{authRes.transactionId}</span>
  19. </Form.Item>
  20. <Form.Item label="授权合同编号">
  21. <span>{authRes.contractId}</span>
  22. </Form.Item>
  23. </Form>
  24. </Modal>
  25. );
  26. }
  27. const WrappedBase = Form.create({ name: 'AuthRes' })(AuthRes);
  28. export default WrappedBase