openatc-components 0.5.16 → 0.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.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/DirectionListConfiguration.vue +2 -2
- 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.json +16 -0
- 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/IntersectionMap/crossDirection/posJson/sidePos.json +16 -0
- 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/OverviewComponent/index.vue +7 -33
- 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/SchemeConfig/SchemeConfig.vue +7 -30
- 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 +0 -19
- package/package/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
- package/package/kisscomps/components/SelectCrossPhase/index.vue +1 -1
- 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/overView/index.vue +7 -30
- package/package/kisscomps/components/patternConfig/index.vue +4 -12
- 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/components/patternConfig/utils.js +84 -152
- package/package/kisscomps/index.js +6 -2
- 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/App.vue +20 -24
- 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/passwdAssest.js +101 -101
- package/src/api/permission.js +33 -33
- package/src/api/route.js +171 -171
- 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 +113 -27
- package/src/i18n/language/index.js +31 -25
- package/src/i18n/language/ru.js +1563 -0
- package/src/i18n/language/zh.js +113 -27
- 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/DirectionListConfiguration.vue +2 -2
- 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.json +16 -0
- 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/IntersectionMap/crossDirection/posJson/sidePos.json +16 -0
- 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/OverviewComponent/index.vue +7 -33
- 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/SchemeConfig/SchemeConfig.vue +7 -30
- 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 +0 -19
- package/src/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
- package/src/kisscomps/components/SelectCrossPhase/index.vue +1 -1
- 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/overView/index.vue +7 -30
- package/src/kisscomps/components/patternConfig/index.vue +4 -12
- 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/components/patternConfig/utils.js +84 -152
- package/src/kisscomps/index.js +6 -2
- 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/store/index.js +26 -26
- package/src/store/modules/globalParam.js +67 -67
- package/src/utils/ControlFormat.js +14 -36
- package/src/utils/RingDataModel.js +335 -335
- package/src/utils/auth.js +199 -199
- package/src/utils/conflictList.js +87 -87
- package/src/utils/dateFormat.js +41 -41
- package/src/utils/fault.js +20 -72
- package/src/utils/faultcode.js +130 -182
- package/src/utils/index.js +69 -69
- package/src/utils/pedphasedesc.js +80 -105
- package/src/utils/phaseList.js +203 -203
- package/src/utils/phasedesc.js +133 -115
- package/src/utils/responseMessage.js +24 -21
- package/src/utils/validate.js +43 -43
- 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/src/views/patternConfig.vue +2 -2
- package/src/views/schemeconfig.vue +1 -1
- 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/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
- package/package/kisscomps/components/OptimizeKanban/index.js +0 -2
- package/package/kisscomps/components/OptimizeKanban/index.vue +0 -369
- package/package/kisscomps/components/StageOptimize/index.vue +0 -310
- package/src/node_modules/.package_versions.json +0 -1
|
@@ -1,210 +1,210 @@
|
|
|
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
|
-
<template>
|
|
13
|
-
<div v-if="reset" class="detector-icon">
|
|
14
|
-
<drr
|
|
15
|
-
:style="{'z-index': chooseIndex === DetectorData.index ? 9 : 0}"
|
|
16
|
-
:x="item.x"
|
|
17
|
-
:y="item.y"
|
|
18
|
-
:w="item.w"
|
|
19
|
-
:h="item.h"
|
|
20
|
-
:selected="chooseIndex === DetectorData.index"
|
|
21
|
-
:selectable="isSeletable"
|
|
22
|
-
:angle="item.angle"
|
|
23
|
-
:aspectRatio="true"
|
|
24
|
-
@select="handleSelectIcon(item)"
|
|
25
|
-
@dragstop="boxDragStop(item, ...arguments)"
|
|
26
|
-
@resize="boxResize(...arguments)"
|
|
27
|
-
@resizestop="boxResizeStop(item, ...arguments)"
|
|
28
|
-
@rotatestop="boxRotateStop(item, ...arguments)"
|
|
29
|
-
>
|
|
30
|
-
<div v-if="UsageMode === 'draw'">
|
|
31
|
-
<div v-if="chooseIndex !== DetectorData.index" class="centerText defaultBg" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
|
|
32
|
-
<div class="detectorIcon"
|
|
33
|
-
:style="{'width': item.w + 'px', 'fontSize': Fontsize + 'px', 'lineHeight': item.h - 4 + 'px'}"
|
|
34
|
-
:class="{'defaultVehicleBorder': DetectorData.detectortype === 1,
|
|
35
|
-
'defaultPedBorder': DetectorData.detectortype === 2 }">{{DetectorData.detectorid}}</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div v-if="chooseIndex === DetectorData.index" class="centerText highlightBg" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
|
|
38
|
-
<div class="detectorIcon"
|
|
39
|
-
:style="{'width': item.w + 'px', 'fontSize': Fontsize + 'px', 'lineHeight': item.h - 4 + 'px'}"
|
|
40
|
-
:class="{'defaultVehicleBorder': CurChooseIcon.detectortype == 1,
|
|
41
|
-
'defaultPedBorder': CurChooseIcon.detectortype == 2 }">{{CurChooseIcon.detectorid}}</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
<div v-if="UsageMode === 'show'" class="centerText" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
|
|
46
|
-
<div class="detectorIcon"
|
|
47
|
-
:style="{'width': item.w + 'px', 'fontSize': Fontsize + 'px','lineHeight': item.h - 4 + 'px', 'background': DetectorData.fillcolor}"
|
|
48
|
-
:class="{'defaultVehicleBorder': DetectorData.detectortype == 1,
|
|
49
|
-
'defaultPedBorder': DetectorData.detectortype == 2 }"
|
|
50
|
-
>{{DetectorData.detectorid}}</div>
|
|
51
|
-
</div>
|
|
52
|
-
</drr>
|
|
53
|
-
</div>
|
|
54
|
-
</template>
|
|
55
|
-
<script>
|
|
56
|
-
export default {
|
|
57
|
-
name: 'countdownsvg',
|
|
58
|
-
data () {
|
|
59
|
-
return {
|
|
60
|
-
defaultColor: 'DeepSkyBlue', // 默认状态颜色
|
|
61
|
-
item: {},
|
|
62
|
-
reset: true,
|
|
63
|
-
Fontsize: 16 // 默认字号
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
watch: {
|
|
67
|
-
// item: {
|
|
68
|
-
// handler: function (newval, oldval) {
|
|
69
|
-
// if ((JSON.stringify(oldval) !== '{}')) {
|
|
70
|
-
// // 更改原数据的位置大小数据
|
|
71
|
-
// let data = {
|
|
72
|
-
// ...this.DetectorData,
|
|
73
|
-
// ...newval
|
|
74
|
-
// }
|
|
75
|
-
// let fields = Object.keys(newval)
|
|
76
|
-
// this.$emit('changeDetectorItem', data, fields)
|
|
77
|
-
// }
|
|
78
|
-
// }
|
|
79
|
-
// }
|
|
80
|
-
DetectorData: {
|
|
81
|
-
handler: function (val) {
|
|
82
|
-
if (this.UsageMode === 'draw') {
|
|
83
|
-
this.item.x = val.x
|
|
84
|
-
this.item.y = val.y
|
|
85
|
-
this.item.angle = val.angle
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
deep: true
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// CurChooseIcon: {
|
|
92
|
-
// handler: function (data) {
|
|
93
|
-
// debugger
|
|
94
|
-
// },
|
|
95
|
-
// deep: true
|
|
96
|
-
// }
|
|
97
|
-
},
|
|
98
|
-
props: {
|
|
99
|
-
DetectorData: {
|
|
100
|
-
type: Object
|
|
101
|
-
},
|
|
102
|
-
isSeletable: {
|
|
103
|
-
type: Boolean
|
|
104
|
-
},
|
|
105
|
-
chooseIndex: {
|
|
106
|
-
type: Number
|
|
107
|
-
},
|
|
108
|
-
UsageMode: { // 当前图标模式: 绘制draw 展示show
|
|
109
|
-
type: String,
|
|
110
|
-
default: 'draw'
|
|
111
|
-
},
|
|
112
|
-
CurChooseIcon: {
|
|
113
|
-
type: Object
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
methods: {
|
|
117
|
-
boxDragStop (origin, final) {
|
|
118
|
-
this.item = JSON.parse(JSON.stringify(final))
|
|
119
|
-
this.$emit('handleSelectIcon', this.DetectorData)
|
|
120
|
-
this.handleChangeData()
|
|
121
|
-
},
|
|
122
|
-
boxResize (final) {
|
|
123
|
-
// this.resetSvg()
|
|
124
|
-
this.item = JSON.parse(JSON.stringify(final))
|
|
125
|
-
this.handleChangeData()
|
|
126
|
-
},
|
|
127
|
-
boxResizeStop (origin, final) {
|
|
128
|
-
// this.resetSvg()
|
|
129
|
-
// this.item = JSON.parse(JSON.stringify(final))
|
|
130
|
-
},
|
|
131
|
-
boxRotateStop (origin, final) {
|
|
132
|
-
this.item = JSON.parse(JSON.stringify(final))
|
|
133
|
-
// 第四象限的角度是负值(开源组件接口返回),转化为正值便于理解
|
|
134
|
-
if (this.item.angle < 0) {
|
|
135
|
-
this.item.angle = this.item.angle + 360
|
|
136
|
-
}
|
|
137
|
-
this.handleChangeData()
|
|
138
|
-
},
|
|
139
|
-
resetSvg () {
|
|
140
|
-
this.reset = false
|
|
141
|
-
this.$nextTick(() => {
|
|
142
|
-
this.reset = true
|
|
143
|
-
})
|
|
144
|
-
},
|
|
145
|
-
handleSelectIcon (iconparams) {
|
|
146
|
-
this.$emit('handleSelectIcon', this.DetectorData)
|
|
147
|
-
},
|
|
148
|
-
culculateFontsize () {
|
|
149
|
-
// 根据倒计时图标大小,动态计算内部文字大小
|
|
150
|
-
this.Fontsize = Math.floor(this.DetectorData.w / 140 * 20)
|
|
151
|
-
},
|
|
152
|
-
handleChangeData () {
|
|
153
|
-
let data = {
|
|
154
|
-
...this.DetectorData,
|
|
155
|
-
...this.item
|
|
156
|
-
}
|
|
157
|
-
let fields = Object.keys(this.item)
|
|
158
|
-
this.$emit('changeDetectorItem', data, fields)
|
|
159
|
-
this.handleSelectIcon()
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
created () {
|
|
163
|
-
this.item = {
|
|
164
|
-
x: this.DetectorData.x,
|
|
165
|
-
y: this.DetectorData.y,
|
|
166
|
-
w: this.DetectorData.w,
|
|
167
|
-
h: this.DetectorData.h,
|
|
168
|
-
angle: this.DetectorData.angle
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
</script>
|
|
173
|
-
<style scoped>
|
|
174
|
-
.centerText {
|
|
175
|
-
position: absolute;
|
|
176
|
-
left: 50%;
|
|
177
|
-
top: 50%;
|
|
178
|
-
transform: translateX(-50%) translateY(-50%);
|
|
179
|
-
z-index: 9;
|
|
180
|
-
display: flex;
|
|
181
|
-
align-items: center;
|
|
182
|
-
}
|
|
183
|
-
.detectorIcon {
|
|
184
|
-
font-family: SourceHanSansCN-Regular;
|
|
185
|
-
font-weight: normal;
|
|
186
|
-
font-stretch: normal;
|
|
187
|
-
letter-spacing: 0px;
|
|
188
|
-
color: #fff;
|
|
189
|
-
margin: 0 auto;
|
|
190
|
-
text-align: center;
|
|
191
|
-
height: 100%;
|
|
192
|
-
}
|
|
193
|
-
.defaultBg {
|
|
194
|
-
background-color: transparent;
|
|
195
|
-
}
|
|
196
|
-
.highlightBg {
|
|
197
|
-
background-color: #299BCC;
|
|
198
|
-
}
|
|
199
|
-
.defaultVehicleBorder {
|
|
200
|
-
border: 2px solid #00FF00;
|
|
201
|
-
}
|
|
202
|
-
.defaultPedBorder {
|
|
203
|
-
border: 2px solid #0080FF;
|
|
204
|
-
}
|
|
205
|
-
.centerText .text {
|
|
206
|
-
display: inline-block;
|
|
207
|
-
color: #299BCC;
|
|
208
|
-
margin-top: 20px;
|
|
209
|
-
}
|
|
210
|
-
</style>
|
|
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
|
+
<template>
|
|
13
|
+
<div v-if="reset" class="detector-icon">
|
|
14
|
+
<drr
|
|
15
|
+
:style="{'z-index': chooseIndex === DetectorData.index ? 9 : 0}"
|
|
16
|
+
:x="item.x"
|
|
17
|
+
:y="item.y"
|
|
18
|
+
:w="item.w"
|
|
19
|
+
:h="item.h"
|
|
20
|
+
:selected="chooseIndex === DetectorData.index"
|
|
21
|
+
:selectable="isSeletable"
|
|
22
|
+
:angle="item.angle"
|
|
23
|
+
:aspectRatio="true"
|
|
24
|
+
@select="handleSelectIcon(item)"
|
|
25
|
+
@dragstop="boxDragStop(item, ...arguments)"
|
|
26
|
+
@resize="boxResize(...arguments)"
|
|
27
|
+
@resizestop="boxResizeStop(item, ...arguments)"
|
|
28
|
+
@rotatestop="boxRotateStop(item, ...arguments)"
|
|
29
|
+
>
|
|
30
|
+
<div v-if="UsageMode === 'draw'">
|
|
31
|
+
<div v-if="chooseIndex !== DetectorData.index" class="centerText defaultBg" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
|
|
32
|
+
<div class="detectorIcon"
|
|
33
|
+
:style="{'width': item.w + 'px', 'fontSize': Fontsize + 'px', 'lineHeight': item.h - 4 + 'px'}"
|
|
34
|
+
:class="{'defaultVehicleBorder': DetectorData.detectortype === 1,
|
|
35
|
+
'defaultPedBorder': DetectorData.detectortype === 2 }">{{DetectorData.detectorid}}</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div v-if="chooseIndex === DetectorData.index" class="centerText highlightBg" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
|
|
38
|
+
<div class="detectorIcon"
|
|
39
|
+
:style="{'width': item.w + 'px', 'fontSize': Fontsize + 'px', 'lineHeight': item.h - 4 + 'px'}"
|
|
40
|
+
:class="{'defaultVehicleBorder': CurChooseIcon.detectortype == 1,
|
|
41
|
+
'defaultPedBorder': CurChooseIcon.detectortype == 2 }">{{CurChooseIcon.detectorid}}</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div v-if="UsageMode === 'show'" class="centerText" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
|
|
46
|
+
<div class="detectorIcon"
|
|
47
|
+
:style="{'width': item.w + 'px', 'fontSize': Fontsize + 'px','lineHeight': item.h - 4 + 'px', 'background': DetectorData.fillcolor}"
|
|
48
|
+
:class="{'defaultVehicleBorder': DetectorData.detectortype == 1,
|
|
49
|
+
'defaultPedBorder': DetectorData.detectortype == 2 }"
|
|
50
|
+
>{{DetectorData.detectorid}}</div>
|
|
51
|
+
</div>
|
|
52
|
+
</drr>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
<script>
|
|
56
|
+
export default {
|
|
57
|
+
name: 'countdownsvg',
|
|
58
|
+
data () {
|
|
59
|
+
return {
|
|
60
|
+
defaultColor: 'DeepSkyBlue', // 默认状态颜色
|
|
61
|
+
item: {},
|
|
62
|
+
reset: true,
|
|
63
|
+
Fontsize: 16 // 默认字号
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
watch: {
|
|
67
|
+
// item: {
|
|
68
|
+
// handler: function (newval, oldval) {
|
|
69
|
+
// if ((JSON.stringify(oldval) !== '{}')) {
|
|
70
|
+
// // 更改原数据的位置大小数据
|
|
71
|
+
// let data = {
|
|
72
|
+
// ...this.DetectorData,
|
|
73
|
+
// ...newval
|
|
74
|
+
// }
|
|
75
|
+
// let fields = Object.keys(newval)
|
|
76
|
+
// this.$emit('changeDetectorItem', data, fields)
|
|
77
|
+
// }
|
|
78
|
+
// }
|
|
79
|
+
// }
|
|
80
|
+
DetectorData: {
|
|
81
|
+
handler: function (val) {
|
|
82
|
+
if (this.UsageMode === 'draw') {
|
|
83
|
+
this.item.x = val.x
|
|
84
|
+
this.item.y = val.y
|
|
85
|
+
this.item.angle = val.angle
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
deep: true
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// CurChooseIcon: {
|
|
92
|
+
// handler: function (data) {
|
|
93
|
+
// debugger
|
|
94
|
+
// },
|
|
95
|
+
// deep: true
|
|
96
|
+
// }
|
|
97
|
+
},
|
|
98
|
+
props: {
|
|
99
|
+
DetectorData: {
|
|
100
|
+
type: Object
|
|
101
|
+
},
|
|
102
|
+
isSeletable: {
|
|
103
|
+
type: Boolean
|
|
104
|
+
},
|
|
105
|
+
chooseIndex: {
|
|
106
|
+
type: Number
|
|
107
|
+
},
|
|
108
|
+
UsageMode: { // 当前图标模式: 绘制draw 展示show
|
|
109
|
+
type: String,
|
|
110
|
+
default: 'draw'
|
|
111
|
+
},
|
|
112
|
+
CurChooseIcon: {
|
|
113
|
+
type: Object
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
methods: {
|
|
117
|
+
boxDragStop (origin, final) {
|
|
118
|
+
this.item = JSON.parse(JSON.stringify(final))
|
|
119
|
+
this.$emit('handleSelectIcon', this.DetectorData)
|
|
120
|
+
this.handleChangeData()
|
|
121
|
+
},
|
|
122
|
+
boxResize (final) {
|
|
123
|
+
// this.resetSvg()
|
|
124
|
+
this.item = JSON.parse(JSON.stringify(final))
|
|
125
|
+
this.handleChangeData()
|
|
126
|
+
},
|
|
127
|
+
boxResizeStop (origin, final) {
|
|
128
|
+
// this.resetSvg()
|
|
129
|
+
// this.item = JSON.parse(JSON.stringify(final))
|
|
130
|
+
},
|
|
131
|
+
boxRotateStop (origin, final) {
|
|
132
|
+
this.item = JSON.parse(JSON.stringify(final))
|
|
133
|
+
// 第四象限的角度是负值(开源组件接口返回),转化为正值便于理解
|
|
134
|
+
if (this.item.angle < 0) {
|
|
135
|
+
this.item.angle = this.item.angle + 360
|
|
136
|
+
}
|
|
137
|
+
this.handleChangeData()
|
|
138
|
+
},
|
|
139
|
+
resetSvg () {
|
|
140
|
+
this.reset = false
|
|
141
|
+
this.$nextTick(() => {
|
|
142
|
+
this.reset = true
|
|
143
|
+
})
|
|
144
|
+
},
|
|
145
|
+
handleSelectIcon (iconparams) {
|
|
146
|
+
this.$emit('handleSelectIcon', this.DetectorData)
|
|
147
|
+
},
|
|
148
|
+
culculateFontsize () {
|
|
149
|
+
// 根据倒计时图标大小,动态计算内部文字大小
|
|
150
|
+
this.Fontsize = Math.floor(this.DetectorData.w / 140 * 20)
|
|
151
|
+
},
|
|
152
|
+
handleChangeData () {
|
|
153
|
+
let data = {
|
|
154
|
+
...this.DetectorData,
|
|
155
|
+
...this.item
|
|
156
|
+
}
|
|
157
|
+
let fields = Object.keys(this.item)
|
|
158
|
+
this.$emit('changeDetectorItem', data, fields)
|
|
159
|
+
this.handleSelectIcon()
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
created () {
|
|
163
|
+
this.item = {
|
|
164
|
+
x: this.DetectorData.x,
|
|
165
|
+
y: this.DetectorData.y,
|
|
166
|
+
w: this.DetectorData.w,
|
|
167
|
+
h: this.DetectorData.h,
|
|
168
|
+
angle: this.DetectorData.angle
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
</script>
|
|
173
|
+
<style scoped>
|
|
174
|
+
.centerText {
|
|
175
|
+
position: absolute;
|
|
176
|
+
left: 50%;
|
|
177
|
+
top: 50%;
|
|
178
|
+
transform: translateX(-50%) translateY(-50%);
|
|
179
|
+
z-index: 9;
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
}
|
|
183
|
+
.detectorIcon {
|
|
184
|
+
font-family: SourceHanSansCN-Regular;
|
|
185
|
+
font-weight: normal;
|
|
186
|
+
font-stretch: normal;
|
|
187
|
+
letter-spacing: 0px;
|
|
188
|
+
color: #fff;
|
|
189
|
+
margin: 0 auto;
|
|
190
|
+
text-align: center;
|
|
191
|
+
height: 100%;
|
|
192
|
+
}
|
|
193
|
+
.defaultBg {
|
|
194
|
+
background-color: transparent;
|
|
195
|
+
}
|
|
196
|
+
.highlightBg {
|
|
197
|
+
background-color: #299BCC;
|
|
198
|
+
}
|
|
199
|
+
.defaultVehicleBorder {
|
|
200
|
+
border: 2px solid #00FF00;
|
|
201
|
+
}
|
|
202
|
+
.defaultPedBorder {
|
|
203
|
+
border: 2px solid #0080FF;
|
|
204
|
+
}
|
|
205
|
+
.centerText .text {
|
|
206
|
+
display: inline-block;
|
|
207
|
+
color: #299BCC;
|
|
208
|
+
margin-top: 20px;
|
|
209
|
+
}
|
|
210
|
+
</style>
|
|
@@ -1,72 +1,72 @@
|
|
|
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
|
-
<template>
|
|
13
|
-
<div class="lane-icon-svg">
|
|
14
|
-
<div :class="laneicon.type === 'motorway' ? '' : 'hide'">
|
|
15
|
-
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
|
|
16
|
-
<path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
|
|
17
|
-
d="M-0.002,3.940 L7.022,-0.006 L7.022,2.357 L11.085,2.357 C13.793,2.357 15.998,4.501 15.998,7.136 L15.998,16.005 L12.744,16.005 L12.744,7.136 C12.744,6.246 11.999,5.523 11.085,5.523 L7.022,5.523 L7.022,7.886 L-0.002,3.940 Z"/>
|
|
18
|
-
</svg>
|
|
19
|
-
</div>
|
|
20
|
-
<div :class="laneicon.type === 'pedcrossing' ? '' : 'hide'">
|
|
21
|
-
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
|
|
22
|
-
<path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
|
|
23
|
-
d="M13.473,12.000 L13.473,-0.000 L16.000,-0.000 L16.000,12.000 L13.473,12.000 ZM8.982,-0.000 L11.508,-0.000 L11.508,12.000 L8.982,12.000 L8.982,-0.000 ZM4.491,-0.000 L7.017,-0.000 L7.017,12.000 L4.491,12.000 L4.491,-0.000 ZM-0.000,-0.000 L2.526,-0.000 L2.526,12.000 L-0.000,12.000 L-0.000,-0.000 Z"/>
|
|
24
|
-
</svg>
|
|
25
|
-
</div>
|
|
26
|
-
<div :class="laneicon.type === 'countdown' ? '' : 'hide'">
|
|
27
|
-
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
|
|
28
|
-
<path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
|
|
29
|
-
d="M6.561,10.851 C5.921,10.851 5.402,10.341 5.402,9.712 L5.402,6.151 C5.402,5.522 5.921,5.012 6.561,5.012 C7.201,5.012 7.719,5.522 7.719,6.151 L7.719,8.572 L10.181,8.572 C10.821,8.572 11.340,9.083 11.340,9.712 C11.340,10.341 10.821,10.851 10.181,10.851 L6.561,10.851 ZM15.113,7.994 L10.211,4.200 L11.824,3.565 C10.796,2.732 9.505,2.270 8.136,2.270 C4.927,2.270 2.317,4.838 2.317,7.994 C2.317,11.149 4.927,13.717 8.136,13.717 C10.261,13.717 12.218,12.577 13.242,10.742 C13.550,10.191 14.253,9.989 14.815,10.291 C15.376,10.594 15.581,11.287 15.273,11.839 C13.843,14.402 11.108,15.995 8.136,15.995 C3.650,15.995 0.000,12.406 0.000,7.994 C0.000,3.581 3.650,-0.008 8.136,-0.008 C10.467,-0.008 12.627,0.956 14.170,2.642 L16.003,1.921 L15.113,7.994 Z"/>
|
|
30
|
-
</svg>
|
|
31
|
-
</div>
|
|
32
|
-
<div :class="laneicon.type === 'detector' ? '' : 'hide'">
|
|
33
|
-
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1551"
|
|
34
|
-
xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
|
|
35
|
-
<path :fill="laneicon.active === true ? highlightColor : defaultColor"
|
|
36
|
-
d="M864 64H160c-35.296 0-64 28.704-64 64v768c0 35.296 28.704 64 64 64h704c35.296 0 64-28.704 64-64V128c0-35.296-28.704-64-64-64zM160 896v-57.344h96a32 32 0 1 0 0-64H160v-32h96a32 32 0 1 0 0-64H160V128h704l0.032 550.656H768a32 32 0 1 0 0 64h96.064v32H768a32 32 0 1 0 0 64h96.064V896H160z"
|
|
37
|
-
p-id="3622"></path>
|
|
38
|
-
<path :fill="laneicon.active === true ? highlightColor : defaultColor" d="M832 160H192v480h640V160z m-64 416H256V224h512v352z" p-id="3623"></path>
|
|
39
|
-
</svg>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</template>
|
|
43
|
-
<script>
|
|
44
|
-
export default {
|
|
45
|
-
name: 'lane-icon-svg',
|
|
46
|
-
data () {
|
|
47
|
-
return {
|
|
48
|
-
iconw: '16px',
|
|
49
|
-
iconh: '16px',
|
|
50
|
-
defaultColor: 'rgb(96, 98, 102)', // 默认状态颜色
|
|
51
|
-
highlightColor: 'rgb(64, 158, 255)'
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
watch: {
|
|
55
|
-
},
|
|
56
|
-
props: {
|
|
57
|
-
laneicon: {
|
|
58
|
-
type: Object
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
methods: {},
|
|
62
|
-
mounted () {}
|
|
63
|
-
}
|
|
64
|
-
</script>
|
|
65
|
-
<style scoped>
|
|
66
|
-
.invisible {
|
|
67
|
-
visibility: hidden;
|
|
68
|
-
}
|
|
69
|
-
.hide {
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
72
|
-
</style>
|
|
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
|
+
<template>
|
|
13
|
+
<div class="lane-icon-svg">
|
|
14
|
+
<div :class="laneicon.type === 'motorway' ? '' : 'hide'">
|
|
15
|
+
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
|
|
16
|
+
<path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
|
|
17
|
+
d="M-0.002,3.940 L7.022,-0.006 L7.022,2.357 L11.085,2.357 C13.793,2.357 15.998,4.501 15.998,7.136 L15.998,16.005 L12.744,16.005 L12.744,7.136 C12.744,6.246 11.999,5.523 11.085,5.523 L7.022,5.523 L7.022,7.886 L-0.002,3.940 Z"/>
|
|
18
|
+
</svg>
|
|
19
|
+
</div>
|
|
20
|
+
<div :class="laneicon.type === 'pedcrossing' ? '' : 'hide'">
|
|
21
|
+
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
|
|
22
|
+
<path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
|
|
23
|
+
d="M13.473,12.000 L13.473,-0.000 L16.000,-0.000 L16.000,12.000 L13.473,12.000 ZM8.982,-0.000 L11.508,-0.000 L11.508,12.000 L8.982,12.000 L8.982,-0.000 ZM4.491,-0.000 L7.017,-0.000 L7.017,12.000 L4.491,12.000 L4.491,-0.000 ZM-0.000,-0.000 L2.526,-0.000 L2.526,12.000 L-0.000,12.000 L-0.000,-0.000 Z"/>
|
|
24
|
+
</svg>
|
|
25
|
+
</div>
|
|
26
|
+
<div :class="laneicon.type === 'countdown' ? '' : 'hide'">
|
|
27
|
+
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
|
|
28
|
+
<path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
|
|
29
|
+
d="M6.561,10.851 C5.921,10.851 5.402,10.341 5.402,9.712 L5.402,6.151 C5.402,5.522 5.921,5.012 6.561,5.012 C7.201,5.012 7.719,5.522 7.719,6.151 L7.719,8.572 L10.181,8.572 C10.821,8.572 11.340,9.083 11.340,9.712 C11.340,10.341 10.821,10.851 10.181,10.851 L6.561,10.851 ZM15.113,7.994 L10.211,4.200 L11.824,3.565 C10.796,2.732 9.505,2.270 8.136,2.270 C4.927,2.270 2.317,4.838 2.317,7.994 C2.317,11.149 4.927,13.717 8.136,13.717 C10.261,13.717 12.218,12.577 13.242,10.742 C13.550,10.191 14.253,9.989 14.815,10.291 C15.376,10.594 15.581,11.287 15.273,11.839 C13.843,14.402 11.108,15.995 8.136,15.995 C3.650,15.995 0.000,12.406 0.000,7.994 C0.000,3.581 3.650,-0.008 8.136,-0.008 C10.467,-0.008 12.627,0.956 14.170,2.642 L16.003,1.921 L15.113,7.994 Z"/>
|
|
30
|
+
</svg>
|
|
31
|
+
</div>
|
|
32
|
+
<div :class="laneicon.type === 'detector' ? '' : 'hide'">
|
|
33
|
+
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1551"
|
|
34
|
+
xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
|
|
35
|
+
<path :fill="laneicon.active === true ? highlightColor : defaultColor"
|
|
36
|
+
d="M864 64H160c-35.296 0-64 28.704-64 64v768c0 35.296 28.704 64 64 64h704c35.296 0 64-28.704 64-64V128c0-35.296-28.704-64-64-64zM160 896v-57.344h96a32 32 0 1 0 0-64H160v-32h96a32 32 0 1 0 0-64H160V128h704l0.032 550.656H768a32 32 0 1 0 0 64h96.064v32H768a32 32 0 1 0 0 64h96.064V896H160z"
|
|
37
|
+
p-id="3622"></path>
|
|
38
|
+
<path :fill="laneicon.active === true ? highlightColor : defaultColor" d="M832 160H192v480h640V160z m-64 416H256V224h512v352z" p-id="3623"></path>
|
|
39
|
+
</svg>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
<script>
|
|
44
|
+
export default {
|
|
45
|
+
name: 'lane-icon-svg',
|
|
46
|
+
data () {
|
|
47
|
+
return {
|
|
48
|
+
iconw: '16px',
|
|
49
|
+
iconh: '16px',
|
|
50
|
+
defaultColor: 'rgb(96, 98, 102)', // 默认状态颜色
|
|
51
|
+
highlightColor: 'rgb(64, 158, 255)'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
watch: {
|
|
55
|
+
},
|
|
56
|
+
props: {
|
|
57
|
+
laneicon: {
|
|
58
|
+
type: Object
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
methods: {},
|
|
62
|
+
mounted () {}
|
|
63
|
+
}
|
|
64
|
+
</script>
|
|
65
|
+
<style scoped>
|
|
66
|
+
.invisible {
|
|
67
|
+
visibility: hidden;
|
|
68
|
+
}
|
|
69
|
+
.hide {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
</style>
|