修改AUSTool边缘移动Area的bug

This commit is contained in:
lVAL 2020-10-29 16:22:20 +08:00
parent 4922e79e10
commit fcdf632123
4 changed files with 6 additions and 5 deletions

View File

@ -6,7 +6,7 @@ export default {
MinTime: 0,
/** 最大时间*/
MaxTime: 3600 * 24,
MaxTime: 3600*24-1,
/** 边缘高度*/
EdgeHeight: 600,
@ -263,8 +263,9 @@ export default {
const closerKmRange = model.closerKmRange;
const fartherKmRange = model.fartherKmRange;
const length = stations.length;
const first = stations[0]||{};
const last = stations[length-1]||{};
const minRange = -this.EdgeHeight/2;
const minRange = first.kmRange-this.EdgeHeight;
const maxRange = last.kmRange;
const tolerant = 0;

View File

@ -180,7 +180,7 @@ export default {
const option = this.option;
const list = [];
for (var time = this.planUtil.MinTime + this.planUtil.TranslationTime; time <= this.planUtil.MaxTime + this.planUtil.TranslationTime; time++) {
for (var time = this.planUtil.MinTime + this.planUtil.TranslationTime; time <= 1+this.planUtil.MaxTime + this.planUtil.TranslationTime; time++) {
list.push(time);
}

View File

@ -539,7 +539,7 @@ export default {
},
doTranslateArea() {
if (this.target) {
const data = this.target.model;
const data = this.target.model;
const model = {
fartherKmRange: parseInt(data.fartherKmRange),
closerKmRange: parseInt(data.closerKmRange),

View File

@ -311,7 +311,7 @@ export default {
const offsetTime = this.planUtil.MinTime+this.planUtil.MaxTime/48;
const list = [];
for (var time = this.planUtil.MinTime + this.planUtil.TranslationTime; time <= this.planUtil.MaxTime + this.planUtil.TranslationTime; time++) {
for (var time = this.planUtil.MinTime + this.planUtil.TranslationTime; time <= 1+this.planUtil.MaxTime + this.planUtil.TranslationTime; time++) {
list.push(time);
}