import { BasicColumn } from '/@/components/Table'; export const columns: BasicColumn[] = [ { title: '值名称', dataIndex: 'valuename', width: 100, }, { title: '值code', width: 100, dataIndex: 'valuecode', }, { title: '关联设备类型', dataIndex: 'link_devicetype', editRow: true, width: 100, }, { title: '关联设备', dataIndex: 'link_id', editRow: true, width: 100, }, { title: '关联字段', width: 180, editRow: true, dataIndex: 'link_code', }, ]; export const warningColumns: BasicColumn[] = [ { title: '监测参数', dataIndex: 'monitorcode', width: 100, }, { title: '模拟最小值', width: 100, dataIndex: 'ftestmin', }, { title: '模拟最大值', dataIndex: 'ftestmax', editRow: true, width: 100, }, { title: '备注', dataIndex: 'des', editRow: true, width: 100, }, ]; export const deviceColumns: BasicColumn[] = [ { title: '名称', dataIndex: 'deviceName', align: 'center', width: 120, }, { title: '安装位置', dataIndex: 'devicePos', align: 'center', width: 100, }, { title: '设备类型', dataIndex: 'deviceType', align: 'center', width: 100, }, { title: '所属分站', width: 150, align: 'center', dataIndex: 'subStationName', }, ]; export const workFaceColumns: BasicColumn[] = [ { title: '安装位置', dataIndex: 'devicePos', width: 100, }, { title: '排序', width: 100, dataIndex: 'sort', edit: true, editComponent: 'InputNumber', }, { title: '是否参与计算风量', width: 100, dataIndex: 'windflag', edit: true, editComponent: 'Switch', editValueMap: (value) => { return value ? '是' : '否'; }, }, ];