Commit c541a1fe8a91761b3d5ad7685d8031a5b841debe

Authored by loveumiko
1 parent 0d4b011a

fix: 修改tb上面属性下发的问题

... ... @@ -137,8 +137,7 @@ const formSchemasConfig = (schemas, actionType): FormSchema[] => {
137 137 component: 'InputNumber',
138 138 rules: [{ required: true, message: '请输入值' }],
139 139 componentProps: {
140   - formatter: (e) =>
141   - `${e}`.replace(/\B(?=(\d{3})+(?!\d))/g, '').replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3'),
  140 + formatter: (e) => `${e}`.replace(/^-$/, '').replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3'),
142 141 placeholder: `请输入值`,
143 142 },
144 143 },
... ...
... ... @@ -124,7 +124,7 @@
124 124
125 125 if (unref(isShowMultiply) && unref(modBUSForm).method == '06') {
126 126 const newValue =
127   - Math.floor(oldValue) * unref(zoomFactorValue) +
  127 + Math.trunc(oldValue) * unref(zoomFactorValue) +
128 128 getFloatPart(oldValue) * unref(zoomFactorValue);
129 129 if (newValue % 1 != 0) {
130 130 createMessage.warning(`属性下发类型必须是整数,缩放因子为${unref(zoomFactorValue)}`);
... ...