common.data.ts 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. import { reactive, markRaw, defineAsyncComponent } from 'vue';
  2. import { getAssetURL } from '/@/utils/ui';
  3. import { useGlobSetting } from '/@/hooks/setting';
  4. //中间区域数据-通风
  5. export const centerAreaListT1 = [
  6. { id: 0, label: '进风量(m³/min)' },
  7. { id: 1, label: '回风量(m³/min)' },
  8. { id: 2, label: '需风量(m³/min)' },
  9. ];
  10. //中间区域底部数据-通风
  11. export const centerAreaListB1 = [
  12. {
  13. id: 0,
  14. content: '',
  15. },
  16. {
  17. id: 1,
  18. content: '',
  19. },
  20. {
  21. id: 2,
  22. content: '',
  23. },
  24. ];
  25. //内外因火灾菜单列表
  26. export const typeMenuList = [{ name: '内因火灾' }, { name: '外因火灾' }, { name: '火灾指标' }];
  27. //瓦斯监测菜单列表
  28. export function getMonitorComponent() {
  29. const { sysOrgCode } = useGlobSetting();
  30. let typeMenuListGas;
  31. switch (sysOrgCode) {
  32. case 'sdmtjtdltmk': //大柳塔
  33. typeMenuListGas = [{ name: '预警监测' }, { name: '预警指标' },];
  34. return typeMenuListGas;
  35. default:
  36. typeMenuListGas = [{ name: '预警监测' }, { name: '预警指标' }, { name: '瓦斯参数' },];
  37. return typeMenuListGas;
  38. }
  39. }
  40. //当前加载组件
  41. export const componentName = {
  42. fireWork: markRaw(defineAsyncComponent(() => import('./common/fireWork.vue'))),
  43. closeWall: markRaw(defineAsyncComponent(() => import('./common/closeWall.vue'))),
  44. mainWell: markRaw(defineAsyncComponent(() => import('./common/mainWell.vue'))),
  45. warnFireBrt: markRaw(defineAsyncComponent(() => import('./common/warnFire-brt.vue'))),
  46. warnFireBd: markRaw(defineAsyncComponent(() => import('./common/warnFire-bd.vue'))),
  47. };
  48. //顶部区域数据
  49. export const topList = [
  50. {
  51. id: 0,
  52. label: '最高温度(°C)',
  53. imgSrc: true,
  54. value: '--',
  55. text: '',
  56. list: [],
  57. },
  58. {
  59. id: 1,
  60. label: '最低温度(°C)',
  61. imgSrc: true,
  62. value: '--',
  63. text: '',
  64. list: [],
  65. },
  66. {
  67. id: 2,
  68. label: '平均温度(°C)',
  69. imgSrc: true,
  70. value: '--',
  71. text: '',
  72. list: [],
  73. },
  74. { id: 3, imgSrc: false, label: '', value: null, text: '--', list: [] },
  75. {
  76. id: 4,
  77. imgSrc: false,
  78. label: '回风隅角',
  79. value: null,
  80. text: '',
  81. list: [
  82. { id: 0, label: 'O₂', value: 0 },
  83. { id: 1, label: 'CO', value: 0 },
  84. ],
  85. },
  86. ];
  87. export const ventilateTopList = [
  88. {
  89. id: 0,
  90. label: '进风量(m³/min)',
  91. imgSrc: true,
  92. value: '--',
  93. text: '',
  94. list: [],
  95. },
  96. {
  97. id: 1,
  98. label: '回风量(m³/min)',
  99. imgSrc: true,
  100. value: '--',
  101. text: '',
  102. list: [],
  103. },
  104. {
  105. id: 2,
  106. label: '需风量(m³/min)',
  107. imgSrc: true,
  108. value: '--',
  109. text: '',
  110. list: [],
  111. },
  112. { id: 3, imgSrc: false, label: '', value: null, text: '--', list: [] },
  113. // {
  114. // id: 4,
  115. // imgSrc: false,
  116. // label: '其他信息',
  117. // value: null,
  118. // text: '',
  119. // list: [
  120. // { id: 0, label: 'O₂', value: '--' },
  121. // { id: 1, label: 'CO', value: '--' },
  122. // ],
  123. // },
  124. ];
  125. //束管监测选项列表
  126. export const contentList = [
  127. {
  128. id: 0,
  129. list: [
  130. {
  131. id: '0-0',
  132. title: 'O₂',
  133. dw: '(%)',
  134. label: '浓度 : ',
  135. value: '--',
  136. label1: '时间 : ',
  137. time: '--',
  138. },
  139. {
  140. id: '0-1',
  141. title: 'C₂H₄',
  142. dw: '(ppm)',
  143. label: '浓度 : ',
  144. value: '--',
  145. label1: '时间 : ',
  146. time: '--',
  147. },
  148. ],
  149. },
  150. {
  151. id: 1,
  152. list: [
  153. {
  154. id: '1-0',
  155. title: 'CO',
  156. dw: '(ppm)',
  157. label: '浓度 : ',
  158. value: '--',
  159. label1: '时间 : ',
  160. time: '--',
  161. },
  162. {
  163. id: '1-1',
  164. title: 'CH₄',
  165. dw: '(ppm)',
  166. label: '浓度 : ',
  167. value: '--',
  168. label1: '时间 : ',
  169. time: '--',
  170. },
  171. ],
  172. },
  173. {
  174. id: 2,
  175. list: [
  176. {
  177. id: '2-0',
  178. title: 'CO₂',
  179. dw: '(%)',
  180. label: '浓度 : ',
  181. value: '--',
  182. label1: '时间 : ',
  183. time: '--',
  184. },
  185. {
  186. id: '2-1',
  187. title: 'C₂H₂',
  188. dw: '(ppm)',
  189. label: '浓度 : ',
  190. value: '--',
  191. label1: '时间 : ',
  192. time: '--',
  193. },
  194. ],
  195. },
  196. ];
  197. //外因火灾-工作面顶部区域数据
  198. export const topOutList = [
  199. {
  200. id: 0,
  201. imgSrc: true,
  202. label: '最高温度(°C)',
  203. value: '0',
  204. text: '',
  205. },
  206. {
  207. id: 1,
  208. imgSrc: true,
  209. label: '最低温度(°C)',
  210. value: '0',
  211. text: '',
  212. },
  213. {
  214. id: 2,
  215. imgSrc: true,
  216. label: '平均温度(°C)',
  217. value: '0',
  218. text: '',
  219. },
  220. { id: 3, imgSrc: false, label: '', value: null, text: '' },
  221. // {
  222. // id: 4,
  223. // imgSrc: false,
  224. // label: '',
  225. // value: null,
  226. // text: '井下消防材料库',
  227. // },
  228. ];
  229. //外因火灾-中间区域标题数据
  230. export const tabList = [
  231. { id: 0, label: '烟雾传感器监测', details: '设备类型名称' },
  232. { id: 1, label: '一氧化碳传感器监测', details: '设备类型名称' },
  233. { id: 2, label: '自动喷淋灭火装置监测', details: '设备类型名称' },
  234. ];
  235. export const tabLists = [
  236. { id: 0, label: '烟雾传感器监测', details: '设备类型名称' },
  237. { id: 1, label: '温度传感器监测', details: '设备类型名称' },
  238. { id: 2, label: '自动喷淋灭火装置监测', details: '设备类型名称' },
  239. { id: 3, label: '一氧化碳传感器监测', details: '设备类型名称' },
  240. ];
  241. //外因火灾-传感器table列
  242. export const columns = [
  243. {
  244. title: '序号',
  245. dataIndex: '',
  246. key: 'rowIndex',
  247. width: 60,
  248. align: 'center',
  249. customRender: ({ index }) => {
  250. return `${index + 1}`;
  251. },
  252. },
  253. { rowIndex: 1, dataIndex: 'strinstallpos', title: '名称', type: '1', align: 'center' },
  254. { rowIndex: 2, dataIndex: 'warnLevel_str',width:80, title: '状态', type: '1', align: 'center' },
  255. { rowIndex: 3, dataIndex: 'readTime', title: '时间', type: '1', align: 'center' },
  256. ];
  257. //外因火灾-烟雾传感器table列
  258. export const columnsSmoke = [
  259. {
  260. title: '序号',
  261. dataIndex: '',
  262. key: 'rowIndex',
  263. width: 60,
  264. align: 'center',
  265. customRender: ({ index }) => {
  266. return `${index + 1}`;
  267. },
  268. },
  269. { rowIndex: 1, dataIndex: 'strinstallpos', title: '名称', type: '1', align: 'center' },
  270. { rowIndex: 2, dataIndex: 'val', width:80, title: '值', type: '1', align: 'center' },
  271. { rowIndex: 3, dataIndex: 'warnLevel_str', width:80,title: '状态', type: '1', align: 'center' },
  272. { rowIndex: 4, dataIndex: 'readTime', title: '时间', type: '1', align: 'center' },
  273. ];