data.ts 909 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // import { FormSchema } from '/@/components/Form/index';
  2. import { BasicColumn } from '/@/components/Table/src/types/table';
  3. export const userListSchema: BasicColumn[] = [
  4. {
  5. title: '姓名',
  6. width: 200,
  7. dataIndex: 'ryNickName',
  8. fixed: 'left',
  9. },
  10. {
  11. title: '人员编号',
  12. width: 200,
  13. dataIndex: 'ryNo',
  14. },
  15. {
  16. title: '共享内容',
  17. width: 200,
  18. dataIndex: 'ryNo1',
  19. customRender: ({ record }) => {
  20. if (!record.shareTypes) return '';
  21. const shareTypes = record.shareTypes.toString();
  22. return shareTypes == 'scene'
  23. ? '查看实景三维'
  24. : shareTypes == 'fusion'
  25. ? '查看多元融合'
  26. : '查看实景三维 查看多元融合';
  27. },
  28. },
  29. {
  30. title: '状态',
  31. width: 200,
  32. dataIndex: 'state',
  33. customRender: ({ record }) => {
  34. return record.status == 1 ? '正常' : '冻结';
  35. },
  36. },
  37. ];