openatc-components 0.3.52 → 0.3.54
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.
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
<div v-if="isMove" class="ring-nums">{{item.split}}</div>
|
|
30
30
|
<el-input-number
|
|
31
31
|
v-if="!isMove"
|
|
32
|
-
:disabled="!cycles"
|
|
33
32
|
class="ring-nums"
|
|
34
33
|
size="small"
|
|
35
34
|
:controls="false"
|
|
@@ -429,20 +428,16 @@ export default {
|
|
|
429
428
|
}
|
|
430
429
|
})
|
|
431
430
|
})
|
|
432
|
-
|
|
433
|
-
const globalParamModel = this.$store.getters.globalParamModel
|
|
434
|
-
let pattern = globalParamModel.getParamsByType('patternList')[n]
|
|
435
|
-
globalParamModel.getParamsByType('patternList')[n].cycle = this.getMaxCycle(pattern)
|
|
431
|
+
val.cycle = this.getMaxCycle(this.patternStatusList)
|
|
436
432
|
},
|
|
437
433
|
getMaxCycle (pattern) {
|
|
438
|
-
let
|
|
439
|
-
let rings = pattern.rings
|
|
434
|
+
// let rings = pattern.rings
|
|
440
435
|
let maxCycle = 0
|
|
441
|
-
for (let ring of
|
|
436
|
+
for (let ring of pattern) {
|
|
442
437
|
if (ring.length === 0) continue
|
|
443
438
|
let cycle = 0
|
|
444
439
|
for (let r of ring) {
|
|
445
|
-
if (r.mode === 7
|
|
440
|
+
if (r.mode === 7) { // 忽略相位不计周期
|
|
446
441
|
continue
|
|
447
442
|
}
|
|
448
443
|
cycle = cycle + r.value
|