调整实际长度 小数计算
This commit is contained in:
parent
420163ec07
commit
c80e08292c
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user