Commit 3e21de91b5b877e85885e9e351e5fa0ddea54f34

Authored by fengwotao
1 parent d8a328be

fix:DEFECT-1191 移除设备列表里的地址码

1 1 import { FormSchema } from '/@/components/Form';
2 2 import { findDictItemByCode } from '/@/api/system/dict';
3 3 import { deviceProfile, getGatewayDevice } from '/@/api/device/deviceManager';
4   -import { DeviceTypeEnum } from '/@/api/device/model/deviceModel';
5 4 import { TransportTypeEnum } from '../../profiles/components/TransportDescript/const';
6 5
7 6 export enum TypeEnum {
... ... @@ -114,20 +113,6 @@ export const step1Schemas: FormSchema[] = [
114 113 },
115 114 },
116 115 {
117   - field: 'code',
118   - label: '地址码',
119   - component: 'Input',
120   - ifShow: ({ model }) => {
121   - return (
122   - model['transportType'] === TransportTypeEnum.TCP &&
123   - model['deviceType'] === DeviceTypeEnum.SENSOR
124   - );
125   - },
126   - dynamicRules: ({ model }) => {
127   - return [{ required: model['transportType'] === 'TCP', message: '地址码为必填项' }];
128   - },
129   - },
130   - {
131 116 field: 'brand',
132 117 component: 'ApiRadioGroup',
133 118 label: '选择厂家',
... ...