Commit c316f8cf1153bac314f7c674f4f8d2ae03a5e4a8

Authored by loveumiko
1 parent c9aab2f3

fix: 修复TCP设备鉴权新增时,提示No enum constantorg.thingsboard.script.api.ScriptType.TRANSPORT_TCP_AUTH

@@ -43,19 +43,9 @@ export const formSchemas: FormSchema[] = [ @@ -43,19 +43,9 @@ export const formSchemas: FormSchema[] = [
43 { 43 {
44 label: '脚本类型', 44 label: '脚本类型',
45 field: 'scriptType', 45 field: 'scriptType',
46 - required: true,  
47 - component: 'ApiRadioGroup', 46 + show: false,
  47 + component: 'Input',
48 defaultValue: 'TRANSPORT_TCP_UP', 48 defaultValue: 'TRANSPORT_TCP_UP',
49 - componentProps: () => {  
50 - return {  
51 - api: findDictItemByCode,  
52 - params: {  
53 - dictCode: 'script_type',  
54 - },  
55 - labelField: 'itemText',  
56 - valueField: 'itemValue',  
57 - };  
58 - },  
59 }, 49 },
60 { 50 {
61 label: '脚本服务类型', 51 label: '脚本服务类型',