Showing
3 changed files
with
5 additions
and
3 deletions
... | ... | @@ -129,7 +129,6 @@ const SingleToHexBatch = (t) => { |
129 | 129 | |
130 | 130 | const formSchemasConfig = (schemas, actionType): FormSchema[] => { |
131 | 131 | const { identifier, functionName } = schemas; |
132 | - console.log(identifier, 'identifier', actionType, 'actionType'); | |
133 | 132 | if (actionType == '06') { |
134 | 133 | return [ |
135 | 134 | { | ... | ... |
... | ... | @@ -142,8 +142,12 @@ |
142 | 142 | if (unref(modBUSForm).method == '16' || unref(modBUSForm).method == '10') { |
143 | 143 | const regex = /^-?\d+(\.\d{0,2})?$/; |
144 | 144 | const values = |
145 | - Math.floor(oldValue) * unref(zoomFactorValue) + | |
145 | + Math.trunc(oldValue) * unref(zoomFactorValue) + | |
146 | 146 | getFloatPart(oldValue) * unref(zoomFactorValue); |
147 | + console.log({ | |
148 | + int: Math.trunc(oldValue) * unref(zoomFactorValue), | |
149 | + float: getFloatPart(oldValue) * unref(zoomFactorValue), | |
150 | + }); | |
147 | 151 | if (!regex.test(values as any)) { |
148 | 152 | createMessage.warning(`属性下发值精确到两位小数,缩放因子是${unref(zoomFactorValue)}`); |
149 | 153 | return; | ... | ... |
... | ... | @@ -20,7 +20,6 @@ export const useGenDynamicForm = () => { |
20 | 20 | const { specs, type } = dataType; |
21 | 21 | const { valueRange, step } = specs! as Partial<Specs>; |
22 | 22 | const { max, min } = valueRange || {}; |
23 | - console.log({ max, min }); | |
24 | 23 | return { |
25 | 24 | field: identifier, |
26 | 25 | label: functionName, | ... | ... |