|
|
@@ -2,6 +2,7 @@
|
|
|
import { Config } from '../../deviceManager/configurationTable/types';
|
|
|
// import { BDdustMock, BDfireMock } from './configurable.data.bd';
|
|
|
import { getThemifyImagesURL } from '/@/utils/ui';
|
|
|
+import * as echarts from 'echarts';
|
|
|
|
|
|
//注气驱替-主界面
|
|
|
export const testConfigGasInject: Config[] = [
|
|
|
@@ -561,24 +562,28 @@ export const testConfigGasInjectZq: Config[] = [
|
|
|
board: [
|
|
|
{
|
|
|
type: 'Gas',
|
|
|
- readFrom: '',
|
|
|
+ readFrom: 'ZqsjData',
|
|
|
layout: 'label-top',
|
|
|
items: [
|
|
|
{
|
|
|
label: '瞬时注气流量',
|
|
|
- value: '${flow_merge}',
|
|
|
+ value: '${flowStdInstant}',
|
|
|
+ unit: 'm³/min',
|
|
|
},
|
|
|
{
|
|
|
label: '累计注气流量',
|
|
|
value: '${fy_merge}',
|
|
|
+ unit: 'm³',
|
|
|
},
|
|
|
{
|
|
|
label: '注气温度',
|
|
|
- value: '${leakage}',
|
|
|
+ value: '${flowStdAccum}',
|
|
|
+ unit: '℃',
|
|
|
},
|
|
|
{
|
|
|
label: '注气压力',
|
|
|
- value: '${leakage}',
|
|
|
+ value: '${injectionPressure}',
|
|
|
+ unit: 'Pa',
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -685,35 +690,319 @@ export const testConfigGasInjectZq: Config[] = [
|
|
|
direction: 'column',
|
|
|
items: [
|
|
|
{
|
|
|
- name: 'chart',
|
|
|
+ name: 'gas_line_chart',
|
|
|
basis: '100%',
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
board: [],
|
|
|
list: [],
|
|
|
- chart: [
|
|
|
- {
|
|
|
- type: 'line_area',
|
|
|
- readFrom: '',
|
|
|
- legend: { show: false },
|
|
|
- xAxis: [{ show: true }],
|
|
|
- yAxis: [{ show: true, name: '浓度', position: 'left' }],
|
|
|
- series: [
|
|
|
- {
|
|
|
- label: '${strinstallpos}',
|
|
|
- readFrom: 'historyList',
|
|
|
- xprop: 'time',
|
|
|
- yprop: 'dustval',
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
+ chart: [],
|
|
|
table: [],
|
|
|
gallery: [],
|
|
|
complex_list: [],
|
|
|
gallery_list: [],
|
|
|
- preset: [],
|
|
|
+ preset: [
|
|
|
+ {
|
|
|
+ readFrom: 'ZqParamLine',
|
|
|
+ echartOption: {
|
|
|
+ yname: 'MPa',
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'axis',
|
|
|
+ padding: 8,
|
|
|
+ backgroundColor: 'rgba(0, 0, 0, .6)',
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff',
|
|
|
+ fontSize: 12,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ grid: {
|
|
|
+ top: '26%',
|
|
|
+ left: '5%',
|
|
|
+ right: '5%',
|
|
|
+ bottom: '8%',
|
|
|
+ containLabel: true
|
|
|
+ },
|
|
|
+ legend: {
|
|
|
+ top: '3%',
|
|
|
+ right: '3%',
|
|
|
+ icon: 'circle',
|
|
|
+ itemWidth: 8,
|
|
|
+ itemHeight: 8,
|
|
|
+ itemGap: 12,
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff',
|
|
|
+ fontSize: 12,
|
|
|
+ },
|
|
|
+ data: [
|
|
|
+ { name: '注气压力' },
|
|
|
+ { name: '标况累计流量' },
|
|
|
+ { name: '标况瞬时流量' },
|
|
|
+ { name: '工况累计流量' },
|
|
|
+ { name: '工况瞬时流量' },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ yAxis: [
|
|
|
+ {
|
|
|
+ position: 'left', // Y轴1在左边
|
|
|
+ name: '压力(Pa)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: "#7ec7ff",
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
+ },
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ color: '#7ec7ff',
|
|
|
+ padding: 12
|
|
|
+ },
|
|
|
+ formatter: '{value}',
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ position: 'right', // Y轴2在右边
|
|
|
+ name: '流量(m³)',
|
|
|
+ nameTextStyle: {
|
|
|
+ color: "#7ec7ff",
|
|
|
+ fontSize: 12,
|
|
|
+ padding: 0
|
|
|
+ },
|
|
|
+ min: 0,
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(4, 49, 79)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ textStyle: {
|
|
|
+ color: '#7ec7ff',
|
|
|
+ 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(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'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '标况瞬时流量',
|
|
|
+ type: 'line',
|
|
|
+ symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
+ showAllSymbol: true,
|
|
|
+ symbolSize: 0,
|
|
|
+ smooth: true,
|
|
|
+ yAxisIndex: 1,
|
|
|
+ lineStyle: {
|
|
|
+ normal: {
|
|
|
+ width: 2,
|
|
|
+ color: 'rgba(56, 218, 228,1)', // 线条颜色
|
|
|
+ },
|
|
|
+ borderColor: 'rgba(0,0,0,.4)',
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgba(56, 218, 228,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(56, 218, 228,.4)"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: "rgba(56, 218, 228, .1)"
|
|
|
+ }
|
|
|
+ ], false),
|
|
|
+ shadowColor: 'rgba(56, 218, 228, 0.5)', //阴影颜色
|
|
|
+ shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: 'yData2'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '工况累计流量',
|
|
|
+ type: 'line',
|
|
|
+ symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
+ showAllSymbol: true,
|
|
|
+ symbolSize: 0,
|
|
|
+ smooth: true,
|
|
|
+ yAxisIndex: 1,
|
|
|
+ lineStyle: {
|
|
|
+ normal: {
|
|
|
+ width: 2,
|
|
|
+ color: 'rgba(255, 0, 0,1)', // 线条颜色
|
|
|
+ },
|
|
|
+ borderColor: 'rgba(0,0,0,.4)',
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgba(255, 0, 0,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(255, 0, 0,.4)"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: "rgba(255, 0, 0, .1)"
|
|
|
+ }
|
|
|
+ ], false),
|
|
|
+ shadowColor: 'rgba(255, 0, 0, 0.5)', //阴影颜色
|
|
|
+ shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: 'yData3'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '工况瞬时流量',
|
|
|
+ type: 'line',
|
|
|
+ symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
|
|
|
+ showAllSymbol: true,
|
|
|
+ symbolSize: 0,
|
|
|
+ smooth: true,
|
|
|
+ yAxisIndex: 1,
|
|
|
+ lineStyle: {
|
|
|
+ normal: {
|
|
|
+ width: 2,
|
|
|
+ color: 'rgba(255, 157, 28,1)', // 线条颜色
|
|
|
+ },
|
|
|
+ borderColor: 'rgba(0,0,0,.4)',
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgba(255, 157, 28,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(255, 157, 28,.4)"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: "rgba(255, 157, 28, .1)"
|
|
|
+ }
|
|
|
+ ], false),
|
|
|
+ shadowColor: 'rgba(255, 157, 28, 0.5)', //阴影颜色
|
|
|
+ shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: 'yData4'
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ],
|
|
|
to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=fanmain',
|
|
|
},
|
|
|
showStyle: {
|