openatc-components 0.0.32 → 0.0.35
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 +16 -4
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +3 -3
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +986 -982
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +16 -4
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +3 -3
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +986 -982
- package/src/views/schemeconfig.vue +10 -7
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div v-for="(item, index) in barrierList" :key="index + '1'">
|
|
47
47
|
<div class="divider" :style="{'left':item, 'height':barrierHeight}"></div>
|
|
48
48
|
</div>
|
|
49
|
-
<div v-show="syncTime && cycle && cycle >
|
|
49
|
+
<div v-show="(syncTime && cycle && cycle>0) || (syncTime && newCycle && newCycle>0)">
|
|
50
50
|
<div class="curTimeDiv" :style="{'left':paddingLeft, 'background-color': '#409EFF'}">{{ timeNumDevide }}</div>
|
|
51
51
|
<div class="curTimeLine" :style="{'left':paddingLeft, 'height':barrierHeight}"></div>
|
|
52
52
|
</div>
|
|
@@ -152,6 +152,10 @@ export default {
|
|
|
152
152
|
computed: {
|
|
153
153
|
paddingLeft () {
|
|
154
154
|
let res = '0%'
|
|
155
|
+
if (this.newCycle && this.newCycle > 0) {
|
|
156
|
+
let curPercent = (this.newCycle - this.syncTime) / this.newCycle
|
|
157
|
+
res = curPercent * 100 + '%'
|
|
158
|
+
}
|
|
155
159
|
if (this.cycle && this.cycle > 0) {
|
|
156
160
|
let curPercent = (this.cycle - this.syncTime) / this.cycle
|
|
157
161
|
res = curPercent * 100 + '%'
|
|
@@ -159,8 +163,14 @@ export default {
|
|
|
159
163
|
return res
|
|
160
164
|
},
|
|
161
165
|
timeNumDevide () {
|
|
162
|
-
|
|
163
|
-
|
|
166
|
+
if (this.newCycle && this.newCycle > 0) {
|
|
167
|
+
let res = (this.newCycle - this.syncTime) + '/' + this.newCycle
|
|
168
|
+
return res
|
|
169
|
+
}
|
|
170
|
+
if (this.cycle && this.cycle > 0) {
|
|
171
|
+
let res = (this.cycle - this.syncTime) + '/' + this.cycle
|
|
172
|
+
return res
|
|
173
|
+
}
|
|
164
174
|
}
|
|
165
175
|
},
|
|
166
176
|
watch: {
|
|
@@ -171,6 +181,7 @@ export default {
|
|
|
171
181
|
}
|
|
172
182
|
// this.controlDatas = this.controlData
|
|
173
183
|
this.handlePatternData()
|
|
184
|
+
this.handleBarrierHeight()
|
|
174
185
|
},
|
|
175
186
|
// 深度观察监听
|
|
176
187
|
deep: true
|
|
@@ -243,7 +254,7 @@ export default {
|
|
|
243
254
|
setTimeout(() => {
|
|
244
255
|
this.handleCurrentChange(this.patternStatusList)
|
|
245
256
|
this.handleBarrierHeight()
|
|
246
|
-
},
|
|
257
|
+
}, 400)
|
|
247
258
|
} else {
|
|
248
259
|
this.handlePatternData()
|
|
249
260
|
}
|
|
@@ -384,6 +395,7 @@ export default {
|
|
|
384
395
|
})
|
|
385
396
|
},
|
|
386
397
|
handlePatternData () {
|
|
398
|
+
if (!this.controlData) return
|
|
387
399
|
this.newList = []
|
|
388
400
|
if (Object.keys(this.controlData).length === 0 || this.phaseList.length === 0) return
|
|
389
401
|
if (!this.controlData.phase) return
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
type: Array
|
|
155
155
|
},
|
|
156
156
|
planPattern: {
|
|
157
|
-
type:
|
|
157
|
+
type: Object
|
|
158
158
|
},
|
|
159
159
|
allPatternList: {
|
|
160
160
|
type: Array
|
|
@@ -574,7 +574,7 @@ export default {
|
|
|
574
574
|
}
|
|
575
575
|
if (!this.realtimeStatusModalvisible) {
|
|
576
576
|
console.log(control)
|
|
577
|
-
this.$emit('
|
|
577
|
+
this.$emit('patternCommitCallback', control)
|
|
578
578
|
return
|
|
579
579
|
}
|
|
580
580
|
this.lockScreen()
|
|
@@ -695,7 +695,7 @@ export default {
|
|
|
695
695
|
},
|
|
696
696
|
closePhaseControl (controldata) {
|
|
697
697
|
if (!this.realtimeStatusModalvisible) {
|
|
698
|
-
this.$emit('
|
|
698
|
+
this.$emit('patternCommitCallback', controldata)
|
|
699
699
|
return
|
|
700
700
|
}
|
|
701
701
|
this.lockScreen()
|