ventanalyWindow.data.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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: 'nwindow',
  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: '风窗净宽(m)',
  122. field: 'fclearwidth',
  123. component: 'InputNumber',
  124. },
  125. {
  126. label: '活动扇叶高度(m)',
  127. field: 'fperheight',
  128. component: 'InputNumber',
  129. },
  130. {
  131. label: '活动扇叶数量',
  132. field: 'nwindownum',
  133. component: 'InputNumber',
  134. },
  135. {
  136. label: '所属分站',
  137. field: 'nsubstationid',
  138. component: 'ApiSelect',
  139. componentProps: {
  140. api: list,
  141. labelField: 'strname',
  142. valueField: 'nsubstationid',
  143. },
  144. },
  145. {
  146. label: '安装位置巷道面积',
  147. field: 'finstalltunarea',
  148. component: 'InputNumber',
  149. },
  150. {
  151. label: '点表',
  152. field: 'strtype',
  153. component: 'JDictSelectTag',
  154. componentProps: {
  155. dictCode: 'windowkind',
  156. placeholder: '请选择状态',
  157. },
  158. },
  159. {
  160. label: '监测类型',
  161. field: 'monitorflag_dictText',
  162. component: 'JDictSelectTag',
  163. componentProps: {
  164. dictCode: 'monitorflag',
  165. placeholder: '请选择状态',
  166. },
  167. },
  168. {
  169. label: '是否模拟数据',
  170. field: 'testflag',
  171. component: 'RadioGroup',
  172. defaultValue: 1,
  173. componentProps: () => {
  174. return {
  175. options: [
  176. { label: '是', value: 1, key: '1' },
  177. { label: '否', value: 0, key: '2' },
  178. ],
  179. };
  180. },
  181. },
  182. ];