| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578 |
- import { reactive, ref } from 'vue';
- import { BasicColumn } from '/@/components/Table';
- import echarts from '/@/utils/lib/echarts';
- import * as THREE from 'three';
- import { ModuleDataChart } from '/@/views/vent/deviceManager/configurationTable/types';
- export const monitorNav = [
- {
- title: '达标评判监测',
- isShow: true,
- },
- {
- title: '历史曲线',
- isShow: false,
- },
- // {
- // title: '防灭火监测与管控',
- // isShow: 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 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: 'unitTotalMass',
- },
- {
- 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: false },
- 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: false },
- 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 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',
- },
- ];
|