safety.data.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. import { safetyDeviceList } from './safety.api';
  2. export const chartsColumns = (deviceType) => {
  3. if (deviceType === '') {
  4. return [];
  5. }
  6. };
  7. export const formConfig = {
  8. labelAlign: 'left',
  9. showAdvancedButton: false,
  10. showResetButton: false,
  11. showSubmitButton: false,
  12. schemas: [
  13. {
  14. label: '设备类型',
  15. field: 'dataTypeName',
  16. component: 'ApiSelect',
  17. componentProps: {
  18. api: safetyDeviceList.bind(null, { devicetype: 'safetymonitor', code: 'dataTypeName' }),
  19. labelField: 'name',
  20. valueField: 'code',
  21. },
  22. },
  23. {
  24. label: '设备安装地点',
  25. field: 'strinstallpos',
  26. component: 'Input',
  27. },
  28. ],
  29. };
  30. //测风装置
  31. export const chartsColumnsRect = [
  32. {
  33. legend: '风量',
  34. seriesName: '(m³/min)',
  35. ymax: 10000,
  36. yname: 'm³/min',
  37. linetype: 'bar',
  38. yaxispos: 'left',
  39. color: '#37BCF2',
  40. sort: 1,
  41. xRotate: 0,
  42. dataIndex: 'm³',
  43. },
  44. {
  45. legend: '气源压力',
  46. seriesName: '(MPa)',
  47. ymax: 50,
  48. yname: 'MPa',
  49. linetype: 'line',
  50. yaxispos: 'right',
  51. color: '#FC4327',
  52. sort: 2,
  53. xRotate: 0,
  54. dataIndex: 'sourcePressure',
  55. },
  56. ];
  57. //局部风机
  58. export const chartsColumnsFan = [
  59. {
  60. legend: '风筒风量1',
  61. seriesName: '(m³/min)',
  62. ymax: 1000,
  63. yname: 'm³/min',
  64. linetype: 'bar',
  65. yaxispos: 'left',
  66. color: '#37BCF2',
  67. sort: 1,
  68. xRotate: 0,
  69. dataIndex: 'windQuantity1',
  70. },
  71. {
  72. legend: '风筒风量2',
  73. seriesName: '(m³/min)',
  74. ymax: 1000,
  75. yname: 'm³/min',
  76. linetype: 'line',
  77. yaxispos: 'right',
  78. color: '#FC4327',
  79. sort: 2,
  80. xRotate: 0,
  81. dataIndex: 'windQuantity2',
  82. },
  83. ];
  84. //主风
  85. export const chartsColumnsMain = [
  86. {
  87. legend: '风量',
  88. seriesName: '(m³/min)',
  89. ymax: 1000,
  90. yname: 'm³/min',
  91. linetype: 'bar',
  92. yaxispos: 'left',
  93. color: '#37BCF2',
  94. sort: 1,
  95. xRotate: 0,
  96. dataIndex: 'windQuantity1',
  97. },
  98. {
  99. legend: '频率',
  100. seriesName: '(Hz)',
  101. ymax: 1000,
  102. yname: 'Hz',
  103. linetype: 'line',
  104. yaxispos: 'right',
  105. color: '#FC4327',
  106. sort: 2,
  107. xRotate: 0,
  108. dataIndex: 'windQuantity2',
  109. },
  110. ];
  111. //光钎测温
  112. export const chartsColumnsFiber = [
  113. {
  114. legend: '最高温度',
  115. seriesName: '(°C)',
  116. ymax: 100,
  117. yname: '°C',
  118. linetype: 'bar',
  119. yaxispos: 'left',
  120. color: '#37BCF2',
  121. sort: 1,
  122. xRotate: 0,
  123. dataIndex: 'fmax',
  124. },
  125. {
  126. legend: '平均温度',
  127. seriesName: '(°C)',
  128. ymax: 100,
  129. yname: '°C',
  130. linetype: 'line',
  131. yaxispos: 'right',
  132. color: '#FC4327',
  133. sort: 2,
  134. xRotate: 0,
  135. dataIndex: 'favg',
  136. },
  137. ];
  138. //密闭
  139. export const chartsColumnsObf = [
  140. {
  141. legend: '温度',
  142. seriesName: '(°C)',
  143. ymax: 100,
  144. yname: '°C',
  145. linetype: 'bar',
  146. yaxispos: 'left',
  147. color: '#37BCF2',
  148. sort: 1,
  149. xRotate: 0,
  150. dataIndex: 'temperature',
  151. },
  152. {
  153. legend: 'O2浓度',
  154. seriesName: '(%)',
  155. ymax: 100,
  156. yname: '%',
  157. linetype: 'line',
  158. yaxispos: 'right',
  159. color: '#FC4327',
  160. sort: 2,
  161. xRotate: 0,
  162. dataIndex: 'o2val',
  163. },
  164. ];
  165. //束管
  166. export const chartsColumnsBun = [
  167. {
  168. legend: 'CO浓度',
  169. seriesName: '(%)',
  170. ymax: 100,
  171. yname: '%',
  172. linetype: 'bar',
  173. yaxispos: 'left',
  174. color: '#37BCF2',
  175. sort: 1,
  176. xRotate: 0,
  177. dataIndex: 'coval',
  178. },
  179. {
  180. legend: 'CO2浓度',
  181. seriesName: '(%)',
  182. ymax: 100,
  183. yname: '%',
  184. linetype: 'line',
  185. yaxispos: 'right',
  186. color: '#FC4327',
  187. sort: 2,
  188. xRotate: 0,
  189. dataIndex: 'co2val',
  190. },
  191. ];
  192. export const chartsColumnsreal = [
  193. {
  194. legend: '压差',
  195. seriesName: '(Pa)',
  196. ymax: 100,
  197. yname: 'Pa',
  198. linetype: 'bar',
  199. yaxispos: 'left',
  200. color: '#37BCF2',
  201. sort: 1,
  202. xRotate: 0,
  203. dataIndex: 'frontRearDP',
  204. },
  205. {
  206. legend: '气源压力',
  207. seriesName: '(MPa)',
  208. ymax: 50,
  209. yname: 'MPa',
  210. linetype: 'line',
  211. yaxispos: 'right',
  212. color: '#FC4327',
  213. sort: 2,
  214. xRotate: 0,
  215. dataIndex: 'sourcePressure',
  216. },
  217. ];
  218. export const isHaveNoAction = ['safetymonitor', 'wasichoufang'];