ventanalyWindow.data.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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: 'strname',
  62. component: 'Input',
  63. colProps: { span: 6 },
  64. },
  65. {
  66. label: '安装位置',
  67. field: 'strinstallpos',
  68. component: 'Input',
  69. colProps: { span: 6 },
  70. },
  71. {
  72. label: '风窗类型',
  73. field: 'nwindowtype',
  74. component: 'JDictSelectTag',
  75. componentProps: {
  76. dictCode: 'nwindowtype',
  77. placeholder: '请选择读写类型',
  78. stringToNumber: true,
  79. },
  80. colProps: { span: 6 },
  81. },
  82. {
  83. label: '所属分站',
  84. field: 'nsubstationid',
  85. component: 'ApiSelect',
  86. componentProps: {
  87. api: list,
  88. labelField: 'strname',
  89. valueField: 'nsubstationid',
  90. },
  91. colProps: { span: 6 },
  92. },
  93. ];
  94. export const formSchema: FormSchema[] = [
  95. {
  96. label: '',
  97. field: 'id',
  98. component: 'Input',
  99. show: false,
  100. },
  101. {
  102. label: '名称',
  103. field: 'strname',
  104. component: 'Input',
  105. },
  106. {
  107. label: '安装位置',
  108. field: 'strinstallpos',
  109. component: 'Input',
  110. },
  111. {
  112. label: '风窗类型',
  113. field: 'nwindowtype',
  114. component: 'JDictSelectTag',
  115. componentProps: {
  116. dictCode: 'nwindowtype',
  117. placeholder: '请选择',
  118. },
  119. },
  120. {
  121. label: '最大面积(㎡)',
  122. field: 'maxarea',
  123. component: 'InputNumber',
  124. },
  125. {
  126. label: '风窗净宽(m)',
  127. field: 'fclearwidth',
  128. component: 'InputNumber',
  129. },
  130. {
  131. label: '活动扇叶高度(m)',
  132. field: 'fperheight',
  133. component: 'InputNumber',
  134. },
  135. {
  136. label: '风窗厚度(m)',
  137. field: 'fperdepth',
  138. component: 'InputNumber',
  139. },
  140. {
  141. label: '风窗道数',
  142. field: 'nwindownum',
  143. component: 'InputNumber',
  144. },
  145. {
  146. label: '活动扇叶数量',
  147. field: 'nwindow',
  148. component: 'InputNumber',
  149. },
  150. {
  151. label: '前窗脉冲数',
  152. field: 'nfrontplusecircle',
  153. component: 'InputNumber',
  154. },
  155. {
  156. label: '后窗脉冲数',
  157. field: 'nbackplusecircle ',
  158. component: 'InputNumber',
  159. },
  160. {
  161. label: '所属分站',
  162. field: 'nsubstationid',
  163. component: 'ApiSelect',
  164. componentProps: {
  165. api: list,
  166. labelField: 'strname',
  167. valueField: 'nsubstationid',
  168. },
  169. },
  170. {
  171. label: '安装位置巷道面积',
  172. field: 'finstalltunarea',
  173. component: 'InputNumber',
  174. },
  175. {
  176. label: '点表',
  177. field: 'strtype',
  178. component: 'JDictSelectTag',
  179. componentProps: {
  180. dictCode: 'windowkind',
  181. placeholder: '请选择状态',
  182. },
  183. },
  184. {
  185. label: '监测类型',
  186. field: 'monitorflag_dictText',
  187. component: 'JDictSelectTag',
  188. componentProps: {
  189. dictCode: 'monitorflag',
  190. placeholder: '请选择状态',
  191. },
  192. },
  193. {
  194. label: '是否模拟数据',
  195. field: 'testflag',
  196. component: 'RadioGroup',
  197. defaultValue: 1,
  198. componentProps: () => {
  199. return {
  200. options: [
  201. { label: '是', value: 1, key: '1' },
  202. { label: '否', value: 0, key: '2' },
  203. ],
  204. };
  205. },
  206. },
  207. ];