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 | 216 | <List.Item> |
| 217 | 217 | <Card hoverable> |
| 218 | 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 | 220 | <img |
| 221 | 221 | class="w-full h-36" |
| 222 | 222 | alt="example" | ... | ... |
| ... | ... | @@ -251,7 +251,7 @@ |
| 251 | 251 | :class="item.checked ? '!border-blue-500 !border-2' : ''" |
| 252 | 252 | > |
| 253 | 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 | 255 | <Image |
| 256 | 256 | @click.stop |
| 257 | 257 | :height="144" | ... | ... |
| ... | ... | @@ -152,6 +152,17 @@ |
| 152 | 152 | field: 'transportType', |
| 153 | 153 | componentProps: { |
| 154 | 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 | }; | ... | ... |