point.data.ts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. import { BasicColumn } from '/@/components/Table';
  2. export const columns: BasicColumn[] = [
  3. {
  4. title: '值名称',
  5. dataIndex: 'valuename',
  6. width: 100,
  7. },
  8. {
  9. title: '值code',
  10. width: 100,
  11. dataIndex: 'valuecode',
  12. },
  13. {
  14. title: '关联设备类型',
  15. dataIndex: 'link_devicetype',
  16. editRow: true,
  17. width: 100,
  18. },
  19. {
  20. title: '关联设备',
  21. dataIndex: 'link_id',
  22. editRow: true,
  23. width: 100,
  24. },
  25. {
  26. title: '关联字段',
  27. width: 180,
  28. editRow: true,
  29. dataIndex: 'link_code',
  30. },
  31. ];
  32. export const warningColumns: BasicColumn[] = [
  33. {
  34. title: '监测参数',
  35. dataIndex: 'monitorcode',
  36. width: 100,
  37. },
  38. {
  39. title: '模拟最小值',
  40. width: 100,
  41. dataIndex: 'ftestmin',
  42. },
  43. {
  44. title: '模拟最大值',
  45. dataIndex: 'ftestmax',
  46. editRow: true,
  47. width: 100,
  48. },
  49. {
  50. title: '备注',
  51. dataIndex: 'des',
  52. editRow: true,
  53. width: 100,
  54. },
  55. ];
  56. export const deviceColumns: BasicColumn[] = [
  57. {
  58. title: '名称',
  59. dataIndex: 'deviceName',
  60. align: 'center',
  61. width: 120,
  62. },
  63. {
  64. title: '安装位置',
  65. dataIndex: 'devicePos',
  66. align: 'center',
  67. width: 100,
  68. },
  69. {
  70. title: '设备类型',
  71. dataIndex: 'deviceType',
  72. align: 'center',
  73. width: 100,
  74. },
  75. {
  76. title: '所属分站',
  77. width: 150,
  78. align: 'center',
  79. dataIndex: 'subStationName',
  80. },
  81. ];
  82. export const workFaceColumns: BasicColumn[] = [
  83. {
  84. title: '安装位置',
  85. dataIndex: 'devicePos',
  86. width: 100,
  87. },
  88. {
  89. title: '排序',
  90. width: 100,
  91. dataIndex: 'sort',
  92. edit: true,
  93. editComponent: 'InputNumber',
  94. },
  95. {
  96. title: '是否在关键通风路线上',
  97. width: 100,
  98. dataIndex: 'pathflag',
  99. edit: true,
  100. editComponent: 'Switch',
  101. editValueMap: (value) => {
  102. return value ? '是' : '否';
  103. },
  104. },
  105. {
  106. title: '传感器类型',
  107. width: 100,
  108. dataIndex: 'sensorType',
  109. edit: true,
  110. editComponent: 'Select',
  111. editComponentProps: {
  112. options: [
  113. {
  114. label: '多参',
  115. value: '1',
  116. },
  117. {
  118. label: '测风',
  119. value: '2',
  120. },
  121. ],
  122. },
  123. },
  124. {
  125. title: '风向',
  126. width: 100,
  127. dataIndex: 'winddir',
  128. edit: true,
  129. editComponent: 'Select',
  130. editComponentProps: {
  131. options: [
  132. {
  133. label: '进风',
  134. value: '1',
  135. },
  136. {
  137. label: '用风',
  138. value: '2',
  139. },
  140. {
  141. label: '回风',
  142. value: '3',
  143. },
  144. ],
  145. },
  146. },
  147. {
  148. title: '是否参与计算风量',
  149. width: 100,
  150. dataIndex: 'windflag',
  151. edit: true,
  152. editComponent: 'Switch',
  153. editValueMap: (value) => {
  154. return value ? '是' : '否';
  155. },
  156. },
  157. ];