|
|
@@ -1,6 +1,110 @@
|
|
|
import * as echarts from 'echarts';
|
|
|
import { BasicColumn } from '/@/components/Table';
|
|
|
|
|
|
+export let columnZy: BasicColumn[] = [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ width: 60,
|
|
|
+ align: 'center',
|
|
|
+ customRender: ({ index }: { index: number }) => `${index + 1}`
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '时间',
|
|
|
+ dataIndex: 'fileName',
|
|
|
+ key: 'fileName',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '累计流量',
|
|
|
+ dataIndex: 'fileType_dictText',
|
|
|
+ key: 'fileType_dictText',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '标况瞬量',
|
|
|
+ dataIndex: 'fileType_dictText',
|
|
|
+ key: 'fileType_dictText',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '工况瞬量',
|
|
|
+ dataIndex: 'fileType_dictText',
|
|
|
+ key: 'fileType_dictText',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '压力',
|
|
|
+ dataIndex: 'fileType_dictText',
|
|
|
+ key: 'fileType_dictText',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // title: '审批操作',
|
|
|
+ // dataIndex: 'actionSp',
|
|
|
+ // width: 200,
|
|
|
+ // align: 'center',
|
|
|
+ // slots: { customRender: 'actionSp' },
|
|
|
+ // },
|
|
|
+
|
|
|
+]
|
|
|
+
|
|
|
+export let columnCc: BasicColumn[] = [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ width: 60,
|
|
|
+ align: 'center',
|
|
|
+ customRender: ({ index }: { index: number }) => `${index + 1}`
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '时间1',
|
|
|
+ dataIndex: 'fileName',
|
|
|
+ key: 'fileName',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '累计流量1',
|
|
|
+ dataIndex: 'fileType_dictText',
|
|
|
+ key: 'fileType_dictText',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '标况瞬量1',
|
|
|
+ dataIndex: 'fileType_dictText',
|
|
|
+ key: 'fileType_dictText',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '工况瞬量1',
|
|
|
+ dataIndex: 'fileType_dictText',
|
|
|
+ key: 'fileType_dictText',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '压力1',
|
|
|
+ dataIndex: 'fileType_dictText',
|
|
|
+ key: 'fileType_dictText',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // title: '审批操作',
|
|
|
+ // dataIndex: 'actionSp',
|
|
|
+ // width: 200,
|
|
|
+ // align: 'center',
|
|
|
+ // slots: { customRender: 'actionSp' },
|
|
|
+ // },
|
|
|
+
|
|
|
+]
|
|
|
+
|
|
|
export let tableColumnSj: BasicColumn[] = [
|
|
|
{
|
|
|
title: '序号',
|
|
|
@@ -374,6 +478,7 @@ export let optionDetailCc = [
|
|
|
|
|
|
//注气详情图表配置项
|
|
|
export let zqEchartOption = {
|
|
|
+ showTime: false,
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
|
padding: 8,
|
|
|
@@ -384,10 +489,10 @@ export let zqEchartOption = {
|
|
|
},
|
|
|
},
|
|
|
grid: {
|
|
|
- top: '27%',
|
|
|
- left: '7%',
|
|
|
- right: '5%',
|
|
|
- bottom: '8%',
|
|
|
+ top: '28%',
|
|
|
+ left: '6%',
|
|
|
+ right: '6%',
|
|
|
+ bottom: '7%',
|
|
|
containLabel: true
|
|
|
},
|
|
|
legend: {
|
|
|
@@ -402,47 +507,89 @@ export let zqEchartOption = {
|
|
|
fontSize: 12,
|
|
|
},
|
|
|
data: [
|
|
|
- { name: '注气流量' },
|
|
|
- { name: '注气压力' },
|
|
|
+ { name: '注气标况瞬量' },
|
|
|
+ { name: '瞬时压力' },
|
|
|
]
|
|
|
},
|
|
|
- yAxis: [{
|
|
|
- name: 'MPa',
|
|
|
- nameTextStyle: {
|
|
|
- color: "#7ec7ff",
|
|
|
- fontSize: 12,
|
|
|
- padding: 0
|
|
|
- },
|
|
|
- min: 0,
|
|
|
- splitLine: {
|
|
|
- show: true,
|
|
|
- lineStyle: {
|
|
|
- color: 'rgba(4, 49, 79)',
|
|
|
+ yAxis: [
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ position: 'left', // Y轴1在左边
|
|
|
+ name: '(Nm³/min)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: "#a3a7ae",
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
},
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- axisLabel: {
|
|
|
- show: true,
|
|
|
- textStyle: {
|
|
|
- color: '#7ec7ff',
|
|
|
- padding: 12
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ color: '#a3a7ae',
|
|
|
+ padding: 5
|
|
|
+ },
|
|
|
+ formatter: '{value}',
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false,
|
|
|
},
|
|
|
- formatter: '{value}',
|
|
|
},
|
|
|
- axisTick: {
|
|
|
- show: false,
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ position: 'right', // Y轴2在右边
|
|
|
+ name: '(MPa)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: "#a3a7ae",
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
+ },
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ color: '#a3a7ae',
|
|
|
+ padding: 5
|
|
|
+ },
|
|
|
+ formatter: '{value}',
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
},
|
|
|
- }],
|
|
|
+ ],
|
|
|
series: [
|
|
|
{
|
|
|
- name: '注气流量',
|
|
|
+ name: '注气标况瞬量',
|
|
|
type: 'line',
|
|
|
symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
showAllSymbol: true,
|
|
|
symbolSize: 0,
|
|
|
smooth: true,
|
|
|
+ yAxisIndex: 0,
|
|
|
lineStyle: {
|
|
|
normal: {
|
|
|
width: 2,
|
|
|
@@ -474,12 +621,13 @@ export let zqEchartOption = {
|
|
|
data: 'yData'
|
|
|
},
|
|
|
{
|
|
|
- name: '注气压力',
|
|
|
+ name: '瞬时压力',
|
|
|
type: 'line',
|
|
|
symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
showAllSymbol: true,
|
|
|
symbolSize: 0,
|
|
|
smooth: true,
|
|
|
+ yAxisIndex: 1,
|
|
|
lineStyle: {
|
|
|
normal: {
|
|
|
width: 2,
|
|
|
@@ -515,6 +663,7 @@ export let zqEchartOption = {
|
|
|
}
|
|
|
//抽采详情图表配置项
|
|
|
export let ccEchartOption = {
|
|
|
+ showTime: false,
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
|
padding: 8,
|
|
|
@@ -525,10 +674,10 @@ export let ccEchartOption = {
|
|
|
},
|
|
|
},
|
|
|
grid: {
|
|
|
- top: '27%',
|
|
|
- left: '7%',
|
|
|
- right: '5%',
|
|
|
- bottom: '8%',
|
|
|
+ top: '28%',
|
|
|
+ left: '6%',
|
|
|
+ right: '6%',
|
|
|
+ bottom: '7%',
|
|
|
containLabel: true
|
|
|
},
|
|
|
legend: {
|
|
|
@@ -543,48 +692,275 @@ export let ccEchartOption = {
|
|
|
fontSize: 12,
|
|
|
},
|
|
|
data: [
|
|
|
- { name: '抽采纯量' },
|
|
|
- { name: '抽采混量' },
|
|
|
- { name: '瓦斯浓度' },
|
|
|
+ { name: '历史混量' },
|
|
|
+ { name: '历史压力' },
|
|
|
]
|
|
|
},
|
|
|
- yAxis: [{
|
|
|
- name: 'MPa',
|
|
|
- nameTextStyle: {
|
|
|
- color: "#7ec7ff",
|
|
|
- fontSize: 12,
|
|
|
- padding: 0
|
|
|
+ yAxis: [
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ position: 'left', // Y轴1在左边
|
|
|
+ name: '(m³/min)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: "#a3a7ae",
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
+ },
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ color: '#a3a7ae',
|
|
|
+ padding: 5
|
|
|
+ },
|
|
|
+ formatter: '{value}',
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ position: 'right', // Y轴2在右边
|
|
|
+ name: '(kPa)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: "#a3a7ae",
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
+ },
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ color: '#a3a7ae',
|
|
|
+ padding: 5
|
|
|
+ },
|
|
|
+ formatter: '{value}',
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
},
|
|
|
- min: 0,
|
|
|
- splitLine: {
|
|
|
- show: true,
|
|
|
+ ],
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ name: '历史混量',
|
|
|
+ type: 'line',
|
|
|
+ symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
+ showAllSymbol: true,
|
|
|
+ symbolSize: 0,
|
|
|
+ smooth: true,
|
|
|
+ yAxisIndex: 0,
|
|
|
lineStyle: {
|
|
|
- color: 'rgba(4, 49, 79)',
|
|
|
+ normal: {
|
|
|
+ width: 2,
|
|
|
+ color: 'rgba(236, 255, 62,1)', // 线条颜色
|
|
|
+ },
|
|
|
+ borderColor: 'rgba(0,0,0,.4)',
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgba(236, 255, 62,1)',
|
|
|
+ borderColor: "#646ace",
|
|
|
+ borderWidth: 2
|
|
|
+ },
|
|
|
+ areaStyle: { //区域填充样式
|
|
|
+ normal: {
|
|
|
+ //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: "rgba(236, 255, 62,.4)"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: "rgba(236, 255, 62, .1)"
|
|
|
+ }
|
|
|
+ ], false),
|
|
|
+ shadowColor: 'rgba(236, 255, 62, 0.5)', //阴影颜色
|
|
|
+ shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: 'yData'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '历史压力',
|
|
|
+ type: 'line',
|
|
|
+ symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
+ showAllSymbol: true,
|
|
|
+ symbolSize: 0,
|
|
|
+ smooth: true,
|
|
|
+ yAxisIndex: 1,
|
|
|
+ lineStyle: {
|
|
|
+ normal: {
|
|
|
+ width: 2,
|
|
|
+ color: 'rgba(86, 241, 133,1)', // 线条颜色
|
|
|
+ },
|
|
|
+ borderColor: 'rgba(0,0,0,.4)',
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgba(86, 241, 133,1)',
|
|
|
+ borderColor: "#646ace",
|
|
|
+ borderWidth: 2
|
|
|
+
|
|
|
+ },
|
|
|
+ areaStyle: { //区域填充样式
|
|
|
+ normal: {
|
|
|
+ //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: "rgba(86, 241, 133,.4)"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: "rgba(86, 241, 133, .1)"
|
|
|
+ }
|
|
|
+ ], false),
|
|
|
+ shadowColor: 'rgba(86, 241, 133, 0.5)', //阴影颜色
|
|
|
+ shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
|
|
|
+ }
|
|
|
},
|
|
|
+ data: 'yData1'
|
|
|
},
|
|
|
- axisLine: {
|
|
|
- show: false,
|
|
|
+ ]
|
|
|
+}
|
|
|
+//工况详情图表配置项
|
|
|
+export let gkEchartOption = {
|
|
|
+ showTime: false,
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'axis',
|
|
|
+ padding: 8,
|
|
|
+ backgroundColor: 'rgba(0, 0, 0, .6)',
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff',
|
|
|
+ fontSize: 12,
|
|
|
},
|
|
|
- axisLabel: {
|
|
|
- show: true,
|
|
|
- textStyle: {
|
|
|
- color: '#7ec7ff',
|
|
|
- padding: 12
|
|
|
+ },
|
|
|
+ grid: {
|
|
|
+ top: '28%',
|
|
|
+ left: '6%',
|
|
|
+ right: '6%',
|
|
|
+ bottom: '7%',
|
|
|
+ containLabel: true
|
|
|
+ },
|
|
|
+ legend: {
|
|
|
+ top: '1%',
|
|
|
+ right: '3%',
|
|
|
+ icon: 'circle',
|
|
|
+ itemWidth: 8,
|
|
|
+ itemHeight: 8,
|
|
|
+ itemGap: 12,
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff',
|
|
|
+ fontSize: 12,
|
|
|
+ },
|
|
|
+ data: [
|
|
|
+ { name: '系统电压' },
|
|
|
+ { name: '主机电流' },
|
|
|
+ { name: '风机电流' },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ yAxis: [
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ position: 'left', // Y轴1在左边
|
|
|
+ name: '(V)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: "#a3a7ae",
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
+ },
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ color: '#a3a7ae',
|
|
|
+ padding: 5
|
|
|
+ },
|
|
|
+ formatter: '{value}',
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false,
|
|
|
},
|
|
|
- formatter: '{value}',
|
|
|
},
|
|
|
- axisTick: {
|
|
|
- show: false,
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ position: 'right', // Y轴2在右边
|
|
|
+ name: '(A)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: "#a3a7ae",
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
+ },
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ color: '#a3a7ae',
|
|
|
+ padding: 5
|
|
|
+ },
|
|
|
+ formatter: '{value}',
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
},
|
|
|
- }],
|
|
|
+ ],
|
|
|
series: [
|
|
|
{
|
|
|
- name: '抽采纯量',
|
|
|
+ name: '系统电压',
|
|
|
type: 'line',
|
|
|
symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
showAllSymbol: true,
|
|
|
symbolSize: 0,
|
|
|
smooth: true,
|
|
|
+ yAxisIndex: 0,
|
|
|
lineStyle: {
|
|
|
normal: {
|
|
|
width: 2,
|
|
|
@@ -616,12 +992,13 @@ export let ccEchartOption = {
|
|
|
data: 'yData'
|
|
|
},
|
|
|
{
|
|
|
- name: '瓦斯浓度',
|
|
|
+ name: '主机电流',
|
|
|
type: 'line',
|
|
|
symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
showAllSymbol: true,
|
|
|
symbolSize: 0,
|
|
|
smooth: true,
|
|
|
+ yAxisIndex: 1,
|
|
|
lineStyle: {
|
|
|
normal: {
|
|
|
width: 2,
|
|
|
@@ -654,21 +1031,22 @@ export let ccEchartOption = {
|
|
|
data: 'yData1'
|
|
|
},
|
|
|
{
|
|
|
- name: '抽采混量',
|
|
|
+ name: '风机电流',
|
|
|
type: 'line',
|
|
|
symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
showAllSymbol: true,
|
|
|
symbolSize: 0,
|
|
|
smooth: true,
|
|
|
+ yAxisIndex: 1,
|
|
|
lineStyle: {
|
|
|
normal: {
|
|
|
width: 2,
|
|
|
- color: 'rgba(56, 218, 228,1)', // 线条颜色
|
|
|
+ color: 'rgba(230, 64, 50,1)', // 线条颜色
|
|
|
},
|
|
|
borderColor: 'rgba(0,0,0,.4)',
|
|
|
},
|
|
|
itemStyle: {
|
|
|
- color: 'rgba(56, 218, 228,1)',
|
|
|
+ color: 'rgba(230, 64, 50,1)',
|
|
|
borderColor: "#646ace",
|
|
|
borderWidth: 2
|
|
|
|
|
|
@@ -678,14 +1056,14 @@ export let ccEchartOption = {
|
|
|
//线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
offset: 0,
|
|
|
- color: "rgba(56, 218, 228,.4)"
|
|
|
+ color: "rgba(230, 64, 50,.4)"
|
|
|
},
|
|
|
{
|
|
|
offset: 1,
|
|
|
- color: "rgba(56, 218, 228, .1)"
|
|
|
+ color: "rgba(230, 64, 50, .1)"
|
|
|
}
|
|
|
], false),
|
|
|
- shadowColor: 'rgba(56, 218, 228, 0.5)', //阴影颜色
|
|
|
+ shadowColor: 'rgba(230, 64, 50, 0.5)', //阴影颜色
|
|
|
shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
|
|
|
}
|
|
|
},
|
|
|
@@ -693,3 +1071,445 @@ export let ccEchartOption = {
|
|
|
},
|
|
|
]
|
|
|
}
|
|
|
+
|
|
|
+export let echartBarOption = {
|
|
|
+ type: 'bar_lt',
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'item',
|
|
|
+ padding: 8,
|
|
|
+ backgroundColor: 'rgba(0, 0, 0, .6)',
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff',
|
|
|
+ fontSize: 12,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ grid: {
|
|
|
+ top: '30%',
|
|
|
+ left: '4%',
|
|
|
+ right: '4%',
|
|
|
+ bottom: '8%',
|
|
|
+ containLabel: true,
|
|
|
+ },
|
|
|
+ legend: {
|
|
|
+ top: '16%',
|
|
|
+ right: 'center',
|
|
|
+ icon: 'circle',
|
|
|
+ itemWidth: 8,
|
|
|
+ itemHeight: 8,
|
|
|
+ itemGap: 12,
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff',
|
|
|
+ fontSize: 12,
|
|
|
+ },
|
|
|
+ data: [
|
|
|
+ { name: '累计注气流量' },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ yAxis: [
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ name: '(Nm³/min)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: 'rgba(181, 185, 191)',
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
+ },
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(1, 63, 97)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ textStyle: {
|
|
|
+ color: 'rgba(181, 185, 191)',
|
|
|
+ },
|
|
|
+ formatter: '{value}',
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ series: [
|
|
|
+ { //柱底圆片
|
|
|
+ name: "累计注气流量",
|
|
|
+ type: "pictorialBar",
|
|
|
+ symbolSize: [25, 15],
|
|
|
+ symbolOffset: [0, 5],
|
|
|
+ z: 12,
|
|
|
+ itemStyle: {
|
|
|
+ "normal": {
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: 'rgba(8, 213, 252,1)',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: 'rgba(8, 213, 252,1)',
|
|
|
+ }
|
|
|
+ ])
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: 'line'
|
|
|
+ },
|
|
|
+ //柱体
|
|
|
+ {
|
|
|
+ name: '累计注气流量',
|
|
|
+ type: 'bar',
|
|
|
+ barWidth: 25,
|
|
|
+ barGap: '0%',
|
|
|
+ itemStyle: {
|
|
|
+ "normal": {
|
|
|
+ "color": {
|
|
|
+ "x": 0,
|
|
|
+ "y": 0,
|
|
|
+ "x2": 0,
|
|
|
+ "y2": 1,
|
|
|
+ "type": "linear",
|
|
|
+ "global": false,
|
|
|
+ "colorStops": [{//第一节下面
|
|
|
+ "offset": 0,
|
|
|
+ "color": 'rgba(7, 67, 96)'
|
|
|
+ }, {
|
|
|
+ "offset": 1,
|
|
|
+ "color": 'rgba(9, 214, 252)'
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: 'line'
|
|
|
+ },
|
|
|
+ //柱顶圆片
|
|
|
+ {
|
|
|
+ name: "累计注气流量",
|
|
|
+ type: "pictorialBar",
|
|
|
+ symbolSize: [25, 15],
|
|
|
+ symbolOffset: [0, -5],
|
|
|
+ z: 12,
|
|
|
+ symbolPosition: "end",
|
|
|
+ "itemStyle": {
|
|
|
+ "normal": {
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1,
|
|
|
+ [{
|
|
|
+ offset: 0,
|
|
|
+ color: 'rgba(9, 170, 208,1)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: 'rgba(9, 170, 208,1)'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ false
|
|
|
+ ),
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: 'line'
|
|
|
+ },
|
|
|
+ ]
|
|
|
+}
|
|
|
+//装备运行工况监测详情曲线配置
|
|
|
+export let echartOptionGk = {
|
|
|
+ showTime: false,
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'axis',
|
|
|
+ padding: 8,
|
|
|
+ backgroundColor: 'rgba(0, 0, 0, .6)',
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff',
|
|
|
+ fontSize: 12,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ grid: {
|
|
|
+ top: '10%',
|
|
|
+ left: '2%',
|
|
|
+ right: '6%',
|
|
|
+ bottom: '6%',
|
|
|
+ containLabel: true
|
|
|
+ },
|
|
|
+ legend: {
|
|
|
+ top: '2%',
|
|
|
+ right: 'center',
|
|
|
+ icon: 'circle',
|
|
|
+ itemWidth: 8,
|
|
|
+ itemHeight: 8,
|
|
|
+ itemGap: 12,
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff',
|
|
|
+ fontSize: 12,
|
|
|
+ },
|
|
|
+ data: [
|
|
|
+ { name: '系统电压' },
|
|
|
+ { name: '主机电流' },
|
|
|
+ { name: '风机电流' },
|
|
|
+ { name: '前轴温度' },
|
|
|
+ { name: '后轴温度' },
|
|
|
+ { name: '绕组温度' },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ yAxis: [
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ position: 'left', // Y轴1在左边
|
|
|
+ name: '(V)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: "#a3a7ae",
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
+ },
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ color: '#a3a7ae',
|
|
|
+ padding: 12
|
|
|
+ },
|
|
|
+ formatter: '{value}',
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ position: 'right', // Y轴2在右边
|
|
|
+ name: '(A)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: "#a3a7ae",
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
+ },
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ color: '#a3a7ae',
|
|
|
+ padding: 12
|
|
|
+ },
|
|
|
+ formatter: '{value}',
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ position: 'right', // Y轴2在右边
|
|
|
+ offset:80,
|
|
|
+ name: '( ℃)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: "#a3a7ae",
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
+ },
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ color: '#a3a7ae',
|
|
|
+ padding: 12
|
|
|
+ },
|
|
|
+ formatter: '{value}',
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ name: '系统电压',
|
|
|
+ type: 'line',
|
|
|
+ symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
+ showAllSymbol: true,
|
|
|
+ symbolSize: 0,
|
|
|
+ smooth: true,
|
|
|
+ yAxisIndex: 0,
|
|
|
+ lineStyle: {
|
|
|
+ normal: {
|
|
|
+ width: 2,
|
|
|
+ color: 'rgba(254, 157, 29,1)', // 线条颜色
|
|
|
+ },
|
|
|
+ borderColor: 'rgba(0,0,0,.4)',
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgba(254, 157, 29,1)',
|
|
|
+ borderColor: "#646ace",
|
|
|
+ borderWidth: 2
|
|
|
+ },
|
|
|
+ areaStyle: { //区域填充样式
|
|
|
+ normal: {
|
|
|
+ //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: "rgba(254, 157, 29,.4)"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: "rgba(254, 157, 29, .1)"
|
|
|
+ }
|
|
|
+ ], false),
|
|
|
+ shadowColor: 'rgba(254, 157, 29, 0.5)', //阴影颜色
|
|
|
+ shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: 'yData'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '主机电流',
|
|
|
+ type: 'line',
|
|
|
+ symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
+ showAllSymbol: true,
|
|
|
+ symbolSize: 0,
|
|
|
+ smooth: true,
|
|
|
+ yAxisIndex: 1,
|
|
|
+ lineStyle: {
|
|
|
+ normal: {
|
|
|
+ width: 2,
|
|
|
+ color: 'rgba(58, 233, 242,1)', // 线条颜色
|
|
|
+ },
|
|
|
+ borderColor: 'rgba(0,0,0,.4)',
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgba(58, 233, 242,1)',
|
|
|
+ borderColor: "#646ace",
|
|
|
+ borderWidth: 2
|
|
|
+
|
|
|
+ },
|
|
|
+ areaStyle: { //区域填充样式
|
|
|
+ normal: {
|
|
|
+ //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: "rgba(58, 233, 242,.4)"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: "rgba(58, 233, 242, .1)"
|
|
|
+ }
|
|
|
+ ], false),
|
|
|
+ shadowColor: 'rgba(58, 233, 242, 0.5)', //阴影颜色
|
|
|
+ shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: 'yData1'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '风机电流',
|
|
|
+ type: 'line',
|
|
|
+ symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
+ showAllSymbol: true,
|
|
|
+ symbolSize: 0,
|
|
|
+ smooth: true,
|
|
|
+ yAxisIndex: 1,
|
|
|
+ lineStyle: {
|
|
|
+ normal: {
|
|
|
+ width: 2,
|
|
|
+ color: 'rgba(229, 65, 51,1)', // 线条颜色
|
|
|
+ },
|
|
|
+ borderColor: 'rgba(0,0,0,.4)',
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgba(229, 65, 51,1)',
|
|
|
+ borderColor: "#646ace",
|
|
|
+ borderWidth: 2
|
|
|
+
|
|
|
+ },
|
|
|
+ areaStyle: { //区域填充样式
|
|
|
+ normal: {
|
|
|
+ //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: "rgba(229, 65, 51,.4)"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: "rgba(229, 65, 51, .1)"
|
|
|
+ }
|
|
|
+ ], false),
|
|
|
+ shadowColor: 'rgba(229, 65, 51, 0.5)', //阴影颜色
|
|
|
+ shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: 'yData2'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '前轴温度',
|
|
|
+ type: 'line',
|
|
|
+ symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
+ showAllSymbol: true,
|
|
|
+ symbolSize: 0,
|
|
|
+ smooth: true,
|
|
|
+ yAxisIndex: 2,
|
|
|
+ lineStyle: {
|
|
|
+ normal: {
|
|
|
+ width: 2,
|
|
|
+ color: 'rgba(15, 204, 117,1)', // 线条颜色
|
|
|
+ },
|
|
|
+ borderColor: 'rgba(0,0,0,.4)',
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgba(15, 204, 117,1)',
|
|
|
+ borderColor: "#646ace",
|
|
|
+ borderWidth: 2
|
|
|
+
|
|
|
+ },
|
|
|
+ areaStyle: { //区域填充样式
|
|
|
+ normal: {
|
|
|
+ //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: "rgba(15, 204, 117,.4)"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: "rgba(15, 204, 117, .1)"
|
|
|
+ }
|
|
|
+ ], false),
|
|
|
+ shadowColor: 'rgba(15, 204, 117, 0.5)', //阴影颜色
|
|
|
+ shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: 'yData3'
|
|
|
+ },
|
|
|
+ ]
|
|
|
+}
|