grout.data.ts 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. import { reactive, defineAsyncComponent } from 'vue';
  2. import echarts from '/@/utils/lib/echarts';
  3. import { useGlobSetting } from '/@/hooks/setting';
  4. export const warningConfig = reactive({
  5. header: ['设备名称', '预警信息', '时间'],
  6. data: [
  7. ['火焰6', '严重报警', '03-05'],
  8. ['测点43', '一般预警', '03-05'],
  9. ['CO23', '一般预警', '03-05'],
  10. ['测点6', '超高预警', '03-05'],
  11. ['测点65', '超高预警', '03-05'],
  12. ['温度4', '一般预警', '03-05'],
  13. ['测点61', '一般预警', '03-05'],
  14. ['测点87', '一般信息', '03-05'],
  15. ],
  16. index: false,
  17. // columnWidth: [150, 80, 150, 150],
  18. headerBGC: '#3d9dd45d',
  19. oddRowBGC: '#009acd10',
  20. evenRowBGC: '#009acd05',
  21. align: ['center', 'center', 'center'],
  22. });
  23. export const zhujiangOption = reactive({
  24. tooltip: { trigger: 'axis', axisPointer: { lineStyle: { color: '#fff' } } },
  25. legend: {
  26. top: '10',
  27. icon: 'rect',
  28. data: ['注浆压力'],
  29. right: '10px',
  30. textStyle: { fontSize: 12, color: '#fff' },
  31. },
  32. grid: { x: 50, y: 50, x2: 12, y2: 40 },
  33. xAxis: {
  34. type: 'category',
  35. boundaryGap: false,
  36. axisLine: { lineStyle: { color: '#57617B' } },
  37. axisLabel: { color: '#ffffffcc' },
  38. splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
  39. data: [],
  40. },
  41. yAxis: [
  42. {
  43. type: 'value',
  44. name: 'm³/h',
  45. max: 10,
  46. axisTick: {
  47. show: false,
  48. },
  49. axisLine: { lineStyle: { show: true, color: '#57617B' } },
  50. axisLabel: { margin: 10, fontSize: 12, color: '#ffffffcc' },
  51. splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
  52. },
  53. ],
  54. series: [
  55. {
  56. name: '注浆流量',
  57. type: 'line',
  58. smooth: true,
  59. lineStyle: { width: 2 },
  60. yAxisIndex: 0,
  61. areaStyle: {
  62. color: new echarts.graphic.LinearGradient(
  63. 0,
  64. 0,
  65. 0,
  66. 1,
  67. [
  68. {
  69. offset: 0,
  70. color: 'rgba(185,150,248,0.3)',
  71. },
  72. {
  73. offset: 0.8,
  74. color: 'rgba(185,150,248,0)',
  75. },
  76. ],
  77. false
  78. ),
  79. shadowColor: 'rgba(0, 0, 0, 0.1)',
  80. shadowBlur: 10,
  81. },
  82. data: [],
  83. },
  84. ],
  85. });
  86. export const yaliOption = reactive({
  87. tooltip: { trigger: 'axis', axisPointer: { lineStyle: { color: '#fff' } } },
  88. legend: {
  89. top: '10',
  90. icon: 'rect',
  91. data: ['注浆压力'],
  92. right: '10px',
  93. textStyle: { fontSize: 12, color: '#fff' },
  94. },
  95. grid: { x: 50, y: 50, x2: 12, y2: 40 },
  96. xAxis: {
  97. type: 'category',
  98. boundaryGap: false,
  99. axisLine: { lineStyle: { color: '#57617B' } },
  100. axisLabel: { color: '#ffffffcc' },
  101. splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
  102. data: [],
  103. },
  104. yAxis: [
  105. {
  106. type: 'value',
  107. name: 'm³/h',
  108. max: 10,
  109. axisTick: {
  110. show: false,
  111. },
  112. axisLine: { lineStyle: { show: true, color: '#57617B' } },
  113. axisLabel: { margin: 10, fontSize: 12, color: '#ffffffcc' },
  114. splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
  115. },
  116. ],
  117. series: [
  118. {
  119. name: '注浆压力',
  120. type: 'line',
  121. smooth: true,
  122. lineStyle: { width: 2 },
  123. yAxisIndex: 0,
  124. areaStyle: {
  125. color: new echarts.graphic.LinearGradient(
  126. 0,
  127. 0,
  128. 0,
  129. 1,
  130. [
  131. {
  132. offset: 0,
  133. color: 'rgba(3, 194, 236, 0.3)',
  134. },
  135. {
  136. offset: 0.8,
  137. color: 'rgba(3, 194, 236, 0)',
  138. },
  139. ],
  140. false
  141. ),
  142. shadowColor: 'rgba(0, 0, 0, 0.1)',
  143. shadowBlur: 10,
  144. },
  145. itemStyle: { color: '#03C2EC' },
  146. data: [],
  147. },
  148. ],
  149. });
  150. export const deviceMonitorList = [
  151. {
  152. title: '定量给料机',
  153. dataList: [
  154. {
  155. title: '带电',
  156. code: 'GLJdd',
  157. },
  158. {
  159. title: '运行',
  160. code: 'GLJyx',
  161. },
  162. {
  163. title: '故障',
  164. code: 'GLJgz',
  165. },
  166. ],
  167. },
  168. {
  169. title: '胶体制备机',
  170. dataList: [
  171. {
  172. title: '带电',
  173. code: 'JTdd',
  174. },
  175. {
  176. title: '运行',
  177. code: 'JTyx',
  178. },
  179. {
  180. title: '故障',
  181. code: 'JTgz',
  182. },
  183. ],
  184. },
  185. {
  186. title: '搅拌机',
  187. dataList: [
  188. {
  189. title: '带电',
  190. code: 'JBJdd',
  191. },
  192. {
  193. title: '运行',
  194. code: 'JBJyx',
  195. },
  196. {
  197. title: '故障',
  198. code: 'JBJgz',
  199. },
  200. ],
  201. },
  202. {
  203. title: '排污泵',
  204. dataList: [
  205. {
  206. title: '带电',
  207. code: 'PWBdd',
  208. },
  209. {
  210. title: '运行',
  211. code: 'PWByx',
  212. },
  213. {
  214. title: '故障',
  215. code: 'PWBgz',
  216. },
  217. ],
  218. },
  219. {
  220. title: '胶带运输机',
  221. dataList: [
  222. {
  223. title: '带电',
  224. code: 'JDdd',
  225. },
  226. {
  227. title: '运行',
  228. code: 'JDyx',
  229. },
  230. {
  231. title: '故障',
  232. code: 'JDgz',
  233. },
  234. ],
  235. },
  236. {
  237. title: '注水泵1',
  238. dataList: [
  239. {
  240. title: '带电',
  241. code: 'ZJSB1dd',
  242. },
  243. {
  244. title: '运行',
  245. code: 'ZJSB1yx',
  246. },
  247. {
  248. title: '故障',
  249. code: 'ZJSB1gz',
  250. },
  251. ],
  252. },
  253. {
  254. title: '注水泵2',
  255. dataList: [
  256. {
  257. title: '带电',
  258. code: 'ZJSB2dd',
  259. },
  260. {
  261. title: '运行',
  262. code: 'ZJSB2yx',
  263. },
  264. {
  265. title: '故障',
  266. code: 'ZJSB2gz',
  267. },
  268. ],
  269. },
  270. {
  271. title: '清水泵',
  272. dataList: [
  273. {
  274. title: '带电',
  275. code: 'QSBdd',
  276. },
  277. {
  278. title: '运行',
  279. code: 'QSByx',
  280. },
  281. {
  282. title: '故障',
  283. code: 'QSBgz',
  284. },
  285. ],
  286. },
  287. {
  288. title: '渣浆泵',
  289. dataList: [
  290. {
  291. title: '带电',
  292. code: 'ZJBdd',
  293. },
  294. {
  295. title: '运行',
  296. code: 'ZJByx',
  297. },
  298. {
  299. title: '故障',
  300. code: 'ZJBgz',
  301. },
  302. ],
  303. },
  304. ];
  305. export function getMonitorComponent() {
  306. const { sysOrgCode } = useGlobSetting();
  307. let groutHome;
  308. switch (sysOrgCode) {
  309. case 'sdmtjtjjmk': // 锦界
  310. groutHome = defineAsyncComponent(() => import('./components/groutHomeJj.vue'));
  311. return groutHome;
  312. case 'sdmtjtdltmkhjtj': // 活鸡兔井
  313. groutHome = defineAsyncComponent(() => import('./components/groutHomeHjt.vue'));
  314. return groutHome;
  315. default:
  316. groutHome = defineAsyncComponent(() => import('./components/groutHomeHjt.vue'));
  317. return groutHome;
  318. }
  319. }