openatc-components 0.1.179 → 0.1.181

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.
@@ -66,7 +66,7 @@
66
66
  <div style="cursor:pointer;">
67
67
  <div class="ring-phase">
68
68
  <!-- <patternwalksvg :showWalk="list.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg> -->
69
- <xdrdirselector Width="60px" Height="60px" Widths="50px" Heights="50px" :showlist="list.direction"></xdrdirselector>
69
+ <xdrdirselector v-if="list.direction&&list.direction.length>0" Width="60px" Height="60px" Widths="50px" Heights="50px" :showlist="list.direction"></xdrdirselector>
70
70
  </div>
71
71
  <div class="box" style="position: absolute; left:41px; top:-1px;">
72
72
  <div class="ring-nums">S{{list.key+1}}</div>
@@ -413,9 +413,9 @@ export default {
413
413
  let stageMaxCyle = stageCycleList.reduce((a, b) => {
414
414
  return a + b
415
415
  }, 0)
416
- if (this.cycleChange) {
417
- stageMaxCyle = this.max
418
- }
416
+ // if (this.cycleChange) {
417
+ // stageMaxCyle = this.max
418
+ // }
419
419
  this.stageLists = this.stagesChange.map(item => {
420
420
  return {
421
421
  ...item,
@@ -873,7 +873,7 @@ export default {
873
873
  },
874
874
  handleCurrentChange (val) { // 两个ring的数据
875
875
  if (val === null || val.length === 0) return
876
- if (this.controlPhase.phase && this.controlPhase.phase[0].split) {
876
+ if (this.controlPhase && this.controlPhase.phase && this.controlPhase.phase[0].split) {
877
877
  val.map(i => {
878
878
  i.map(j => {
879
879
  j.value = this.controlPhase.phase.filter(item => item.id === j.id)[0].split