Commit 459de505029363eefdb18b43c57cfd7bb655cdd1

Authored by fengtao
1 parent 92a28ca8

pref:优化设备配置

@@ -94,13 +94,6 @@ @@ -94,13 +94,6 @@
94 ]); 94 ]);
95 const handleChange = (value: string) => { 95 const handleChange = (value: string) => {
96 selectValue.value = value; 96 selectValue.value = value;
97 - // selectOptions.value.forEach((f) => {  
98 - // if (f.value == selectValue.value) {  
99 - // f.disabled = false;  
100 - // } else {  
101 - // f.disabled = true;  
102 - // }  
103 - // });  
104 emit('selectItem', selectValue.value); 97 emit('selectItem', selectValue.value);
105 }; 98 };
106 const mapping: any = ref([]); 99 const mapping: any = ref([]);
@@ -92,12 +92,8 @@ @@ -92,12 +92,8 @@
92 // 'SHARED_ATTRIBUTES_SETTING', 92 // 'SHARED_ATTRIBUTES_SETTING',
93 // 'TO_DEVICE_RPC_REQUEST', 93 // 'TO_DEVICE_RPC_REQUEST',
94 // ]; 94 // ];
95 - // const selectIndex: any = ref('');  
96 const handleSelectItem = (e) => { 95 const handleSelectItem = (e) => {
97 console.log('e', e); 96 console.log('e', e);
98 - // selectIndex.value = e || 'CLIENT_ATTRIBUTES_QUERYING';  
99 - // selectIndex.value = selectArray.filter((f) => f !== e);  
100 - // console.log('e1', selectIndex.value);  
101 }; 97 };
102 const handleAdd = () => { 98 const handleAdd = () => {
103 dynamicSNMP.communicationConfigs.push({ 99 dynamicSNMP.communicationConfigs.push({
@@ -111,12 +107,6 @@ @@ -111,12 +107,6 @@
111 ], 107 ],
112 queryingFrequencyMs: 0, 108 queryingFrequencyMs: 0,
113 }); 109 });
114 - // console.log('总数组', dynamicSNMP.communicationConfigs);  
115 - // dynamicSNMP.communicationConfigs.forEach((snmp, index) => {  
116 - // nextTick(() => {  
117 - // unref(dynamicBindRef.SnmpFormItemRef)[index]?.handleChange(snmp?.spec);  
118 - // });  
119 - // });  
120 }; 110 };
121 const handleRemoveItem = (_, index) => { 111 const handleRemoveItem = (_, index) => {
122 dynamicSNMP.communicationConfigs.splice(index, 1); 112 dynamicSNMP.communicationConfigs.splice(index, 1);