openatc-components 0.0.63 → 0.0.66

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.0.63",
3
+ "version": "0.0.66",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -59,7 +59,7 @@
59
59
  </div>
60
60
  <div class="stage-label">{{$t('openatccomponents.overview.stage')}}:</div>
61
61
  <div style="width: 100%; height: auto;overflow: hidden;">
62
- <Stages :crossStatusData="realtimeStage"
62
+ <Stages :crossStatusData="manuals?manualsStage:realtimeStage"
63
63
  :phaseList="phaseList"
64
64
  :isShowCurrentStage="false"
65
65
  @onSelectStages="selectStages"></Stages>
@@ -162,7 +162,9 @@ export default {
162
162
  return {
163
163
  basicFuncControlId: [0, 1, 4, 5], // 基础功能包含的控制方式: 自主控制(手动下)、黄闪、步进、定周期
164
164
  visible: this.Visible,
165
+ manuals: false,
165
166
  realtimeStage: {},
167
+ manualsStage: {},
166
168
  manualInfo: {
167
169
  tempPatternid: '', // 控制方式手动操作的情况下的控制编号的临时值。
168
170
  tempDelay: 0, // 控制方式手动操作的情况下的延迟时间的临时值。
@@ -172,11 +174,13 @@ export default {
172
174
  },
173
175
  methods: {
174
176
  changeStage (value) {
177
+ this.manualsStage = {}
178
+ this.manuals = true
175
179
  let stages = []
176
180
  stages = this.patternAll.filter(item => {
177
181
  return item.id === value
178
182
  })[0].stages
179
- this.realtimeStage.stages = stages
183
+ this.manualsStage.stages = stages
180
184
  },
181
185
  handleClose () {
182
186
  this.$emit('closeManualModal')
@@ -1404,7 +1404,7 @@ export default {
1404
1404
  },
1405
1405
  isRingCycleEqual (rings) {
1406
1406
  let isequal = true
1407
- this.patternmsg = []
1407
+ // this.patternmsg = []
1408
1408
  let maxCycle = 0
1409
1409
  for (let ring of rings) {
1410
1410
  if (ring.length === 0) continue
@@ -1419,7 +1419,7 @@ export default {
1419
1419
  maxCycle = cycle
1420
1420
  }
1421
1421
  if (cycle !== maxCycle) {
1422
- this.patternmsg.push(rings.id)
1422
+ // this.patternmsg.push(rings.id)
1423
1423
  isequal = false
1424
1424
  }
1425
1425
  }
@@ -1432,9 +1432,9 @@ export default {
1432
1432
  this.patternCycleEqual = true
1433
1433
  }
1434
1434
  if (!this.patternCycleEqual) {
1435
- let mess = `方案${this.patternmsg.toString()}中存在环周期时长不一致`
1435
+ let mess = `方案中存在环周期时长不一致`
1436
1436
  if (this.$i18n.locale === 'en') {
1437
- mess = `The cycle of each ring is inconsistent in scheme${this.patternmsg.toString()}`
1437
+ mess = `Inconsistent loop cycle durations exist in the scheme`
1438
1438
  }
1439
1439
  this.$message({
1440
1440
  message: mess,