openatc-components 0.5.9 → 0.5.11
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/.babelrc +18 -18
- package/.editorconfig +9 -9
- package/.eslintignore +5 -5
- package/.eslintrc.js +31 -31
- package/.postcssrc.js +10 -10
- package/README.md +30 -30
- package/build/build.js +41 -41
- package/build/check-versions.js +54 -54
- package/build/package.config.js +58 -58
- package/build/package.dev.config.js +107 -107
- package/build/package.prod.config.js +160 -160
- package/build/utils.js +101 -101
- package/build/vue-loader.conf.js +22 -22
- package/build/webpack.base.conf.js +120 -120
- package/build/webpack.dev.conf.js +95 -95
- package/build/webpack.prod.conf.js +149 -149
- package/config/prod.env.js +5 -5
- package/config/test.env.js +7 -7
- package/index.html +12 -12
- package/package/kisscomps/components/Channelization/Channelization.vue +585 -585
- package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +360 -360
- package/package/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +518 -518
- package/package/kisscomps/components/CommonKanban/CommonKanban.vue +132 -132
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-east-bottom.vue +41 -41
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-east-top.vue +60 -60
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-ewped.vue +105 -105
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-north-left.vue +60 -60
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-north-right.vue +60 -60
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-snped.vue +105 -105
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-south-left.vue +60 -60
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-south-right.vue +60 -60
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-west-bottom.vue +60 -60
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-west-top.vue +60 -60
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-xlped.vue +30 -30
- package/package/kisscomps/components/DirectionListConfiguration/svg/ped-xrped.vue +30 -30
- package/package/kisscomps/components/DirectionListConfiguration/svg/pedSvg.vue +78 -78
- package/package/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +181 -181
- package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
- package/package/kisscomps/components/DrawChannelization/drawsvg/detectorAssociatedComponent.vue +152 -152
- package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/TextBox.vue +91 -91
- package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +194 -194
- package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/editText.vue +108 -108
- package/package/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +51 -51
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +236 -236
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +247 -247
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +210 -210
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +72 -72
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +368 -368
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +230 -230
- package/package/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +74 -74
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +144 -144
- package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +707 -707
- package/package/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +172 -172
- package/package/kisscomps/components/DrawChannelization/drawsvg/table.vue +99 -99
- package/package/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +87 -87
- package/package/kisscomps/components/DrawChannelization/drawsvg/utils/phaseDataModel.js +32 -32
- package/package/kisscomps/components/DrawChannelization/drawsvg/utils/phasePos.json +20 -20
- package/package/kisscomps/components/DrawChannelization/phaseDataMgr.js +278 -278
- package/package/kisscomps/components/ExpendConfig/ExpendConfig.vue +118 -118
- package/package/kisscomps/components/FaultDetailModal/FaultDetailModal.vue +178 -178
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CrossRoadsSvg.vue +629 -629
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +46 -46
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +447 -447
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +341 -341
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +497 -497
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +353 -353
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +359 -359
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +443 -443
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1190 -1190
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeEastRoadsSvg.vue +498 -498
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeNorthRoadsSvg.vue +484 -484
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeSouthRoadsSvg.vue +488 -488
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeWestRoadsSvg.vue +566 -566
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +640 -640
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +497 -497
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +486 -486
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +490 -490
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +575 -575
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/refreshSvg.vue +63 -63
- package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/busMapSvg.vue +50 -50
- package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/eastBusSvg.vue +167 -167
- package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/northBusSvg.vue +168 -168
- package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/southBusSvg.vue +168 -168
- package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/westBusSvg.vue +169 -169
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +122 -122
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.json +196 -196
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.left.json +196 -196
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +115 -115
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
- package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +534 -534
- package/package/kisscomps/components/KanBan/kanban.vue +231 -231
- package/package/kisscomps/components/MessageBox/index.vue +96 -96
- package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +329 -329
- package/package/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
- package/package/kisscomps/components/PhaseDirectionSelect/PhaseDirectionSelect.vue +126 -126
- package/package/kisscomps/components/PhaseDirectionText/PhaseDirectionText.vue +106 -106
- package/package/kisscomps/components/PhaseLegend/PhaseLegend.vue +286 -286
- package/package/kisscomps/components/PhaseMarker/index.js +6 -6
- package/package/kisscomps/components/PhaseMarker/phasemarker.vue +215 -215
- package/package/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -121
- package/package/kisscomps/components/PhaseMarker/svg/phase.vue +60 -60
- package/package/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -62
- package/package/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -62
- package/package/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -117
- package/package/kisscomps/components/PhasePedSelect/index.vue +206 -206
- package/package/kisscomps/components/RcpRightPanel/index.vue +314 -0
- package/package/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +365 -365
- package/package/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +92 -92
- package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +214 -214
- package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +235 -235
- package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +235 -235
- package/package/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +131 -131
- package/package/kisscomps/components/SchemeConfig/manualControlModalNew/othersIcon.vue +151 -151
- package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +215 -215
- package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
- package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +308 -308
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +1 -1
- package/package/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
- package/package/kisscomps/components/SelectCrossPhase/utils.js +142 -142
- package/package/kisscomps/components/SelectGBCrossStage/index.vue +323 -0
- package/package/kisscomps/components/SelectGBCrossStage/mock/gb_features.json +212 -0
- package/package/kisscomps/components/SelectGBCrossStage/utils.js +142 -0
- package/package/kisscomps/components/StageOptimize/StageOptimize.vue +367 -367
- package/package/kisscomps/components/StageOptimize/index.js +2 -2
- package/package/kisscomps/components/StageStatus/StageStatus.vue +341 -341
- package/package/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
- package/package/kisscomps/components/XiaoKanban/DirSelector.vue +356 -356
- package/package/kisscomps/components/XiaoKanban/index.vue +122 -122
- package/package/kisscomps/components/patternConfig/pattern/planChart/model/coordinationModel.js +665 -665
- package/package/kisscomps/components/patternConfig/planContent.vue +604 -604
- package/package/kisscomps/components/patternConfig/planMenu.vue +329 -329
- package/package/kisscomps/index.js +4 -0
- package/package/kissui.js +216608 -0
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/pnpm-lock.yaml +16362 -0
- package/src/EdgeMgr/EdgeModelBase.js +16 -16
- package/src/EdgeMgr/controller/crossDiagramMgr.js +125 -125
- package/src/api/authapi.js +31 -31
- package/src/api/config.js +21 -21
- package/src/api/control.js +110 -110
- package/src/api/device.js +135 -135
- package/src/api/fault.js +66 -66
- package/src/api/index.js +24 -24
- package/src/api/login.js +46 -46
- package/src/api/optimize.js +72 -72
- package/src/api/param.js +165 -165
- package/src/api/passwdAssest.js +101 -101
- package/src/api/permission.js +33 -33
- package/src/api/route.js +171 -171
- package/src/api/template.js +27 -27
- package/src/assets/font/LICENSE.txt +202 -202
- package/src/assets/font/font.css +6 -6
- package/src/i18n/index.js +26 -26
- package/src/i18n/language/en.js +173 -5
- package/src/i18n/language/zh.js +167 -2
- package/src/icons/index.js +20 -20
- package/src/icons/svg/azimuthlocking.svg +26 -26
- package/src/icons/svg/bendi.svg +110 -110
- package/src/icons/svg/bujin.svg +36 -36
- package/src/icons/svg/connectBlue.svg +7 -7
- package/src/icons/svg/currentvolume.svg +0 -0
- package/src/icons/svg/custom-BRTlane.svg +40 -40
- package/src/icons/svg/custom-buslane.svg +40 -40
- package/src/icons/svg/custom-detector.svg +12 -12
- package/src/icons/svg/custom-east-bottom.svg +32 -32
- package/src/icons/svg/custom-east-top.svg +32 -32
- package/src/icons/svg/custom-ewped.svg +35 -35
- package/src/icons/svg/custom-nonmotorizedlane.svg +40 -40
- package/src/icons/svg/custom-north-left.svg +32 -32
- package/src/icons/svg/custom-north-right.svg +32 -32
- package/src/icons/svg/custom-peddetector.svg +17 -17
- package/src/icons/svg/custom-snped.svg +35 -35
- package/src/icons/svg/custom-south-left.svg +32 -32
- package/src/icons/svg/custom-south-right.svg +32 -32
- package/src/icons/svg/custom-tramlane.svg +40 -40
- package/src/icons/svg/custom-vehiclebranch.svg +40 -40
- package/src/icons/svg/custom-vehiclemainroad.svg +41 -41
- package/src/icons/svg/custom-west-bottom.svg +32 -32
- package/src/icons/svg/custom-west-top.svg +32 -32
- package/src/icons/svg/custom-xlped.svg +14 -14
- package/src/icons/svg/custom-xrped.svg +14 -14
- package/src/icons/svg/cutRed.svg +7 -7
- package/src/icons/svg/cycle.svg +0 -0
- package/src/icons/svg/dingzhouqi.svg +34 -34
- package/src/icons/svg/ganyingkongzhi.svg +30 -30
- package/src/icons/svg/guandeng.svg +81 -81
- package/src/icons/svg/huangshan.svg +71 -71
- package/src/icons/svg/maincontrol.svg +0 -0
- package/src/icons/svg/manualcontrolbackground.svg +51 -51
- package/src/icons/svg/manualcontrolbackground1.svg +62 -62
- package/src/icons/svg/manualcontrolbackgrounden.svg +62 -62
- package/src/icons/svg/model.svg +0 -0
- package/src/icons/svg/phasediff.svg +0 -0
- package/src/icons/svg/prioritycontrol.svg +21 -21
- package/src/icons/svg/quanhong.svg +86 -86
- package/src/icons/svg/shanghe.svg +11 -11
- package/src/icons/svg/shoudong.svg +103 -103
- package/src/icons/svg/tentativeplan.svg +28 -28
- package/src/icons/svg/time.svg +0 -0
- package/src/icons/svg/wuxianlan.svg +46 -46
- package/src/icons/svg/xiala.svg +11 -11
- package/src/icons/svg/xingrenguojie.svg +33 -33
- package/src/icons/svg/xitong.svg +89 -89
- package/src/icons/svg/youxian.svg +41 -41
- package/src/icons/svg/zizhukongzhi.svg +43 -43
- package/src/kisscomps/components/Channelization/Channelization.vue +585 -585
- package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +360 -360
- package/src/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +518 -518
- package/src/kisscomps/components/CommonKanban/CommonKanban.vue +132 -132
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-east-bottom.vue +41 -41
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-east-top.vue +60 -60
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-ewped.vue +105 -105
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-north-left.vue +60 -60
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-north-right.vue +60 -60
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-snped.vue +105 -105
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-south-left.vue +60 -60
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-south-right.vue +60 -60
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-west-bottom.vue +60 -60
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-west-top.vue +60 -60
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-xlped.vue +30 -30
- package/src/kisscomps/components/DirectionListConfiguration/svg/ped-xrped.vue +30 -30
- package/src/kisscomps/components/DirectionListConfiguration/svg/pedSvg.vue +78 -78
- package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +181 -181
- package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
- package/src/kisscomps/components/DrawChannelization/drawsvg/detectorAssociatedComponent.vue +152 -152
- package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/TextBox.vue +91 -91
- package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +194 -194
- package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/editText.vue +108 -108
- package/src/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +51 -51
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +236 -236
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +247 -247
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +210 -210
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +72 -72
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +368 -368
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +230 -230
- package/src/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +74 -74
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +144 -144
- package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +707 -707
- package/src/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +172 -172
- package/src/kisscomps/components/DrawChannelization/drawsvg/table.vue +99 -99
- package/src/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +87 -87
- package/src/kisscomps/components/DrawChannelization/drawsvg/utils/phaseDataModel.js +32 -32
- package/src/kisscomps/components/DrawChannelization/drawsvg/utils/phasePos.json +20 -20
- package/src/kisscomps/components/DrawChannelization/phaseDataMgr.js +278 -278
- package/src/kisscomps/components/ExpendConfig/ExpendConfig.vue +118 -118
- package/src/kisscomps/components/FaultDetailModal/FaultDetailModal.vue +178 -178
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CrossRoadsSvg.vue +629 -629
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +46 -46
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +447 -447
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +341 -341
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +497 -497
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +353 -353
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +359 -359
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +443 -443
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1190 -1190
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeEastRoadsSvg.vue +498 -498
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeNorthRoadsSvg.vue +484 -484
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeSouthRoadsSvg.vue +488 -488
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeWestRoadsSvg.vue +566 -566
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +640 -640
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +497 -497
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +486 -486
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +490 -490
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +575 -575
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/refreshSvg.vue +63 -63
- package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/busMapSvg.vue +50 -50
- package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/eastBusSvg.vue +167 -167
- package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/northBusSvg.vue +168 -168
- package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/southBusSvg.vue +168 -168
- package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/westBusSvg.vue +169 -169
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +122 -122
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.json +196 -196
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.left.json +196 -196
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +115 -115
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
- package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +534 -534
- package/src/kisscomps/components/KanBan/kanban.vue +231 -231
- package/src/kisscomps/components/MessageBox/index.vue +96 -96
- package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +329 -329
- package/src/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
- package/src/kisscomps/components/PhaseDirectionSelect/PhaseDirectionSelect.vue +126 -126
- package/src/kisscomps/components/PhaseDirectionText/PhaseDirectionText.vue +106 -106
- package/src/kisscomps/components/PhaseLegend/PhaseLegend.vue +286 -286
- package/src/kisscomps/components/PhaseMarker/index.js +6 -6
- package/src/kisscomps/components/PhaseMarker/phasemarker.vue +215 -215
- package/src/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -121
- package/src/kisscomps/components/PhaseMarker/svg/phase.vue +60 -60
- package/src/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -62
- package/src/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -62
- package/src/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -117
- package/src/kisscomps/components/PhasePedSelect/index.vue +206 -206
- package/src/kisscomps/components/RcpRightPanel/index.vue +314 -0
- package/src/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +365 -365
- package/src/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +92 -92
- package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +214 -214
- package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +235 -235
- package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +235 -235
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +131 -131
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/othersIcon.vue +151 -151
- package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +215 -215
- package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
- package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +308 -308
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +1 -1
- package/src/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
- package/src/kisscomps/components/SelectCrossPhase/utils.js +142 -142
- package/src/kisscomps/components/SelectGBCrossStage/index.vue +323 -0
- package/src/kisscomps/components/SelectGBCrossStage/mock/gb_features.json +212 -0
- package/src/kisscomps/components/SelectGBCrossStage/utils.js +142 -0
- package/src/kisscomps/components/StageOptimize/StageOptimize.vue +367 -367
- package/src/kisscomps/components/StageOptimize/index.js +2 -2
- package/src/kisscomps/components/StageStatus/StageStatus.vue +341 -341
- package/src/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
- package/src/kisscomps/components/XiaoKanban/DirSelector.vue +356 -356
- package/src/kisscomps/components/XiaoKanban/index.vue +122 -122
- package/src/kisscomps/components/patternConfig/pattern/planChart/model/coordinationModel.js +665 -665
- package/src/kisscomps/components/patternConfig/planContent.vue +604 -604
- package/src/kisscomps/components/patternConfig/planMenu.vue +329 -329
- package/src/kisscomps/index.js +4 -0
- package/src/lib/publicjs/ArryListUtil.js +38 -38
- package/src/lib/publicjs/HttpurlMgr.js +45 -45
- package/src/lib/publicjs/KissApi.js +158 -158
- package/src/lib/publicjs/KissWSSub/Heartcheck.js +128 -128
- package/src/lib/publicjs/KissWSSub/KissWsSub.js +91 -91
- package/src/lib/publicjs/KissWSSub/KissWsSubByType.js +152 -152
- package/src/lib/publicjs/KissWSSub/SimuWsSubByType.js +44 -44
- package/src/lib/publicjs/KissWSSub/Sub.js +51 -51
- package/src/lib/publicjs/KissWSSub/SubChannel.js +119 -119
- package/src/lib/publicjs/basecomponents.js +65 -65
- package/src/lib/publicjs/localStorage.js +112 -112
- package/src/lib/publicjs/objdeepcopy.js +32 -32
- package/src/lib/publicjs/pageScroll.js +30 -30
- package/src/lib/publicjs/passwdAssest.js +101 -101
- package/src/lib/publicjs/styleclassfactory.js +32 -32
- package/src/router/index.js +7 -0
- package/src/store/index.js +26 -26
- package/src/store/modules/globalParam.js +67 -67
- package/src/utils/RingDataModel.js +335 -335
- package/src/utils/conflct.js +1 -1
- package/src/utils/conflictList.js +87 -87
- package/src/utils/dateFormat.js +41 -41
- package/src/utils/index.js +69 -69
- package/src/utils/phaseList.js +203 -203
- package/src/utils/validate.js +43 -43
- package/src/views/RcpRightPanel.vue +74 -0
- package/src/views/home.1.vue +479 -479
- package/src/views/home.vue +93 -93
- package/src/views/intersection2.vue +328 -328
- package/src/views/overView.vue +63 -63
- package/static/styles/channelizatioon.scss +433 -433
- package/static/styles/common.scss +30 -30
- package/static/styles/commonkanban.scss +168 -168
- package/static/styles/dark/index.scss +2 -2
- package/static/styles/dark/theme/element-dark.scss +44 -44
- package/static/styles/index.scss +84 -84
- package/static/styles/intersection.scss +180 -180
- package/static/styles/light/index.scss +2 -2
- package/static/styles/light/theme/element-light.scss +44 -44
- package/static/styles/overview.scss +151 -146
- package/static/styles/patternConfig.scss +56 -56
- package/static/styles/phasePedSelect.scss +71 -71
- package/static/styles/stages.scss +57 -57
- package/static/styles/xiaokanban.scss +61 -61
- package/static/token.json +2 -2
- package/test/e2e/custom-assertions/elementCount.js +27 -27
- package/test/e2e/nightwatch.conf.js +46 -46
- package/test/e2e/runner.js +48 -48
- package/test/e2e/specs/test.js +19 -19
- package/test/unit/.eslintrc +7 -7
- package/test/unit/jest.conf.js +30 -30
- package/test/unit/setup.js +3 -3
- package/test/unit/specs/HelloWorld.spec.js +11 -11
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-select
|
|
3
|
+
v-model="value"
|
|
4
|
+
:multiple="multiple"
|
|
5
|
+
:disabled="disabled"
|
|
6
|
+
:size="size"
|
|
7
|
+
collapse-tags
|
|
8
|
+
:clearable="clearable"
|
|
9
|
+
filterable
|
|
10
|
+
:placeholder="placeholder"
|
|
11
|
+
@change="onChange"
|
|
12
|
+
@focus="onFocus"
|
|
13
|
+
>
|
|
14
|
+
<el-option
|
|
15
|
+
v-for="(item, index) in Options"
|
|
16
|
+
:key="index"
|
|
17
|
+
:label="item.label"
|
|
18
|
+
:value="item.value"
|
|
19
|
+
>
|
|
20
|
+
<div class="single-model" @click="selectStages(item.value)" >
|
|
21
|
+
<div>
|
|
22
|
+
<xdrdirselector Width="60px" Height="60px" :showlist="item.item"></xdrdirselector>
|
|
23
|
+
</div>
|
|
24
|
+
<div>
|
|
25
|
+
<span style="float: right; color: #8492a6; font-size: 13px">{{ formatLabel(item.label) }}</span>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</el-option>
|
|
29
|
+
</el-select>
|
|
30
|
+
</template>
|
|
31
|
+
<script>
|
|
32
|
+
import { getIntersectionInfo } from '../../../api/template'
|
|
33
|
+
// import { uploadGBTscParams } from '../../api/paramGB'
|
|
34
|
+
import { getMessageByCode } from '../../../utils/responseMessage'
|
|
35
|
+
import xdrdirselector from '../../components/XRDDirSelector'
|
|
36
|
+
import PhaseDataModel from '../../components/IntersectionMap/crossDirection/utils.js'
|
|
37
|
+
import { getDirName } from './utils.js'
|
|
38
|
+
import { getTheme } from '../../../utils/auth'
|
|
39
|
+
|
|
40
|
+
export default {
|
|
41
|
+
name: 'SelectCrossPhase',
|
|
42
|
+
components: {
|
|
43
|
+
xdrdirselector
|
|
44
|
+
},
|
|
45
|
+
props: {
|
|
46
|
+
size: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: ''
|
|
49
|
+
},
|
|
50
|
+
multiple: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false
|
|
53
|
+
},
|
|
54
|
+
disabled: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
},
|
|
58
|
+
placeholder: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: ''
|
|
61
|
+
},
|
|
62
|
+
bizType: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: ''
|
|
65
|
+
},
|
|
66
|
+
agentid: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: '10501'
|
|
69
|
+
},
|
|
70
|
+
clearable: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: false
|
|
73
|
+
},
|
|
74
|
+
defaultValue: {
|
|
75
|
+
type: Number,
|
|
76
|
+
default: -1
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
data () {
|
|
80
|
+
return {
|
|
81
|
+
isMock: false,
|
|
82
|
+
list: [],
|
|
83
|
+
value: [],
|
|
84
|
+
Options: [],
|
|
85
|
+
phaseList: [],
|
|
86
|
+
sidewalkPhaseData: []
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
watch: {
|
|
90
|
+
agentid (val) {
|
|
91
|
+
this.value = ''
|
|
92
|
+
this.Options = []
|
|
93
|
+
// this.onLoad()
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
created () {
|
|
97
|
+
this.onLoad()
|
|
98
|
+
this.PhaseDataModel = new PhaseDataModel()
|
|
99
|
+
// this.CrossDiagramMgr = new CrossDiagramMgr()
|
|
100
|
+
if (!this.placeholder) {
|
|
101
|
+
this.placeholder = this.$t('openatccomponents.phase.stage')
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
methods: {
|
|
105
|
+
formatLabel (label) {
|
|
106
|
+
let res = label
|
|
107
|
+
if (label && label.length > 11) {
|
|
108
|
+
res = label.substring(0, 8) + '...'
|
|
109
|
+
}
|
|
110
|
+
return res
|
|
111
|
+
},
|
|
112
|
+
onFocus () {
|
|
113
|
+
if (!this.Options || this.Options.length === 0) {
|
|
114
|
+
this.onLoad()
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
onLoad () {
|
|
118
|
+
this.initData()
|
|
119
|
+
},
|
|
120
|
+
setOption (list) {
|
|
121
|
+
let color = getTheme() === 'light' ? '#1E1E1E' : '#F1F3F4'
|
|
122
|
+
this.Options = list.map((item, index) => {
|
|
123
|
+
let dirArr = []
|
|
124
|
+
for (let rec of item) {
|
|
125
|
+
const peddirection = (rec.peddirection && this.getPed(rec.peddirection)) || []
|
|
126
|
+
let recd = {
|
|
127
|
+
id: rec.id,
|
|
128
|
+
peddirection: peddirection,
|
|
129
|
+
color: color
|
|
130
|
+
}
|
|
131
|
+
dirArr.push(recd)
|
|
132
|
+
}
|
|
133
|
+
let nameArr = getDirName(dirArr)
|
|
134
|
+
let name = ''
|
|
135
|
+
nameArr = nameArr.map(record => this.$t(record))
|
|
136
|
+
name = nameArr.join(',')
|
|
137
|
+
const _index = index + 1
|
|
138
|
+
name = this.$t('openatccomponents.phase.stage') + _index + ' ' + name
|
|
139
|
+
// console.log(nameArr, 'nameArr')
|
|
140
|
+
const res = {
|
|
141
|
+
label: name,
|
|
142
|
+
item: dirArr,
|
|
143
|
+
value: _index
|
|
144
|
+
}
|
|
145
|
+
return res
|
|
146
|
+
})
|
|
147
|
+
},
|
|
148
|
+
onChange (value) {
|
|
149
|
+
let option = this.Options.filter(item => item.value === value)[0]
|
|
150
|
+
this.$emit('onChange', value, option, this.agentid, this.bizType)
|
|
151
|
+
},
|
|
152
|
+
selectStages (value) {
|
|
153
|
+
this.$emit('selectStages', value)
|
|
154
|
+
},
|
|
155
|
+
async initData () {
|
|
156
|
+
let agentId = this.agentid
|
|
157
|
+
let phaseList = []
|
|
158
|
+
let stageList = []
|
|
159
|
+
await getIntersectionInfo(agentId).then(data => {
|
|
160
|
+
let res = data.data
|
|
161
|
+
if (this.isMock) {
|
|
162
|
+
// mockData
|
|
163
|
+
// let mockData = require('./mock/gb_features.json')
|
|
164
|
+
// console.log('mockData', mockData)
|
|
165
|
+
// res = mockData
|
|
166
|
+
}
|
|
167
|
+
if (!res.success) {
|
|
168
|
+
let parrenterror = getMessageByCode(data.data.code, this.$i18n.locale)
|
|
169
|
+
if (data.data.data) {
|
|
170
|
+
// 子类型错误
|
|
171
|
+
let childErrorCode = data.data.data.errorCode
|
|
172
|
+
if (childErrorCode) {
|
|
173
|
+
let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
|
|
174
|
+
this.$message.error(parrenterror + ',' + childerror)
|
|
175
|
+
}
|
|
176
|
+
} else {
|
|
177
|
+
this.$message.error(parrenterror)
|
|
178
|
+
}
|
|
179
|
+
return
|
|
180
|
+
}
|
|
181
|
+
phaseList = res.data.param.Phase.PhaseConfig.filter(item => item.direction && item.direction.length > 0)
|
|
182
|
+
stageList = res.data.param.Stage.StageConfig.filter(item => item.IncludedPhase && item.IncludedPhase.length > 0)
|
|
183
|
+
this.phaseList = phaseList
|
|
184
|
+
this.$emit('getRcpTscParams', res.data.param)
|
|
185
|
+
this.handleStageData(stageList, phaseList) // 处理阶段(驻留)stage数据
|
|
186
|
+
})
|
|
187
|
+
},
|
|
188
|
+
// handleStageData (data) {
|
|
189
|
+
// if (!data) return
|
|
190
|
+
// let peddirections = this.getPed(data)
|
|
191
|
+
// let stagesTemp = []
|
|
192
|
+
// let tempList = []
|
|
193
|
+
// for (let stg of data) {
|
|
194
|
+
// let directionList = []
|
|
195
|
+
// let currPhase = this.phaseList.filter((item) => {
|
|
196
|
+
// return item.id === stg
|
|
197
|
+
// })[0]
|
|
198
|
+
// if (currPhase !== undefined) {
|
|
199
|
+
// directionList.push(...currPhase.direction)
|
|
200
|
+
// directionList = Array.from(new Set(directionList))
|
|
201
|
+
// }
|
|
202
|
+
// if (directionList.length === 0) {
|
|
203
|
+
// tempList.push({
|
|
204
|
+
// id: '',
|
|
205
|
+
// color: '#454545',
|
|
206
|
+
// peddirection: peddirections
|
|
207
|
+
// })
|
|
208
|
+
// } else {
|
|
209
|
+
// tempList = directionList.map(dir => ({
|
|
210
|
+
// id: dir,
|
|
211
|
+
// color: '#454545',
|
|
212
|
+
// peddirection: peddirections
|
|
213
|
+
// }))
|
|
214
|
+
// }
|
|
215
|
+
// let newTemp = tempList.filter(item => item.id !== '')
|
|
216
|
+
// stagesTemp.push(...newTemp)
|
|
217
|
+
// }
|
|
218
|
+
// return stagesTemp
|
|
219
|
+
// },
|
|
220
|
+
getPed (data) {
|
|
221
|
+
let ped = []
|
|
222
|
+
let peddirections = []
|
|
223
|
+
for (let walk of this.sidewalkPhaseData) {
|
|
224
|
+
for (let ped of data) {
|
|
225
|
+
let objs = {}
|
|
226
|
+
objs.name = walk.name
|
|
227
|
+
objs.id = walk.id
|
|
228
|
+
if (ped === walk.id) {
|
|
229
|
+
peddirections.push(objs)
|
|
230
|
+
peddirections = Array.from(new Set(peddirections))
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
ped.push(...peddirections)
|
|
235
|
+
return ped
|
|
236
|
+
},
|
|
237
|
+
getPedPhasePos (phaseList) {
|
|
238
|
+
// 行人相位信息
|
|
239
|
+
this.sidewalkPhaseData = []
|
|
240
|
+
console.log(phaseList, 'this.this.phaseList')
|
|
241
|
+
phaseList.forEach((ele, i) => {
|
|
242
|
+
if (ele.peddirection) {
|
|
243
|
+
ele.peddirection.forEach((dir, index) => {
|
|
244
|
+
// 行人相位
|
|
245
|
+
if (this.PhaseDataModel.getSidePos(dir)) {
|
|
246
|
+
const spd = {
|
|
247
|
+
// key: this.CrossDiagramMgr.getUniqueKey('pedphase'),
|
|
248
|
+
phaseid: ele.Index, // 相位id,用于对应相位状态
|
|
249
|
+
id: dir,
|
|
250
|
+
name: this.PhaseDataModel.getSidePos(dir).name
|
|
251
|
+
}
|
|
252
|
+
this.sidewalkPhaseData.push(spd)
|
|
253
|
+
}
|
|
254
|
+
})
|
|
255
|
+
}
|
|
256
|
+
})
|
|
257
|
+
return this.sidewalkPhaseData
|
|
258
|
+
},
|
|
259
|
+
handleStageData (_stageList, _phaseList) {
|
|
260
|
+
console.log('handleStageData', _stageList, _phaseList)
|
|
261
|
+
this.stagesList = []
|
|
262
|
+
let stages = _stageList
|
|
263
|
+
for (let stageItem of stages) {
|
|
264
|
+
const stage = stageItem.IncludedPhase
|
|
265
|
+
let tempList = []
|
|
266
|
+
let directionList = []
|
|
267
|
+
let pedestrianList = []
|
|
268
|
+
for (let stg of stage) {
|
|
269
|
+
let currPhase = _phaseList.filter((item) => {
|
|
270
|
+
return item.Index === stg
|
|
271
|
+
})[0]
|
|
272
|
+
if (!currPhase || !currPhase.direction) {
|
|
273
|
+
continue
|
|
274
|
+
} else {
|
|
275
|
+
directionList = [...(currPhase.direction || []), ...directionList]
|
|
276
|
+
pedestrianList = [...(currPhase.peddirection || []), ...pedestrianList]
|
|
277
|
+
}
|
|
278
|
+
// directionList = [...currPhase.direction, ...directionList]
|
|
279
|
+
}
|
|
280
|
+
directionList = [...new Set(directionList)]
|
|
281
|
+
pedestrianList = [...new Set(pedestrianList)]
|
|
282
|
+
tempList = directionList.map((dir, _index) => ({
|
|
283
|
+
id: dir,
|
|
284
|
+
color: '#606266',
|
|
285
|
+
peddirection: pedestrianList || []
|
|
286
|
+
}))
|
|
287
|
+
this.stagesList.push(tempList)
|
|
288
|
+
}
|
|
289
|
+
this.list = this.stagesList
|
|
290
|
+
this.getPedPhasePos(_phaseList)
|
|
291
|
+
this.setOption(this.list)
|
|
292
|
+
if (this.defaultValue !== -1) {
|
|
293
|
+
this.init(this.defaultValue)
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
init (val) {
|
|
297
|
+
let target = val
|
|
298
|
+
if (this.multiple) {
|
|
299
|
+
target = [val]
|
|
300
|
+
}
|
|
301
|
+
this.value = target
|
|
302
|
+
},
|
|
303
|
+
getNameById (id) {
|
|
304
|
+
let res = ''
|
|
305
|
+
for (const item of this.Options) {
|
|
306
|
+
if (id === item.agentid) {
|
|
307
|
+
res = item.name
|
|
308
|
+
break
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
return res
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
</script>
|
|
316
|
+
<style scoped>
|
|
317
|
+
.single-model {
|
|
318
|
+
width: 100%;
|
|
319
|
+
display: flex;
|
|
320
|
+
justify-content: space-between;
|
|
321
|
+
align-items: center;
|
|
322
|
+
}
|
|
323
|
+
</style>
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"agentid": "15005",
|
|
4
|
+
"thirdpartyid": "0",
|
|
5
|
+
"operation": "get-response",
|
|
6
|
+
"infotype": "rcp/message",
|
|
7
|
+
"data": {
|
|
8
|
+
"Phase": {
|
|
9
|
+
"PhaseConfig": [
|
|
10
|
+
{
|
|
11
|
+
"Index": 1,
|
|
12
|
+
"ChannelIncluded": [
|
|
13
|
+
1
|
|
14
|
+
],
|
|
15
|
+
"direction": [1],
|
|
16
|
+
"peddirection": [1,2]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"Index": 2,
|
|
20
|
+
"ChannelIncluded": [
|
|
21
|
+
2
|
|
22
|
+
],
|
|
23
|
+
"direction": [2],
|
|
24
|
+
"peddirection": [1,2]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"Index": 3,
|
|
28
|
+
"ChannelIncluded": [
|
|
29
|
+
3
|
|
30
|
+
],
|
|
31
|
+
"direction": [1],
|
|
32
|
+
"peddirection": [1,2]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"Index": 4,
|
|
36
|
+
"ChannelIncluded": [
|
|
37
|
+
4
|
|
38
|
+
],
|
|
39
|
+
"direction": [3],
|
|
40
|
+
"peddirection": [1,2]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"Index": 5,
|
|
44
|
+
"ChannelIncluded": [
|
|
45
|
+
5
|
|
46
|
+
],
|
|
47
|
+
"direction": [5],
|
|
48
|
+
"peddirection": [1,2]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"Index": 6,
|
|
52
|
+
"ChannelIncluded": [
|
|
53
|
+
6
|
|
54
|
+
],
|
|
55
|
+
"direction": [6],
|
|
56
|
+
"peddirection": [1,2]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"Index": 7,
|
|
60
|
+
"ChannelIncluded": [
|
|
61
|
+
7
|
|
62
|
+
],
|
|
63
|
+
"direction": [7],
|
|
64
|
+
"peddirection": [1,2]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"Index": 8,
|
|
68
|
+
"ChannelIncluded": [],
|
|
69
|
+
"PhaseRequest": []
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"Index": 9,
|
|
73
|
+
"ChannelIncluded": [],
|
|
74
|
+
"direction": [9],
|
|
75
|
+
"peddirection": [1,2]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"Index": 10,
|
|
79
|
+
"ChannelIncluded": [],
|
|
80
|
+
"direction": [13],
|
|
81
|
+
"peddirection": [8]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"Index": 11,
|
|
85
|
+
"ChannelIncluded": [],
|
|
86
|
+
"direction": [11],
|
|
87
|
+
"peddirection": [1,2]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"Index": 12,
|
|
91
|
+
"ChannelIncluded": [],
|
|
92
|
+
"direction": [12],
|
|
93
|
+
"peddirection": [7]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"Index": 13,
|
|
97
|
+
"ChannelIncluded": [],
|
|
98
|
+
"direction": [13],
|
|
99
|
+
"peddirection": [1,2]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"Index": 14,
|
|
103
|
+
"ChannelIncluded": [],
|
|
104
|
+
"direction": [14],
|
|
105
|
+
"peddirection": [1,2]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"Index": 15,
|
|
109
|
+
"ChannelIncluded": [],
|
|
110
|
+
"direction": [16],
|
|
111
|
+
"peddirection": [1,2]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"Index": 16,
|
|
115
|
+
"ChannelIncluded": [],
|
|
116
|
+
"direction": [16],
|
|
117
|
+
"peddirection": [1,2]
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"Stage": {
|
|
122
|
+
"StageConfig": [
|
|
123
|
+
{
|
|
124
|
+
"Index": 1,
|
|
125
|
+
"IncludedPhase": [
|
|
126
|
+
4,
|
|
127
|
+
9
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"Index": 2,
|
|
132
|
+
"IncludedPhase": [
|
|
133
|
+
1,
|
|
134
|
+
2
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"Index": 3,
|
|
139
|
+
"IncludedPhase": [
|
|
140
|
+
4,
|
|
141
|
+
9
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"Index": 4,
|
|
146
|
+
"IncludedPhase": [
|
|
147
|
+
4
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"Index": 5,
|
|
152
|
+
"IncludedPhase": [
|
|
153
|
+
1,
|
|
154
|
+
3
|
|
155
|
+
]}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"StagePattern": {
|
|
159
|
+
"StagePatternConfig": [
|
|
160
|
+
{
|
|
161
|
+
"Index": 1,
|
|
162
|
+
"IntersectionIndex": 133,
|
|
163
|
+
"Cycle": 120,
|
|
164
|
+
"CoordinationStageIndex": 0,
|
|
165
|
+
"Offset": 0,
|
|
166
|
+
"StageChain": [
|
|
167
|
+
1,
|
|
168
|
+
2,
|
|
169
|
+
3,
|
|
170
|
+
4,
|
|
171
|
+
5
|
|
172
|
+
],
|
|
173
|
+
"StageTimeChain": [
|
|
174
|
+
20,
|
|
175
|
+
20,
|
|
176
|
+
20,
|
|
177
|
+
30,
|
|
178
|
+
30
|
|
179
|
+
],
|
|
180
|
+
"StageTypeChain": [
|
|
181
|
+
[
|
|
182
|
+
1,
|
|
183
|
+
"Type_Fix"
|
|
184
|
+
],
|
|
185
|
+
[
|
|
186
|
+
2,
|
|
187
|
+
"Type_Fix"
|
|
188
|
+
],
|
|
189
|
+
[
|
|
190
|
+
3,
|
|
191
|
+
"Type_Fix"
|
|
192
|
+
],
|
|
193
|
+
[
|
|
194
|
+
4,
|
|
195
|
+
"Type_Fix"
|
|
196
|
+
],
|
|
197
|
+
[
|
|
198
|
+
5,
|
|
199
|
+
"Type_Fix"
|
|
200
|
+
]
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"FrameID": 25
|
|
207
|
+
},
|
|
208
|
+
"success": true,
|
|
209
|
+
"code": "0",
|
|
210
|
+
"message": "Success",
|
|
211
|
+
"timestamp": 1759049616980
|
|
212
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020 kedacom
|
|
3
|
+
* OpenATC is licensed under Mulan PSL v2.
|
|
4
|
+
* You can use this software according to the terms and conditions of the Mulan PSL v2.
|
|
5
|
+
* You may obtain a copy of Mulan PSL v2 at:
|
|
6
|
+
* http://license.coscl.org.cn/MulanPSL2
|
|
7
|
+
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
|
8
|
+
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
|
9
|
+
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
10
|
+
* See the Mulan PSL v2 for more details.
|
|
11
|
+
**/
|
|
12
|
+
// import Edgebase from '@openatc/edgebase-front'
|
|
13
|
+
let images = [{
|
|
14
|
+
id: 1,
|
|
15
|
+
// name: 'East-Straight',
|
|
16
|
+
name: 'openatccomponents.phase.es',
|
|
17
|
+
// img: require('./images/East-Straight.svg'),
|
|
18
|
+
class: 'iconfont icon-icon-test2'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 2,
|
|
22
|
+
// name: 'East-Left',
|
|
23
|
+
name: 'openatccomponents.phase.el',
|
|
24
|
+
// img: require('./images/East-Left.svg'),
|
|
25
|
+
class: 'iconfont icon-icon-test4'
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 3,
|
|
29
|
+
// name: 'East-Right',
|
|
30
|
+
name: 'openatccomponents.phase.er',
|
|
31
|
+
// img: require('./images/East-Right.svg'),
|
|
32
|
+
class: 'iconfont icon-icon-test3'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 4,
|
|
36
|
+
// name: 'East-Back',
|
|
37
|
+
name: 'openatccomponents.phase.eb',
|
|
38
|
+
// img: require('./images/East-Back.svg'),
|
|
39
|
+
class: 'iconfont icon-icon-test6'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 5,
|
|
43
|
+
// name: 'West-Straight',
|
|
44
|
+
name: 'openatccomponents.phase.ws',
|
|
45
|
+
// img: require('./images/West-Straight.svg'),
|
|
46
|
+
class: 'iconfont icon-icon-test5'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 6,
|
|
50
|
+
// name: 'West-Left',
|
|
51
|
+
name: 'openatccomponents.phase.wl',
|
|
52
|
+
// img: require('./images/West-Left.svg'),
|
|
53
|
+
class: 'iconfont icon-icon-test7'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 7,
|
|
57
|
+
// name: 'West-Right',
|
|
58
|
+
name: 'openatccomponents.phase.wr',
|
|
59
|
+
// img: require('./images/West-Right.svg'),
|
|
60
|
+
class: 'iconfont icon-icon-test9'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 8,
|
|
64
|
+
// name: 'West-Back',
|
|
65
|
+
name: 'openatccomponents.phase.wb',
|
|
66
|
+
// img: require('./images/West-Back.svg'),
|
|
67
|
+
class: 'iconfont icon-icon-test8'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: 9,
|
|
71
|
+
// name: 'North-Straight',
|
|
72
|
+
name: 'openatccomponents.phase.ns',
|
|
73
|
+
// img: require('./images/North-Straight.svg'),
|
|
74
|
+
class: 'iconfont icon-icon-test10'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 10,
|
|
78
|
+
// name: 'North-Left',
|
|
79
|
+
name: 'openatccomponents.phase.nl',
|
|
80
|
+
// img: require('./images/North-Left.svg'),
|
|
81
|
+
class: 'iconfont icon-icon-test12'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: 11,
|
|
85
|
+
// name: 'North-Right',
|
|
86
|
+
name: 'openatccomponents.phase.nr',
|
|
87
|
+
// img: require('./images/North-Right.svg'),
|
|
88
|
+
class: 'iconfont icon-icon-test13'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: 12,
|
|
92
|
+
// name: 'North-Back',
|
|
93
|
+
name: 'openatccomponents.phase.nb',
|
|
94
|
+
// img: require('./images/North-Back.svg'),
|
|
95
|
+
class: 'iconfont icon-icon-test11'
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: 13,
|
|
99
|
+
// name: 'South-Straight',
|
|
100
|
+
name: 'openatccomponents.phase.ss',
|
|
101
|
+
// img: require('./images/South-Straight.svg'),
|
|
102
|
+
class: 'iconfont icon-icon-test15'
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: 14,
|
|
106
|
+
// name: 'South-Left',
|
|
107
|
+
name: 'openatccomponents.phase.sl',
|
|
108
|
+
// img: require('./images/South-Left.svg'),
|
|
109
|
+
class: 'iconfont icon-icon-test14'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 15,
|
|
113
|
+
// name: 'South-Right',
|
|
114
|
+
name: 'openatccomponents.phase.sr',
|
|
115
|
+
// img: require('./images/South-Right.svg'),
|
|
116
|
+
class: 'iconfont icon-icon-test'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: 16,
|
|
120
|
+
// name: 'South-Back',
|
|
121
|
+
name: 'openatccomponents.phase.sb',
|
|
122
|
+
// img: require('./images/South-Back.svg'),
|
|
123
|
+
class: 'iconfont icon-icon-test1'
|
|
124
|
+
}]
|
|
125
|
+
|
|
126
|
+
const getDirName = (arr) => {
|
|
127
|
+
let res = ''
|
|
128
|
+
let nameArr = []
|
|
129
|
+
for (let item of arr) {
|
|
130
|
+
let id = item.id
|
|
131
|
+
for (let img of images) {
|
|
132
|
+
if (id === img.id) {
|
|
133
|
+
let name = img.name
|
|
134
|
+
nameArr.push(name)
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
res = nameArr
|
|
139
|
+
return res
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export { getDirName }
|