| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- import { BasicColumn } from '/@/components/Table';
- import { deviceId, getDeviceId, deviceList, list, pointEdit } from './point.api';
- export const columns: BasicColumn[] = [
- {
- title: '值名称',
- dataIndex: 'valuename',
- width: 100,
- },
- {
- title: '值code',
- width: 100,
- dataIndex: 'valuecode',
- },
- {
- title: '关联设备类型',
- dataIndex: 'link_devicetype_text',
- editRow: true,
- editRule: false,
- // editComponent: 'ApiTreeSelect',
- // editComponentProps: ({ formModel, formActionType }) => {
- // return {
- // api: deviceList.bind(null, { devicetype: '' }),
- // fieldNames: {
- // children: 'children',
- // label: 'itemText',
- // value: 'itemValue',
- // },
- // onChange: (e: any) => {
- // const { updateSchema } = formActionType;
- // updateSchema({
- // field: 'link_id',
- // component: 'ApiSelect',
- // componentProps: {
- // api: getDeviceId.bind(null, { devicetype: e }),
- // labelField: 'deviceName',
- // valueField: 'deviceID',
- // },
- // });
- // },
- // };
- // },
- width: 100,
- },
- {
- title: '关联设备',
- dataIndex: 'link_id_text',
- editRow: true,
- // editComponent: 'ApiSelect',
- // editComponentProps: ({ formModel, formActionType }) => {
- // return {
- // api: getDeviceId.bind(null, { devicetype: formModel['link_devicetype'] }),
- // labelField: 'deviceName',
- // valueField: 'deviceID',
- // onChange: (e: any) => {
- // const { updateSchema } = formActionType;
- // updateSchema({
- // field: 'link_code',
- // component: 'ApiSelect',
- // componentProps: {
- // api: deviceId({ id: e }),
- // labelField: 'valuename',
- // valueField: 'valuecode',
- // },
- // });
- // },
- // };
- // },
- width: 200,
- },
- {
- title: '关联字段',
- width: 180,
- editRow: true,
- dataIndex: 'link_code',
- // editComponent: 'ApiSelect',
- // editComponentProps: ({ formModel }) => {
- // return {
- // api: deviceId({ id: formModel['link_id'] }),
- // labelField: 'valuename',
- // valueField: 'valuecode',
- // };
- // },
- },
- {
- title: '关联设备类型',
- dataIndex: 'link_devicetype',
- editRow: true,
- // ifShow: false,
- defaultHidden: true,
- width: 100,
- },
- {
- title: '关联设备',
- dataIndex: 'link_id',
- editRow: true,
- // ifShow: false,
- defaultHidden: true,
- width: 200,
- },
- ];
- export const simulationColumns: BasicColumn[] = [
- {
- title: '值名称',
- dataIndex: 'valuename',
- width: 100,
- },
- {
- title: '值code',
- width: 100,
- dataIndex: 'valuecode',
- },
- {
- title: '模拟最小值',
- dataIndex: 'testlow',
- editRow: true,
- editComponent: 'InputNumber',
- },
- {
- title: '模拟最大值',
- dataIndex: 'testup',
- editRow: true,
- editComponent: 'InputNumber',
- },
- ];
- 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 ? '是' : '否';
- // },
- // },
- ];
- export const reportColumns: BasicColumn[] = [
- {
- title: '测点名称',
- dataIndex: 'reportPointName',
- },
- ];
|