OkkiSite.data.ts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. import {BasicColumn} from '/@/components/Table';
  2. import {FormSchema} from '/@/components/Table';
  3. //列表数据
  4. export const columns: BasicColumn[] = [
  5. {
  6. title: '站点id',
  7. align:"center",
  8. dataIndex: 'siteId'
  9. },
  10. {
  11. title: '公司名称',
  12. align:"center",
  13. width:'300px',
  14. dataIndex: 'companyName'
  15. },
  16. {
  17. title: '状态',
  18. align:"center",
  19. dataIndex: 'status_dictText'
  20. },
  21. {
  22. title: '创建日期',
  23. align:"center",
  24. dataIndex: 'createTime'
  25. },
  26. {
  27. title: '初始化的域名',
  28. align:"center",
  29. width:'300px',
  30. dataIndex: 'domain'
  31. },
  32. {
  33. title: '联系方式',
  34. align:"center",
  35. dataIndex: 'tel'
  36. },
  37. {
  38. title: '联系人',
  39. align:"center",
  40. dataIndex: 'contact'
  41. },
  42. {
  43. title: '邮箱',
  44. align:"center",
  45. dataIndex: 'email'
  46. },
  47. {
  48. title: '公司名英⽂简称',
  49. align:"center",
  50. dataIndex: 'enname'
  51. },
  52. {
  53. title: '套餐名',
  54. align:"center",
  55. dataIndex: 'tcName'
  56. },
  57. {
  58. title: '套餐周期,单位⽉',
  59. align:"center",
  60. dataIndex: 'tcPeriod'
  61. },
  62. {
  63. title: '站点选择的⼩语种语⾔',
  64. align:"center",
  65. dataIndex: 'tcLanguage'
  66. },
  67. {
  68. title: '备注',
  69. align:"center",
  70. dataIndex: 'remark'
  71. },
  72. {
  73. title: '所属部门',
  74. align:"center",
  75. dataIndex: 'sysOrgCode_dictText'
  76. },
  77. {
  78. title: '所属人员',
  79. align:"center",
  80. dataIndex: 'sysUserCode_dictText'
  81. },
  82. ];
  83. //查询数据
  84. export const searchFormSchema: FormSchema[] = [
  85. {
  86. label: "公司名称",
  87. field: 'companyName',
  88. component: 'JInput',
  89. //colProps: {span: 6},
  90. },
  91. ];
  92. //表单数据
  93. export const formSchema: FormSchema[] = [
  94. {
  95. label: '所属部门',
  96. field: 'sysOrgCode',
  97. component: 'JSelectDept',
  98. componentProps:{
  99. rowKey:'orgCode',
  100. },
  101. },
  102. {
  103. label: '所属人员',
  104. field: 'sysUserCode',
  105. component: 'JSelectUser',
  106. componentProps:{
  107. labelKey:'realname',
  108. },
  109. },
  110. // TODO 主键隐藏字段,目前写死为ID
  111. {
  112. label: '',
  113. field: 'id',
  114. component: 'Input',
  115. show: false
  116. },
  117. ];
  118. // 高级查询数据
  119. export const superQuerySchema = {
  120. siteId: {title: '站点id',order: 0,view: 'number', type: 'number',},
  121. companyName: {title: '公司名称',order: 1,view: 'text', type: 'string',},
  122. status: {title: '状态',order: 2,view: 'number', type: 'number',},
  123. createTime: {title: '创建日期',order: 0,view: 'datetime', type: 'string',},
  124. domain: {title: '初始化的域名',order: 3,view: 'text', type: 'string',},
  125. tel: {title: '联系方式',order: 4,view: 'text', type: 'string',},
  126. contact: {title: '联系人',order: 5,view: 'text', type: 'string',},
  127. email: {title: '邮箱',order: 6,view: 'text', type: 'string',},
  128. enname: {title: '公司名英⽂简称',order: 7,view: 'text', type: 'string',},
  129. tcName: {title: '套餐名',order: 8,view: 'text', type: 'string',},
  130. tcPeriod: {title: '套餐周期,单位⽉',order: 9,view: 'number', type: 'number',},
  131. tcLanguage: {title: '站点选择的⼩语种语⾔',order: 10,view: 'text', type: 'string',},
  132. remark: {title: '备注',order: 11,view: 'textarea', type: 'string',},
  133. sysOrgCode: {title: '所属部门',order: 12,view: 'sel_depart', type: 'string',},
  134. sysUserCode: {title: '所属人员',order: 13,view: 'sel_user', type: 'string',},
  135. };
  136. /**
  137. * 流程表单调用这个方法获取formSchema
  138. * @param param
  139. */
  140. export function getBpmFormSchema(_formData): FormSchema[]{
  141. // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
  142. return formSchema;
  143. }