Showing
1 changed file
with
0 additions
and
15 deletions
1 | import { FormSchema } from '/@/components/Form'; | 1 | import { FormSchema } from '/@/components/Form'; |
2 | import { findDictItemByCode } from '/@/api/system/dict'; | 2 | import { findDictItemByCode } from '/@/api/system/dict'; |
3 | import { deviceProfile, getGatewayDevice } from '/@/api/device/deviceManager'; | 3 | import { deviceProfile, getGatewayDevice } from '/@/api/device/deviceManager'; |
4 | -import { DeviceTypeEnum } from '/@/api/device/model/deviceModel'; | ||
5 | import { TransportTypeEnum } from '../../profiles/components/TransportDescript/const'; | 4 | import { TransportTypeEnum } from '../../profiles/components/TransportDescript/const'; |
6 | 5 | ||
7 | export enum TypeEnum { | 6 | export enum TypeEnum { |
@@ -114,20 +113,6 @@ export const step1Schemas: FormSchema[] = [ | @@ -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 | field: 'brand', | 116 | field: 'brand', |
132 | component: 'ApiRadioGroup', | 117 | component: 'ApiRadioGroup', |
133 | label: '选择厂家', | 118 | label: '选择厂家', |