openatc-components 0.2.16 → 0.2.17
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 +24 -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 +24 -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"
|
|
@@ -110,10 +109,11 @@
|
|
|
110
109
|
:patternStatusList="patternOne.length===0?planPattern.rings:patternOne[0].rings"
|
|
111
110
|
>
|
|
112
111
|
</stage-status> -->
|
|
112
|
+
{{contrloType}}
|
|
113
113
|
<pattern-list
|
|
114
114
|
:key="keyChange"
|
|
115
115
|
:allPatternList="allPatternList"
|
|
116
|
-
:contrloType="
|
|
116
|
+
:contrloType="contrloType"
|
|
117
117
|
:stagesChange="
|
|
118
118
|
patternOne.length === 0
|
|
119
119
|
? planPattern.stagesList
|
|
@@ -390,6 +390,7 @@ export default {
|
|
|
390
390
|
group: 'pattern'
|
|
391
391
|
},
|
|
392
392
|
max: '',
|
|
393
|
+
contrloType: '',
|
|
393
394
|
patternCycleEqual: true,
|
|
394
395
|
activeList: 'ring',
|
|
395
396
|
isRing: false,
|
|
@@ -417,6 +418,25 @@ export default {
|
|
|
417
418
|
this.handleStageData(this.planPattern.rings)
|
|
418
419
|
}
|
|
419
420
|
this.initData()
|
|
421
|
+
if (!this.allPatternList[0].contrloType && this.allPatternList[0].rings.length > 0) {
|
|
422
|
+
this.contrloType = 'ring'
|
|
423
|
+
} else if (!this.allPatternList[0].contrloType && this.allPatternList[0].rings.length === 0) {
|
|
424
|
+
this.contrloType = 'stage'
|
|
425
|
+
} else {
|
|
426
|
+
this.contrloType = this.allPatternList[0].contrloType
|
|
427
|
+
}
|
|
428
|
+
for (let i = 0; i < this.allPatternList.length; i++) {
|
|
429
|
+
if (this.allPatternList[i].contrloType === 'stage' || (this.isRing && !this.allPatternList[i].contrloType)) {
|
|
430
|
+
this.isRing = true
|
|
431
|
+
// this.setStageList(this.allPatternList[i].stagesList, this.allPatternList[i].id)
|
|
432
|
+
} else if (this.allPatternList[i].contrloType === 'ring' || (!this.isRing && !this.allPatternList[i].contrloType && this.allPatternList[i].rings.length > 0)) {
|
|
433
|
+
this.isRing = false
|
|
434
|
+
// this.handleStageData(this.allPatternList[i].rings)
|
|
435
|
+
} else if (this.allPatternList[i].rings.length === 0 && this.allPatternList[i].stagesList.length > 0) {
|
|
436
|
+
this.isRing = true
|
|
437
|
+
// this.setStageList(this.allPatternList[i].stagesList, this.allPatternList[i].id)
|
|
438
|
+
}
|
|
439
|
+
}
|
|
420
440
|
},
|
|
421
441
|
methods: {
|
|
422
442
|
addStage (row) {
|
|
@@ -448,7 +468,7 @@ export default {
|
|
|
448
468
|
}
|
|
449
469
|
},
|
|
450
470
|
changeRing () {
|
|
451
|
-
|
|
471
|
+
this.contrloType = 'ring'
|
|
452
472
|
this.isRing = false
|
|
453
473
|
// const globalParamModel = this.$store.getters.globalParamModel
|
|
454
474
|
// let pattern = globalParamModel.getParamsByType('patternList')
|
|
@@ -468,6 +488,7 @@ export default {
|
|
|
468
488
|
// }
|
|
469
489
|
},
|
|
470
490
|
changeStage () {
|
|
491
|
+
this.contrloType = 'stage'
|
|
471
492
|
this.isRing = true
|
|
472
493
|
this.patternOne = this.allPatternList.filter(item => {
|
|
473
494
|
return item.id === Number(this.manualInfo.tempPatternid)
|