openatc-components 0.1.24 → 0.1.25
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 +29 -29
- 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 +114 -114
- package/build/webpack.dev.conf.js +95 -95
- package/build/webpack.prod.conf.js +149 -149
- package/config/dev.env.js +8 -8
- package/config/index.js +91 -91
- package/config/prod.env.js +5 -5
- package/config/test.env.js +7 -7
- package/index.html +12 -12
- package/package/kisscomps/components/BoardCard/BoardCard.vue +94 -94
- package/package/kisscomps/components/BoardCard/index.js +2 -2
- package/package/kisscomps/components/Channelization/Channelization.vue +544 -544
- package/package/kisscomps/components/Channelization/index.js +2 -2
- package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +349 -349
- package/package/kisscomps/components/ChannelizationFlowStatistic/index.js +2 -2
- package/package/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +486 -486
- package/package/kisscomps/components/ChannelizationWithInterface/index.js +2 -2
- package/package/kisscomps/components/CommonKanban/CommonKanban.vue +118 -118
- package/package/kisscomps/components/CommonKanban/index.js +2 -2
- package/package/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +165 -165
- 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 +455 -455
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +219 -219
- package/package/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +74 -74
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +1005 -1002
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +110 -110
- package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +699 -699
- package/package/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +157 -157
- package/package/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +157 -157
- 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/index.js +2 -2
- package/package/kisscomps/components/DrawChannelization/phaseDataMgr.js +278 -278
- package/package/kisscomps/components/ExpendConfig/ExpendConfig.vue +114 -114
- package/package/kisscomps/components/ExpendConfig/index.js +2 -2
- package/package/kisscomps/components/FaultDetailModal/FaultDetailModal.vue +170 -170
- package/package/kisscomps/components/FaultDetailModal/index.js +2 -2
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CrossRoadsSvg.vue +497 -497
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +46 -46
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +300 -300
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +288 -288
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +391 -391
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +336 -336
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +345 -345
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +389 -389
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1179 -1179
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeEastRoadsSvg.vue +402 -402
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeNorthRoadsSvg.vue +361 -361
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeSouthRoadsSvg.vue +368 -368
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeWestRoadsSvg.vue +475 -475
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +494 -494
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +401 -401
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +360 -360
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +367 -367
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +476 -476
- 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/crossDiagram.vue +920 -920
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +112 -112
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +112 -112
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +111 -111
- 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.json +99 -99
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +99 -99
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/sidePos.json +99 -99
- package/package/kisscomps/components/IntersectionMap/crossDirection/utils.js +78 -78
- package/package/kisscomps/components/IntersectionMap/index.js +2 -2
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +159 -159
- package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +521 -521
- package/package/kisscomps/components/IntersectionWithInterface/index.js +2 -2
- package/package/kisscomps/components/KanBan/index.js +2 -2
- package/package/kisscomps/components/KanBan/kanban.vue +219 -219
- package/package/kisscomps/components/MessageBox/index.vue +96 -96
- package/package/kisscomps/components/OverLap/OverLap.vue +207 -207
- package/package/kisscomps/components/OverLap/index.js +2 -2
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +962 -962
- package/package/kisscomps/components/PatternStatus/index.js +2 -2
- package/package/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
- package/package/kisscomps/components/PatternWalkSvg/index.js +2 -2
- 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/SchemeConfig/SchemeConfig.vue +779 -779
- package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +195 -195
- package/package/kisscomps/components/SchemeConfig/index.js +2 -2
- package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +198 -198
- package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +226 -226
- package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +201 -201
- package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
- package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +275 -275
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +574 -574
- package/package/kisscomps/components/StageBord/StageBord.vue +242 -242
- package/package/kisscomps/components/StageBord/index.js +2 -2
- package/package/kisscomps/components/StageStatus/StageStatus.vue +310 -310
- package/package/kisscomps/components/StageStatus/index.js +2 -2
- package/package/kisscomps/components/Stages/index.vue +139 -175
- package/package/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
- package/package/kisscomps/components/SvgIcon/index.js +2 -2
- package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +522 -522
- package/package/kisscomps/components/XRDDirSelector/index.js +2 -2
- package/package/kisscomps/components/overView/index.vue +687 -687
- package/package/kisscomps/components/patternList/index.js +2 -2
- package/package/kisscomps/components/patternList/patternList.vue +567 -567
- package/package/kisscomps/index.js +109 -109
- package/package/kissui.min.js +1 -1
- package/package.json +126 -126
- package/src/App.vue +24 -24
- package/src/EdgeMgr/EdgeModelBase.js +16 -16
- package/src/EdgeMgr/controller/crossDiagramMgr.js +120 -120
- package/src/api/authapi.js +31 -31
- package/src/api/config.js +21 -21
- package/src/api/control.js +76 -76
- package/src/api/cross.js +33 -33
- 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 +154 -154
- package/src/api/passwdAssest.js +101 -101
- package/src/api/template.js +27 -27
- package/src/i18n/index.js +26 -26
- package/src/i18n/language/en.js +1228 -1228
- package/src/i18n/language/index.js +25 -25
- package/src/i18n/language/zh.js +1227 -1227
- package/src/icons/demo.css +539 -539
- package/src/icons/iconfont.css +835 -835
- package/src/icons/iconfont.json +1444 -1444
- package/src/icons/index.js +20 -20
- 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/quanhong.svg +86 -86
- package/src/icons/svg/shanghe.svg +11 -11
- package/src/icons/svg/shoudong.svg +103 -103
- 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/BoardCard/BoardCard.vue +94 -94
- package/src/kisscomps/components/BoardCard/index.js +2 -2
- package/src/kisscomps/components/Channelization/Channelization.vue +544 -544
- package/src/kisscomps/components/Channelization/index.js +2 -2
- package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +349 -349
- package/src/kisscomps/components/ChannelizationFlowStatistic/index.js +2 -2
- package/src/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +486 -486
- package/src/kisscomps/components/ChannelizationWithInterface/index.js +2 -2
- package/src/kisscomps/components/CommonKanban/CommonKanban.vue +118 -118
- package/src/kisscomps/components/CommonKanban/index.js +2 -2
- package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +165 -165
- 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 +455 -455
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +219 -219
- package/src/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +74 -74
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +1005 -1002
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +110 -110
- package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +699 -699
- package/src/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +157 -157
- package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +157 -157
- 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/index.js +2 -2
- package/src/kisscomps/components/DrawChannelization/phaseDataMgr.js +278 -278
- package/src/kisscomps/components/ExpendConfig/ExpendConfig.vue +114 -114
- package/src/kisscomps/components/ExpendConfig/index.js +2 -2
- package/src/kisscomps/components/FaultDetailModal/FaultDetailModal.vue +170 -170
- package/src/kisscomps/components/FaultDetailModal/index.js +2 -2
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CrossRoadsSvg.vue +497 -497
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +46 -46
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +300 -300
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +288 -288
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +391 -391
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +336 -336
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +345 -345
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +389 -389
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1179 -1179
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeEastRoadsSvg.vue +402 -402
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeNorthRoadsSvg.vue +361 -361
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeSouthRoadsSvg.vue +368 -368
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeWestRoadsSvg.vue +475 -475
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +494 -494
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +401 -401
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +360 -360
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +367 -367
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +476 -476
- 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/crossDiagram.vue +920 -920
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +112 -112
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +112 -112
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +111 -111
- 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.json +99 -99
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +99 -99
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/sidePos.json +99 -99
- package/src/kisscomps/components/IntersectionMap/crossDirection/utils.js +78 -78
- package/src/kisscomps/components/IntersectionMap/index.js +2 -2
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +159 -159
- package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +521 -521
- package/src/kisscomps/components/IntersectionWithInterface/index.js +2 -2
- package/src/kisscomps/components/KanBan/index.js +2 -2
- package/src/kisscomps/components/KanBan/kanban.vue +219 -219
- package/src/kisscomps/components/MessageBox/index.vue +96 -96
- package/src/kisscomps/components/OverLap/OverLap.vue +207 -207
- package/src/kisscomps/components/OverLap/index.js +2 -2
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +962 -962
- package/src/kisscomps/components/PatternStatus/index.js +2 -2
- package/src/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
- package/src/kisscomps/components/PatternWalkSvg/index.js +2 -2
- 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/SchemeConfig/SchemeConfig.vue +779 -779
- package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +195 -195
- package/src/kisscomps/components/SchemeConfig/index.js +2 -2
- package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +198 -198
- package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +226 -226
- package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +201 -201
- package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
- package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +275 -275
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +574 -574
- package/src/kisscomps/components/StageBord/StageBord.vue +242 -242
- package/src/kisscomps/components/StageBord/index.js +2 -2
- package/src/kisscomps/components/StageStatus/StageStatus.vue +310 -310
- package/src/kisscomps/components/StageStatus/index.js +2 -2
- package/src/kisscomps/components/Stages/index.vue +139 -175
- package/src/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
- package/src/kisscomps/components/SvgIcon/index.js +2 -2
- package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +522 -522
- package/src/kisscomps/components/XRDDirSelector/index.js +2 -2
- package/src/kisscomps/components/overView/index.vue +687 -687
- package/src/kisscomps/components/patternList/index.js +2 -2
- package/src/kisscomps/components/patternList/patternList.vue +567 -567
- package/src/kisscomps/index.js +109 -109
- 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/main.js +50 -50
- package/src/router/index.js +42 -42
- package/src/store/getters.js +16 -16
- package/src/store/index.js +26 -26
- package/src/store/modules/globalParam.js +67 -67
- package/src/utils/ControlFormat.js +68 -68
- package/src/utils/RingDataModel.js +191 -191
- package/src/utils/auth.js +178 -178
- package/src/utils/dateFormat.js +41 -41
- package/src/utils/errorcode.js +224 -224
- package/src/utils/fault.js +195 -195
- package/src/utils/faultcode.js +209 -209
- package/src/utils/index.js +69 -69
- package/src/utils/pedphasedesc.js +119 -119
- package/src/utils/phasedesc.js +124 -124
- package/src/utils/responseMessage.js +21 -21
- package/src/utils/validate.js +43 -43
- package/src/views/customchannelization.vue +49 -49
- package/src/views/home.1.vue +479 -479
- package/src/views/home.vue +78 -78
- package/src/views/intersection.vue +309 -309
- package/src/views/overView.vue +41 -41
- package/src/views/schemeconfig.vue +165 -165
- package/static/apiconfig.json +351 -351
- package/static/styles/channelizatioon.scss +414 -414
- package/static/styles/common.scss +20 -20
- package/static/styles/commonkanban.scss +87 -87
- package/static/styles/dark/index.scss +2 -2
- package/static/styles/dark/theme/element-dark.scss +42 -42
- package/static/styles/index.scss +84 -84
- package/static/styles/intersection.scss +170 -170
- package/static/styles/light/index.scss +2 -2
- package/static/styles/light/theme/element-light.scss +42 -42
- package/static/styles/overview.scss +371 -371
- package/static/styles/schemeconfig.scss +457 -457
- package/static/styles/stages.scss +64 -64
- 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
- package/pnpm-lock.yaml +0 -12343
|
@@ -1,67 +1,67 @@
|
|
|
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
|
-
const tscParam = {
|
|
13
|
-
phaseList: [],
|
|
14
|
-
patternList: [],
|
|
15
|
-
planList: [],
|
|
16
|
-
dateList: [],
|
|
17
|
-
overlaplList: [],
|
|
18
|
-
channelList: [],
|
|
19
|
-
detectorList: [],
|
|
20
|
-
pedestrainDetectorList: [],
|
|
21
|
-
channellock: [],
|
|
22
|
-
// customInfo: {
|
|
23
|
-
// areaid: Number,
|
|
24
|
-
// intersectionid: Number,
|
|
25
|
-
// siteid: '',
|
|
26
|
-
// selflearning: 0,
|
|
27
|
-
// fixintersectioninfo: '',
|
|
28
|
-
// commuport: 0,
|
|
29
|
-
// commutype: '',
|
|
30
|
-
// steptype: ''
|
|
31
|
-
// },
|
|
32
|
-
manualpanel: {
|
|
33
|
-
mingreen: 15
|
|
34
|
-
},
|
|
35
|
-
singleoptim: [
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
const Global = {
|
|
39
|
-
state: {
|
|
40
|
-
tscParam: JSON.parse(JSON.stringify(tscParam)),
|
|
41
|
-
associatedPhaseList: [], // 关联相位列表
|
|
42
|
-
PhaseDataMgr: {} // 关联相位数据处理模型
|
|
43
|
-
},
|
|
44
|
-
mutations: {
|
|
45
|
-
SET_TSCPARAM: (state, tscParam) => {
|
|
46
|
-
state.tscParam = JSON.parse(JSON.stringify(tscParam))
|
|
47
|
-
},
|
|
48
|
-
SET_ASSOCIATED_PHASE_LIST: (state, Associatedphaselist) => {
|
|
49
|
-
state.associatedPhaseList = JSON.parse(JSON.stringify(Associatedphaselist))
|
|
50
|
-
},
|
|
51
|
-
INIT_PHASE_DATA_MGR: (state, PhaseDataMgrClass) => {
|
|
52
|
-
state.PhaseDataMgr = PhaseDataMgrClass
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
actions: {
|
|
56
|
-
SetTscParam ({ commit }, tscParam) {
|
|
57
|
-
commit('SET_TSCPARAM', tscParam)
|
|
58
|
-
},
|
|
59
|
-
SetAssociatedPhaseList ({ commit }, Associatedphaselist) {
|
|
60
|
-
commit('SET_ASSOCIATED_PHASE_LIST', Associatedphaselist)
|
|
61
|
-
},
|
|
62
|
-
InitPhaseDataMgr ({ commit }, PhaseDataMgrClass) {
|
|
63
|
-
commit('INIT_PHASE_DATA_MGR', PhaseDataMgrClass)
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
export default Global
|
|
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
|
+
const tscParam = {
|
|
13
|
+
phaseList: [],
|
|
14
|
+
patternList: [],
|
|
15
|
+
planList: [],
|
|
16
|
+
dateList: [],
|
|
17
|
+
overlaplList: [],
|
|
18
|
+
channelList: [],
|
|
19
|
+
detectorList: [],
|
|
20
|
+
pedestrainDetectorList: [],
|
|
21
|
+
channellock: [],
|
|
22
|
+
// customInfo: {
|
|
23
|
+
// areaid: Number,
|
|
24
|
+
// intersectionid: Number,
|
|
25
|
+
// siteid: '',
|
|
26
|
+
// selflearning: 0,
|
|
27
|
+
// fixintersectioninfo: '',
|
|
28
|
+
// commuport: 0,
|
|
29
|
+
// commutype: '',
|
|
30
|
+
// steptype: ''
|
|
31
|
+
// },
|
|
32
|
+
manualpanel: {
|
|
33
|
+
mingreen: 15
|
|
34
|
+
},
|
|
35
|
+
singleoptim: [
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
const Global = {
|
|
39
|
+
state: {
|
|
40
|
+
tscParam: JSON.parse(JSON.stringify(tscParam)),
|
|
41
|
+
associatedPhaseList: [], // 关联相位列表
|
|
42
|
+
PhaseDataMgr: {} // 关联相位数据处理模型
|
|
43
|
+
},
|
|
44
|
+
mutations: {
|
|
45
|
+
SET_TSCPARAM: (state, tscParam) => {
|
|
46
|
+
state.tscParam = JSON.parse(JSON.stringify(tscParam))
|
|
47
|
+
},
|
|
48
|
+
SET_ASSOCIATED_PHASE_LIST: (state, Associatedphaselist) => {
|
|
49
|
+
state.associatedPhaseList = JSON.parse(JSON.stringify(Associatedphaselist))
|
|
50
|
+
},
|
|
51
|
+
INIT_PHASE_DATA_MGR: (state, PhaseDataMgrClass) => {
|
|
52
|
+
state.PhaseDataMgr = PhaseDataMgrClass
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
actions: {
|
|
56
|
+
SetTscParam ({ commit }, tscParam) {
|
|
57
|
+
commit('SET_TSCPARAM', tscParam)
|
|
58
|
+
},
|
|
59
|
+
SetAssociatedPhaseList ({ commit }, Associatedphaselist) {
|
|
60
|
+
commit('SET_ASSOCIATED_PHASE_LIST', Associatedphaselist)
|
|
61
|
+
},
|
|
62
|
+
InitPhaseDataMgr ({ commit }, PhaseDataMgrClass) {
|
|
63
|
+
commit('INIT_PHASE_DATA_MGR', PhaseDataMgrClass)
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export default Global
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020 kedacom
|
|
3
|
-
* OpenATC is licensed under Mulan PSL v2.
|
|
4
|
-
* You can use i18n 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 i18n from '../i18n/index.js'
|
|
13
|
-
export default class ControlFormat {
|
|
14
|
-
constructor (crossStatusData, phaseList) {
|
|
15
|
-
this.ParamsMode = new Map([[0, '自主控制'], [1, '本地手动'], [2, '平台控制'], [3, '配置软件控制'], [4, '遥控器控制'], [5, '黄闪器控制'], [6, '降级控制'], [7, '脚本控制'], [8, '算法控制']])
|
|
16
|
-
this.ParamsModeEn = new Map([[0, 'Autonomous Control'], [1, 'Local Manual'], [2, 'Platform Control'], [3, 'Configuration Software Control'], [4, 'Remote Control'], [5, 'Yellow Flasher Control'], [6, 'Degradation Control'], [7, 'Script Control'], [8, 'Algorithm Control']])
|
|
17
|
-
this.ParamsControl = new Map([[0, '多时段'], [1, '黄闪'], [2, '全红'], [3, '关灯'], [4, '步进'], [5, '定周期控制'], [6, '单点感应控制'], [7, '协调感应控制'], [8, '方案选择控制'], [9, '自适应控制'], [10, '无电缆控制'], [11, '有电缆控制'], [12, '行人过街控制'], [13, '方案恢复过渡'], [14, '相位驻留'], [15, '通道检测'], [16, '方向锁定'], [17, '韦伯斯特单点控制'], [18, '预留18'], [19, '感应式行人过街'], [20, '方案干预'], [100, '方案干预'], [21, '预留21'], [22, '相位锁定'], [23, '相位放行控制'], [24, '紧急控制'], [99, '设备维护']])
|
|
18
|
-
this.ParamsControlEn = new Map([[0, 'Multi Period'], [1, 'Yellow Flash Control'], [2, 'Red Control'], [3, 'Dark Control'], [4, 'Step'], [5, 'Fixed_Cycle Control'], [6, 'Free Control'], [7, 'Coordinated Induction Control'], [8, 'Pattern Selection Control'], [9, 'Adaptive Control'], [10, 'Wireless Control'], [11, 'Cable Control'], [12, 'Pedestrian Crossing Control'], [13, 'Pattern recovery'], [14, 'Phase dwell'], [15, 'Channel Detection'], [16, 'Direction lock'], [17, 'Webster Single Point Coordination'], [18, 'Reserving18'], [19, 'Inductive Pedestrian Crossing Control'], [20, 'Program Intervention'], [100, 'Program Intervention'], [21, 'Reserving21'], [22, 'Priority Control'], [23, 'Close Phase'], [24, 'Emergency Control'], [99, 'Device Mantenance']])
|
|
19
|
-
this.phaseType = new Map([[1, '红'], [2, '黄'], [3, '绿']]) // phaseType表示红,黄,绿
|
|
20
|
-
this.phaseTypeEn = new Map([[1, 'Red'], [2, 'Yellow'], [3, 'Green']]) // phaseType表示红,黄,绿
|
|
21
|
-
}
|
|
22
|
-
handleGetData (data) {
|
|
23
|
-
let that = this
|
|
24
|
-
if (data.name === '') {
|
|
25
|
-
if (i18n.locale === 'en') {
|
|
26
|
-
data.name = 'Pattern' + data.patternid
|
|
27
|
-
} else if (i18n.locale === 'zh') {
|
|
28
|
-
data.name = '方案' + data.patternid
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
Object.keys(data).forEach(function (key) {
|
|
32
|
-
if (i18n.locale === 'en') {
|
|
33
|
-
if (key === 'mode') {
|
|
34
|
-
if (that.ParamsModeEn.get(data[key]) !== undefined) {
|
|
35
|
-
data[key] = that.ParamsModeEn.get(data[key])
|
|
36
|
-
} else {
|
|
37
|
-
data[key] = that.ParamsModeEn.get(0)
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (key === 'control') {
|
|
41
|
-
data[key] = that.ParamsControlEn.get(data[key])
|
|
42
|
-
}
|
|
43
|
-
if (key === 'phase') {
|
|
44
|
-
for (let val of data[key]) {
|
|
45
|
-
val.type = that.phaseTypeEn.get(val.type)
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
} else if (i18n.locale === 'zh') {
|
|
49
|
-
if (key === 'mode') {
|
|
50
|
-
if (that.ParamsMode.get(data[key]) !== undefined) {
|
|
51
|
-
data[key] = that.ParamsMode.get(data[key])
|
|
52
|
-
} else {
|
|
53
|
-
data[key] = that.ParamsMode.get(0)
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
if (key === 'control') {
|
|
57
|
-
data[key] = that.ParamsControl.get(data[key])
|
|
58
|
-
}
|
|
59
|
-
if (key === 'phase') {
|
|
60
|
-
for (let val of data[key]) {
|
|
61
|
-
val.type = that.phaseType.get(val.type)
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
return data
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020 kedacom
|
|
3
|
+
* OpenATC is licensed under Mulan PSL v2.
|
|
4
|
+
* You can use i18n 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 i18n from '../i18n/index.js'
|
|
13
|
+
export default class ControlFormat {
|
|
14
|
+
constructor (crossStatusData, phaseList) {
|
|
15
|
+
this.ParamsMode = new Map([[0, '自主控制'], [1, '本地手动'], [2, '平台控制'], [3, '配置软件控制'], [4, '遥控器控制'], [5, '黄闪器控制'], [6, '降级控制'], [7, '脚本控制'], [8, '算法控制']])
|
|
16
|
+
this.ParamsModeEn = new Map([[0, 'Autonomous Control'], [1, 'Local Manual'], [2, 'Platform Control'], [3, 'Configuration Software Control'], [4, 'Remote Control'], [5, 'Yellow Flasher Control'], [6, 'Degradation Control'], [7, 'Script Control'], [8, 'Algorithm Control']])
|
|
17
|
+
this.ParamsControl = new Map([[0, '多时段'], [1, '黄闪'], [2, '全红'], [3, '关灯'], [4, '步进'], [5, '定周期控制'], [6, '单点感应控制'], [7, '协调感应控制'], [8, '方案选择控制'], [9, '自适应控制'], [10, '无电缆控制'], [11, '有电缆控制'], [12, '行人过街控制'], [13, '方案恢复过渡'], [14, '相位驻留'], [15, '通道检测'], [16, '方向锁定'], [17, '韦伯斯特单点控制'], [18, '预留18'], [19, '感应式行人过街'], [20, '方案干预'], [100, '方案干预'], [21, '预留21'], [22, '相位锁定'], [23, '相位放行控制'], [24, '紧急控制'], [99, '设备维护']])
|
|
18
|
+
this.ParamsControlEn = new Map([[0, 'Multi Period'], [1, 'Yellow Flash Control'], [2, 'Red Control'], [3, 'Dark Control'], [4, 'Step'], [5, 'Fixed_Cycle Control'], [6, 'Free Control'], [7, 'Coordinated Induction Control'], [8, 'Pattern Selection Control'], [9, 'Adaptive Control'], [10, 'Wireless Control'], [11, 'Cable Control'], [12, 'Pedestrian Crossing Control'], [13, 'Pattern recovery'], [14, 'Phase dwell'], [15, 'Channel Detection'], [16, 'Direction lock'], [17, 'Webster Single Point Coordination'], [18, 'Reserving18'], [19, 'Inductive Pedestrian Crossing Control'], [20, 'Program Intervention'], [100, 'Program Intervention'], [21, 'Reserving21'], [22, 'Priority Control'], [23, 'Close Phase'], [24, 'Emergency Control'], [99, 'Device Mantenance']])
|
|
19
|
+
this.phaseType = new Map([[1, '红'], [2, '黄'], [3, '绿']]) // phaseType表示红,黄,绿
|
|
20
|
+
this.phaseTypeEn = new Map([[1, 'Red'], [2, 'Yellow'], [3, 'Green']]) // phaseType表示红,黄,绿
|
|
21
|
+
}
|
|
22
|
+
handleGetData (data) {
|
|
23
|
+
let that = this
|
|
24
|
+
if (data.name === '') {
|
|
25
|
+
if (i18n.locale === 'en') {
|
|
26
|
+
data.name = 'Pattern' + data.patternid
|
|
27
|
+
} else if (i18n.locale === 'zh') {
|
|
28
|
+
data.name = '方案' + data.patternid
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
Object.keys(data).forEach(function (key) {
|
|
32
|
+
if (i18n.locale === 'en') {
|
|
33
|
+
if (key === 'mode') {
|
|
34
|
+
if (that.ParamsModeEn.get(data[key]) !== undefined) {
|
|
35
|
+
data[key] = that.ParamsModeEn.get(data[key])
|
|
36
|
+
} else {
|
|
37
|
+
data[key] = that.ParamsModeEn.get(0)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (key === 'control') {
|
|
41
|
+
data[key] = that.ParamsControlEn.get(data[key])
|
|
42
|
+
}
|
|
43
|
+
if (key === 'phase') {
|
|
44
|
+
for (let val of data[key]) {
|
|
45
|
+
val.type = that.phaseTypeEn.get(val.type)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
} else if (i18n.locale === 'zh') {
|
|
49
|
+
if (key === 'mode') {
|
|
50
|
+
if (that.ParamsMode.get(data[key]) !== undefined) {
|
|
51
|
+
data[key] = that.ParamsMode.get(data[key])
|
|
52
|
+
} else {
|
|
53
|
+
data[key] = that.ParamsMode.get(0)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (key === 'control') {
|
|
57
|
+
data[key] = that.ParamsControl.get(data[key])
|
|
58
|
+
}
|
|
59
|
+
if (key === 'phase') {
|
|
60
|
+
for (let val of data[key]) {
|
|
61
|
+
val.type = that.phaseType.get(val.type)
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
return data
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,191 +1,191 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020 kedacom
|
|
3
|
-
* OpenATC is licensed under Mulan PSL v2.
|
|
4
|
-
* You can use i18n 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 i18n from '../i18n/index.js'
|
|
13
|
-
import PhaseDataModel from '../kisscomps/components/IntersectionMap/crossDirection/utils.js'
|
|
14
|
-
import CrossDiagramMgr from '../EdgeMgr/controller/crossDiagramMgr.js'
|
|
15
|
-
export default class RingDataModel {
|
|
16
|
-
constructor (crossStatusData = {}, phaseList, busPhaseData = []) {
|
|
17
|
-
this.crossStatusData = crossStatusData
|
|
18
|
-
this.phaseList = phaseList
|
|
19
|
-
this.busPhaseData = busPhaseData
|
|
20
|
-
this.PhaseDataModel = new PhaseDataModel()
|
|
21
|
-
this.CrossDiagramMgr = new CrossDiagramMgr()
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
initRingPhaseData () {
|
|
25
|
-
// 环信息从单独上载相位信息里获取,以免相位锁定后,方案状态数据里没有rings,导致相位锁定控制列表无法显示
|
|
26
|
-
let phaseRings = []
|
|
27
|
-
let map = {}
|
|
28
|
-
let dest = []
|
|
29
|
-
for (let i = 0; i < this.phaseList.length; i++) {
|
|
30
|
-
let ai = this.phaseList[i]
|
|
31
|
-
if (!map[ai.ring]) {
|
|
32
|
-
let addphse = this.addPhaseInfo(ai)
|
|
33
|
-
dest.push({
|
|
34
|
-
num: ai.ring,
|
|
35
|
-
phases: [{...ai, ...addphse}]
|
|
36
|
-
})
|
|
37
|
-
map[ai.ring] = ai
|
|
38
|
-
} else {
|
|
39
|
-
for (var j = 0; j < dest.length; j++) {
|
|
40
|
-
var dj = dest[j]
|
|
41
|
-
if (dj.num === ai.ring) {
|
|
42
|
-
let addphse = this.addPhaseInfo(ai)
|
|
43
|
-
dj.phases.push({...ai, ...addphse})
|
|
44
|
-
break
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
phaseRings = JSON.parse(JSON.stringify(dest))
|
|
50
|
-
return phaseRings
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
addPhaseInfo (phase) {
|
|
54
|
-
let addphse = {}
|
|
55
|
-
addphse.name = i18n.t('openatccomponents.overview.phase') + phase.id
|
|
56
|
-
addphse.desc = this.getPhaseDescription(phase.direction)
|
|
57
|
-
// 相位锁定选项默认都按照解锁状态显示
|
|
58
|
-
addphse.locktype = 0
|
|
59
|
-
addphse.close = 0
|
|
60
|
-
if (this.crossStatusData !== null && this.crossStatusData.phase) {
|
|
61
|
-
// 如果方案状态相位有close字段,这边就需要对应close状态进相位关断控制的选项里
|
|
62
|
-
let phaseStatus = this.crossStatusData.phase.filter(ele => ele.id === phase.id)[0]
|
|
63
|
-
addphse = {...addphse, ...phaseStatus}
|
|
64
|
-
}
|
|
65
|
-
return addphse
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
getPhaseDescription (phaseList) {
|
|
69
|
-
let list = []
|
|
70
|
-
for (let id of phaseList) {
|
|
71
|
-
let obj = {}
|
|
72
|
-
obj.id = id
|
|
73
|
-
obj.color = '#454545'
|
|
74
|
-
list.push(obj)
|
|
75
|
-
}
|
|
76
|
-
return list
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
getPedPhasePos () {
|
|
80
|
-
// 行人相位信息
|
|
81
|
-
this.sidewalkPhaseData = []
|
|
82
|
-
this.phaseList.forEach((ele, i) => {
|
|
83
|
-
if (ele.peddirection) {
|
|
84
|
-
ele.peddirection.forEach((dir, index) => {
|
|
85
|
-
// 行人相位
|
|
86
|
-
if (this.PhaseDataModel.getSidePos(dir)) {
|
|
87
|
-
this.sidewalkPhaseData.push({
|
|
88
|
-
key: this.CrossDiagramMgr.getUniqueKey('pedphase'),
|
|
89
|
-
phaseid: ele.id, // 相位id,用于对应相位状态
|
|
90
|
-
id: dir,
|
|
91
|
-
name: this.PhaseDataModel.getSidePos(dir).name
|
|
92
|
-
})
|
|
93
|
-
}
|
|
94
|
-
})
|
|
95
|
-
}
|
|
96
|
-
})
|
|
97
|
-
return this.sidewalkPhaseData
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
getBusPos () {
|
|
101
|
-
// 公交相位信息
|
|
102
|
-
this.busPhaseData = []
|
|
103
|
-
this.phaseList.forEach((ele, i) => {
|
|
104
|
-
if (ele.controltype) {
|
|
105
|
-
ele.direction.forEach((dir, index) => {
|
|
106
|
-
// 车道相位
|
|
107
|
-
this.busPhaseData.push({
|
|
108
|
-
// key: this.CrossDiagramMgr.getUniqueKey('busphase'),
|
|
109
|
-
phaseid: ele.id, // 相位id,用于对应相位状态
|
|
110
|
-
id: dir, // 接口返回的dir字段,对应前端定义的相位方向id,唯一标识
|
|
111
|
-
name: this.PhaseDataModel.getBusPhasePos(dir).name,
|
|
112
|
-
controltype: ele.controltype
|
|
113
|
-
})
|
|
114
|
-
})
|
|
115
|
-
}
|
|
116
|
-
})
|
|
117
|
-
let result = []
|
|
118
|
-
let obj = {}
|
|
119
|
-
for (var i = 0; i < this.busPhaseData.length; i++) {
|
|
120
|
-
if (!obj[this.busPhaseData[i].phaseid]) {
|
|
121
|
-
result.push(this.busPhaseData[i])
|
|
122
|
-
obj[this.busPhaseData[i].phaseid] = true
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
this.busPhaseData = result
|
|
126
|
-
return this.busPhaseData
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
getStageData () {
|
|
130
|
-
let data = this.crossStatusData
|
|
131
|
-
let stagesTemp = []
|
|
132
|
-
let busPhaseData = this.getBusPos()
|
|
133
|
-
let sidewalkPhaseData = this.getPedPhasePos()
|
|
134
|
-
let stages = data.stages
|
|
135
|
-
for (let stage of stages) {
|
|
136
|
-
let tempList = []
|
|
137
|
-
let directionList = []
|
|
138
|
-
let stageControType = 0
|
|
139
|
-
let peddirections = []
|
|
140
|
-
for (let stg of stage) {
|
|
141
|
-
let currPhase = this.phaseList.filter((item) => {
|
|
142
|
-
return item.id === stg
|
|
143
|
-
})[0]
|
|
144
|
-
if (currPhase !== undefined) {
|
|
145
|
-
directionList = [...currPhase.direction, ...directionList]
|
|
146
|
-
}
|
|
147
|
-
for (let walk of sidewalkPhaseData) {
|
|
148
|
-
for (let ped of currPhase.peddirection) {
|
|
149
|
-
// if (stg === walk.phaseid) {
|
|
150
|
-
let obj = {}
|
|
151
|
-
obj.name = walk.name
|
|
152
|
-
obj.id = walk.id
|
|
153
|
-
if (ped === walk.id) {
|
|
154
|
-
peddirections.push(obj)
|
|
155
|
-
peddirections = Array.from(new Set(peddirections))
|
|
156
|
-
}
|
|
157
|
-
// }
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
for (let busPhase of busPhaseData) {
|
|
161
|
-
if (stg === busPhase.phaseid) {
|
|
162
|
-
stageControType = busPhase.controltype
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
directionList = [...new Set(directionList)]
|
|
167
|
-
tempList = directionList.map(dir => ({
|
|
168
|
-
id: dir,
|
|
169
|
-
color: '#606266',
|
|
170
|
-
controltype: stageControType,
|
|
171
|
-
peddirection: peddirections,
|
|
172
|
-
sidewalkPhaseData: sidewalkPhaseData
|
|
173
|
-
}))
|
|
174
|
-
if (directionList.length === 0) {
|
|
175
|
-
tempList = [
|
|
176
|
-
{
|
|
177
|
-
id: -1,
|
|
178
|
-
color: '#606266',
|
|
179
|
-
controltype: stageControType,
|
|
180
|
-
peddirection: peddirections,
|
|
181
|
-
sidewalkPhaseData: sidewalkPhaseData
|
|
182
|
-
}
|
|
183
|
-
]
|
|
184
|
-
}
|
|
185
|
-
stagesTemp.push(tempList)
|
|
186
|
-
}
|
|
187
|
-
this.stagesList = JSON.parse(JSON.stringify(stagesTemp))
|
|
188
|
-
// console.log('this.stagesList', this.stagesList)
|
|
189
|
-
return this.stagesList
|
|
190
|
-
}
|
|
191
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020 kedacom
|
|
3
|
+
* OpenATC is licensed under Mulan PSL v2.
|
|
4
|
+
* You can use i18n 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 i18n from '../i18n/index.js'
|
|
13
|
+
import PhaseDataModel from '../kisscomps/components/IntersectionMap/crossDirection/utils.js'
|
|
14
|
+
import CrossDiagramMgr from '../EdgeMgr/controller/crossDiagramMgr.js'
|
|
15
|
+
export default class RingDataModel {
|
|
16
|
+
constructor (crossStatusData = {}, phaseList, busPhaseData = []) {
|
|
17
|
+
this.crossStatusData = crossStatusData
|
|
18
|
+
this.phaseList = phaseList
|
|
19
|
+
this.busPhaseData = busPhaseData
|
|
20
|
+
this.PhaseDataModel = new PhaseDataModel()
|
|
21
|
+
this.CrossDiagramMgr = new CrossDiagramMgr()
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
initRingPhaseData () {
|
|
25
|
+
// 环信息从单独上载相位信息里获取,以免相位锁定后,方案状态数据里没有rings,导致相位锁定控制列表无法显示
|
|
26
|
+
let phaseRings = []
|
|
27
|
+
let map = {}
|
|
28
|
+
let dest = []
|
|
29
|
+
for (let i = 0; i < this.phaseList.length; i++) {
|
|
30
|
+
let ai = this.phaseList[i]
|
|
31
|
+
if (!map[ai.ring]) {
|
|
32
|
+
let addphse = this.addPhaseInfo(ai)
|
|
33
|
+
dest.push({
|
|
34
|
+
num: ai.ring,
|
|
35
|
+
phases: [{...ai, ...addphse}]
|
|
36
|
+
})
|
|
37
|
+
map[ai.ring] = ai
|
|
38
|
+
} else {
|
|
39
|
+
for (var j = 0; j < dest.length; j++) {
|
|
40
|
+
var dj = dest[j]
|
|
41
|
+
if (dj.num === ai.ring) {
|
|
42
|
+
let addphse = this.addPhaseInfo(ai)
|
|
43
|
+
dj.phases.push({...ai, ...addphse})
|
|
44
|
+
break
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
phaseRings = JSON.parse(JSON.stringify(dest))
|
|
50
|
+
return phaseRings
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
addPhaseInfo (phase) {
|
|
54
|
+
let addphse = {}
|
|
55
|
+
addphse.name = i18n.t('openatccomponents.overview.phase') + phase.id
|
|
56
|
+
addphse.desc = this.getPhaseDescription(phase.direction)
|
|
57
|
+
// 相位锁定选项默认都按照解锁状态显示
|
|
58
|
+
addphse.locktype = 0
|
|
59
|
+
addphse.close = 0
|
|
60
|
+
if (this.crossStatusData !== null && this.crossStatusData.phase) {
|
|
61
|
+
// 如果方案状态相位有close字段,这边就需要对应close状态进相位关断控制的选项里
|
|
62
|
+
let phaseStatus = this.crossStatusData.phase.filter(ele => ele.id === phase.id)[0]
|
|
63
|
+
addphse = {...addphse, ...phaseStatus}
|
|
64
|
+
}
|
|
65
|
+
return addphse
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
getPhaseDescription (phaseList) {
|
|
69
|
+
let list = []
|
|
70
|
+
for (let id of phaseList) {
|
|
71
|
+
let obj = {}
|
|
72
|
+
obj.id = id
|
|
73
|
+
obj.color = '#454545'
|
|
74
|
+
list.push(obj)
|
|
75
|
+
}
|
|
76
|
+
return list
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
getPedPhasePos () {
|
|
80
|
+
// 行人相位信息
|
|
81
|
+
this.sidewalkPhaseData = []
|
|
82
|
+
this.phaseList.forEach((ele, i) => {
|
|
83
|
+
if (ele.peddirection) {
|
|
84
|
+
ele.peddirection.forEach((dir, index) => {
|
|
85
|
+
// 行人相位
|
|
86
|
+
if (this.PhaseDataModel.getSidePos(dir)) {
|
|
87
|
+
this.sidewalkPhaseData.push({
|
|
88
|
+
key: this.CrossDiagramMgr.getUniqueKey('pedphase'),
|
|
89
|
+
phaseid: ele.id, // 相位id,用于对应相位状态
|
|
90
|
+
id: dir,
|
|
91
|
+
name: this.PhaseDataModel.getSidePos(dir).name
|
|
92
|
+
})
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
})
|
|
97
|
+
return this.sidewalkPhaseData
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
getBusPos () {
|
|
101
|
+
// 公交相位信息
|
|
102
|
+
this.busPhaseData = []
|
|
103
|
+
this.phaseList.forEach((ele, i) => {
|
|
104
|
+
if (ele.controltype) {
|
|
105
|
+
ele.direction.forEach((dir, index) => {
|
|
106
|
+
// 车道相位
|
|
107
|
+
this.busPhaseData.push({
|
|
108
|
+
// key: this.CrossDiagramMgr.getUniqueKey('busphase'),
|
|
109
|
+
phaseid: ele.id, // 相位id,用于对应相位状态
|
|
110
|
+
id: dir, // 接口返回的dir字段,对应前端定义的相位方向id,唯一标识
|
|
111
|
+
name: this.PhaseDataModel.getBusPhasePos(dir).name,
|
|
112
|
+
controltype: ele.controltype
|
|
113
|
+
})
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
let result = []
|
|
118
|
+
let obj = {}
|
|
119
|
+
for (var i = 0; i < this.busPhaseData.length; i++) {
|
|
120
|
+
if (!obj[this.busPhaseData[i].phaseid]) {
|
|
121
|
+
result.push(this.busPhaseData[i])
|
|
122
|
+
obj[this.busPhaseData[i].phaseid] = true
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
this.busPhaseData = result
|
|
126
|
+
return this.busPhaseData
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
getStageData () {
|
|
130
|
+
let data = this.crossStatusData
|
|
131
|
+
let stagesTemp = []
|
|
132
|
+
let busPhaseData = this.getBusPos()
|
|
133
|
+
let sidewalkPhaseData = this.getPedPhasePos()
|
|
134
|
+
let stages = data.stages
|
|
135
|
+
for (let stage of stages) {
|
|
136
|
+
let tempList = []
|
|
137
|
+
let directionList = []
|
|
138
|
+
let stageControType = 0
|
|
139
|
+
let peddirections = []
|
|
140
|
+
for (let stg of stage) {
|
|
141
|
+
let currPhase = this.phaseList.filter((item) => {
|
|
142
|
+
return item.id === stg
|
|
143
|
+
})[0]
|
|
144
|
+
if (currPhase !== undefined) {
|
|
145
|
+
directionList = [...currPhase.direction, ...directionList]
|
|
146
|
+
}
|
|
147
|
+
for (let walk of sidewalkPhaseData) {
|
|
148
|
+
for (let ped of currPhase.peddirection) {
|
|
149
|
+
// if (stg === walk.phaseid) {
|
|
150
|
+
let obj = {}
|
|
151
|
+
obj.name = walk.name
|
|
152
|
+
obj.id = walk.id
|
|
153
|
+
if (ped === walk.id) {
|
|
154
|
+
peddirections.push(obj)
|
|
155
|
+
peddirections = Array.from(new Set(peddirections))
|
|
156
|
+
}
|
|
157
|
+
// }
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
for (let busPhase of busPhaseData) {
|
|
161
|
+
if (stg === busPhase.phaseid) {
|
|
162
|
+
stageControType = busPhase.controltype
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
directionList = [...new Set(directionList)]
|
|
167
|
+
tempList = directionList.map(dir => ({
|
|
168
|
+
id: dir,
|
|
169
|
+
color: '#606266',
|
|
170
|
+
controltype: stageControType,
|
|
171
|
+
peddirection: peddirections,
|
|
172
|
+
sidewalkPhaseData: sidewalkPhaseData
|
|
173
|
+
}))
|
|
174
|
+
if (directionList.length === 0) {
|
|
175
|
+
tempList = [
|
|
176
|
+
{
|
|
177
|
+
id: -1,
|
|
178
|
+
color: '#606266',
|
|
179
|
+
controltype: stageControType,
|
|
180
|
+
peddirection: peddirections,
|
|
181
|
+
sidewalkPhaseData: sidewalkPhaseData
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
stagesTemp.push(tempList)
|
|
186
|
+
}
|
|
187
|
+
this.stagesList = JSON.parse(JSON.stringify(stagesTemp))
|
|
188
|
+
// console.log('this.stagesList', this.stagesList)
|
|
189
|
+
return this.stagesList
|
|
190
|
+
}
|
|
191
|
+
}
|