| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- import { BasicColumn } from '/@/components/Table';
- import { FormSchema } from '/@/components/Table';
- import { selectDevice } from './point.api';
- import { rules } from '/@/utils/helper/validator';
- import { render } from '/@/utils/common/renderUtils';
- export const columns: BasicColumn[] = [
- {
- title: '设备类型',
- dataIndex: 'devicekind_dictText',
- width: 120,
- },
- {
- title: '设备类型code',
- dataIndex: 'devicekind',
- width: 120,
- },
- {
- title: 'plc地址',
- dataIndex: 'plcaddr',
- width: 100,
- },
- {
- title: 'plc读写位数',
- dataIndex: 'floatnum',
- width: 100,
- // customRender: render.renderAvatar,
- },
- {
- title: '读写类型',
- dataIndex: 'datakind_dictText',
- width: 80,
- // sorter: true,
- // customRender: ({ text }) => {
- // return render.renderDict(text, 'sex');
- // },
- },
- {
- title: '值名称',
- dataIndex: 'valuename',
- width: 100,
- },
- {
- title: '值code',
- dataIndex: 'valuecode',
- width: 100,
- },
- {
- title: '值类型',
- width: 150,
- dataIndex: 'valuetype_dictText',
- },
- {
- title: '最小值',
- width: 100,
- dataIndex: 'fmin',
- },
- {
- title: '最大值',
- dataIndex: 'fmax',
- width: 100,
- },
- {
- title: '模拟最小值',
- dataIndex: 'testlow',
- width: 100,
- },
- {
- title: '模拟最大值',
- width: 100,
- dataIndex: 'testup',
- },
- {
- title: '小数位数',
- width: 100,
- dataIndex: 'floatnum',
- },
- {
- title: '是否保存',
- dataIndex: 'saveflag_dictText',
- width: 80,
- },
- ];
- export const searchFormSchema: FormSchema[] = [
- {
- label: '设备类型',
- field: 'devicekind',
- component: 'MTreeSelect',
- colProps: { span: 6 },
- },
- {
- label: '值名称',
- field: 'valuename',
- component: 'Input',
- colProps: { span: 6 },
- },
- {
- label: '值code',
- field: 'valuecode',
- component: 'Input',
- colProps: { span: 6 },
- },
- ];
- export const formSchema: FormSchema[] = [
- {
- label: '',
- field: 'id',
- component: 'Input',
- show: false,
- },
- {
- label: '设备类型',
- field: 'devicekind',
- component: 'MTreeSelect',
- },
- {
- label: '值名称',
- field: 'valuename',
- component: 'Input',
- },
- {
- label: '值code',
- field: 'valuecode',
- component: 'Input',
- },
- ];
|