| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- import { ref, reactive } from 'vue';
- import echarts from '/@/utils/lib/echarts';
- export const bottomBtnList = ref([
- {
- text: '监控界面',
- value: 'nitrogenMonitor',
- isHover: false,
- },
- {
- text: '关键节点监测',
- value: 'nitrogenNode',
- isHover: false,
- },
- {
- text: '实时曲线',
- value: 'nitrogenEcharts',
- isHover: false,
- },
- {
- text: '压风机历史记录',
- value: 'nitrogenHistory',
- isHover: false,
- },
- {
- text: '操作历史记录',
- value: 'nitrogenHandleHistory',
- isHover: false,
- },
- {
- text: '故障诊断历史记录',
- value: 'nitrogenWarningHistory',
- isHover: false,
- },
- ]);
- export const zhudanOption = reactive({
- tooltip: { trigger: 'axis', axisPointer: { lineStyle: { color: '#fff' } } },
- legend: {
- top: '0',
- icon: 'rect',
- data: ['注氮压力', '氮气流量'],
- right: '10px',
- textStyle: { fontSize: 12, color: '#fff' },
- },
- grid: { x: 50, y: 60, x2: 12, y2: 60 },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- axisLine: { lineStyle: { color: '#57617B' } },
- axisLabel: { textStyle: { color: '#ffffffcc' } },
- splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
- data: [],
- },
- yAxis: [
- {
- type: 'value',
- name: 'MPa',
- max: 10,
- axisTick: {
- show: false,
- },
- position: 'left',
- axisLine: { lineStyle: { show: true, color: '#57617B' } },
- axisLabel: { margin: 10, textStyle: { fontSize: 12, color: '#ffffffcc' } },
- splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
- },
- {
- type: 'value',
- name: 'm³/h',
- max: 10,
- axisTick: {
- show: false,
- },
- position: 'right',
- axisLine: { lineStyle: { show: true, color: '#57617B' } },
- axisLabel: { margin: 10, textStyle: { fontSize: 12, color: '#ffffffcc' } },
- splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
- },
- ],
- series: [
- {
- name: '注氮压力',
- type: 'line',
- smooth: true,
- lineStyle: { normal: { width: 2 } },
- yAxisIndex: 0,
- areaStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(
- 0,
- 0,
- 0,
- 1,
- [
- {
- offset: 0,
- color: 'rgba(185,150,248,0.3)',
- },
- {
- offset: 0.8,
- color: 'rgba(185,150,248,0)',
- },
- ],
- false
- ),
- shadowColor: 'rgba(0, 0, 0, 0.1)',
- shadowBlur: 10,
- },
- },
- itemStyle: { normal: { color: '#B996F8' } },
- data: [],
- },
- {
- name: '氮气流量',
- type: 'line',
- smooth: true,
- lineStyle: { normal: { width: 2 } },
- yAxisIndex: 0,
- areaStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(
- 0,
- 0,
- 0,
- 1,
- [
- {
- offset: 0,
- color: 'rgba(3, 194, 236, 0.3)',
- },
- {
- offset: 0.8,
- color: 'rgba(3, 194, 236, 0)',
- },
- ],
- false
- ),
- shadowColor: 'rgba(0, 0, 0, 0.1)',
- shadowBlur: 10,
- },
- },
- itemStyle: { normal: { color: '#03C2EC' } },
- data: [],
- },
- ],
- });
- // dataInfo: {
- // controlModel: false
- // };
- // videoUrl: '',
- // isDestroyVideo: false,
- // navList: [
- // {
- // title: '监控界面',
- // pathName: 'nitrogen_page_lh'
- // },
- // // {
- // // title: '关键节点监测',
- // // pathName: 'critical_node'
- // // },
- // {
- // title: '实时曲线',
- // pathName: 'yfj_monitor_echarts_cy'
- // },
- // {
- // title: '压风机历史记录',
- // pathName: 'yfj_history'
- // },
- // {
- // title: '操作历史记录',
- // pathName: 'yfj_handler_history'
- // },
- // {
- // title: '故障诊断历史记录',
- // pathName: 'yfj_faultRecord'
- // }
- // ],
- // kyjMonitorDataKey: new Map(
- // [
- // ['压力', 'pressure'],
- // ['温度', 'temp'],
- // ]
- // ),
|