Showing
1 changed file
with
0 additions
and
15 deletions
| 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: '选择厂家', | ... | ... |