openatc-components 0.2.11 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -432,9 +432,9 @@ export default {
432
432
  },
433
433
  getStage () {
434
434
  if (!this.stagesChange) return
435
- // const globalParamModel = this.$store.getters.globalParamModel
436
- // let pattern = globalParamModel.getParamsByType('patternList')
437
- let mapAdd = this.allPatternList.map(item => item.stagesList).map(item => {
435
+ const globalParamModel = this.$store.getters.globalParamModel
436
+ let pattern = globalParamModel.getParamsByType('patternList')
437
+ let mapAdd = (this.allPatternList ? this.allPatternList : pattern).map(item => item.stagesList).map(item => {
438
438
  return item.map(val => {
439
439
  return val.stageSplit ? val.stageSplit : val.split
440
440
  })
@@ -1062,7 +1062,7 @@ export default {
1062
1062
  let barrier = this.step2(ringTeams, newPattern)
1063
1063
  let barrierLeft = barrier.map(item => item)// 屏障左移显示出人行横道
1064
1064
  this.barrierList = barrierLeft.map(j => {
1065
- return (j / (this.max ? this.max : this.newCycle) * 100) + '%'
1065
+ return (j / (this.max ? this.max : cycle) * 100) + '%'
1066
1066
  })
1067
1067
  // this.barrierList.unshift(0)
1068
1068
  }