Commit 3e21de91b5b877e85885e9e351e5fa0ddea54f34

Authored by fengwotao
1 parent d8a328be

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

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: '选择厂家',