123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- import { safetyDeviceList } from './safety.api';
- export const chartsColumns = (deviceType) => {
- if (deviceType === '') {
- return [];
- }
- };
- export const formConfig = {
- labelAlign: 'left',
- showAdvancedButton: false,
- showResetButton: false,
- showSubmitButton: false,
- schemas: [
- {
- label: '设备类型',
- field: 'dataTypeName',
- component: 'ApiSelect',
- componentProps: {
- api: safetyDeviceList.bind(null, { devicetype: 'safetymonitor', code: 'dataTypeName' }),
- labelField: 'name',
- valueField: 'code',
- },
- },
- {
- label: '设备安装地点',
- field: 'strinstallpos',
- component: 'Input',
- },
- ],
- };
- //测风装置
- export const chartsColumnsRect = [
- {
- legend: '风量',
- seriesName: '(m³/min)',
- ymax: 10000,
- yname: 'm³/min',
- linetype: 'bar',
- yaxispos: 'left',
- color: '#37BCF2',
- sort: 1,
- xRotate: 0,
- dataIndex: 'm³',
- },
- {
- legend: '气源压力',
- seriesName: '(MPa)',
- ymax: 50,
- yname: 'MPa',
- linetype: 'line',
- yaxispos: 'right',
- color: '#FC4327',
- sort: 2,
- xRotate: 0,
- dataIndex: 'sourcePressure',
- },
- ];
- //局部风机
- export const chartsColumnsFan = [
- {
- legend: '风筒风量1',
- seriesName: '(m³/min)',
- ymax: 1000,
- yname: 'm³/min',
- linetype: 'bar',
- yaxispos: 'left',
- color: '#37BCF2',
- sort: 1,
- xRotate: 0,
- dataIndex: 'windQuantity1',
- },
- {
- legend: '风筒风量2',
- seriesName: '(m³/min)',
- ymax: 1000,
- yname: 'm³/min',
- linetype: 'line',
- yaxispos: 'right',
- color: '#FC4327',
- sort: 2,
- xRotate: 0,
- dataIndex: 'windQuantity2',
- },
- ];
- //主风
- export const chartsColumnsMain = [
- {
- legend: '风量',
- seriesName: '(m³/min)',
- ymax: 1000,
- yname: 'm³/min',
- linetype: 'bar',
- yaxispos: 'left',
- color: '#37BCF2',
- sort: 1,
- xRotate: 0,
- dataIndex: 'windQuantity1',
- },
- {
- legend: '频率',
- seriesName: '(Hz)',
- ymax: 1000,
- yname: 'Hz',
- linetype: 'line',
- yaxispos: 'right',
- color: '#FC4327',
- sort: 2,
- xRotate: 0,
- dataIndex: 'windQuantity2',
- },
- ];
- //光钎测温
- export const chartsColumnsFiber = [
- {
- legend: '最高温度',
- seriesName: '(°C)',
- ymax: 100,
- yname: '°C',
- linetype: 'bar',
- yaxispos: 'left',
- color: '#37BCF2',
- sort: 1,
- xRotate: 0,
- dataIndex: 'fmax',
- },
- {
- legend: '平均温度',
- seriesName: '(°C)',
- ymax: 100,
- yname: '°C',
- linetype: 'line',
- yaxispos: 'right',
- color: '#FC4327',
- sort: 2,
- xRotate: 0,
- dataIndex: 'favg',
- },
- ];
- //密闭
- export const chartsColumnsObf = [
- {
- legend: '温度',
- seriesName: '(°C)',
- ymax: 100,
- yname: '°C',
- linetype: 'bar',
- yaxispos: 'left',
- color: '#37BCF2',
- sort: 1,
- xRotate: 0,
- dataIndex: 'temperature',
- },
- {
- legend: 'O2浓度',
- seriesName: '(%)',
- ymax: 100,
- yname: '%',
- linetype: 'line',
- yaxispos: 'right',
- color: '#FC4327',
- sort: 2,
- xRotate: 0,
- dataIndex: 'o2val',
- },
- ];
- //束管
- export const chartsColumnsBun = [
- {
- legend: 'CO浓度',
- seriesName: '(%)',
- ymax: 100,
- yname: '%',
- linetype: 'bar',
- yaxispos: 'left',
- color: '#37BCF2',
- sort: 1,
- xRotate: 0,
- dataIndex: 'coval',
- },
- {
- legend: 'CO2浓度',
- seriesName: '(%)',
- ymax: 100,
- yname: '%',
- linetype: 'line',
- yaxispos: 'right',
- color: '#FC4327',
- sort: 2,
- xRotate: 0,
- dataIndex: 'co2val',
- },
- ];
- export const chartsColumnsreal = [
- {
- legend: '压差',
- seriesName: '(Pa)',
- ymax: 100,
- yname: 'Pa',
- linetype: 'bar',
- yaxispos: 'left',
- color: '#37BCF2',
- sort: 1,
- xRotate: 0,
- dataIndex: 'frontRearDP',
- },
- {
- legend: '气源压力',
- seriesName: '(MPa)',
- ymax: 50,
- yname: 'MPa',
- linetype: 'line',
- yaxispos: 'right',
- color: '#FC4327',
- sort: 2,
- xRotate: 0,
- dataIndex: 'sourcePressure',
- },
- ];
- export const isHaveNoAction = ['safetymonitor', 'wasichoufang'];
|