|
@@ -102,11 +102,15 @@ export default {
|
|
const min = this.scoreBatchRange[0] * 1
|
|
const min = this.scoreBatchRange[0] * 1
|
|
const max = this.voluntaryData.maxScore * 1
|
|
const max = this.voluntaryData.maxScore * 1
|
|
const current = this.formSubject.score * 1
|
|
const current = this.formSubject.score * 1
|
|
- const expectMax = current + 20
|
|
|
|
- const expectMin = current - 30
|
|
|
|
|
|
+ const deltaUp = this.batch.ben ? 20 : 20
|
|
|
|
+ const deltaDown = this.batch.ben ? 30 : 30
|
|
|
|
+ const spaceUp = this.batch.ben ? 10 : 30
|
|
|
|
+ const spaceDown = this.batch.ben ? 20 : 90
|
|
|
|
+ const expectMax = current + deltaUp
|
|
|
|
+ const expectMin = current - deltaDown
|
|
const defaultRange = [Math.max(expectMin, min), Math.min(expectMax, max)]
|
|
const defaultRange = [Math.max(expectMin, min), Math.min(expectMax, max)]
|
|
- const availableMax = expectMax + 10
|
|
|
|
- const availableMin = expectMin - 20
|
|
|
|
|
|
+ const availableMax = expectMax + spaceUp
|
|
|
|
+ const availableMin = expectMin - spaceDown
|
|
const availableRange = [Math.max(availableMin, min), Math.min(availableMax, max)]
|
|
const availableRange = [Math.max(availableMin, min), Math.min(availableMax, max)]
|
|
return { defaultRange, availableRange }
|
|
return { defaultRange, availableRange }
|
|
},
|
|
},
|