Commit cf5516e66c4d1bca845cfa8e1201b2a0005a3e46

Authored by fengwotao
1 parent ec40d8e3

pref: 设备 告警详情触发值新增单位显示

... ... @@ -97,10 +97,13 @@
97 97 ...operationString,
98 98 ...operationBoolean,
99 99 ].find((item) => item.value === curr.value.logic)?.symbol;
  100 + const findAttribute = item.attribute.find(
  101 + (findItem) => findItem.identifier === curr.value.key
  102 + );
100 103 const value = {
101 104 ['触发属性']: findName,
102 105 ['触发条件']: `${findLogin}${curr.value.logicValue}`,
103   - ['触发值']: curr.value.realValue,
  106 + ['触发值']: `${curr.value.realValue}${findAttribute.detail?.dataType?.specs?.unit?.key}`,
104 107 };
105 108 const data = {
106 109 [item.name]: value,
... ... @@ -142,6 +145,7 @@
142 145 const attribute = attributes.map((item) => ({
143 146 identifier: item.identifier,
144 147 name: item.name,
  148 + detail: item.detail,
145 149 }));
146 150 return {
147 151 name,
... ...