import { reactive, ref } from 'vue'; import echarts from '/@/utils/lib/echarts'; import { ModuleDataChart } from '/@/views/vent/deviceManager/configurationTable/types'; export const monitorNav = [ { title: '达标评判', pathName: 'gasAssessment', isShow: true, }, { title: '智能调控', pathName: 'gasControl', isShow: false, }, { title: '单元时程曲线', pathName: 'gasEcharts', isShow: false, }, { title: '管道监测', pathName: 'gasPiping', isShow: false, }, { title: '视频监测', pathName: 'gasVideo', isHover: false, }, // { // title: '故障诊断', // pathName: 'gasAlarm', // isHover: false, // }, ]; export const echartsOption = reactive({ tooltip: { trigger: 'axis', axisPointer: { lineStyle: { color: '#fff' } } }, legend: { top: '-5', icon: 'rect', data: ['进风', '回风'], right: '10px', textStyle: { fontSize: 12, color: '#fff' }, }, grid: { x: 50, y: 50, x2: 12, y2: 40, bottom: '25', top: '10' }, xAxis: { type: 'category', boundaryGap: false, axisLine: { lineStyle: { color: '#8EAFB9' } }, axisLabel: { color: '#ffffffcc' }, splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } }, data: [], }, yAxis: [ { type: 'value', name: 'm³/min', axisTick: { show: false, }, axisLine: { lineStyle: { show: true, color: '#8EAFB9' } }, axisLabel: { margin: 10, fontSize: 12, color: '#ffffffcc' }, splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } }, }, ], series: [ { name: '进风', type: 'line', smooth: true, lineStyle: { width: 2 }, yAxisIndex: 0, // markLine: { // data: [{ yAxis: 0, name: '需风量' }], // }, areaStyle: { 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: { color: '#B996F8' }, data: [], }, { name: '回风', type: 'line', smooth: true, lineStyle: { width: 2 }, yAxisIndex: 0, // markLine: { // data: [{ yAxis: 0, name: '需风量' }], // }, areaStyle: { 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: { color: '#03C2EC' }, data: [], }, ], }); export const gasMonitor = [ { title: '工作面编号', code: 'T0', unit: '', }, { title: '所属采区', code: 'T1', unit: '', }, { title: '开采煤层', code: 'T2', unit: '', }, { title: '工作面走向长度', code: 'CO2', unit: 'm', }, { title: '工作面切眼长度', code: 'gasC', unit: 'm', }, { title: '工作面煤炭储量', code: 'gasMixMass', unit: 'm³/t', }, { title: '原始瓦斯储量', code: 'gasMass', unit: 'm³/t', }, { title: '工作面瓦斯含量', code: 'gasMass', unit: 'm³/t', }, { title: '预抽瓦斯标量 (m³)', code: 'gasTotalMass', unit: '', }, { title: '抽采单元数量', code: 'windPressure', unit: '', }, ]; export const gasUnitBase = [ { title: '单元名称', code: 'T0', unit: '', }, { title: '煤炭储量', code: 'T1', unit: '', }, { title: '瓦斯储量', code: 'T2', unit: 'm³/t', }, { title: '钻孔施工长度', code: 'CO2', unit: 'm', }, { title: '单元瓦斯含量', code: 'gasC', unit: 'm³/t', }, { title: '单元原始瓦斯压力', code: 'gasMixMass', unit: 'MPa', }, { title: '抽采钻孔管径', code: 'gasMass', unit: 'm', }, { title: '抽采单元汇总管径', code: 'gasMass', unit: 'm', }, ]; export const gasUnitMonitor = [ { title: '瓦斯总储量', code: 'T0', unit: 'm³/t', }, { title: '抽采达标量', code: 'T1', unit: 'm³/t', }, { title: '累计抽采纯量', code: 'T2', unit: 'm³/t', }, { title: '当前抽采率', code: 'CO2', unit: '%', }, { title: '实时抽采率', code: 'gasC', unit: '%', }, { title: '实时抽采浓度', code: 'gasMixMass', unit: '%', }, { title: '实时抽采负压', code: 'gasMass', unit: 'MPa', }, { title: '残余瓦斯压力', code: 'gasMass', unit: 'MPa', }, ]; export const monitorPosData = [ { title: '负压', code: 'T0', unit: 'kPa', }, { title: 'CH₄浓度', code: 'T1', unit: '%', }, { title: '流量', code: 'T2', unit: 'm³/min', }, { title: '管道温度', code: 'CO2', unit: '℃', }, { title: 'CO浓度', code: 'gasC', unit: 'ppm', }, ]; export const monitorValveData = [ { title: '1#阀门', code: 'T0', unit: '°', }, { title: '2#阀门', code: 'T1', unit: '°', }, { title: '3#阀门', code: 'T2', unit: '°', }, { title: '4#阀门', code: 'CO2', unit: '°', }, { title: '5#阀门', code: 'gasC', unit: '°', }, ]; export const gasParamData = [ { title: '走向长度 (m)', code: 'lenH', }, { title: '倾向长度 (m)', code: 'lenDip', }, { title: '煤层厚度 (m)', code: 'thickness', }, { title: '煤层倾角 (°)', code: 'angleDip', }, { title: '吸附常数a (cm³/gdaf)', code: 'adsorbA', }, { title: '吸附常数b (MPa-l)', code: 'adsorbB', }, { title: '水分Mad (%)', code: 'waterMad', }, { title: '灰分Ad (%)', code: 'dustAd', }, { title: '挥发分Vdaf (%)', code: 'volatilizeAd', }, { title: '孔隙率 (m³)', code: 'poreRate', }, { title: '真相对密度', code: 'trueDensity', }, { title: '视相对密度', code: 'apparentDensity', }, ]; export const currentGasMonitor = [ { title: '原始瓦斯含量 (m³/t)', code: 'gasOriginalMass', }, { title: '残余瓦斯含量 (m³/t)', code: 'gasRemnantMass', }, { title: '残存瓦斯含量 (m³/t)', code: 'gasSurviveMass', }, { title: '瓦斯压力 (MPa)', code: 'gasTotalMass', }, { title: '煤层厚度 (m)', code: 'currentThickness', }, { title: '煤层倾角 (°)', code: 'currentAngleDip', }, { title: '地质构造', code: 'geologicStructure', }, ]; export const gasPumpValve = [ { title: '开抽日期', code: 'T0', unit: '', }, { title: '支管抽采负压', code: 'T0', unit: '', }, { title: '支管抽采流量', code: 'T0', unit: '', }, { title: '抽采管路气体温度', code: 'T0', unit: '', }, { title: '抽采管路甲烷浓度', code: 'T0', unit: '', }, { title: '抽采管路一氧化碳浓度', code: 'T0', unit: '', }, { title: '累计流量', code: 'T0', unit: '', }, { title: '累计纯量', code: 'T0', unit: '', }, ]; export const gasUnitDetail = [ { title: '开抽日期', code: 'startDay', // unit: 'kPa', }, { title: '瓦斯储量', code: 'CH4 ', // unit: '%', }, { title: '抽采负压', code: 'temperature', // unit: '℃', }, { title: '抽采流量', code: 'flowRate', // unit: '万m³', }, { title: '气体温度', code: 'scalarRate', // unit: '万m³', }, { title: '甲烷浓度', code: 'CH4', // unit: '万m³', }, { title: '一氧化碳浓度', code: 'CO', // unit: '万m³', }, { title: '累计纯量', code: 'unit=Mass', }, ]; export function getBezierControlPoint(A = { x: 1, y: 1 }, alpha_degrees = 45, d = 10) { // 转换角度为弧度 const alpha_radians = (alpha_degrees * Math.PI) / 180; // 计算 C 点的坐标 const C = { x: A.x + d * Math.cos(alpha_radians), y: A.y + d * Math.sin(alpha_radians), }; return C; } export const headerBadges = ref([ { value: 'T1', desc: '瓦斯总储量', code: '', }, { value: 'T2', desc: '抽采达标量', code: '', }, { value: 'T3', desc: '累计抽采量', code: '', }, { value: 'T4', desc: '预抽比率', code: '', }, { value: 'T5', desc: '已抽时间', code: '', }, ]); export const gasUnitBarOption: ModuleDataChart = { type: 'bar_cylinder', readFrom: '', legend: { show: true }, xAxis: [{ show: true }], yAxis: [{ show: true, name: '', position: 'left' }], series: [ { readFrom: 'arrayDev', xprop: 'strinstallpos', yprop: 'val', label: '', }, ], }; export const mockData = { id: 4, objType: '氧气', arrayDev: [ { strinstallpos: '抽采单元1', val: '1.76', }, { strinstallpos: '抽采单元2', val: '0.08', }, { strinstallpos: '抽采单元3', val: '0.30', }, { strinstallpos: '抽采单元4', val: '0.67', }, { strinstallpos: '抽采单元5', val: '0.67', }, ], }; export const gasUnitPieOption: ModuleDataChart = { type: 'pie', readFrom: '', legend: { show: true }, xAxis: [{ show: true }], yAxis: [{ show: true, name: '', position: 'left' }], series: [ { readFrom: 'arrayDev', xprop: 'strinstallpos', yprop: 'val', label: '', }, ], }; export const mockPieData = { id: 4, objType: '氧气', arrayDev: [ { strinstallpos: '抽采单元1', val: '1.76', }, { strinstallpos: '抽采单元2', val: '0.08', }, { strinstallpos: '抽采单元3', val: '0.30', }, { strinstallpos: '抽采单元4', val: '0.67', }, { strinstallpos: '抽采单元5', val: '0.67', }, ], }; export const gasUnitHlOption: ModuleDataChart = { type: 'line_area', readFrom: '', legend: { show: false }, xAxis: [{ show: true }], yAxis: [{ show: true, name: '混量(m³/t)', position: 'left' }], series: [{ readFrom: 'history', xprop: 'time', yprop: 'val', label: '单元瓦斯混量' }], }; export const mockGasUnitHlData = { id: 4, objType: '氧气', history: [ { time: '2024-12-13', val: '113.76', }, { time: '2024-12-14', val: '153.76', }, { time: '2024-12-15', val: '163.76', }, { time: '2024-12-16', val: '193.76', }, { time: '2024-12-17', val: '203.76', }, { time: '2024-12-18', val: '223.76', }, ], }; export const gasUnitClOption: ModuleDataChart = { type: 'line_area', readFrom: '', legend: { show: false }, xAxis: [{ show: true }], yAxis: [{ show: true, name: '纯量(m³/t)', position: 'left' }], series: [{ readFrom: 'history', xprop: 'time', yprop: 'val', label: '单元瓦斯纯量', color: '#FAC858' }], }; export const mockGasUnitClData = { id: 4, objType: '氧气', history: [ { time: '2024-12-13', val: '103.76', }, { time: '2024-12-14', val: '133.76', }, { time: '2024-12-15', val: '143.76', }, { time: '2024-12-16', val: '173.76', }, { time: '2024-12-17', val: '193.76', }, { time: '2024-12-18', val: '213.76', }, ], }; export const gasUnitOption = [ { legend: '瓦斯浓度', seriesName: '(m³/t)', ymax: 10000, yname: 'm³/t', linetype: 'line', yaxispos: 'left', color: '#37BCF2', sort: 1, xRotate: 10, dataIndex: 'nd', }, { legend: '抽采负压', seriesName: '(MPa)', ymax: 50, yname: 'MPa', linetype: 'line', yaxispos: 'right', color: '#FC4327', sort: 2, xRotate: 10, dataIndex: 'fy', }, { legend: '瓦斯流量', seriesName: '(%)', ymax: 50, yname: '%', linetype: 'line', yaxispos: 'right', color: '#91CC75', sort: 3, xRotate: 10, dataIndex: 'flowNum', }, ]; export const mockGasUnitData = { history: [ { time: '08:12:00', flowNum: '103.76', fy: '786.87', nd: '43', }, { time: '08:12:01', flowNum: '123.76', fy: '886.87', nd: '43', }, { time: '08:12:02', flowNum: '153.76', fy: '896.87', nd: '43', }, { time: '08:12:03', flowNum: '173.76', fy: '1010.87', nd: '43', }, { time: '08:12:04', flowNum: '163.76', fy: '900.87', nd: '43', }, { time: '08:12:05', flowNum: '113.76', fy: '983.87', nd: '43', }, ], }; // 管道甲烷 export const gasPipingCH4Option = [ { legend: '主管道', seriesName: '(%)', ymax: 50, yname: '%', linetype: 'line', yaxispos: 'left', color: '#37BCF2', sort: 1, xRotate: 10, dataIndex: 'CH40', }, { legend: '支路1', seriesName: '(%)', ymax: 50, yname: '%', linetype: 'line', yaxispos: 'left', color: '#FC4327', sort: 1, xRotate: 10, dataIndex: 'CH41', }, { legend: '支路2', seriesName: '(%)', ymax: 50, yname: '%', linetype: 'line', yaxispos: 'left', color: '#91CC75', sort: 1, xRotate: 10, dataIndex: 'CH42', }, ]; export const mockGasPipingData = [ { time: '08:12:00', CH40: '43', CH41: '24.23', CH42: '14.23', }, { time: '08:12:01', CH40: '43', CH41: '28.23', CH42: '16.23', }, { time: '08:12:02', CH40: '43', CH41: '21.23', CH42: '16.23', }, { time: '08:12:03', CH40: '43', CH41: '25.23', CH42: '11.23', }, { time: '08:12:04', CH40: '43', CH41: '27.23', CH42: '15.23', }, { time: '08:12:05', CH40: '43', CH41: '28.23', CH42: '12.23', }, ]; // 管道一氧化碳 export const gasPipingCOOption = [ { legend: '主管道', seriesName: '(ppm)', ymax: 50, yname: 'ppm', linetype: 'line', yaxispos: 'left', color: '#37BCF2', sort: 1, xRotate: 10, dataIndex: 'CO0', }, { legend: '支路1', seriesName: '(ppm)', ymax: 50, yname: 'ppm', linetype: 'line', yaxispos: 'left', color: '#FC4327', sort: 1, xRotate: 10, dataIndex: 'CO1', }, { legend: '支路2', seriesName: '(ppm)', ymax: 50, yname: 'ppm', linetype: 'line', yaxispos: 'left', color: '#91CC75', sort: 1, xRotate: 10, dataIndex: 'CO2', }, ]; export const mockGasPipingCOData = [ { time: '08:12:00', CO0: '43', CO1: '24.23', CO2: '14.23', }, { time: '08:12:01', CO0: '21.98', CO1: '18.23', CO2: '16.23', }, { time: '08:12:02', CO0: '23.89', CO1: '21.23', CO2: '16.23', }, { time: '08:12:03', CO0: '20.23', CO1: '15.23', CO2: '11.23', }, { time: '08:12:04', CO0: '24.75', CO1: '17.23', CO2: '15.23', }, { time: '08:12:05', CO0: '23.45', CO1: '18.23', CO2: '12.23', }, ]; // 管道温度 export const gasPipingWdOption = [ { legend: '主管道', seriesName: '(℃)', ymax: 20, yname: '℃', linetype: 'line', yaxispos: 'left', color: '#37BCF2', sort: 1, xRotate: 10, dataIndex: 'wd0', }, { legend: '支路1', seriesName: '(℃)', ymax: 20, yname: '℃', linetype: 'line', yaxispos: 'left', color: '#FC4327', sort: 1, xRotate: 10, dataIndex: 'wd1', }, { legend: '支路2', seriesName: '(℃)', ymax: 20, yname: '℃', linetype: 'line', yaxispos: 'left', color: '#91CC75', sort: 1, xRotate: 10, dataIndex: 'wd2', }, ]; export const mockGasPipingWdData = [ { time: '08:12:00', wd0: '22.23', wd1: '18.32', wd2: '14.23', }, { time: '08:12:01', wd0: '14.23', wd1: '18.23', wd2: '16.23', }, { time: '08:12:02', wd0: '18.98', wd1: '15.23', wd2: '16.23', }, { time: '08:12:03', wd0: '22.45', wd1: '15.23', wd2: '11.23', }, { time: '08:12:04', wd0: '23.87', wd1: '19.23', wd2: '15.23', }, { time: '08:12:05', wd0: '25.42', wd1: '21.23', wd2: '12.23', }, ]; // 管道流量 export const gasPipingFlowOption = [ { legend: '主管道', seriesName: '(m³/min)', ymax: 20, yname: 'm³/min', linetype: 'line', yaxispos: 'left', color: '#37BCF2', sort: 1, xRotate: 10, dataIndex: 'flow0', }, { legend: '支路1', seriesName: '(m³/min)', ymax: 20, yname: 'm³/min', linetype: 'line', yaxispos: 'left', color: '#FC4327', sort: 1, xRotate: 10, dataIndex: 'flow1', }, { legend: '支路2', seriesName: '(m³/min)', ymax: 20, yname: 'm³/min', linetype: 'line', yaxispos: 'left', color: '#91CC75', sort: 1, xRotate: 10, dataIndex: 'flow2', }, ]; export const mockGasPipingFlowData = [ { time: '08:12:00', flow0: '22.23', flow1: '18.32', flow2: '14.23', }, { time: '08:12:01', flow0: '14.23', flow1: '18.23', flow2: '16.23', }, { time: '08:12:02', flow0: '18.98', flow1: '15.23', flow2: '16.23', }, { time: '08:12:03', flow0: '22.45', flow1: '15.23', flow2: '11.23', }, { time: '08:12:04', flow0: '23.87', flow1: '19.23', flow2: '15.23', }, { time: '08:12:05', flow0: '25.42', flow1: '21.23', flow2: '12.23', }, ]; // 管道流量 export const gasPipingCylOption = [ { legend: '主管道', seriesName: '(m³)', ymax: 20, yname: 'm³', linetype: 'line', yaxispos: 'left', color: '#37BCF2', sort: 1, xRotate: 10, dataIndex: 'flow0', }, { legend: '支路1', seriesName: '(m³)', ymax: 20, yname: 'm³', linetype: 'line', yaxispos: 'left', color: '#FC4327', sort: 1, xRotate: 10, dataIndex: 'flow1', }, { legend: '支路2', seriesName: '(m³)', ymax: 20, yname: 'm³', linetype: 'line', yaxispos: 'left', color: '#91CC75', sort: 1, xRotate: 10, dataIndex: 'flow2', }, ]; export const mockGasPipingCylData = [ { time: '08:12:00', flow0: '13452', flow1: '3452', flow2: '9032.23', }, { time: '08:12:01', flow0: '17452', flow1: '3452', flow2: '9032.23', }, { time: '08:12:02', flow0: '14452', flow1: '3452', flow2: '9032.23', }, { time: '08:12:03', flow0: '16452', flow1: '3452', flow2: '9032.23', }, { time: '08:12:04', flow0: '19452', flow1: '3452', flow2: '9032.23', }, { time: '08:12:05', flow0: '20452', flow1: '3452', flow2: '9032.23', }, ]; // 管道负压 export const gasPipingFyOption = [ { legend: '主管道', seriesName: '(kPa)', ymax: 30, yname: 'kPa', linetype: 'line', yaxispos: 'left', color: '#37BCF2', sort: 1, xRotate: 10, dataIndex: 'fy0', }, { legend: '支路1', seriesName: '(kPa)', ymax: 30, yname: 'kPa', linetype: 'line', yaxispos: 'left', color: '#FC4327', sort: 1, xRotate: 10, dataIndex: 'fy1', }, { legend: '支路2', seriesName: '(kPa)', ymax: 30, yname: 'kPa', linetype: 'line', yaxispos: 'left', color: '#91CC75', sort: 1, xRotate: 10, dataIndex: 'fy2', }, ]; export const mockGasPipingFyData = [ { time: '08:12:00', fy0: '22.23', fy1: '18.32', fy2: '14.23', }, { time: '08:12:01', fy0: '14.23', fy1: '18.23', fy2: '16.23', }, { time: '08:12:02', fy0: '18.98', fy1: '15.23', fy2: '16.23', }, { time: '08:12:03', fy0: '22.45', fy1: '15.23', fy2: '11.23', }, { time: '08:12:04', fy0: '23.87', fy1: '19.23', fy2: '15.23', }, { time: '08:12:05', fy0: '25.42', fy1: '21.23', fy2: '12.23', }, ]; export const unitHeaderBadges = ref([ { value: 'T1', desc: '单元瓦斯总储量', code: '', }, { value: 'T2', desc: '单元抽采达标量', code: '', }, { value: 'T3', desc: '单元累计抽采纯量', code: '', }, { value: 'T4', desc: '单元预抽比率', code: '', }, ]); export const unitBaseInfo = [ { title: '单元名称', code: 'T0', unit: '', }, { title: '煤炭储量', code: 'T1', unit: 'm³/t', }, { title: '瓦斯储量', code: 'T2', unit: 'm³/t', }, { title: '钻孔施工长度', code: 'CO2', unit: 'm', }, { title: '单元瓦斯含量', code: 'gasC', unit: 'm³/t', }, { title: '单元原始瓦斯压力', code: 'gasMixMass', unit: 'Pa', }, { title: '抽采钻孔管径', code: 'gasMass', unit: 'm', }, { title: '抽采单元汇总管径', code: 'gasMass', unit: 'm', }, ]; export const unitMonitor = [ { title: '瓦斯总储量', code: 'T0', unit: 'm³/t', }, { title: '抽采达标量', code: 'T1', unit: 'm³/t', }, { title: '累计抽采纯量', code: 'T2', unit: 'm³/t', }, { title: '当前抽采率', code: 'CO2', unit: '%', }, { title: '试试抽采率', code: 'gasC', unit: '%', }, { title: '实时抽采浓度', code: 'gasMixMass', unit: 'ppm', }, { title: '实时抽采负压', code: 'gasMass', unit: 'Pa', }, { title: '参与瓦斯压力', code: 'gasMass', unit: 'Pa', }, ];