openatc-components 0.2.16 → 0.2.18
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/kisscomps/components/PatternStatus/PatternStatus.vue +3 -3
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +3 -3
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +23 -3
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +3 -3
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +3 -3
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +23 -3
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<div class="curTimeLine" :style="{'left':paddingLeft, 'height':barrierHeight}"></div>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
|
-
<div v-if="this.contrloType === 'stage'">
|
|
56
|
+
<div v-if="this.contrloType === 'stage'" class="ring-first">
|
|
57
57
|
<div v-for="(list, index1) in stageLists" :key="index1">
|
|
58
58
|
<!-- <div> -->
|
|
59
59
|
<div class="first-1" :style="{'width':list.greenWidth,'height':'34px','position':'relative','background':'#7ccc66'}">
|
|
@@ -215,7 +215,7 @@ export default {
|
|
|
215
215
|
handler: function (val, oldVal) {
|
|
216
216
|
if (val && val.curTime) {
|
|
217
217
|
this.curtime = val.curTime
|
|
218
|
-
if (val.control ===
|
|
218
|
+
if (val.control === 4 || val.control === 16 || val.control === 22) {
|
|
219
219
|
this.isControl = false
|
|
220
220
|
} else {
|
|
221
221
|
this.isControl = true
|
|
@@ -244,7 +244,7 @@ export default {
|
|
|
244
244
|
}
|
|
245
245
|
if (val && val.curTime) {
|
|
246
246
|
this.curtime = val.curTime
|
|
247
|
-
if (val.control ===
|
|
247
|
+
if (val.control === 4 || val.control === 16 || val.control === 22) {
|
|
248
248
|
this.isControl = false
|
|
249
249
|
} else {
|
|
250
250
|
this.isControl = true
|
|
@@ -510,9 +510,9 @@ export default {
|
|
|
510
510
|
data[key] = that.ParamsModeEn.get(0)
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
if (key === 'control') {
|
|
514
|
-
|
|
515
|
-
}
|
|
513
|
+
// if (key === 'control') {
|
|
514
|
+
// data[key] = that.ParamsControlEn.get(data[key])
|
|
515
|
+
// }
|
|
516
516
|
if (key === 'phase') {
|
|
517
517
|
for (let val of data[key]) {
|
|
518
518
|
val.type = that.phaseTypeEn.get(val.type)
|
|
@@ -94,7 +94,6 @@
|
|
|
94
94
|
</el-row>
|
|
95
95
|
<el-row>
|
|
96
96
|
<el-radio
|
|
97
|
-
style="margin-left: 30px"
|
|
98
97
|
v-model="isRing"
|
|
99
98
|
:label="false"
|
|
100
99
|
@change="changeRing"
|
|
@@ -113,7 +112,7 @@
|
|
|
113
112
|
<pattern-list
|
|
114
113
|
:key="keyChange"
|
|
115
114
|
:allPatternList="allPatternList"
|
|
116
|
-
:contrloType="
|
|
115
|
+
:contrloType="contrloType"
|
|
117
116
|
:stagesChange="
|
|
118
117
|
patternOne.length === 0
|
|
119
118
|
? planPattern.stagesList
|
|
@@ -390,6 +389,7 @@ export default {
|
|
|
390
389
|
group: 'pattern'
|
|
391
390
|
},
|
|
392
391
|
max: '',
|
|
392
|
+
contrloType: '',
|
|
393
393
|
patternCycleEqual: true,
|
|
394
394
|
activeList: 'ring',
|
|
395
395
|
isRing: false,
|
|
@@ -417,6 +417,25 @@ export default {
|
|
|
417
417
|
this.handleStageData(this.planPattern.rings)
|
|
418
418
|
}
|
|
419
419
|
this.initData()
|
|
420
|
+
if (!this.allPatternList[0].contrloType && this.allPatternList[0].rings.length > 0) {
|
|
421
|
+
this.contrloType = 'ring'
|
|
422
|
+
} else if (!this.allPatternList[0].contrloType && this.allPatternList[0].rings.length === 0) {
|
|
423
|
+
this.contrloType = 'stage'
|
|
424
|
+
} else {
|
|
425
|
+
this.contrloType = this.allPatternList[0].contrloType
|
|
426
|
+
}
|
|
427
|
+
for (let i = 0; i < this.allPatternList.length; i++) {
|
|
428
|
+
if (this.allPatternList[i].contrloType === 'stage' || (this.isRing && !this.allPatternList[i].contrloType)) {
|
|
429
|
+
this.isRing = true
|
|
430
|
+
// this.setStageList(this.allPatternList[i].stagesList, this.allPatternList[i].id)
|
|
431
|
+
} else if (this.allPatternList[i].contrloType === 'ring' || (!this.isRing && !this.allPatternList[i].contrloType && this.allPatternList[i].rings.length > 0)) {
|
|
432
|
+
this.isRing = false
|
|
433
|
+
// this.handleStageData(this.allPatternList[i].rings)
|
|
434
|
+
} else if (this.allPatternList[i].rings.length === 0 && this.allPatternList[i].stagesList.length > 0) {
|
|
435
|
+
this.isRing = true
|
|
436
|
+
// this.setStageList(this.allPatternList[i].stagesList, this.allPatternList[i].id)
|
|
437
|
+
}
|
|
438
|
+
}
|
|
420
439
|
},
|
|
421
440
|
methods: {
|
|
422
441
|
addStage (row) {
|
|
@@ -448,7 +467,7 @@ export default {
|
|
|
448
467
|
}
|
|
449
468
|
},
|
|
450
469
|
changeRing () {
|
|
451
|
-
|
|
470
|
+
this.contrloType = 'ring'
|
|
452
471
|
this.isRing = false
|
|
453
472
|
// const globalParamModel = this.$store.getters.globalParamModel
|
|
454
473
|
// let pattern = globalParamModel.getParamsByType('patternList')
|
|
@@ -468,6 +487,7 @@ export default {
|
|
|
468
487
|
// }
|
|
469
488
|
},
|
|
470
489
|
changeStage () {
|
|
490
|
+
this.contrloType = 'stage'
|
|
471
491
|
this.isRing = true
|
|
472
492
|
this.patternOne = this.allPatternList.filter(item => {
|
|
473
493
|
return item.id === Number(this.manualInfo.tempPatternid)
|