Commit cd3df1f7ebc8b65fd01c4718bf52a64fe184455c
1 parent
e027bfdb
fix: device not use alias if device has bind alias
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -7890,7 +7890,7 @@ DataFormatPanel.prototype.addDataFont = function (container) { |
7890 | 7890 | async function getMeetConditionsDevice(params) { |
7891 | 7891 | if (!params.organizationId) return |
7892 | 7892 | const items = await ConfigurationNodeApi.getMeetConditionsDevice(params); |
7893 | - $(`#${componentId} `).find(`select[name="${enumDataSourceConst.DEVICE_ID}"]`).html(UseLayUi.generateOptionTemplate({ dataSource: items, valueField: 'tbDeviceId', labelField: 'name' })) | |
7893 | + $(`#${componentId} `).find(`select[name="${enumDataSourceConst.DEVICE_ID}"]`).html(UseLayUi.generateOptionTemplate({ dataSource: items, valueField: 'tbDeviceId', labelField: 'name', alias: 'alias' })) | |
7894 | 7894 | form.render('select', componentFilter) |
7895 | 7895 | } |
7896 | 7896 | ... | ... |