openatc-components 0.0.107 → 0.0.110
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/DrawChannelization/drawsvg/index.draw.vue +2 -2
- package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +2 -0
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +2 -43
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +2 -2
- package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +2 -0
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +2 -43
|
@@ -877,10 +877,10 @@ export default {
|
|
|
877
877
|
agentid: this.AgentId,
|
|
878
878
|
data: ChannelizatonData
|
|
879
879
|
}
|
|
880
|
-
if (ChannelizatonData.crossMap.type === 'vectorgraph') {
|
|
880
|
+
if (ChannelizatonData.crossMap && ChannelizatonData.crossMap.type === 'vectorgraph') {
|
|
881
881
|
ChannelizatonData.crossMap.imgfilesrc = ''
|
|
882
882
|
}
|
|
883
|
-
if (ChannelizatonData.crossMap.type === 'picture') {
|
|
883
|
+
if (ChannelizatonData.crossMap && ChannelizatonData.crossMap.type === 'picture') {
|
|
884
884
|
ChannelizatonData.crossMap.svgstr = ''
|
|
885
885
|
}
|
|
886
886
|
saveChannelizatonChart(params).then(data => {
|
|
@@ -428,6 +428,8 @@ export default {
|
|
|
428
428
|
if (data.maxflowsaturationthreshold !== undefined) {
|
|
429
429
|
this.maxflowsaturationthreshold = data.maxflowsaturationthreshold
|
|
430
430
|
}
|
|
431
|
+
this.handleDisabledMinflowOption(data.minflowsaturationthreshold)
|
|
432
|
+
this.handleDisabledMaxflowOption(data.maxflowsaturationthreshold)
|
|
431
433
|
if (data.flip !== undefined) {
|
|
432
434
|
this.flip = data.flip
|
|
433
435
|
}
|
|
@@ -411,12 +411,10 @@ export default {
|
|
|
411
411
|
this.newList = []
|
|
412
412
|
if (Object.keys(this.controlData).length === 0 || this.phaseList.length === 0) return
|
|
413
413
|
if (!this.controlData.phase) return
|
|
414
|
-
// let cycle = this.controlData.cycle
|
|
415
414
|
if (!this.controlData.rings) return
|
|
416
415
|
let newValue = []
|
|
417
416
|
for (let rings of this.controlData.rings) {
|
|
418
417
|
let phase = this.controlData.phase
|
|
419
|
-
// let list = []
|
|
420
418
|
let obj = {}
|
|
421
419
|
for (let key in rings.sequence) {
|
|
422
420
|
obj[key] = rings.sequence[key]
|
|
@@ -438,45 +436,7 @@ export default {
|
|
|
438
436
|
}
|
|
439
437
|
})
|
|
440
438
|
})
|
|
441
|
-
// let currPhase = this.phaseList.filter((item) => {
|
|
442
|
-
// if (item.id === sequ && item.controltype === 99) {
|
|
443
|
-
// obj.controltype = item.controltype
|
|
444
|
-
// }
|
|
445
|
-
// return item.id === sequ
|
|
446
|
-
// })[0]
|
|
447
|
-
// if (currPhase) {
|
|
448
|
-
// obj.redWidth = (currPhase.redclear / cycle * 100).toFixed(3) + '%'
|
|
449
|
-
// obj.yellowWidth = (currPhase.yellow / cycle * 100).toFixed(3) + '%'
|
|
450
|
-
// obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) / cycle * 100).toFixed(3) + '%'
|
|
451
|
-
// obj.flashgreen = (currPhase.flashgreen / cycle * 100).toFixed(3) + '%'
|
|
452
|
-
// // obj.peddirection = currPhase.peddirection
|
|
453
|
-
// let peddirections = []
|
|
454
|
-
// for (let walk of this.sidewalkPhaseData) {
|
|
455
|
-
// for (let ped of currPhase.peddirection) {
|
|
456
|
-
// // if (stg === walk.phaseid) {
|
|
457
|
-
// let objs = {}
|
|
458
|
-
// objs.name = walk.name
|
|
459
|
-
// objs.id = walk.id
|
|
460
|
-
// if (ped === walk.id) {
|
|
461
|
-
// peddirections.push(objs)
|
|
462
|
-
// peddirections = Array.from(new Set(peddirections))
|
|
463
|
-
// }
|
|
464
|
-
// // }
|
|
465
|
-
// }
|
|
466
|
-
// }
|
|
467
|
-
// obj.peddirection = peddirections
|
|
468
|
-
// obj.split = split
|
|
469
|
-
// obj.direction = currPhase.direction.map(item => {
|
|
470
|
-
// return {
|
|
471
|
-
// id: item,
|
|
472
|
-
// color: '#454545'
|
|
473
|
-
// }
|
|
474
|
-
// })
|
|
475
|
-
// list.push(obj)
|
|
476
|
-
// }
|
|
477
439
|
}
|
|
478
|
-
// this.newList.push(list)
|
|
479
|
-
// this.patternInfo = [...this.newList]
|
|
480
440
|
}
|
|
481
441
|
this.handleOverViewChange(newValue)
|
|
482
442
|
},
|
|
@@ -544,11 +504,10 @@ export default {
|
|
|
544
504
|
}
|
|
545
505
|
})
|
|
546
506
|
}
|
|
507
|
+
obj.split = split
|
|
547
508
|
if (ring.sum) {
|
|
548
|
-
obj.
|
|
549
|
-
obj.redWidth = (currPhase.redclear + ring.sum / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
509
|
+
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
550
510
|
} else {
|
|
551
|
-
obj.split = split
|
|
552
511
|
obj.redWidth = (currPhase.redclear / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
553
512
|
}
|
|
554
513
|
obj.flashgreen = (currPhase.flashgreen / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|