nitrogen.data.ts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. import { ref, reactive } from 'vue';
  2. import echarts from '/@/utils/lib/echarts';
  3. export const navList = ref([
  4. {
  5. title: '监控界面',
  6. pathName: 'nitrogen_page',
  7. isHover: true,
  8. },
  9. {
  10. title: '历史监测记录',
  11. pathName: 'yfj_history',
  12. isHover: false,
  13. },
  14. {
  15. title: '操作历史记录',
  16. pathName: 'yfj_handler_history',
  17. isHover: false,
  18. },
  19. {
  20. title: '故障诊断历史记录',
  21. pathName: 'yfj_faultRecord',
  22. isHover: false,
  23. },
  24. ]);
  25. export const bottomBtnList = ref([
  26. {
  27. text: '监控界面',
  28. value: 'nitrogenMonitor',
  29. isHover: false,
  30. },
  31. {
  32. text: '关键节点监测',
  33. value: 'nitrogenNode',
  34. isHover: false,
  35. },
  36. {
  37. text: '实时曲线',
  38. value: 'nitrogenEcharts',
  39. isHover: false,
  40. },
  41. {
  42. text: '压风机历史记录',
  43. value: 'nitrogenHistory',
  44. isHover: false,
  45. },
  46. {
  47. text: '操作历史记录',
  48. value: 'nitrogenHandleHistory',
  49. isHover: false,
  50. },
  51. {
  52. text: '故障诊断历史记录',
  53. value: 'nitrogenWarningHistory',
  54. isHover: false,
  55. },
  56. ]);
  57. export const zhudanOption = reactive({
  58. tooltip: { trigger: 'axis', axisPointer: { lineStyle: { color: '#fff' } } },
  59. legend: {
  60. top: '0',
  61. icon: 'rect',
  62. data: ['累计流量', '瞬时流量'],
  63. right: '10px',
  64. textStyle: { fontSize: 12, color: '#fff' },
  65. },
  66. grid: { x: 50, y: 60, x2: 12, y2: 60 },
  67. xAxis: {
  68. type: 'category',
  69. boundaryGap: false,
  70. axisLine: { lineStyle: { color: '#57617B' } },
  71. axisLabel: { color: '#ffffffcc' },
  72. splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
  73. data: [],
  74. },
  75. yAxis: [
  76. {
  77. type: 'value',
  78. name: 'm³/h',
  79. max: 10,
  80. axisTick: {
  81. show: false,
  82. },
  83. position: 'left',
  84. axisLine: { lineStyle: { show: true, color: '#57617B' } },
  85. axisLabel: { margin: 10, fontSize: 12, color: '#ffffffcc' },
  86. splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
  87. },
  88. {
  89. type: 'value',
  90. name: 'm³/h',
  91. max: 10,
  92. axisTick: {
  93. show: false,
  94. },
  95. position: 'right',
  96. axisLine: { lineStyle: { show: true, color: '#57617B' } },
  97. axisLabel: { margin: 10, fontSize: 12, color: '#ffffffcc' },
  98. splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
  99. },
  100. ],
  101. series: [
  102. {
  103. name: '累计流量',
  104. type: 'line',
  105. smooth: true,
  106. lineStyle: { width: 2 },
  107. yAxisIndex: 0,
  108. areaStyle: {
  109. color: new echarts.graphic.LinearGradient(
  110. 0,
  111. 0,
  112. 0,
  113. 1,
  114. [
  115. {
  116. offset: 0,
  117. color: 'rgba(185,150,248,0.3)',
  118. },
  119. {
  120. offset: 0.8,
  121. color: 'rgba(185,150,248,0)',
  122. },
  123. ],
  124. false
  125. ),
  126. shadowColor: 'rgba(0, 0, 0, 0.1)',
  127. shadowBlur: 10,
  128. },
  129. itemStyle: { color: '#B996F8' },
  130. data: [],
  131. },
  132. {
  133. name: '瞬时流量',
  134. type: 'line',
  135. smooth: true,
  136. lineStyle: { width: 2 },
  137. yAxisIndex: 0,
  138. areaStyle: {
  139. color: new echarts.graphic.LinearGradient(
  140. 0,
  141. 0,
  142. 0,
  143. 1,
  144. [
  145. {
  146. offset: 0,
  147. color: 'rgba(3, 194, 236, 0.3)',
  148. },
  149. {
  150. offset: 0.8,
  151. color: 'rgba(3, 194, 236, 0)',
  152. },
  153. ],
  154. false
  155. ),
  156. shadowColor: 'rgba(0, 0, 0, 0.1)',
  157. shadowBlur: 10,
  158. },
  159. itemStyle: { color: '#03C2EC' },
  160. data: [],
  161. },
  162. ],
  163. });
  164. // dataInfo: {
  165. // controlModel: false
  166. // };
  167. // videoUrl: '',
  168. // isDestroyVideo: false,
  169. // navList: [
  170. // {
  171. // title: '监控界面',
  172. // pathName: 'nitrogen_page_lh'
  173. // },
  174. // // {
  175. // // title: '关键节点监测',
  176. // // pathName: 'critical_node'
  177. // // },
  178. // {
  179. // title: '实时曲线',
  180. // pathName: 'yfj_monitor_echarts_cy'
  181. // },
  182. // {
  183. // title: '压风机历史记录',
  184. // pathName: 'yfj_history'
  185. // },
  186. // {
  187. // title: '操作历史记录',
  188. // pathName: 'yfj_handler_history'
  189. // },
  190. // {
  191. // title: '故障诊断历史记录',
  192. // pathName: 'yfj_faultRecord'
  193. // }
  194. // ],
  195. // kyjMonitorDataKey: new Map(
  196. // [
  197. // ['压力', 'pressure'],
  198. // ['温度', 'temp'],
  199. // ]
  200. // ),