map.data.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. import { RoleEnum } from '/@/enums/roleEnum';
  4. import { serviceTags, checkStatus } from '../sysDic';
  5. export enum KeysTypeEnum {
  6. DISABLED = 'disabled',
  7. ENABLED = 'enabled',
  8. }
  9. export const RoleMenuDictEnum: Recordable<{ key: string; keyType: KeysTypeEnum }> = {
  10. [RoleEnum.PLATFORM_ADMIN]: { key: 'enabled_platform_admin_auth', keyType: KeysTypeEnum.ENABLED },
  11. [RoleEnum.SYS_ADMIN]: { key: 'enabled_sysadmin_auth', keyType: KeysTypeEnum.ENABLED },
  12. [RoleEnum.TENANT_ADMIN]: { key: 'disabled_tenant_auth', keyType: KeysTypeEnum.DISABLED },
  13. [RoleEnum.CUSTOMER_USER]: { key: 'disabled_tenant_auth', keyType: KeysTypeEnum.DISABLED },
  14. };
  15. /**
  16. * 查询条件
  17. */
  18. export const searchFormSchema: FormSchema[] = [
  19. {
  20. field: 'tagValue',
  21. label: '资源标签',
  22. component: 'Select',
  23. componentProps: {
  24. options: serviceTags,
  25. },
  26. colProps: { span: 5 },
  27. },
  28. {
  29. field: 'filterValue',
  30. label: '资源名称',
  31. component: 'Input',
  32. colProps: { span: 5 },
  33. componentProps: {
  34. maxLength: 255,
  35. },
  36. },
  37. {
  38. field: 'status',
  39. label: '审核状态',
  40. component: 'Select',
  41. componentProps: {
  42. options: checkStatus,
  43. },
  44. colProps: { span: 5 },
  45. },
  46. ];
  47. /**
  48. * 列表显示信息
  49. */
  50. export const columns: BasicColumn[] = [
  51. {
  52. title: '序号',
  53. slots: { customRender: 'index' },
  54. width: 50
  55. },
  56. {
  57. title: '资源编号',
  58. dataIndex: 'serviceid',
  59. width: 120,
  60. align: 'left',
  61. },
  62. {
  63. title: '资源名称',
  64. dataIndex: 'servicename',
  65. width: 160,
  66. align: 'left',
  67. },
  68. {
  69. title: '坐标系名称',
  70. dataIndex: 'crs',
  71. width: 140,
  72. align: 'left',
  73. },
  74. // {
  75. // title: '资源标签',
  76. // dataIndex: 'service',
  77. // width: 120,
  78. // },
  79. {
  80. title: '资源标签',
  81. dataIndex: 'keywords',
  82. slots: { customRender: 'keywords' },
  83. width: 200,
  84. },
  85. {
  86. title: '发布人',
  87. dataIndex: 'publisher',
  88. width: 100,
  89. align: 'left',
  90. },
  91. // {
  92. // title: '发布时间',
  93. // dataIndex: 'publishdate',
  94. // width: 90,
  95. // slots: { customRender: 'pdate' },
  96. // },
  97. {
  98. title: '当前环节',
  99. dataIndex: 'nodename',
  100. width: 90,
  101. slots: { customRender: 'nodename' },
  102. align: 'left',
  103. },
  104. {
  105. title: '当前处理人',
  106. dataIndex: 'checkname',
  107. width: 100,
  108. slots: { customRender: 'checkname' },
  109. align: 'left',
  110. },
  111. {
  112. title: '审核状态',
  113. dataIndex: 'status',
  114. width: 110,
  115. slots: { customRender: 'status' },
  116. align: 'left',
  117. },
  118. {
  119. title: '审核时间',
  120. dataIndex: 'checktime',
  121. width: 160,
  122. slots: { customRender: 'checktime' },
  123. align: 'left',
  124. },
  125. ];
  126. /**
  127. * 表单
  128. */
  129. export const formSchema: FormSchema[] = [
  130. {
  131. field: 'groupName',
  132. label: '角色名称',
  133. required: true,
  134. component: 'Input',
  135. componentProps: {
  136. maxLength: 255,
  137. placeholder: '请输入角色名称',
  138. },
  139. },
  140. {
  141. label: '排序',
  142. field: 'sort',
  143. component: 'Input',
  144. componentProps: {
  145. maxLength: 255,
  146. placeholder: '请输入排序',
  147. },
  148. },
  149. ];