调整实际长度 小数计算

This commit is contained in:
fan 2021-01-22 14:51:37 +08:00
parent 420163ec07
commit c80e08292c

View File

@ -505,9 +505,9 @@ export default {
mergeLength() {
let physicalLength = 0;
this.editModel.logicLengthList.forEach(logic => {
physicalLength += logic.lengthFact;
physicalLength += logic.lengthFact * 1000;
});
this.editModel.lengthFact = physicalLength;
this.editModel.lengthFact = (physicalLength / 1000).toFixed(3);
},
addPoint(index) {
const data = { x: 0, y: 0 };