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