openatc-components 0.1.181 → 0.1.183

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.
@@ -49,7 +49,7 @@
49
49
  </div>
50
50
  </div>
51
51
  <div v-show="(this.curtime>0 && cycle && cycle>0) || (this.curtime>0 && newCycle && newCycle>0)">
52
- <div class="curTimeDiv" :style="{'left':paddingLeft, 'background-color': '#299BCC'}">{{ timeNumDevide }}</div>
52
+ <div class="curTimeDiv" :style="{'left':paddingLeft }">{{ timeNumDevide }}</div>
53
53
  <div class="curTimeLine" :style="{'left':paddingLeft, 'height':barrierHeight}"></div>
54
54
  </div>
55
55
  </div>
@@ -122,7 +122,7 @@ export default {
122
122
  props: {
123
123
  cycleChange: {
124
124
  type: Boolean,
125
- default: false
125
+ default: true
126
126
  },
127
127
  stagesChange: {
128
128
  type: Array
@@ -188,12 +188,14 @@ export default {
188
188
  timeNumDevide () {
189
189
  if (this.contrloCycle > 0) {
190
190
  // let res = (this.contrloCycle - this.syncTime) + '/' + this.contrloCycle
191
- let res = this.curtime + '/' + (this.fixCycle ? this.fixCycle : this.max ? this.max : this.contrloCycle)
191
+ // let res = this.curtime + '/' + (this.fixCycle ? this.fixCycle : this.max ? this.max : this.contrloCycle)
192
+ let res = this.curtime
192
193
  return res
193
194
  }
194
195
  if (this.cycles > 0) {
195
196
  // let res = (this.cycles - this.syncTime) + '/' + this.cycles
196
- let res = this.curtime + '/' + (this.fixCycle ? this.fixCycle : this.max ? this.max : this.contrloCycle)
197
+ // let res = this.curtime + '/' + (this.fixCycle ? this.fixCycle : this.max ? this.max : this.contrloCycle)
198
+ let res = this.curtime
197
199
  return res
198
200
  }
199
201
  }
@@ -233,6 +235,7 @@ export default {
233
235
  },
234
236
  cycleChange: {
235
237
  handler: function (val, oldVal) {
238
+ this.getStage()
236
239
  this.handleCurrentChange(this.patternStatusList)
237
240
  this.handleBarrierHeight()
238
241
  },
@@ -407,15 +410,27 @@ export default {
407
410
  },
408
411
  getStage () {
409
412
  if (!this.stagesChange) return
410
- let stageCycleList = this.stagesChange.map(item => {
411
- return item.stageSplit ? item.stageSplit : 0
413
+ const globalParamModel = this.$store.getters.globalParamModel
414
+ let pattern = globalParamModel.getParamsByType('patternList')
415
+ let mapAdd = pattern.map(item => item.stagesList).map(item => {
416
+ return item.map(val => {
417
+ return val.stageSplit
418
+ })
412
419
  })
413
- let stageMaxCyle = stageCycleList.reduce((a, b) => {
414
- return a + b
415
- }, 0)
416
- // if (this.cycleChange) {
417
- // stageMaxCyle = this.max
418
- // }
420
+ let maxCycle = mapAdd.length > 0 ? mapAdd.map(item => {
421
+ return item.length > 0 ? item.reduce((a, b) => {
422
+ return a + b
423
+ }) : 0
424
+ }) : 0
425
+ let stageMaxCyle = Math.max(...maxCycle)// 每个环的周期最大值
426
+ if (!this.cycleChange) {
427
+ let stageCycleList = this.stagesChange.map(item => {
428
+ return item.stageSplit ? item.stageSplit : 0
429
+ })
430
+ stageMaxCyle = stageCycleList.reduce((a, b) => {
431
+ return a + b
432
+ }, 0)
433
+ }
419
434
  this.stageLists = this.stagesChange.map(item => {
420
435
  return {
421
436
  ...item,
@@ -1391,25 +1406,25 @@ export default {
1391
1406
  width: 3px;
1392
1407
  // height: 99px;
1393
1408
  z-index: 999;
1394
- background-color:#B9BABF;
1409
+ background-color:black;
1395
1410
  }
1396
1411
  .curTimeLine {
1397
1412
  position: absolute;
1398
1413
  top: -10px;
1399
- width: 2px;
1400
- background-color: #299BCC;
1414
+ width: 4px;
1415
+ background-color: black;
1401
1416
  }
1402
1417
  .curTimeDiv {
1403
1418
  position: absolute;
1404
1419
  z-index:50;
1405
1420
  top: -21px;
1406
- margin-left: -30px;
1421
+ margin-left: -10px;
1407
1422
  text-align:center;
1408
1423
  vertical-align: middle;
1409
1424
  width: 60px;
1410
1425
  height: 19px;
1411
1426
  color:#FFFFFF;
1412
- background-color: #299BCC;
1427
+ background-color: black;
1413
1428
  }
1414
1429
  }
1415
1430
  .ring-first {