|
@@ -131,7 +131,7 @@ |
|
@@ -131,7 +131,7 @@ |
131
|
selectOptions.value = items.map((item) => {
|
131
|
selectOptions.value = items.map((item) => {
|
132
|
if (item.deviceType !== 'GATEWAY')
|
132
|
if (item.deviceType !== 'GATEWAY')
|
133
|
return {
|
133
|
return {
|
134
|
- label: item.name,
|
134
|
+ label: item.alias ? item.alias : item.name,
|
135
|
value: item.tbDeviceId,
|
135
|
value: item.tbDeviceId,
|
136
|
id: item.id,
|
136
|
id: item.id,
|
137
|
deviceProfileId: item.deviceProfileId,
|
137
|
deviceProfileId: item.deviceProfileId,
|
|
@@ -291,7 +291,7 @@ |
|
@@ -291,7 +291,7 @@ |
291
|
selectOptions.value = items.map((item) => {
|
291
|
selectOptions.value = items.map((item) => {
|
292
|
if (item.deviceType !== 'GATEWAY')
|
292
|
if (item.deviceType !== 'GATEWAY')
|
293
|
return {
|
293
|
return {
|
294
|
- label: item.name,
|
294
|
+ label: item.alias ? item.alias : item.name,
|
295
|
value: item.tbDeviceId,
|
295
|
value: item.tbDeviceId,
|
296
|
id: item.id,
|
296
|
id: item.id,
|
297
|
deviceProfileId: item.deviceProfileId,
|
297
|
deviceProfileId: item.deviceProfileId,
|
|
@@ -316,7 +316,7 @@ |
|
@@ -316,7 +316,7 @@ |
316
|
});
|
316
|
});
|
317
|
return {
|
317
|
return {
|
318
|
...T,
|
318
|
...T,
|
319
|
- label: item.name,
|
319
|
+ label: item.alias ? item.alias : item.name,
|
320
|
value: item.device,
|
320
|
value: item.device,
|
321
|
attributes: item.attributes,
|
321
|
attributes: item.attributes,
|
322
|
};
|
322
|
};
|