Commit c541a1fe8a91761b3d5ad7685d8031a5b841debe

Authored by loveumiko
1 parent 0d4b011a

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

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