ventanalyWindow.data.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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: 'user_status',
  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. stringToNumber: true,
  119. },
  120. },
  121. {
  122. label: '风窗净宽(m)',
  123. field: 'fclearwidth',
  124. component: 'InputNumber',
  125. },
  126. {
  127. label: '活动扇叶高度(m)',
  128. field: 'fperheight',
  129. component: 'InputNumber',
  130. },
  131. {
  132. label: '风门道数',
  133. field: 'ndoorcount',
  134. component: 'InputNumber',
  135. },
  136. {
  137. label: '所属分站',
  138. field: 'nsubstationid',
  139. component: 'ApiSelect',
  140. componentProps: {
  141. api: list,
  142. labelField: 'strname',
  143. valueField: 'nsubstationid',
  144. },
  145. },
  146. {
  147. label: '安装位置巷道面积',
  148. field: 'finstalltunarea',
  149. component: 'InputNumber',
  150. },
  151. ];