DataConfig.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /** 服务资源列表页数据项配置 */
  2. import { appRestApi } from '@/api/application';
  3. // 搜索栏配置
  4. const conditionForm = [
  5. {
  6. label: '服务资源名称',
  7. name: 'serviceName',
  8. op: 'like',
  9. value: '',
  10. component: 'ElInput',
  11. attr: {
  12. placeholder: '请输入服务资源名称'
  13. }
  14. },
  15. // {
  16. // label: '服务提供方式',
  17. // name: 'serviceProvideWay',
  18. // op: '=',
  19. // value: '',
  20. // component: 'DgSelect',
  21. // attr: {
  22. // placeholder: '请选择服务提供方式',
  23. // enum: 'ServiceProvideWayEnum'
  24. // }
  25. // },
  26. {
  27. label: '服务提供应用系统名称',
  28. name: 'appName',
  29. op: 'like',
  30. value: '',
  31. component: 'SelectApp',
  32. apiUrl: appRestApi.table,
  33. valueName: "applyName",
  34. labelName: "applyName",
  35. placeholder: '请输入服务提供应用系统名称'
  36. }
  37. ];
  38. // 页面操作
  39. const pageOptList = ['新增', '导入', '同步'];
  40. // 表头操作
  41. const tableOptList = ['详情','修改', '删除'];
  42. // 列表
  43. const tableHeader = [
  44. {
  45. label: '服务资源标识符',
  46. prop: 'serviceCode'
  47. },
  48. {
  49. label: '服务资源名称',
  50. prop: 'serviceName'
  51. },
  52. {
  53. label: '服务类型',
  54. prop: 'serviceType',
  55. enum: 'ServiceResourceTypeEnum'
  56. },
  57. {
  58. label: '是否自用服务',
  59. prop: 'mustSelf',
  60. enum: 'BooleanEnum'
  61. },
  62. {
  63. label: '服务提供应用系统名称',
  64. prop: 'appName'
  65. }
  66. ];
  67. // 表单配置
  68. const editForm = [
  69. {
  70. label: '服务资源标识符',
  71. prop: 'serviceCode',
  72. component: 'ElInput',
  73. value: '',
  74. rules: [{ required: true, message: '请输入服务资源标识符', trigger: 'change' }],
  75. },
  76. {
  77. label: '服务类型',
  78. prop: 'serviceType',
  79. component: 'DgSelect',
  80. value: '',
  81. rules: [{ required: true, message: '请选择服务类型', trigger: 'change' }],
  82. enum: 'ServiceResourceTypeEnum',
  83. attr: {
  84. enum: 'ServiceResourceTypeEnum'
  85. }
  86. },
  87. {
  88. label: '是否自用服务',
  89. prop: 'mustSelf',
  90. component: 'DgSelect',
  91. enum: 'BooleanEnum',
  92. value: '',
  93. attr: {
  94. enum: 'BooleanEnum'
  95. }
  96. },
  97. {
  98. label: '服务资源名称',
  99. prop: 'serviceName',
  100. component: 'ElInput',
  101. value: '',
  102. rules: [{ required: true, message: '请输入服务资源名称', trigger: 'change' }]
  103. },
  104. {
  105. label: '服务提供方式',
  106. prop: 'serviceProvideWay',
  107. component: 'DgSelect',
  108. value: '',
  109. rules: [{ required: true, message: '请选择服务提供方式', trigger: 'change' }],
  110. enum: 'ServiceProvideWayEnum',
  111. attr: {
  112. enum: 'ServiceProvideWayEnum'
  113. }
  114. },
  115. {
  116. label: '服务访问地址',
  117. prop: 'serviceUrl',
  118. component: 'ElInput',
  119. value: '',
  120. rules: [{ required: true, message: '请输入服务访问地址', trigger: 'change' }],
  121. span: 24
  122. },
  123. {
  124. label: '服务提供应用系统名称',
  125. prop: 'appCode',
  126. component: 'DgSelect',
  127. value: '',
  128. rules: [{ required: true, message: '请选择服务提供应用系统名称', trigger: 'change' }],
  129. attr: {
  130. valueName: 'applyCode',
  131. labelName: 'applyName',
  132. filterable: true,
  133. url: "/appsvr/v2/allApps?applyStatus="
  134. },
  135. // custom: true,
  136. span: 24
  137. },
  138. {
  139. label: '应用系统事权单位代码',
  140. prop: 'orgCode',
  141. component: 'ElInput',
  142. value: ''
  143. },
  144. {
  145. label: '服务资源描述',
  146. prop: 'remark',
  147. component: 'ElInput',
  148. attr: {
  149. type: 'textarea',
  150. rows: 3,
  151. },
  152. value: '',
  153. span: 24
  154. }
  155. ];
  156. export { conditionForm, pageOptList, tableOptList, tableHeader, editForm };