grout.data.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. import { reactive } from 'vue';
  2. import echarts from '/@/utils/lib/echarts';
  3. import { BasicColumn } from '/@/components/Table';
  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: { textStyle: { 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, textStyle: { 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: { normal: { width: 2 } },
  60. yAxisIndex: 0,
  61. areaStyle: {
  62. normal: {
  63. color: new echarts.graphic.LinearGradient(
  64. 0,
  65. 0,
  66. 0,
  67. 1,
  68. [
  69. {
  70. offset: 0,
  71. color: 'rgba(185,150,248,0.3)',
  72. },
  73. {
  74. offset: 0.8,
  75. color: 'rgba(185,150,248,0)',
  76. },
  77. ],
  78. false
  79. ),
  80. shadowColor: 'rgba(0, 0, 0, 0.1)',
  81. shadowBlur: 10,
  82. },
  83. },
  84. itemStyle: { normal: { color: '#B996F8' } },
  85. data: [],
  86. },
  87. ],
  88. });
  89. export const yaliOption = reactive({
  90. tooltip: { trigger: 'axis', axisPointer: { lineStyle: { color: '#fff' } } },
  91. legend: {
  92. top: '10',
  93. icon: 'rect',
  94. data: ['注浆压力'],
  95. right: '10px',
  96. textStyle: { fontSize: 12, color: '#fff' },
  97. },
  98. grid: { x: 50, y: 50, x2: 12, y2: 40 },
  99. xAxis: {
  100. type: 'category',
  101. boundaryGap: false,
  102. axisLine: { lineStyle: { color: '#57617B' } },
  103. axisLabel: { textStyle: { color: '#ffffffcc' } },
  104. splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
  105. data: [],
  106. },
  107. yAxis: [
  108. {
  109. type: 'value',
  110. name: 'm³/h',
  111. max: 10,
  112. axisTick: {
  113. show: false,
  114. },
  115. axisLine: { lineStyle: { show: true, color: '#57617B' } },
  116. axisLabel: { margin: 10, textStyle: { fontSize: 12, color: '#ffffffcc' } },
  117. splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
  118. },
  119. ],
  120. series: [
  121. {
  122. name: '注浆压力',
  123. type: 'line',
  124. smooth: true,
  125. lineStyle: { normal: { width: 2 } },
  126. yAxisIndex: 0,
  127. areaStyle: {
  128. normal: {
  129. color: new echarts.graphic.LinearGradient(
  130. 0,
  131. 0,
  132. 0,
  133. 1,
  134. [
  135. {
  136. offset: 0,
  137. color: 'rgba(3, 194, 236, 0.3)',
  138. },
  139. {
  140. offset: 0.8,
  141. color: 'rgba(3, 194, 236, 0)',
  142. },
  143. ],
  144. false
  145. ),
  146. shadowColor: 'rgba(0, 0, 0, 0.1)',
  147. shadowBlur: 10,
  148. },
  149. },
  150. itemStyle: { normal: { color: '#03C2EC' } },
  151. data: [],
  152. },
  153. ],
  154. });