修改AUSTool边缘移动Area的bug
This commit is contained in:
parent
4922e79e10
commit
fcdf632123
@ -6,7 +6,7 @@ export default {
|
|||||||
MinTime: 0,
|
MinTime: 0,
|
||||||
|
|
||||||
/** 最大时间*/
|
/** 最大时间*/
|
||||||
MaxTime: 3600 * 24,
|
MaxTime: 3600*24-1,
|
||||||
|
|
||||||
/** 边缘高度*/
|
/** 边缘高度*/
|
||||||
EdgeHeight: 600,
|
EdgeHeight: 600,
|
||||||
@ -263,8 +263,9 @@ export default {
|
|||||||
const closerKmRange = model.closerKmRange;
|
const closerKmRange = model.closerKmRange;
|
||||||
const fartherKmRange = model.fartherKmRange;
|
const fartherKmRange = model.fartherKmRange;
|
||||||
const length = stations.length;
|
const length = stations.length;
|
||||||
|
const first = stations[0]||{};
|
||||||
const last = stations[length-1]||{};
|
const last = stations[length-1]||{};
|
||||||
const minRange = -this.EdgeHeight/2;
|
const minRange = first.kmRange-this.EdgeHeight;
|
||||||
const maxRange = last.kmRange;
|
const maxRange = last.kmRange;
|
||||||
const tolerant = 0;
|
const tolerant = 0;
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ export default {
|
|||||||
const option = this.option;
|
const option = this.option;
|
||||||
const list = [];
|
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);
|
list.push(time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -539,7 +539,7 @@ export default {
|
|||||||
},
|
},
|
||||||
doTranslateArea() {
|
doTranslateArea() {
|
||||||
if (this.target) {
|
if (this.target) {
|
||||||
const data = this.target.model;
|
const data = this.target.model;
|
||||||
const model = {
|
const model = {
|
||||||
fartherKmRange: parseInt(data.fartherKmRange),
|
fartherKmRange: parseInt(data.fartherKmRange),
|
||||||
closerKmRange: parseInt(data.closerKmRange),
|
closerKmRange: parseInt(data.closerKmRange),
|
||||||
|
@ -311,7 +311,7 @@ export default {
|
|||||||
const offsetTime = this.planUtil.MinTime+this.planUtil.MaxTime/48;
|
const offsetTime = this.planUtil.MinTime+this.planUtil.MaxTime/48;
|
||||||
const list = [];
|
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);
|
list.push(time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user