import { BasicColumn } from '/@/components/Table'; export const chartsColumns = (deviceType) => { if (deviceType === '') { return []; } }; export const locationList = [ { title: '风门', deviceType: 'gate', isVisible: 0, }, { title: '风窗', deviceType: 'gate1', isVisible: 0, }, { title: '测风装置', deviceType: 'gate2', isVisible: 0, }, { title: '传感器', deviceType: 'gate3', isVisible: 0, }, { title: '局部风机', deviceType: 'gate4', isVisible: 0, }, { title: '主风机', deviceType: 'gate5', isVisible: 0, }, { title: '风筒', deviceType: 'gate6', isVisible: 0, }, { title: '密闭墙', deviceType: 'gate7', isVisible: 0, }, ]; // export const searchFormSchema: FormSchema[] = [ // { // label: '查询日期', // field: 'tData', // component: 'DatePicker', // defaultValue: dayjs(), // componentProps: { // valueFormat: 'YYYY-MM-DD', // }, // }, // { // label: '时间区间', // field: 'tickectDate', // component: 'TimeRangePicker', // componentProps: { // placeholder: ['开始时间', '结束时间'], // valueFormat: 'HH:mm:ss', // }, // }, // { // label: '设备类型', // field: 'gdeviceid', // component: 'ApiSelect', // componentProps: { // api: props.deviceListApi, // resultField: 'records', // labelField: 'strname', // valueField: 'id', // }, // }, // { // label: '间隔时间', // field: 'skip', // component: 'Select', // componentProps: { // options: [ // { // label: '5秒', // value: '1', // }, // { // label: '10秒', // value: '2', // }, // { // label: '1分钟', // value: '3', // }, // { // label: '5分钟', // value: '4', // }, // { // label: '10分钟', // value: '5', // }, // ], // }, // }, // ]; export const majorColumns: BasicColumn[] = [ { title: '序号', dataIndex: '', key: 'rowIndex', width: 60, align: 'center', customRender: ({ index }) => { return `${index}`; }, }, { title: '测段名称', align: 'center', dataIndex: 'name', width: 110, }, { title: '始点', children: [ { title: '测点位置', align: 'center', dataIndex: 'name1', width: 140, }, { title: '风压(Pa)', align: 'center', dataIndex: 'pressure1', width: 100, }, // { // title:'风压(KPa)', // align:"center", // dataIndex: 'name1' // }, { title: '密度(kg/m3)', align: 'center', dataIndex: 'density1', width: 100, }, { title: '标高(m)', align: 'center', dataIndex: 'elevation1', width: 100, }, ], }, { title: '末点', children: [ { title: '测点位置', align: 'center', dataIndex: 'name2', width: 140, }, { title: '风压(Pa)', align: 'center', dataIndex: 'pressure2', width: 100, }, // { // title:'风压(KPa)', // align:"center", // dataIndex: 'name1' // }, { title: '密度(kg/m3)', align: 'center', dataIndex: 'density2', width: 100, }, { title: '标高(m)', align: 'center', dataIndex: 'elevation2', width: 100, }, ], }, { title: '风量(m³/min)', align: 'center', dataIndex: 'm3', width: 110, }, { title: '阻力(Pa)', align: 'center', dataIndex: 'drag', width: 100, }, { title: '风阻(Ns²/m^8)', align: 'center', dataIndex: 'wdrag', width: 110, }, { title: '更新时间', dataIndex: 'datatime', align: 'center', width: 127, }, ];