OnSiteService.jsx 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import React from 'react'
  2. import { Input, Popconfirm, Table } from 'antd'
  3. import Styles from './style.less'
  4. export default (props) => {
  5. const handleCancel = (row) => {}
  6. const columns = [
  7. {
  8. title: '头像',
  9. dataIndex: 'avatar',
  10. key: 'avatar',
  11. render: t => <img src={t} alt="" style={{ width: '96px', height: '96px', borderRadius: '4px' }} />,
  12. },
  13. {
  14. title: '昵称',
  15. dataIndex: 'nickname',
  16. key: 'nickname',
  17. },
  18. {
  19. title: '手机',
  20. dataIndex: 'phone',
  21. key: 'phone',
  22. },
  23. {
  24. title: '性别',
  25. dataIndex: 'sex',
  26. key: 'sex',
  27. },
  28. {
  29. title: '操作',
  30. key: 'action',
  31. render: (_, row) => (
  32. <Popconfirm
  33. title="确认执行取消操作?"
  34. onConfirm={() => handleCancel(row)}
  35. >
  36. <a href="#" style={{color: 'red'}}>取消绑定</a>
  37. </Popconfirm>
  38. )
  39. },
  40. ]
  41. return (
  42. <div className={Styles['on-site-box']}>
  43. <div className={Styles['market-code']}>
  44. <div className={Styles['code-label']}>驻场编码: </div>
  45. <div className={Styles['code-input']}><Input value={123} style={{ width: '30%' }} /></div>
  46. </div>
  47. <Table columns={columns} bordered pagination={false} />
  48. </div>
  49. )
  50. }