workingFace.data.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. import { list, modalList, huifengids, xufengids, getDeviceIds } from './workingFace.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: '系统Code',
  17. dataIndex: 'nwindowtype_dictText',
  18. width: 100,
  19. },
  20. {
  21. title: '类型',
  22. dataIndex: 'strtype',
  23. width: 80,
  24. },
  25. {
  26. title: '模型ID',
  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. export const recycleColumns: BasicColumn[] = [
  42. {
  43. title: '名称',
  44. dataIndex: 'strname',
  45. width: 100,
  46. },
  47. {
  48. title: '是否为常闭型',
  49. dataIndex: 'bnormalclose',
  50. width: 100,
  51. },
  52. ];
  53. export const searchFormSchema: FormSchema[] = [
  54. {
  55. label: '系统名称',
  56. field: 'systemname',
  57. component: 'Input',
  58. colProps: { span: 6 },
  59. },
  60. ];
  61. export const formSchema: FormSchema[] = [
  62. {
  63. label: '',
  64. field: 'id',
  65. component: 'Input',
  66. show: false,
  67. },
  68. {
  69. label: '系统名称',
  70. field: 'systemname',
  71. component: 'Input',
  72. },
  73. {
  74. label: '系统型号',
  75. field: 'strsystype',
  76. component: 'Input',
  77. },
  78. {
  79. label: '系统Code',
  80. field: 'code',
  81. component: 'Input',
  82. },
  83. {
  84. label: '系统类型',
  85. field: 'strtype',
  86. component: 'JDictSelectTag',
  87. componentProps: {
  88. dictCode: 'syskind',
  89. placeholder: '请选择系统型号',
  90. },
  91. },
  92. {
  93. label: '模型ID',
  94. field: 'nmodelid',
  95. component: 'ApiSelect',
  96. componentProps: () => {
  97. return {
  98. api: modalList,
  99. resultField: 'records',
  100. labelField: 'strmodelname',
  101. valueField: 'nmodelid',
  102. };
  103. },
  104. },
  105. {
  106. label: '控制策略',
  107. field: 'workmode',
  108. component: 'JDictSelectTag',
  109. componentProps: {
  110. dictCode: 'workmode',
  111. placeholder: '请选择控制策略',
  112. stringToNumber: true,
  113. },
  114. },
  115. {
  116. label: '点表',
  117. field: 'strtype',
  118. component: 'JDictSelectTag',
  119. componentProps: {
  120. dictCode: 'syskind',
  121. placeholder: '请选择状态',
  122. },
  123. },
  124. {
  125. label: '风向',
  126. field: 'windkind',
  127. component: 'JDictSelectTag',
  128. componentProps: {
  129. dictCode: 'winddir',
  130. placeholder: '请选择风向',
  131. stringToNumber: true,
  132. },
  133. },
  134. {
  135. label: '所属回风系统',
  136. field: 'huifengid',
  137. component: 'ApiSelect',
  138. componentProps: () => {
  139. return {
  140. api: huifengids,
  141. labelField: 'huifengName',
  142. valueField: 'id',
  143. };
  144. },
  145. },
  146. {
  147. label: '关联需风量地点',
  148. field: 'xufengliangid',
  149. component: 'ApiSelect',
  150. componentProps: () => {
  151. return {
  152. api: xufengids,
  153. labelField: 'strmodelname',
  154. valueField: 'nmodelid',
  155. };
  156. },
  157. },
  158. ];