ventanalyWindow.data.ts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. import { list } from '../substationTabel/substation.api';
  4. export const columns: BasicColumn[] = [
  5. {
  6. title: '名称',
  7. dataIndex: 'strname',
  8. width: 120,
  9. },
  10. {
  11. title: '安装位置',
  12. dataIndex: 'strinstallpos',
  13. width: 100,
  14. },
  15. {
  16. title: '风窗类型',
  17. dataIndex: 'nwindowtype_dictText',
  18. width: 100,
  19. },
  20. {
  21. title: '风窗净宽(m)',
  22. dataIndex: 'fclearwidth',
  23. width: 80,
  24. },
  25. {
  26. title: '活动扇叶高度(m)',
  27. dataIndex: 'fperheight',
  28. width: 100,
  29. },
  30. {
  31. title: '活动扇叶数量',
  32. dataIndex: 'nwindownum',
  33. width: 100,
  34. },
  35. {
  36. title: '所属分站',
  37. width: 150,
  38. dataIndex: 'stationname',
  39. },
  40. {
  41. title: '安装位置巷道面积',
  42. width: 100,
  43. dataIndex: 'finstalltunarea',
  44. },
  45. ];
  46. export const recycleColumns: BasicColumn[] = [
  47. {
  48. title: '名称',
  49. dataIndex: 'strname',
  50. width: 100,
  51. },
  52. {
  53. title: '是否为常闭型',
  54. dataIndex: 'bnormalclose',
  55. width: 100,
  56. },
  57. ];
  58. export const searchFormSchema: FormSchema[] = [
  59. {
  60. label: '设备类型',
  61. field: 'strtype',
  62. component: 'JDictSelectTag',
  63. componentProps: {
  64. dictCode: 'windowkind',
  65. placeholder: '请选择设备类型',
  66. },
  67. colProps: { span: 6 },
  68. },
  69. {
  70. label: '安装位置',
  71. field: 'strinstallpos',
  72. component: 'Input',
  73. colProps: { span: 6 },
  74. },
  75. {
  76. label: '所属分站',
  77. field: 'nsubstationid',
  78. component: 'ApiSelect',
  79. componentProps: {
  80. api: list,
  81. labelField: 'strname',
  82. valueField: 'id',
  83. },
  84. colProps: { span: 6 },
  85. },
  86. ];
  87. export const formSchema: FormSchema[] = [
  88. {
  89. label: '',
  90. field: 'id',
  91. component: 'Input',
  92. show: false,
  93. },
  94. {
  95. label: '名称',
  96. field: 'strname',
  97. component: 'Input',
  98. },
  99. {
  100. label: '安装位置',
  101. field: 'strinstallpos',
  102. component: 'Input',
  103. },
  104. {
  105. label: '风窗类型',
  106. field: 'nwindowtype',
  107. component: 'JDictSelectTag',
  108. componentProps: {
  109. dictCode: 'nwindowtype',
  110. placeholder: '请选择',
  111. },
  112. },
  113. {
  114. label: '最大面积(㎡)',
  115. field: 'maxarea',
  116. component: 'InputNumber',
  117. },
  118. {
  119. label: '风窗净宽(m)',
  120. field: 'fclearwidth',
  121. component: 'InputNumber',
  122. },
  123. {
  124. label: '活动扇叶高度(m)',
  125. field: 'fperheight',
  126. component: 'InputNumber',
  127. },
  128. {
  129. label: '风窗厚度(m)',
  130. field: 'fperdepth',
  131. component: 'InputNumber',
  132. },
  133. {
  134. label: '风窗道数',
  135. field: 'nwindownum',
  136. component: 'InputNumber',
  137. },
  138. {
  139. label: '活动扇叶数量',
  140. field: 'nwindow',
  141. component: 'InputNumber',
  142. },
  143. {
  144. label: '前窗脉冲数',
  145. field: 'nfrontplusecircle',
  146. component: 'InputNumber',
  147. },
  148. {
  149. label: '后窗脉冲数',
  150. field: 'nbackplusecircle ',
  151. component: 'InputNumber',
  152. },
  153. {
  154. label: '所属分站',
  155. field: 'nsubstationid',
  156. component: 'ApiSelect',
  157. componentProps: {
  158. api: list,
  159. labelField: 'strname',
  160. valueField: 'id',
  161. },
  162. },
  163. {
  164. label: '安装位置巷道面积',
  165. field: 'finstalltunarea',
  166. component: 'InputNumber',
  167. },
  168. {
  169. label: '点表',
  170. field: 'strtype',
  171. component: 'JDictSelectTag',
  172. componentProps: {
  173. dictCode: 'windowkind',
  174. placeholder: '请选择状态',
  175. },
  176. },
  177. {
  178. label: '监测类型',
  179. field: 'monitorflag_dictText',
  180. component: 'JDictSelectTag',
  181. componentProps: {
  182. dictCode: 'monitorflag',
  183. placeholder: '请选择状态',
  184. },
  185. },
  186. {
  187. label: '是否模拟数据',
  188. field: 'testflag',
  189. component: 'RadioGroup',
  190. defaultValue: 1,
  191. componentProps: () => {
  192. return {
  193. options: [
  194. { label: '是', value: 1, key: '1' },
  195. { label: '否', value: 0, key: '2' },
  196. ],
  197. };
  198. },
  199. },
  200. ];