common.data.ts 5.0 KB

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