fix:修改设备告警逻辑 修改冲突样式
This commit is contained in:
@@ -242,12 +242,15 @@
|
||||
dynamicParams: {
|
||||
deviceCode: 'deviceInfoCode', //帮定上级联动数据
|
||||
},
|
||||
defaultParams: {
|
||||
type: 0,
|
||||
},
|
||||
componentProps: {
|
||||
api: device.queryDevicePoint,
|
||||
allowClear: true,
|
||||
resultField: 'data',
|
||||
placeholder: '请选择设备点位',
|
||||
labelField: 'code',
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
dependency: 'deviceInfoCode',
|
||||
showSearch: true,
|
||||
|
@@ -217,13 +217,14 @@
|
||||
//获取设备点位
|
||||
const getDevicePoint = (value: any) => {
|
||||
devicePointData.value = [];
|
||||
value.type = 0;
|
||||
http.post(device.queryDevicePoint, value).then((res) => {
|
||||
if (res.msg === 'success') {
|
||||
res.data.forEach((item: any) => {
|
||||
//显示格式
|
||||
devicePointData.value.push({
|
||||
value: item.id,
|
||||
label: item.code + ' ( ' + item.unit + ' ) ',
|
||||
label: item.name + ' ( ' + item.unit + ' ) ',
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user