common.data.ts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. import { reactive, markRaw, defineAsyncComponent } from 'vue';
  2. import { getAssetURL } from '/@/utils/ui';
  3. //中间区域数据-通风
  4. export const centerAreaListT1 = [
  5. { id: 0, label: '进风量(m³/min)' },
  6. { id: 1, label: '回风量(m³/min)' },
  7. { id: 2, label: '需风量(m³/min)' },
  8. ];
  9. //中间区域底部数据-通风
  10. export const centerAreaListB1 = [
  11. {
  12. id: 0,
  13. content: '',
  14. },
  15. {
  16. id: 1,
  17. content: '',
  18. },
  19. {
  20. id: 2,
  21. content: '',
  22. },
  23. ];
  24. //内外因火灾菜单列表
  25. export const typeMenuList = [{ name: '内因火灾' }, { name: '外因火灾' },{name:'火灾指标'}];
  26. //瓦斯监测菜单列表
  27. export const typeMenuListGas = [{ name: '预警监测' }, { name: '预警指标' },];
  28. //当前加载组件
  29. export const componentName = {
  30. fireWork: markRaw(defineAsyncComponent(() => import('./common/fireWork.vue'))),
  31. closeWall: markRaw(defineAsyncComponent(() => import('./common/closeWall.vue'))),
  32. mainWell: markRaw(defineAsyncComponent(() => import('./common/mainWell.vue'))),
  33. warnTargetFire: markRaw(defineAsyncComponent(() => import('./common/warnTargetFire.vue'))),
  34. };
  35. //顶部区域数据
  36. export const topList = [
  37. {
  38. id: 0,
  39. label: '最高温度(°C)',
  40. imgSrc: true,
  41. value: '--',
  42. text: '',
  43. list: [],
  44. },
  45. {
  46. id: 1,
  47. label: '最低温度(°C)',
  48. imgSrc: true,
  49. value: '--',
  50. text: '',
  51. list: [],
  52. },
  53. {
  54. id: 2,
  55. label: '平均温度(°C)',
  56. imgSrc: true,
  57. value: '--',
  58. text: '',
  59. list: [],
  60. },
  61. { id: 3, imgSrc: false, label: '', value: null, text: '--', list: [] },
  62. {
  63. id: 4,
  64. imgSrc: false,
  65. label: '回风隅角',
  66. value: null,
  67. text: '',
  68. list: [
  69. { id: 0, label: 'O₂', value: 0 },
  70. { id: 1, label: 'CO', value: 0 },
  71. ],
  72. },
  73. ];
  74. //束管监测选项列表
  75. export const contentList = [
  76. {
  77. id: 0,
  78. list: [
  79. {
  80. id: '0-0',
  81. title: 'O₂',
  82. dw: '(%)',
  83. label: '浓度 : ',
  84. value: '--',
  85. label1: '时间 : ',
  86. time: '--',
  87. },
  88. {
  89. id: '0-1',
  90. title: 'C₂H₄',
  91. dw: '(ppm)',
  92. label: '浓度 : ',
  93. value: '--',
  94. label1: '时间 : ',
  95. time: '--',
  96. },
  97. ],
  98. },
  99. {
  100. id: 1,
  101. list: [
  102. {
  103. id: '1-0',
  104. title: 'CO',
  105. dw: '(ppm)',
  106. label: '浓度 : ',
  107. value: '--',
  108. label1: '时间 : ',
  109. time: '--',
  110. },
  111. {
  112. id: '1-1',
  113. title: 'CH₄',
  114. dw: '(ppm)',
  115. label: '浓度 : ',
  116. value: '--',
  117. label1: '时间 : ',
  118. time: '--',
  119. },
  120. ],
  121. },
  122. {
  123. id: 2,
  124. list: [
  125. {
  126. id: '2-0',
  127. title: 'CO₂',
  128. dw: '(%)',
  129. label: '浓度 : ',
  130. value: '--',
  131. label1: '时间 : ',
  132. time: '--',
  133. },
  134. {
  135. id: '2-1',
  136. title: 'C₂H₂',
  137. dw: '(ppm)',
  138. label: '浓度 : ',
  139. value: '--',
  140. label1: '时间 : ',
  141. time: '--',
  142. },
  143. ],
  144. },
  145. ];
  146. //外因火灾-工作面顶部区域数据
  147. export const topOutList = [
  148. {
  149. id: 0,
  150. imgSrc: true,
  151. label: '最高温度(°C)',
  152. value: '0',
  153. text: '',
  154. },
  155. {
  156. id: 1,
  157. imgSrc: true,
  158. label: '最低温度(°C)',
  159. value: '0',
  160. text: '',
  161. },
  162. {
  163. id: 2,
  164. imgSrc: true,
  165. label: '平均温度(°C)',
  166. value: '0',
  167. text: '',
  168. },
  169. { id: 3, imgSrc: false, label: '', value: null, text: '' },
  170. // {
  171. // id: 4,
  172. // imgSrc: false,
  173. // label: '',
  174. // value: null,
  175. // text: '井下消防材料库',
  176. // },
  177. ];
  178. //外因火灾-中间区域标题数据
  179. export const tabList = [
  180. { id: 0, label: '烟雾传感器监测', details: '设备类型名称' },
  181. { id: 1, label: '一氧化碳传感器监测', details: '设备类型名称' },
  182. { id: 2, label: '自动喷淋灭火装置监测', details: '设备类型名称' },
  183. ];
  184. export const tabLists = [
  185. { id: 0, label: '烟雾传感器监测', details: '设备类型名称' },
  186. { id: 1, label: '温度传感器监测', details: '设备类型名称' },
  187. { id: 2, label: '自动喷淋灭火装置监测', details: '设备类型名称' },
  188. { id: 3, label: '火焰传感器监测', details: '设备类型名称' },
  189. ];
  190. //外因火灾-传感器table列
  191. export const columns = [
  192. { rowIndex: 1, dataIndex: 'strinstallpos', title: '名称', type: '1', align: 'center' },
  193. { rowIndex: 2, dataIndex: 'warnLevel_str', title: '状态', type: '1', align: 'center' },
  194. { rowIndex: 3, dataIndex: 'readTime', title: '时间', type: '1', align: 'center' },
  195. ];
  196. //外因火灾-烟雾传感器table列
  197. export const columnsSmoke = [
  198. { rowIndex: 1, dataIndex: 'strinstallpos', title: '名称', type: '1', align: 'center' },
  199. { rowIndex: 2, dataIndex: 'val', title: '值', type: '1', align: 'center' },
  200. { rowIndex: 3, dataIndex: 'warnLevel_str', title: '状态', type: '1', align: 'center' },
  201. { rowIndex: 4, dataIndex: 'readTime', title: '时间', type: '1', align: 'center' },
  202. ];