openatc-components 0.1.182 → 0.1.184

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.1.182",
3
+ "version": "0.1.184",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -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>
@@ -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
  }
@@ -801,6 +803,16 @@ export default {
801
803
  let ringTeam = this.step1(this.phaseList, resArr)
802
804
  let ringTeams = ringTeam.filter(item => item.length !== 0)
803
805
  this.fillGap(ringTeams, val)
806
+ // 总览添加屏障
807
+ let newPattern = []
808
+ val.map(i => {
809
+ newPattern.push(...i)
810
+ })
811
+ let barrier = this.step2(ringTeams, newPattern)
812
+ let barrierLeft = barrier.map(item => item - 0.3)
813
+ this.barrierList = barrierLeft.map(j => {
814
+ return (j / (this.max ? this.max : this.contrloCycle) * 100) + '%'
815
+ })
804
816
  }
805
817
  // let cycle = this.controlData.cycle
806
818
  for (let rings of val) {
@@ -1404,25 +1416,25 @@ export default {
1404
1416
  width: 3px;
1405
1417
  // height: 99px;
1406
1418
  z-index: 999;
1407
- background-color:#B9BABF;
1419
+ background-color:black;
1408
1420
  }
1409
1421
  .curTimeLine {
1410
1422
  position: absolute;
1411
1423
  top: -10px;
1412
- width: 2px;
1413
- background-color: #299BCC;
1424
+ width: 4px;
1425
+ background-color: black;
1414
1426
  }
1415
1427
  .curTimeDiv {
1416
1428
  position: absolute;
1417
1429
  z-index:50;
1418
1430
  top: -21px;
1419
- margin-left: -30px;
1431
+ margin-left: -10px;
1420
1432
  text-align:center;
1421
1433
  vertical-align: middle;
1422
1434
  width: 60px;
1423
1435
  height: 19px;
1424
- color:#FFFFFF;
1425
- background-color: #299BCC;
1436
+ color:black;
1437
+ // background-color: black;
1426
1438
  }
1427
1439
  }
1428
1440
  .ring-first {