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'];