DataConfig.js 3.4 KB

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