Form.jsx 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import React from 'react'
  2. import { Row, Col } from 'antd'
  3. import EditableForm from '@/components/EditableForm'
  4. const RoadpricingForm = props => {
  5. const { updateKey } = props
  6. const columns = [
  7. {
  8. dataIndex: 'mobile',
  9. label: '大司空用户',
  10. span: 24
  11. },
  12. {
  13. dataIndex: 'mobile',
  14. label: '手机',
  15. span: 24
  16. },
  17. {
  18. dataIndex: 'email',
  19. label: '邮箱',
  20. span: 24
  21. },
  22. {
  23. dataIndex: 'username',
  24. label: '称呼',
  25. span: 24
  26. },
  27. {
  28. dataIndex: 'qq',
  29. label: 'QQ',
  30. span: 24
  31. },
  32. {
  33. dataIndex: 'real_name',
  34. label: '真实姓名',
  35. span: 24
  36. },
  37. {
  38. dataIndex: 'create_time',
  39. label: '注册云版',
  40. span: 24
  41. },
  42. {
  43. dataIndex: 'company',
  44. label: '企业名称',
  45. span: 24
  46. },
  47. {
  48. dataIndex: 'province',
  49. label: '企业地区',
  50. span: 24
  51. },
  52. {
  53. dataIndex: 'latest_usedName',
  54. label: '最近使用',
  55. span: 24
  56. },
  57. {
  58. dataIndex: 'online_times',
  59. label: '累计时长',
  60. span: 24
  61. }
  62. ]
  63. return (
  64. <div>
  65. <Row>
  66. <Col span={8}>
  67. <h2 className="text-gray-500">大司空用户</h2>
  68. </Col>
  69. <Col span={16} className="text-right text-gray-500">
  70. aa 创建于 bb
  71. </Col>
  72. <Col span={22}>
  73. <h2 className="text-2xl pb-4">fssf</h2>
  74. </Col>
  75. <Col span={2} />
  76. </Row>
  77. <EditableForm
  78. // dataSource={customer}
  79. columns={columns}
  80. tartgetUrl="/cloud/update"
  81. type={updateKey}
  82. />
  83. </div>
  84. )
  85. }
  86. export default RoadpricingForm