nitrogen.data.ts 4.4 KB

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