Commit 7498544cf37c4a455d7c4ca2866f9f307597e63a
Merge branch 'ft' into 'main_dev'
pref: 设备显示别名或名字 See merge request yunteng/thingskit-front!561
Showing
2 changed files
with
2 additions
and
2 deletions
| @@ -229,7 +229,7 @@ | @@ -229,7 +229,7 @@ | ||
| 229 | deviceProfileId, | 229 | deviceProfileId, |
| 230 | }); | 230 | }); |
| 231 | entityOptions.value = res.map((item) => ({ | 231 | entityOptions.value = res.map((item) => ({ |
| 232 | - label: item.name, | 232 | + label: item.alias || item.name, |
| 233 | value: item.tbDeviceId, | 233 | value: item.tbDeviceId, |
| 234 | })); | 234 | })); |
| 235 | }; | 235 | }; |
| @@ -221,7 +221,7 @@ | @@ -221,7 +221,7 @@ | ||
| 221 | deviceProfileId, | 221 | deviceProfileId, |
| 222 | }); | 222 | }); |
| 223 | entityOptions.value = res.map((item) => ({ | 223 | entityOptions.value = res.map((item) => ({ |
| 224 | - label: item.name, | 224 | + label: item.alias || item.name, |
| 225 | value: item.tbDeviceId, | 225 | value: item.tbDeviceId, |
| 226 | })); | 226 | })); |
| 227 | }; | 227 | }; |