Commit 4b5ae137e64544e5c4871386e28d8f0f63fdb9a0
1 parent
46ee82ca
fix: product profile can not select transport type
Showing
3 changed files
with
13 additions
and
2 deletions
@@ -216,7 +216,7 @@ | @@ -216,7 +216,7 @@ | ||
216 | <List.Item> | 216 | <List.Item> |
217 | <Card hoverable> | 217 | <Card hoverable> |
218 | <template #cover> | 218 | <template #cover> |
219 | - <div class="h-full w-full !flex justify-center items-center text-center"> | 219 | + <div class="h-full w-full !flex justify-center items-center text-center p-1"> |
220 | <img | 220 | <img |
221 | class="w-full h-36" | 221 | class="w-full h-36" |
222 | alt="example" | 222 | alt="example" |
@@ -251,7 +251,7 @@ | @@ -251,7 +251,7 @@ | ||
251 | :class="item.checked ? '!border-blue-500 !border-2' : ''" | 251 | :class="item.checked ? '!border-blue-500 !border-2' : ''" |
252 | > | 252 | > |
253 | <template #cover> | 253 | <template #cover> |
254 | - <div class="h-full w-full !flex justify-center items-center text-center"> | 254 | + <div class="h-full w-full !flex justify-center items-center text-center p-1"> |
255 | <Image | 255 | <Image |
256 | @click.stop | 256 | @click.stop |
257 | :height="144" | 257 | :height="144" |
@@ -152,6 +152,17 @@ | @@ -152,6 +152,17 @@ | ||
152 | field: 'transportType', | 152 | field: 'transportType', |
153 | componentProps: { | 153 | componentProps: { |
154 | disabled: status, | 154 | disabled: status, |
155 | + options: [ | ||
156 | + { label: '默认', value: 'DEFAULT' }, | ||
157 | + { label: 'MQTT', value: 'MQTT' }, | ||
158 | + { label: 'CoAP', value: 'COAP' }, | ||
159 | + { label: 'LWM2M', value: 'LWM2M' }, | ||
160 | + { label: 'SNMP', value: 'SNMP' }, | ||
161 | + { label: 'TCP', value: 'TCP' }, | ||
162 | + ], | ||
163 | + onChange(e) { | ||
164 | + isMqttType.value = e; | ||
165 | + }, | ||
155 | }, | 166 | }, |
156 | }); | 167 | }); |
157 | }; | 168 | }; |