openatc-components 0.4.47 → 0.4.48
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/dev.env.js +8 -8
- package/config/index.js +94 -94
- 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 +133 -133
- package/package/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +123 -123
- package/package/kisscomps/components/Channelization/Channelization.vue +585 -584
- 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 +456 -456
- 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.draw.vue +1005 -1005
- 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/phaseAssociatedComponent.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/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +158 -158
- 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/SidewalkClickSvg.vue +1302 -1302
- 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/crossDiagram.vue +1520 -1520
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +197 -197
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +196 -196
- 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 +115 -115
- 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 +219 -219
- package/package/kisscomps/components/IntersectionMap/crossDirection/utils.js +84 -84
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +220 -220
- 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/OverLap/OverLap.vue +237 -237
- package/package/kisscomps/components/OverviewComponent/index.vue +853 -853
- package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +329 -329
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +1805 -1805
- 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 +1011 -1011
- 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/icon.vue +470 -470
- package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +871 -871
- 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 +1293 -1293
- package/package/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
- package/package/kisscomps/components/SelectCrossPhase/index.vue +418 -418
- package/package/kisscomps/components/SelectCrossPhase/utils.js +142 -142
- package/package/kisscomps/components/StageBord/StageBord.vue +303 -303
- package/package/kisscomps/components/StageOptimize/StageOptimize.vue +367 -367
- package/package/kisscomps/components/StageOptimize/index.js +2 -2
- package/package/kisscomps/components/StageOptimize/index.vue +310 -0
- package/package/kisscomps/components/StageStatus/StageStatus.vue +341 -341
- package/package/kisscomps/components/Stages/index.vue +319 -319
- package/package/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
- package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +1041 -1041
- 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 +676 -676
- package/package/kisscomps/components/patternConfig/index.vue +802 -802
- package/package/kisscomps/components/patternConfig/pattern/patternTable.vue +599 -599
- 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 +152 -152
- package/package/kisscomps/components/patternList/patternList.vue +606 -606
- package/package/kisscomps/index.js +131 -131
- package/package/kissui.min.js +1 -1
- package/package/static/img/CrossRoadsSvg.66a6236.svg +529 -0
- package/package.json +126 -126
- package/src/App.vue +24 -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/cross.js +49 -49
- package/src/api/device.js +135 -135
- package/src/api/fault.js +66 -66
- package/src/api/index.js +24 -24
- package/src/api/login.js +46 -46
- package/src/api/optimize.js +72 -72
- package/src/api/param.js +165 -165
- package/src/api/passwdAssest.js +101 -101
- package/src/api/permission.js +33 -33
- package/src/api/route.js +171 -171
- package/src/api/template.js +27 -27
- package/src/assets/font/LICENSE.txt +202 -202
- package/src/assets/font/font.css +6 -6
- package/src/i18n/index.js +26 -26
- package/src/i18n/language/en.js +1474 -1474
- package/src/i18n/language/index.js +25 -25
- package/src/i18n/language/zh.js +1474 -1474
- package/src/icons/demo_index.html +8445 -8445
- package/src/icons/iconfont.css +1451 -1451
- package/src/icons/iconfont.json +2522 -2522
- 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/BoardCard/BoardCard.vue +133 -133
- package/src/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +123 -123
- package/src/kisscomps/components/Channelization/Channelization.vue +585 -584
- 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 +456 -456
- 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.draw.vue +1005 -1005
- 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/phaseAssociatedComponent.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/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +158 -158
- 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/SidewalkClickSvg.vue +1302 -1302
- 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/crossDiagram.vue +1520 -1520
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +197 -197
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +196 -196
- 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 +115 -115
- 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 +219 -219
- package/src/kisscomps/components/IntersectionMap/crossDirection/utils.js +84 -84
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +220 -220
- 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/OverLap/OverLap.vue +237 -237
- package/src/kisscomps/components/OverviewComponent/index.vue +853 -853
- package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +329 -329
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +1805 -1805
- 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 +1011 -1011
- 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/icon.vue +470 -470
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +871 -871
- 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 +1293 -1293
- package/src/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
- package/src/kisscomps/components/SelectCrossPhase/index.vue +418 -418
- package/src/kisscomps/components/SelectCrossPhase/utils.js +142 -142
- package/src/kisscomps/components/StageBord/StageBord.vue +303 -303
- 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/Stages/index.vue +319 -319
- package/src/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
- package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +1041 -1041
- 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 +676 -676
- package/src/kisscomps/components/patternConfig/index.vue +802 -802
- package/src/kisscomps/components/patternConfig/pattern/patternTable.vue +599 -599
- 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 +152 -152
- package/src/kisscomps/components/patternList/patternList.vue +606 -606
- package/src/kisscomps/index.js +131 -131
- 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 +51 -51
- package/src/router/index.js +63 -63
- 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 +335 -335
- package/src/utils/auth.js +199 -199
- package/src/utils/conflct.js +268 -268
- package/src/utils/conflictList.js +87 -87
- package/src/utils/dateFormat.js +41 -41
- package/src/utils/errorcode.js +231 -231
- package/src/utils/fault.js +196 -196
- package/src/utils/faultcode.js +225 -225
- package/src/utils/index.js +69 -69
- package/src/utils/pedphasedesc.js +119 -119
- package/src/utils/phaseList.js +203 -203
- package/src/utils/phasedesc.js +144 -144
- 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 +93 -93
- package/src/views/intersection.vue +522 -522
- package/src/views/intersection2.vue +328 -328
- package/src/views/overView.vue +63 -63
- package/src/views/patternConfig.vue +14792 -14792
- package/src/views/schemeconfig.vue +206 -206
- package/static/apiconfig.json +461 -461
- package/static/img/CrossRoadsSvg.svg +529 -0
- package/static/styles/channelizatioon.scss +433 -433
- package/static/styles/common.scss +30 -30
- package/static/styles/commonkanban.scss +168 -168
- package/static/styles/dark/index.scss +2 -2
- package/static/styles/dark/theme/element-dark.scss +44 -44
- package/static/styles/index.scss +84 -84
- package/static/styles/intersection.scss +180 -180
- package/static/styles/light/index.scss +2 -2
- package/static/styles/light/theme/element-light.scss +44 -44
- package/static/styles/overview.scss +146 -146
- package/static/styles/patternConfig.scss +56 -56
- package/static/styles/phasePedSelect.scss +71 -71
- package/static/styles/schemeconfig.scss +553 -553
- package/static/styles/stages.scss +57 -57
- package/static/styles/uiComponents.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/kissui.js +0 -216608
- package/pnpm-lock.yaml +0 -16362
|
@@ -1,1011 +1,1011 @@
|
|
|
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="scheme-config openatc-scheme-config" style="height: 100%;">
|
|
14
|
-
<fault-detail-modal ref="faultDetail" :agentId="agentId" :isFromAtc="isFromAtc" @refreshFault="getFaultById"></fault-detail-modal>
|
|
15
|
-
<!-- 带实时面板的完整功能(带动画) -->
|
|
16
|
-
<div style="height: 100%;" v-if="realtimeStatusModalvisible">
|
|
17
|
-
<transition name="fade-right" mode="out-in"
|
|
18
|
-
:enter-active-class="toPage === 1 ? 'animated fadeInRight' : 'animated fadeInLeft'"
|
|
19
|
-
:leave-active-class="toPage === 1 ? 'animated fadeOutRight' : 'animated fadeOutLeft' ">
|
|
20
|
-
<div class="new" style="position: absolute;width: 100%;height:100%;" v-show="(isOperation && !isClosePhase)">
|
|
21
|
-
<ManualControlModalNew
|
|
22
|
-
v-if="resetcomponent"
|
|
23
|
-
ref="ManualControlModalNew"
|
|
24
|
-
:residentControlList="residentControlList"
|
|
25
|
-
:specialControlList="specialControlList"
|
|
26
|
-
:patternChooseControlList="patternChooseControlList"
|
|
27
|
-
:othersControlList="othersControlList"
|
|
28
|
-
:controlData="controlData"
|
|
29
|
-
:patternAll="patternAll"
|
|
30
|
-
:crossStatusData="crossStatusData"
|
|
31
|
-
:preselectModel="preselectModel"
|
|
32
|
-
:preselectStages="preselectStages"
|
|
33
|
-
:realtimeStatusModalvisible="realtimeStatusModalvisible"
|
|
34
|
-
:roadDirection="roadDirection"
|
|
35
|
-
:closePhaseRings="phaseRings"
|
|
36
|
-
:sidewalkPhaseData="sidewalkPhaseData"
|
|
37
|
-
:phaseList="phaseList"
|
|
38
|
-
:statusData="statusData"
|
|
39
|
-
:overlap="overlap"
|
|
40
|
-
:patternSelect="patternSelect"
|
|
41
|
-
:allPatternList="allPatternList"
|
|
42
|
-
:funcSort="funcSort"
|
|
43
|
-
:thirdPartyControlMenu="thirdPartyControlMenu"
|
|
44
|
-
:thirdPartyControl="thirdPartyControl"
|
|
45
|
-
:isShowBack="isShowBack"
|
|
46
|
-
:isShowRecovery="isShowRecovery"
|
|
47
|
-
:isShowImplement="isShowImplement"
|
|
48
|
-
@closeManualModal="closeManualModal"
|
|
49
|
-
@selectModel="selectModel"
|
|
50
|
-
@selectStages="selectStages"
|
|
51
|
-
@patternCommit="patternCommit"
|
|
52
|
-
@closePhaseBack="closePhaseBack"
|
|
53
|
-
@closePhaseControl="closePhaseControl"
|
|
54
|
-
@selectSpecialModel="selectSpecialModelNew" />
|
|
55
|
-
</div>
|
|
56
|
-
</transition>
|
|
57
|
-
|
|
58
|
-
<transition name="fade-left" mode="out-in"
|
|
59
|
-
enter-active-class="animated fadeInLeft"
|
|
60
|
-
leave-active-class="animated fadeOutLeft">
|
|
61
|
-
<div class="right-control-part" style="position: absolute;width: 100%;" v-show="!isOperation">
|
|
62
|
-
<RealtimeStatusModal
|
|
63
|
-
:controlData="controlData"
|
|
64
|
-
:currModel="currModel"
|
|
65
|
-
:ip="ip"
|
|
66
|
-
:platform="platform"
|
|
67
|
-
:firm="firm"
|
|
68
|
-
:responseTime="responseTime"
|
|
69
|
-
:curFaultList="curFaultList"
|
|
70
|
-
:confirmedFault="confirmedFault"
|
|
71
|
-
:ignoredFault="ignoredFault"
|
|
72
|
-
:untreatedFault="untreatedFault"
|
|
73
|
-
:closePhase="closePhase"
|
|
74
|
-
:agentName="agentName"
|
|
75
|
-
:agentId="agentId"
|
|
76
|
-
:crossStatusData="crossStatusData"
|
|
77
|
-
:phaseList="phaseList"
|
|
78
|
-
:sidewalkPhaseData="sidewalkPhaseData"
|
|
79
|
-
:roadDirection="roadDirection"
|
|
80
|
-
@changeStatus="changeStatus"
|
|
81
|
-
@showFaultDetail="showFaultDetail"/>
|
|
82
|
-
</div>
|
|
83
|
-
</transition>
|
|
84
|
-
</div>
|
|
85
|
-
<!-- 只有控制功能(无动画) -->
|
|
86
|
-
<div v-else style="height: 100%;">
|
|
87
|
-
<div class="new" style="position: absolute;width: 100%;height:100%;" v-show="(isOperation && !isClosePhase)">
|
|
88
|
-
<ManualControlModalNew
|
|
89
|
-
v-if="resetcomponent"
|
|
90
|
-
ref="ManualControlModalNew"
|
|
91
|
-
:residentControlList="residentControlList"
|
|
92
|
-
:specialControlList="specialControlList"
|
|
93
|
-
:patternChooseControlList="patternChooseControlList"
|
|
94
|
-
:othersControlList="othersControlList"
|
|
95
|
-
:controlData="controlData"
|
|
96
|
-
:patternAll="patternAll"
|
|
97
|
-
:crossStatusData="crossStatusData"
|
|
98
|
-
:preselectModel="preselectModel"
|
|
99
|
-
:preselectStages="preselectStages"
|
|
100
|
-
:realtimeStatusModalvisible="realtimeStatusModalvisible"
|
|
101
|
-
:roadDirection="roadDirection"
|
|
102
|
-
:closePhaseRings="phaseRings"
|
|
103
|
-
:sidewalkPhaseData="sidewalkPhaseData"
|
|
104
|
-
:phaseList="phaseList"
|
|
105
|
-
:statusData="statusData"
|
|
106
|
-
:overlap="overlap"
|
|
107
|
-
:patternSelect="patternSelect"
|
|
108
|
-
:allPatternList="allPatternList"
|
|
109
|
-
:funcSort="funcSort"
|
|
110
|
-
:thirdPartyControlMenu="thirdPartyControlMenu"
|
|
111
|
-
:thirdPartyControl="thirdPartyControl"
|
|
112
|
-
:isShowBack="isShowBack"
|
|
113
|
-
:isShowRecovery="isShowRecovery"
|
|
114
|
-
:isShowImplement="isShowImplement"
|
|
115
|
-
@closeManualModal="closeManualModal"
|
|
116
|
-
@selectModel="selectModel"
|
|
117
|
-
@selectStages="selectStages"
|
|
118
|
-
@patternCommit="patternCommit"
|
|
119
|
-
@closePhaseBack="closePhaseBack"
|
|
120
|
-
@closePhaseControl="closePhaseControl"
|
|
121
|
-
@selectSpecialModel="selectSpecialModelNew" />
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
</div>
|
|
125
|
-
</template>
|
|
126
|
-
|
|
127
|
-
<script>
|
|
128
|
-
import { putTscControl } from '../../../api/control.js'
|
|
129
|
-
import { uploadSingleTscParam } from '../../../api/param.js'
|
|
130
|
-
import RealtimeStatusModal from './realtimeStatusModal'
|
|
131
|
-
import ManualControlModal from './manualControlModal'
|
|
132
|
-
import ManualControlModalNew from './manualControlModalNew'
|
|
133
|
-
import ClosePhaseControlModal from './closePhaselControlModal'
|
|
134
|
-
import LockingPhaseControlModal from './lockingPhaselControlModal'
|
|
135
|
-
import TentativePlanControlModal from './tentativeplancontrolmodal'
|
|
136
|
-
import AzimuthLocking from './azimuthlocking'
|
|
137
|
-
import priorityControl from './priorityControl'
|
|
138
|
-
// import { getFaultMesZh, getFaultMesEn } from '../../utils/faultcode.js'
|
|
139
|
-
import { getMessageByCode } from '../../../utils/responseMessage'
|
|
140
|
-
import { GetAllFaultRange } from '../../../api/fault'
|
|
141
|
-
import PhaseDataModel from '../IntersectionMap/crossDirection/utils.js'
|
|
142
|
-
import CrossDiagramMgr from '../../../EdgeMgr/controller/crossDiagramMgr.js'
|
|
143
|
-
import { setToken, setHost, getTheme } from '../../../utils/auth.js'
|
|
144
|
-
import RingDataModel from '../../../utils/RingDataModel.js'
|
|
145
|
-
import { getIntersectionInfo } from '../../../api/template'
|
|
146
|
-
import { GetRoleByName } from '../../../api/permission.js'
|
|
147
|
-
import { getPermissionMenu, getPermissionControl } from './utils/thirdPartypermission.js'
|
|
148
|
-
|
|
149
|
-
export default {
|
|
150
|
-
name: 'scheme-config',
|
|
151
|
-
components: {
|
|
152
|
-
RealtimeStatusModal,
|
|
153
|
-
ManualControlModal,
|
|
154
|
-
ClosePhaseControlModal,
|
|
155
|
-
LockingPhaseControlModal,
|
|
156
|
-
priorityControl,
|
|
157
|
-
AzimuthLocking,
|
|
158
|
-
TentativePlanControlModal,
|
|
159
|
-
ManualControlModalNew
|
|
160
|
-
},
|
|
161
|
-
props: {
|
|
162
|
-
phaseList: {
|
|
163
|
-
type: Array,
|
|
164
|
-
default: () => []
|
|
165
|
-
},
|
|
166
|
-
reqUrl: {
|
|
167
|
-
type: String,
|
|
168
|
-
default: ''
|
|
169
|
-
},
|
|
170
|
-
responseTime: {
|
|
171
|
-
type: Number,
|
|
172
|
-
default: 0
|
|
173
|
-
},
|
|
174
|
-
statusData: {
|
|
175
|
-
type: Object,
|
|
176
|
-
required: true
|
|
177
|
-
},
|
|
178
|
-
agentName: {
|
|
179
|
-
type: String,
|
|
180
|
-
default: ''
|
|
181
|
-
},
|
|
182
|
-
// devStatus: {
|
|
183
|
-
// type: Number,
|
|
184
|
-
// default: 0
|
|
185
|
-
// },
|
|
186
|
-
agentId: {
|
|
187
|
-
type: String,
|
|
188
|
-
default: '0'
|
|
189
|
-
},
|
|
190
|
-
ip: {
|
|
191
|
-
type: String
|
|
192
|
-
},
|
|
193
|
-
// allPatternList: {
|
|
194
|
-
// type: Array
|
|
195
|
-
// },
|
|
196
|
-
// overlap: {
|
|
197
|
-
// type: Array
|
|
198
|
-
// },
|
|
199
|
-
platform: {
|
|
200
|
-
type: String
|
|
201
|
-
},
|
|
202
|
-
firm: {
|
|
203
|
-
type: String
|
|
204
|
-
},
|
|
205
|
-
realtimeStatusModalvisible: {
|
|
206
|
-
type: Boolean,
|
|
207
|
-
default: true
|
|
208
|
-
},
|
|
209
|
-
Token: {
|
|
210
|
-
type: String,
|
|
211
|
-
default: ''
|
|
212
|
-
},
|
|
213
|
-
roadDirection: {
|
|
214
|
-
type: String,
|
|
215
|
-
default: 'right'
|
|
216
|
-
},
|
|
217
|
-
isFromAtc: {
|
|
218
|
-
type: Boolean,
|
|
219
|
-
default: true
|
|
220
|
-
},
|
|
221
|
-
isShowBack: {
|
|
222
|
-
type: Boolean,
|
|
223
|
-
default: true
|
|
224
|
-
},
|
|
225
|
-
isShowRecovery: {
|
|
226
|
-
type: Boolean,
|
|
227
|
-
default: true
|
|
228
|
-
},
|
|
229
|
-
isShowImplement: {
|
|
230
|
-
type: Boolean,
|
|
231
|
-
default: true
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
data () {
|
|
235
|
-
return {
|
|
236
|
-
crossStatusData: null,
|
|
237
|
-
controlData: {},
|
|
238
|
-
control: '',
|
|
239
|
-
allPatternList: [],
|
|
240
|
-
overlap: [],
|
|
241
|
-
sidewalkPhaseData: [],
|
|
242
|
-
list: [{
|
|
243
|
-
iconClass: 'model',
|
|
244
|
-
name: '控制模式',
|
|
245
|
-
value: '--'
|
|
246
|
-
}, {
|
|
247
|
-
iconClass: 'cycle',
|
|
248
|
-
name: '周期',
|
|
249
|
-
value: '--'
|
|
250
|
-
}, {
|
|
251
|
-
iconClass: 'time',
|
|
252
|
-
name: '当前时间',
|
|
253
|
-
value: '--'
|
|
254
|
-
}, {
|
|
255
|
-
iconClass: 'maincontrol',
|
|
256
|
-
name: '控制方式',
|
|
257
|
-
value: '--'
|
|
258
|
-
}, {
|
|
259
|
-
iconClass: 'phasediff',
|
|
260
|
-
name: '相位差',
|
|
261
|
-
value: '--'
|
|
262
|
-
}, {
|
|
263
|
-
iconClass: 'time',
|
|
264
|
-
name: '剩余时间',
|
|
265
|
-
value: '--'
|
|
266
|
-
}],
|
|
267
|
-
faultTimer: null, // 当前故障定时器
|
|
268
|
-
ParamsMode: new Map([[0, '自主控制'], [1, '本地手动'], [2, '平台控制'], [3, '配置软件控制'], [4, '遥控器控制'], [5, '黄闪器控制'], [6, '降级控制'], [7, '脚本控制'], [8, '算法控制']]),
|
|
269
|
-
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']]),
|
|
270
|
-
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, '设备维护']]),
|
|
271
|
-
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']]),
|
|
272
|
-
phaseType: new Map([[1, '红'], [2, '黄'], [3, '绿']]), // phaseType表示红,黄,绿
|
|
273
|
-
phaseTypeEn: new Map([[1, 'Red'], [2, 'Yellow'], [3, 'Green']]), // phaseType表示红,黄,绿
|
|
274
|
-
mode: '2',
|
|
275
|
-
loading: {},
|
|
276
|
-
modelList: [{
|
|
277
|
-
id: 1,
|
|
278
|
-
iconClass: 'huangshan',
|
|
279
|
-
permission: 'configer:manual:senior',
|
|
280
|
-
iconName: '黄闪'
|
|
281
|
-
}, {
|
|
282
|
-
id: 2,
|
|
283
|
-
iconClass: 'quanhong',
|
|
284
|
-
permission: 'configer:manual:senior',
|
|
285
|
-
iconName: '全红'
|
|
286
|
-
}, {
|
|
287
|
-
id: 3,
|
|
288
|
-
iconClass: 'guandeng',
|
|
289
|
-
permission: 'configer:manual:senior',
|
|
290
|
-
iconName: '关灯'
|
|
291
|
-
}, {
|
|
292
|
-
id: 4,
|
|
293
|
-
iconClass: 'bujin',
|
|
294
|
-
permission: 'configer:manual:dwell',
|
|
295
|
-
iconName: '步进'
|
|
296
|
-
}, {
|
|
297
|
-
id: 5,
|
|
298
|
-
iconClass: 'dingzhouqi',
|
|
299
|
-
permission: 'configer:manual:base',
|
|
300
|
-
iconName: '定周期'
|
|
301
|
-
}, {
|
|
302
|
-
id: 6,
|
|
303
|
-
iconClass: 'ganyingkongzhi',
|
|
304
|
-
permission: 'configer:manual:base',
|
|
305
|
-
iconName: '感应控制'
|
|
306
|
-
}, {
|
|
307
|
-
id: 9,
|
|
308
|
-
iconClass: 'zishiying',
|
|
309
|
-
permission: 'configer:manual:base',
|
|
310
|
-
iconName: '方案生成'
|
|
311
|
-
}, {
|
|
312
|
-
id: 10,
|
|
313
|
-
iconClass: 'wuxianlan',
|
|
314
|
-
permission: 'configer:manual:base',
|
|
315
|
-
iconName: '无电缆协调'
|
|
316
|
-
}, {
|
|
317
|
-
id: 12,
|
|
318
|
-
iconClass: 'xingrenguojie',
|
|
319
|
-
permission: 'configer:manual:base',
|
|
320
|
-
iconName: '行人过街'
|
|
321
|
-
}, {
|
|
322
|
-
id: 19,
|
|
323
|
-
iconClass: 'ganyingshixingrenguojie',
|
|
324
|
-
permission: 'configer:manual:base',
|
|
325
|
-
iconName: '感应式行人过街控制'
|
|
326
|
-
}],
|
|
327
|
-
residentControlList: [
|
|
328
|
-
{
|
|
329
|
-
type: '步进',
|
|
330
|
-
id: 4,
|
|
331
|
-
iconClass: 'bujin',
|
|
332
|
-
permission: 'configer:manual:dwell',
|
|
333
|
-
iconName: this.$t('openatccomponents.overview.modelList4'),
|
|
334
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
type: '阶段锁定',
|
|
338
|
-
id: 4,
|
|
339
|
-
iconClass: 'jieduansuoding',
|
|
340
|
-
permission: 'configer:manual:dwell',
|
|
341
|
-
iconName: this.$t('openatccomponents.overview.modelList4-'),
|
|
342
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
type: '相位锁定',
|
|
346
|
-
id: 22,
|
|
347
|
-
iconClass: 'xiangweisuoding',
|
|
348
|
-
permission: 'configer:manual:optimize',
|
|
349
|
-
iconName: this.$t('openatccomponents.overview.modelList22'),
|
|
350
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
type: '方向锁定',
|
|
354
|
-
id: 25,
|
|
355
|
-
iconClass: 'fangxiangsuoding',
|
|
356
|
-
permission: 'configer:manual:dwell',
|
|
357
|
-
iconName: this.$t('openatccomponents.overview.modelList25'),
|
|
358
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
359
|
-
}
|
|
360
|
-
],
|
|
361
|
-
specialControlList: [
|
|
362
|
-
{
|
|
363
|
-
type: '黄闪',
|
|
364
|
-
id: 1,
|
|
365
|
-
iconClass: 'huangshan',
|
|
366
|
-
permission: 'configer:manual:senior',
|
|
367
|
-
iconName: this.$t('openatccomponents.overview.modelList1'),
|
|
368
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
369
|
-
}, {
|
|
370
|
-
type: '全红',
|
|
371
|
-
id: 2,
|
|
372
|
-
iconClass: 'quanhong',
|
|
373
|
-
permission: 'configer:manual:senior',
|
|
374
|
-
iconName: this.$t('openatccomponents.overview.modelList2'),
|
|
375
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
376
|
-
}, {
|
|
377
|
-
type: '关灯',
|
|
378
|
-
id: 3,
|
|
379
|
-
iconClass: 'guandeng',
|
|
380
|
-
permission: 'configer:manual:senior',
|
|
381
|
-
iconName: this.$t('openatccomponents.overview.modelList3'),
|
|
382
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
383
|
-
}
|
|
384
|
-
],
|
|
385
|
-
patternChooseControlList: [
|
|
386
|
-
{
|
|
387
|
-
type: '定周期',
|
|
388
|
-
id: 5,
|
|
389
|
-
iconClass: 'dingzhouqi',
|
|
390
|
-
permission: 'configer:manual:base',
|
|
391
|
-
iconName: this.$t('openatccomponents.overview.modelList5'),
|
|
392
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
393
|
-
}, {
|
|
394
|
-
type: '自适应',
|
|
395
|
-
id: 6,
|
|
396
|
-
iconClass: 'ganyingkongzhi',
|
|
397
|
-
permission: 'configer:manual:base',
|
|
398
|
-
iconName: this.$t('openatccomponents.overview.modelList6'),
|
|
399
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
400
|
-
}, {
|
|
401
|
-
type: '方案生成',
|
|
402
|
-
id: 9,
|
|
403
|
-
iconClass: 'zishiying',
|
|
404
|
-
permission: 'configer:manual:base',
|
|
405
|
-
iconName: this.$t('openatccomponents.overview.modelList9'),
|
|
406
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
407
|
-
}, {
|
|
408
|
-
type: '无电缆协调',
|
|
409
|
-
id: 10,
|
|
410
|
-
iconClass: 'wuxianlan',
|
|
411
|
-
permission: 'configer:manual:base',
|
|
412
|
-
iconName: this.$t('openatccomponents.overview.modelList10'),
|
|
413
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
414
|
-
}, {
|
|
415
|
-
type: '行人过街',
|
|
416
|
-
id: 12,
|
|
417
|
-
iconClass: 'xingrenguojie',
|
|
418
|
-
permission: 'configer:manual:base',
|
|
419
|
-
iconName: this.$t('openatccomponents.overview.modelList12'),
|
|
420
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
421
|
-
}, {
|
|
422
|
-
type: '感应式行人过街',
|
|
423
|
-
id: 19,
|
|
424
|
-
iconClass: 'ganyingshixingrenguojie',
|
|
425
|
-
permission: 'configer:manual:base',
|
|
426
|
-
iconName: this.$t('openatccomponents.overview.modelList19'),
|
|
427
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
428
|
-
}, {
|
|
429
|
-
type: '感应式自适应',
|
|
430
|
-
id: 18,
|
|
431
|
-
iconClass: 'ganyingshizishiying',
|
|
432
|
-
permission: 'configer:manual:base',
|
|
433
|
-
iconName: this.$t('openatccomponents.overview.modelList18'),
|
|
434
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
435
|
-
}
|
|
436
|
-
],
|
|
437
|
-
othersControlList: [
|
|
438
|
-
{ // 特殊控制
|
|
439
|
-
type: '相位关断',
|
|
440
|
-
id: 23,
|
|
441
|
-
permission: 'configer:manual:optimize',
|
|
442
|
-
iconClass: 'closephase',
|
|
443
|
-
iconName: this.$t('openatccomponents.overview.modelList23'),
|
|
444
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
445
|
-
}, {
|
|
446
|
-
type: '临时方案',
|
|
447
|
-
id: 100,
|
|
448
|
-
permission: 'configer:manual:optimize',
|
|
449
|
-
iconClass: 'tentativeplan',
|
|
450
|
-
iconName: this.$t('openatccomponents.overview.modelList100'),
|
|
451
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
452
|
-
}, {
|
|
453
|
-
type: '优先控制',
|
|
454
|
-
id: 24,
|
|
455
|
-
permission: 'configer:manual:preempt',
|
|
456
|
-
iconClass: 'prioritycontrol',
|
|
457
|
-
iconName: this.$t('openatccomponents.overview.modelList24'),
|
|
458
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
459
|
-
}],
|
|
460
|
-
currModel: -1,
|
|
461
|
-
preselectModel: -1, // 预选方案
|
|
462
|
-
preselectStages: -1, // 预选阶段
|
|
463
|
-
closePhase: [],
|
|
464
|
-
isOperation: false, // 是否为手动可操作状态
|
|
465
|
-
tempPatternid: 0, // 控制方式手动操作的情况下的控制编号的临时值。
|
|
466
|
-
tempDelay: 0, // 控制方式手动操作的情况下的延迟时间的临时值。
|
|
467
|
-
tempDuration: 0, // 控制方式手动操作的情况下的持续时间的临时值。
|
|
468
|
-
// phaseList: [], // 当前相位集合
|
|
469
|
-
faultvisible: false,
|
|
470
|
-
isClosePhase: false, // 是否在相位关断
|
|
471
|
-
toPage: 1, // 与哪一个页面交互,1 代表路口信息页面,3代表 相位关断页面
|
|
472
|
-
phaseRings: [],
|
|
473
|
-
curFaultList: [],
|
|
474
|
-
confirmedFault: [],
|
|
475
|
-
ignoredFault: [],
|
|
476
|
-
untreatedFault: [],
|
|
477
|
-
patternAll: [],
|
|
478
|
-
patternSelect: [], // 所有方案id
|
|
479
|
-
specialPage: '', // 哪一个特殊控制页面
|
|
480
|
-
nextcycleefficcontrol: [5, 6, 9, 10, 12, 19], // 下周期生效的控制方式
|
|
481
|
-
resetcomponent: false,
|
|
482
|
-
funcSort: 'allFunc',
|
|
483
|
-
thirdPartyControlMenu: [],
|
|
484
|
-
thirdPartyControl: []
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
watch: {
|
|
488
|
-
agentId: {
|
|
489
|
-
handler: function (val1, val2) {
|
|
490
|
-
if (val1 !== val2) {
|
|
491
|
-
this.resetComponent()
|
|
492
|
-
}
|
|
493
|
-
this.getIntersectionInfo(val1)
|
|
494
|
-
},
|
|
495
|
-
// 深度观察监听
|
|
496
|
-
deep: true
|
|
497
|
-
},
|
|
498
|
-
statusData: {
|
|
499
|
-
handler: function (val) {
|
|
500
|
-
this.initData()
|
|
501
|
-
this.getPedPhasePos()
|
|
502
|
-
},
|
|
503
|
-
// 深度观察监听
|
|
504
|
-
deep: true
|
|
505
|
-
},
|
|
506
|
-
phaseList: {
|
|
507
|
-
handler: function (val, oldVal) {
|
|
508
|
-
this.getPedPhasePos()
|
|
509
|
-
},
|
|
510
|
-
// 深度观察监听
|
|
511
|
-
deep: true
|
|
512
|
-
},
|
|
513
|
-
Token: {
|
|
514
|
-
handler: function (val) {
|
|
515
|
-
this.setPropsToken(val)
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
roadDirection: {
|
|
519
|
-
handler: function (val) {
|
|
520
|
-
if (val === 'left' || val === 'right') {
|
|
521
|
-
this.PhaseDataModel = new PhaseDataModel(val)
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
},
|
|
526
|
-
created () {
|
|
527
|
-
this.setHost(this.reqUrl)
|
|
528
|
-
this.PhaseDataModel = new PhaseDataModel(this.roadDirection)
|
|
529
|
-
this.CrossDiagramMgr = new CrossDiagramMgr()
|
|
530
|
-
},
|
|
531
|
-
async mounted () {
|
|
532
|
-
this.resetcomponent = true
|
|
533
|
-
this.init()
|
|
534
|
-
},
|
|
535
|
-
methods: {
|
|
536
|
-
resetComponent () {
|
|
537
|
-
this.resetcomponent = false
|
|
538
|
-
this.$nextTick(() => {
|
|
539
|
-
this.resetcomponent = true
|
|
540
|
-
this.init()
|
|
541
|
-
})
|
|
542
|
-
},
|
|
543
|
-
init () {
|
|
544
|
-
this.getIntersectionInfo(this.agentId)
|
|
545
|
-
if (this.realtimeStatusModalvisible === false) {
|
|
546
|
-
this.changeStatus()
|
|
547
|
-
}
|
|
548
|
-
this.setPropsToken(this.Token)
|
|
549
|
-
this.hiddenPartControl()
|
|
550
|
-
// await this.getPhase()
|
|
551
|
-
this.getFault()
|
|
552
|
-
this.initData()
|
|
553
|
-
},
|
|
554
|
-
setHost (host) {
|
|
555
|
-
// 获取组件外传入的token,便于独立组件调用接口
|
|
556
|
-
if (host && host !== '') {
|
|
557
|
-
setHost(host)
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
getIntersectionInfo (agentid) {
|
|
561
|
-
// 获取路口信息
|
|
562
|
-
getIntersectionInfo(agentid).then(res => {
|
|
563
|
-
this.patternAll = res.data.data.param.patternList
|
|
564
|
-
this.allPatternList = res.data.data.param.patternList
|
|
565
|
-
this.overlap = res.data.data.param.overlaplList
|
|
566
|
-
this.patternSelect = res.data.data.param.patternList.map(item => {
|
|
567
|
-
return {
|
|
568
|
-
value: item.id,
|
|
569
|
-
label: item.desc ? item.desc : '' + item.id ? item.id : ''
|
|
570
|
-
}
|
|
571
|
-
})
|
|
572
|
-
})
|
|
573
|
-
},
|
|
574
|
-
getFault () {
|
|
575
|
-
this.getFaultById()
|
|
576
|
-
this.faultTimer = setInterval(() => {
|
|
577
|
-
this.getFaultById()
|
|
578
|
-
}, 30000)
|
|
579
|
-
},
|
|
580
|
-
getPedPhasePos () {
|
|
581
|
-
let ringDataModel = new RingDataModel(this.statusData, this.phaseList)
|
|
582
|
-
this.sidewalkPhaseData = ringDataModel.getPedPhasePos()
|
|
583
|
-
this.ringDataModel = ringDataModel
|
|
584
|
-
},
|
|
585
|
-
clearFaultInterval () {
|
|
586
|
-
if (this.faultTimer !== null) {
|
|
587
|
-
clearInterval(this.faultTimer) // 清除流量定时器
|
|
588
|
-
this.faultTimer = null
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
initData () {
|
|
592
|
-
this.crossStatusData = JSON.parse(JSON.stringify(this.statusData))
|
|
593
|
-
let TscData = JSON.parse(JSON.stringify(this.crossStatusData))
|
|
594
|
-
this.currModel = TscData.control
|
|
595
|
-
this.controlData = this.handleGetData(TscData)
|
|
596
|
-
this.handleGetPhaseClose()
|
|
597
|
-
},
|
|
598
|
-
lockScreen () {
|
|
599
|
-
this.loading = this.$loading({
|
|
600
|
-
lock: true,
|
|
601
|
-
text: 'Loading',
|
|
602
|
-
spinner: 'el-icon-loading',
|
|
603
|
-
background: 'rgba(0, 0, 0, 0.5)'
|
|
604
|
-
})
|
|
605
|
-
},
|
|
606
|
-
unlockScreen () {
|
|
607
|
-
this.loading.close()
|
|
608
|
-
},
|
|
609
|
-
selectModel (value) {
|
|
610
|
-
if (!this.isOperation) return
|
|
611
|
-
this.preselectStages = -1
|
|
612
|
-
this.recoverLastModel = this.preselectModel // 记录恢复前选中的控制方式
|
|
613
|
-
this.preselectModel = value
|
|
614
|
-
},
|
|
615
|
-
selectStages (value) {
|
|
616
|
-
if (!this.isOperation) return
|
|
617
|
-
if (this.preselectStages !== -1) {
|
|
618
|
-
if (this.preselectStages === value) {
|
|
619
|
-
this.preselectStages = -1
|
|
620
|
-
} else {
|
|
621
|
-
this.preselectStages = value
|
|
622
|
-
this.preselectModel = 4 // 如果选了阶段,默认控制方式为步进
|
|
623
|
-
}
|
|
624
|
-
} else {
|
|
625
|
-
this.preselectStages = value
|
|
626
|
-
this.preselectModel = 4 // 如果选了阶段,默认控制方式为步进
|
|
627
|
-
}
|
|
628
|
-
},
|
|
629
|
-
changeStatus () {
|
|
630
|
-
this.toPage = 1
|
|
631
|
-
this.isOperation = true
|
|
632
|
-
if (this.platform !== undefined && this.platform !== 'OpenATC') {
|
|
633
|
-
this.queryThirdParty()
|
|
634
|
-
}
|
|
635
|
-
this.$refs.ManualControlModalNew.init()
|
|
636
|
-
},
|
|
637
|
-
queryThirdParty () {
|
|
638
|
-
this.funcSort = 'allFunc'
|
|
639
|
-
GetRoleByName(`td--${this.platform}`).then(res => {
|
|
640
|
-
if (!res.data.success) {
|
|
641
|
-
let msg = getMessageByCode(res.data.code, this.$i18n.locale)
|
|
642
|
-
// this.$message.error(msg)
|
|
643
|
-
console.log(msg)
|
|
644
|
-
return
|
|
645
|
-
}
|
|
646
|
-
this.funcSort = 'thirdPartyFunc'
|
|
647
|
-
this.thirdPartyControl = getPermissionControl(res.data.data)
|
|
648
|
-
this.thirdPartyControlMenu = getPermissionMenu(this.thirdPartyControl)
|
|
649
|
-
this.$refs.ManualControlModalNew.activeName = this.thirdPartyControlMenu[0]
|
|
650
|
-
})
|
|
651
|
-
},
|
|
652
|
-
handleGetData (data) {
|
|
653
|
-
let that = this
|
|
654
|
-
if (data.name === '') {
|
|
655
|
-
if (that.$i18n.locale === 'en') {
|
|
656
|
-
data.name = 'Pattern' + data.patternid
|
|
657
|
-
} else if (that.$i18n.locale === 'zh') {
|
|
658
|
-
data.name = '方案' + data.patternid
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
Object.keys(data).forEach(function (key) {
|
|
662
|
-
if (that.$i18n.locale === 'en') {
|
|
663
|
-
if (key === 'mode') {
|
|
664
|
-
if (that.ParamsModeEn.get(data[key]) !== undefined) {
|
|
665
|
-
data[key] = that.ParamsModeEn.get(data[key])
|
|
666
|
-
} else {
|
|
667
|
-
data[key] = that.ParamsModeEn.get(0)
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
// if (key === 'control') {
|
|
671
|
-
// data[key] = that.ParamsControlEn.get(data[key])
|
|
672
|
-
// }
|
|
673
|
-
if (key === 'phase') {
|
|
674
|
-
for (let val of data[key]) {
|
|
675
|
-
val.type = that.phaseTypeEn.get(val.type)
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
} else if (that.$i18n.locale === 'zh') {
|
|
679
|
-
if (key === 'mode') {
|
|
680
|
-
if (that.ParamsMode.get(data[key]) !== undefined) {
|
|
681
|
-
data[key] = that.ParamsMode.get(data[key])
|
|
682
|
-
} else {
|
|
683
|
-
data[key] = that.ParamsMode.get(0)
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
if (key === 'control') {
|
|
687
|
-
data[key] = that.ParamsControl.get(data[key])
|
|
688
|
-
}
|
|
689
|
-
if (key === 'phase') {
|
|
690
|
-
for (let val of data[key]) {
|
|
691
|
-
val.type = that.phaseType.get(val.type)
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
})
|
|
696
|
-
return data
|
|
697
|
-
},
|
|
698
|
-
closeManualModal () {
|
|
699
|
-
this.isOperation = false
|
|
700
|
-
this.preselectModel = -1
|
|
701
|
-
this.preselectStages = -1
|
|
702
|
-
this.tempPatternid = 0
|
|
703
|
-
this.tempDelay = 0
|
|
704
|
-
this.tempDuration = 0
|
|
705
|
-
this.modelList = this.modelList.filter((item) => {
|
|
706
|
-
return item.id !== 0
|
|
707
|
-
})
|
|
708
|
-
this.toPage = 1
|
|
709
|
-
},
|
|
710
|
-
handleManualConfirm (manualInfo) {
|
|
711
|
-
this.$emit('handleManualConfirm', manualInfo)
|
|
712
|
-
},
|
|
713
|
-
patternCommit (manualInfo) {
|
|
714
|
-
let that = this
|
|
715
|
-
let control = {}
|
|
716
|
-
if (that.preselectModel === -1) {
|
|
717
|
-
this.$message.error(this.$t('openatccomponents.overview.noselectcontroltip'))
|
|
718
|
-
return
|
|
719
|
-
}
|
|
720
|
-
that.ParamsMode.forEach(function (value, key, map) {
|
|
721
|
-
if (that.controlData.mode === value) {
|
|
722
|
-
control.mode = key
|
|
723
|
-
}
|
|
724
|
-
})
|
|
725
|
-
control.control = that.preselectModel
|
|
726
|
-
// control.terminal = isNaN(parseInt(manualInfo.tempPatternid)) ? Number(manualInfo.tempPatternid.replace(/[^0-9]/ig, '')) : manualInfo.tempPatternid
|
|
727
|
-
control.terminal = manualInfo.tempPatternid === undefined ? null : Number(manualInfo.tempPatternid)
|
|
728
|
-
// control.delay = Number(manualInfo.tempDelay)
|
|
729
|
-
control.duration = Number(manualInfo.tempDuration)
|
|
730
|
-
control.value = that.preselectStages === -1 ? 0 : that.preselectStages
|
|
731
|
-
if (control.control === 0) {
|
|
732
|
-
// 恢复自主控制(多时段)时,value为当前控制方式
|
|
733
|
-
control.value = this.currModel
|
|
734
|
-
if (manualInfo && manualInfo.fromControl) {
|
|
735
|
-
const specialControlArr = [40, 4, 100, 101]
|
|
736
|
-
if (specialControlArr.includes(manualInfo.fromControl)) {
|
|
737
|
-
control.value = manualInfo.fromControl
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
if (!this.isShowImplement) {
|
|
742
|
-
console.log(control)
|
|
743
|
-
this.$emit('patternCommitCallback', control)
|
|
744
|
-
return
|
|
745
|
-
}
|
|
746
|
-
this.lockScreen()
|
|
747
|
-
putTscControl(control, this.agentId).then(data => {
|
|
748
|
-
that.unlockScreen()
|
|
749
|
-
if (control.control === 0) {
|
|
750
|
-
that.preselectModel = that.recoverLastModel
|
|
751
|
-
}
|
|
752
|
-
let success = 0
|
|
753
|
-
if (!data.data.success) {
|
|
754
|
-
if (data.data.code === '4002' && data.data.data.errorCode === '4209') {
|
|
755
|
-
let success = data.data.data.content.success
|
|
756
|
-
if (success !== 0) {
|
|
757
|
-
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
758
|
-
this.$message.error(this.$t(errormsg))
|
|
759
|
-
return
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
that.$message.error(getMessageByCode(data.data.code, that.$i18n.locale))
|
|
763
|
-
return
|
|
764
|
-
}
|
|
765
|
-
if (data.data.data && data.data.data.data) {
|
|
766
|
-
success = data.data.data.data.success
|
|
767
|
-
if (success !== 0) {
|
|
768
|
-
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
769
|
-
that.$message.error(this.$t(errormsg))
|
|
770
|
-
return
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
// this.closeManualModal()
|
|
774
|
-
if (this.nextcycleefficcontrol.indexOf(that.currModel) !== -1 && this.nextcycleefficcontrol.indexOf(that.preselectModel) !== -1) {
|
|
775
|
-
that.$message.success(this.$t('openatccomponents.overview.nextcycleeffic'))
|
|
776
|
-
return
|
|
777
|
-
}
|
|
778
|
-
if (that.preselectModel === 4) {
|
|
779
|
-
that.$message.success(this.$t('openatccomponents.overview.transitioneffic'))
|
|
780
|
-
return
|
|
781
|
-
}
|
|
782
|
-
if (success === 0) {
|
|
783
|
-
that.$message.success(this.$t('openatccomponents.common.download'))
|
|
784
|
-
}
|
|
785
|
-
}).catch(error => {
|
|
786
|
-
that.unlockScreen()
|
|
787
|
-
if (control.control === 0) {
|
|
788
|
-
that.preselectModel = that.recoverLastModel
|
|
789
|
-
}
|
|
790
|
-
console.log(error)
|
|
791
|
-
})
|
|
792
|
-
},
|
|
793
|
-
getPhase () {
|
|
794
|
-
let _this = this
|
|
795
|
-
return new Promise(function (resolve, reject) {
|
|
796
|
-
uploadSingleTscParam('phase', _this.agentId).then(data => {
|
|
797
|
-
let res = data.data
|
|
798
|
-
if (!res.success) {
|
|
799
|
-
if (res.code === '4003') {
|
|
800
|
-
_this.$message.error(_this.$t('openatccomponents.errorTip.devicenotonline'))
|
|
801
|
-
return
|
|
802
|
-
}
|
|
803
|
-
_this.$message.error(getMessageByCode(data.data.code, _this.$i18n.locale))
|
|
804
|
-
return
|
|
805
|
-
}
|
|
806
|
-
_this.phaseList = res.data.data.phaseList
|
|
807
|
-
resolve()
|
|
808
|
-
})
|
|
809
|
-
})
|
|
810
|
-
},
|
|
811
|
-
handleFaultsVisible () {
|
|
812
|
-
this.faultvisible = !this.faultvisible
|
|
813
|
-
},
|
|
814
|
-
handleGetPhaseClose () {
|
|
815
|
-
if (this.crossStatusData.phase) {
|
|
816
|
-
this.crossStatusData.phase = this.crossStatusData.phase.map(ele => {
|
|
817
|
-
return {
|
|
818
|
-
...ele,
|
|
819
|
-
close: ele.close || 0,
|
|
820
|
-
locktype: 0 // 默认所有相位显示解锁状态
|
|
821
|
-
}
|
|
822
|
-
})
|
|
823
|
-
// 相位关断标签
|
|
824
|
-
let closePhase = []
|
|
825
|
-
this.crossStatusData.phase.forEach(phase => {
|
|
826
|
-
if (phase.close !== undefined && phase.close !== 0) {
|
|
827
|
-
let typename
|
|
828
|
-
switch (phase.close) {
|
|
829
|
-
case 1: typename = ''
|
|
830
|
-
break
|
|
831
|
-
case 2: typename = this.$t('openatccomponents.overview.vehicle')
|
|
832
|
-
break
|
|
833
|
-
case 3: typename = this.$t('openatccomponents.overview.pedestrian')
|
|
834
|
-
break
|
|
835
|
-
default:typename = ''
|
|
836
|
-
}
|
|
837
|
-
closePhase.push({
|
|
838
|
-
id: phase.id,
|
|
839
|
-
typename: typename
|
|
840
|
-
})
|
|
841
|
-
}
|
|
842
|
-
})
|
|
843
|
-
this.closePhase = JSON.parse(JSON.stringify(closePhase))
|
|
844
|
-
} else {
|
|
845
|
-
this.closePhase = []
|
|
846
|
-
}
|
|
847
|
-
},
|
|
848
|
-
selectSpecialModelNew () {
|
|
849
|
-
let ringDataModel = new RingDataModel(this.statusData, this.phaseList)
|
|
850
|
-
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
851
|
-
},
|
|
852
|
-
selectSpecialModel (id) {
|
|
853
|
-
let ringDataModel = new RingDataModel(this.statusData, this.phaseList)
|
|
854
|
-
if (id === 23) {
|
|
855
|
-
this.toPage = 3
|
|
856
|
-
this.isClosePhase = true
|
|
857
|
-
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
858
|
-
this.specialPage = 'closephase'
|
|
859
|
-
} else if (id === 22) {
|
|
860
|
-
this.toPage = 3
|
|
861
|
-
this.isClosePhase = true
|
|
862
|
-
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
863
|
-
this.specialPage = 'lockingphase'
|
|
864
|
-
} else if (id === 100) {
|
|
865
|
-
this.toPage = 3
|
|
866
|
-
this.isClosePhase = true
|
|
867
|
-
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
868
|
-
this.specialPage = 'tentativeplan'
|
|
869
|
-
} else if (id === 24) {
|
|
870
|
-
this.toPage = 3
|
|
871
|
-
this.isClosePhase = true
|
|
872
|
-
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
873
|
-
this.specialPage = 'prioritycontrol'
|
|
874
|
-
} else if (id === 25) {
|
|
875
|
-
this.toPage = 3
|
|
876
|
-
this.isClosePhase = true
|
|
877
|
-
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
878
|
-
this.specialPage = 'azimuthlocking'
|
|
879
|
-
} else {
|
|
880
|
-
this.isClosePhase = false
|
|
881
|
-
this.specialPage = ''
|
|
882
|
-
}
|
|
883
|
-
},
|
|
884
|
-
closePhaseBack () {
|
|
885
|
-
this.toPage = 3
|
|
886
|
-
this.isClosePhase = false
|
|
887
|
-
},
|
|
888
|
-
closePhaseControl (controldata) {
|
|
889
|
-
if (!this.isShowImplement) {
|
|
890
|
-
this.$emit('patternCommitCallback', controldata)
|
|
891
|
-
return
|
|
892
|
-
}
|
|
893
|
-
this.lockScreen()
|
|
894
|
-
putTscControl(controldata, this.agentId).then(data => {
|
|
895
|
-
this.unlockScreen()
|
|
896
|
-
let success = 0
|
|
897
|
-
if (!data.data.success) {
|
|
898
|
-
if (data.data.code === '4002' && data.data.data.errorCode === '4209') {
|
|
899
|
-
let success = data.data.data.content.success
|
|
900
|
-
if (success !== 0) {
|
|
901
|
-
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
902
|
-
this.$message.error(this.$t(errormsg))
|
|
903
|
-
return
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
907
|
-
return
|
|
908
|
-
}
|
|
909
|
-
if (data.data.data && data.data.data.data) {
|
|
910
|
-
success = data.data.data.data.success
|
|
911
|
-
if (success !== 0) {
|
|
912
|
-
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
913
|
-
this.$message.error(this.$t(errormsg))
|
|
914
|
-
return
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
this.$message.success(this.$t('openatccomponents.common.download'))
|
|
918
|
-
}).catch(error => {
|
|
919
|
-
this.unlockScreen()
|
|
920
|
-
console.log(error)
|
|
921
|
-
})
|
|
922
|
-
},
|
|
923
|
-
// initRingPhaseData () {
|
|
924
|
-
// // 环信息从单独上载相位信息里获取,以免相位锁定后,方案状态数据里没有rings,导致相位锁定控制列表无法显示
|
|
925
|
-
// this.phaseRings = []
|
|
926
|
-
// let map = {}
|
|
927
|
-
// let dest = []
|
|
928
|
-
// for (let i = 0; i < this.phaseList.length; i++) {
|
|
929
|
-
// let ai = this.phaseList[i]
|
|
930
|
-
// if (!map[ai.ring]) {
|
|
931
|
-
// let addphse = this.addPhaseInfo(ai)
|
|
932
|
-
// dest.push({
|
|
933
|
-
// num: ai.ring,
|
|
934
|
-
// phases: [{...ai, ...addphse}]
|
|
935
|
-
// })
|
|
936
|
-
// map[ai.ring] = ai
|
|
937
|
-
// } else {
|
|
938
|
-
// for (var j = 0; j < dest.length; j++) {
|
|
939
|
-
// var dj = dest[j]
|
|
940
|
-
// if (dj.num === ai.ring) {
|
|
941
|
-
// let addphse = this.addPhaseInfo(ai)
|
|
942
|
-
// dj.phases.push({...ai, ...addphse})
|
|
943
|
-
// break
|
|
944
|
-
// }
|
|
945
|
-
// }
|
|
946
|
-
// }
|
|
947
|
-
// }
|
|
948
|
-
// this.phaseRings = JSON.parse(JSON.stringify(dest))
|
|
949
|
-
// },
|
|
950
|
-
// addPhaseInfo (phase) {
|
|
951
|
-
// let addphse = {}
|
|
952
|
-
// addphse.name = this.$t('openatccomponents.overview.phase') + phase.id
|
|
953
|
-
// addphse.desc = this.getPhaseDescription(phase.direction)
|
|
954
|
-
// // 相位锁定选项默认都按照解锁状态显示
|
|
955
|
-
// addphse.locktype = 0
|
|
956
|
-
// addphse.close = 0
|
|
957
|
-
// if (this.crossStatusData !== null && this.crossStatusData.phase) {
|
|
958
|
-
// // 如果方案状态相位有close字段,这边就需要对应close状态进相位关断控制的选项里
|
|
959
|
-
// let phaseStatus = this.crossStatusData.phase.filter(ele => ele.id === phase.id)[0]
|
|
960
|
-
// addphse = {...addphse, ...phaseStatus}
|
|
961
|
-
// }
|
|
962
|
-
// return addphse
|
|
963
|
-
// },
|
|
964
|
-
// getPhaseDescription (phaseList) {
|
|
965
|
-
// let list = []
|
|
966
|
-
// for (let id of phaseList) {
|
|
967
|
-
// let obj = {}
|
|
968
|
-
// obj.id = id
|
|
969
|
-
// obj.color = '#454545'
|
|
970
|
-
// list.push(obj)
|
|
971
|
-
// }
|
|
972
|
-
// return list
|
|
973
|
-
// },
|
|
974
|
-
getFaultById () {
|
|
975
|
-
let param = {
|
|
976
|
-
agentId: this.agentId,
|
|
977
|
-
isCurrentFault: true
|
|
978
|
-
}
|
|
979
|
-
GetAllFaultRange(param).then(res => {
|
|
980
|
-
if (res.data.success !== true) {
|
|
981
|
-
// this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
982
|
-
console.log(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
983
|
-
return
|
|
984
|
-
}
|
|
985
|
-
this.curFaultList = res.data.data.content
|
|
986
|
-
this.confirmedFault = this.curFaultList.filter(ele => ele.enumerate === '2')
|
|
987
|
-
this.ignoredFault = this.curFaultList.filter(ele => ele.enumerate === '1')
|
|
988
|
-
this.untreatedFault = this.curFaultList.filter(ele => ele.enumerate === '0')
|
|
989
|
-
})
|
|
990
|
-
},
|
|
991
|
-
showFaultDetail () {
|
|
992
|
-
this.$refs.faultDetail.onViewFaultClick()
|
|
993
|
-
},
|
|
994
|
-
setPropsToken (token) {
|
|
995
|
-
// 获取组件外传入的token,便于独立组件调用接口
|
|
996
|
-
if (token && token !== '') {
|
|
997
|
-
setToken(token)
|
|
998
|
-
}
|
|
999
|
-
},
|
|
1000
|
-
hiddenPartControl () {
|
|
1001
|
-
// 保存的面板,不显示方位锁定的功能
|
|
1002
|
-
if (this.isShowImplement === false) {
|
|
1003
|
-
this.residentControlList = this.residentControlList.filter(item => item.id !== 25)
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
},
|
|
1007
|
-
destroyed () {
|
|
1008
|
-
this.clearFaultInterval()
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
</script>
|
|
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="scheme-config openatc-scheme-config" style="height: 100%;">
|
|
14
|
+
<fault-detail-modal ref="faultDetail" :agentId="agentId" :isFromAtc="isFromAtc" @refreshFault="getFaultById"></fault-detail-modal>
|
|
15
|
+
<!-- 带实时面板的完整功能(带动画) -->
|
|
16
|
+
<div style="height: 100%;" v-if="realtimeStatusModalvisible">
|
|
17
|
+
<transition name="fade-right" mode="out-in"
|
|
18
|
+
:enter-active-class="toPage === 1 ? 'animated fadeInRight' : 'animated fadeInLeft'"
|
|
19
|
+
:leave-active-class="toPage === 1 ? 'animated fadeOutRight' : 'animated fadeOutLeft' ">
|
|
20
|
+
<div class="new" style="position: absolute;width: 100%;height:100%;" v-show="(isOperation && !isClosePhase)">
|
|
21
|
+
<ManualControlModalNew
|
|
22
|
+
v-if="resetcomponent"
|
|
23
|
+
ref="ManualControlModalNew"
|
|
24
|
+
:residentControlList="residentControlList"
|
|
25
|
+
:specialControlList="specialControlList"
|
|
26
|
+
:patternChooseControlList="patternChooseControlList"
|
|
27
|
+
:othersControlList="othersControlList"
|
|
28
|
+
:controlData="controlData"
|
|
29
|
+
:patternAll="patternAll"
|
|
30
|
+
:crossStatusData="crossStatusData"
|
|
31
|
+
:preselectModel="preselectModel"
|
|
32
|
+
:preselectStages="preselectStages"
|
|
33
|
+
:realtimeStatusModalvisible="realtimeStatusModalvisible"
|
|
34
|
+
:roadDirection="roadDirection"
|
|
35
|
+
:closePhaseRings="phaseRings"
|
|
36
|
+
:sidewalkPhaseData="sidewalkPhaseData"
|
|
37
|
+
:phaseList="phaseList"
|
|
38
|
+
:statusData="statusData"
|
|
39
|
+
:overlap="overlap"
|
|
40
|
+
:patternSelect="patternSelect"
|
|
41
|
+
:allPatternList="allPatternList"
|
|
42
|
+
:funcSort="funcSort"
|
|
43
|
+
:thirdPartyControlMenu="thirdPartyControlMenu"
|
|
44
|
+
:thirdPartyControl="thirdPartyControl"
|
|
45
|
+
:isShowBack="isShowBack"
|
|
46
|
+
:isShowRecovery="isShowRecovery"
|
|
47
|
+
:isShowImplement="isShowImplement"
|
|
48
|
+
@closeManualModal="closeManualModal"
|
|
49
|
+
@selectModel="selectModel"
|
|
50
|
+
@selectStages="selectStages"
|
|
51
|
+
@patternCommit="patternCommit"
|
|
52
|
+
@closePhaseBack="closePhaseBack"
|
|
53
|
+
@closePhaseControl="closePhaseControl"
|
|
54
|
+
@selectSpecialModel="selectSpecialModelNew" />
|
|
55
|
+
</div>
|
|
56
|
+
</transition>
|
|
57
|
+
|
|
58
|
+
<transition name="fade-left" mode="out-in"
|
|
59
|
+
enter-active-class="animated fadeInLeft"
|
|
60
|
+
leave-active-class="animated fadeOutLeft">
|
|
61
|
+
<div class="right-control-part" style="position: absolute;width: 100%;" v-show="!isOperation">
|
|
62
|
+
<RealtimeStatusModal
|
|
63
|
+
:controlData="controlData"
|
|
64
|
+
:currModel="currModel"
|
|
65
|
+
:ip="ip"
|
|
66
|
+
:platform="platform"
|
|
67
|
+
:firm="firm"
|
|
68
|
+
:responseTime="responseTime"
|
|
69
|
+
:curFaultList="curFaultList"
|
|
70
|
+
:confirmedFault="confirmedFault"
|
|
71
|
+
:ignoredFault="ignoredFault"
|
|
72
|
+
:untreatedFault="untreatedFault"
|
|
73
|
+
:closePhase="closePhase"
|
|
74
|
+
:agentName="agentName"
|
|
75
|
+
:agentId="agentId"
|
|
76
|
+
:crossStatusData="crossStatusData"
|
|
77
|
+
:phaseList="phaseList"
|
|
78
|
+
:sidewalkPhaseData="sidewalkPhaseData"
|
|
79
|
+
:roadDirection="roadDirection"
|
|
80
|
+
@changeStatus="changeStatus"
|
|
81
|
+
@showFaultDetail="showFaultDetail"/>
|
|
82
|
+
</div>
|
|
83
|
+
</transition>
|
|
84
|
+
</div>
|
|
85
|
+
<!-- 只有控制功能(无动画) -->
|
|
86
|
+
<div v-else style="height: 100%;">
|
|
87
|
+
<div class="new" style="position: absolute;width: 100%;height:100%;" v-show="(isOperation && !isClosePhase)">
|
|
88
|
+
<ManualControlModalNew
|
|
89
|
+
v-if="resetcomponent"
|
|
90
|
+
ref="ManualControlModalNew"
|
|
91
|
+
:residentControlList="residentControlList"
|
|
92
|
+
:specialControlList="specialControlList"
|
|
93
|
+
:patternChooseControlList="patternChooseControlList"
|
|
94
|
+
:othersControlList="othersControlList"
|
|
95
|
+
:controlData="controlData"
|
|
96
|
+
:patternAll="patternAll"
|
|
97
|
+
:crossStatusData="crossStatusData"
|
|
98
|
+
:preselectModel="preselectModel"
|
|
99
|
+
:preselectStages="preselectStages"
|
|
100
|
+
:realtimeStatusModalvisible="realtimeStatusModalvisible"
|
|
101
|
+
:roadDirection="roadDirection"
|
|
102
|
+
:closePhaseRings="phaseRings"
|
|
103
|
+
:sidewalkPhaseData="sidewalkPhaseData"
|
|
104
|
+
:phaseList="phaseList"
|
|
105
|
+
:statusData="statusData"
|
|
106
|
+
:overlap="overlap"
|
|
107
|
+
:patternSelect="patternSelect"
|
|
108
|
+
:allPatternList="allPatternList"
|
|
109
|
+
:funcSort="funcSort"
|
|
110
|
+
:thirdPartyControlMenu="thirdPartyControlMenu"
|
|
111
|
+
:thirdPartyControl="thirdPartyControl"
|
|
112
|
+
:isShowBack="isShowBack"
|
|
113
|
+
:isShowRecovery="isShowRecovery"
|
|
114
|
+
:isShowImplement="isShowImplement"
|
|
115
|
+
@closeManualModal="closeManualModal"
|
|
116
|
+
@selectModel="selectModel"
|
|
117
|
+
@selectStages="selectStages"
|
|
118
|
+
@patternCommit="patternCommit"
|
|
119
|
+
@closePhaseBack="closePhaseBack"
|
|
120
|
+
@closePhaseControl="closePhaseControl"
|
|
121
|
+
@selectSpecialModel="selectSpecialModelNew" />
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</template>
|
|
126
|
+
|
|
127
|
+
<script>
|
|
128
|
+
import { putTscControl } from '../../../api/control.js'
|
|
129
|
+
import { uploadSingleTscParam } from '../../../api/param.js'
|
|
130
|
+
import RealtimeStatusModal from './realtimeStatusModal'
|
|
131
|
+
import ManualControlModal from './manualControlModal'
|
|
132
|
+
import ManualControlModalNew from './manualControlModalNew'
|
|
133
|
+
import ClosePhaseControlModal from './closePhaselControlModal'
|
|
134
|
+
import LockingPhaseControlModal from './lockingPhaselControlModal'
|
|
135
|
+
import TentativePlanControlModal from './tentativeplancontrolmodal'
|
|
136
|
+
import AzimuthLocking from './azimuthlocking'
|
|
137
|
+
import priorityControl from './priorityControl'
|
|
138
|
+
// import { getFaultMesZh, getFaultMesEn } from '../../utils/faultcode.js'
|
|
139
|
+
import { getMessageByCode } from '../../../utils/responseMessage'
|
|
140
|
+
import { GetAllFaultRange } from '../../../api/fault'
|
|
141
|
+
import PhaseDataModel from '../IntersectionMap/crossDirection/utils.js'
|
|
142
|
+
import CrossDiagramMgr from '../../../EdgeMgr/controller/crossDiagramMgr.js'
|
|
143
|
+
import { setToken, setHost, getTheme } from '../../../utils/auth.js'
|
|
144
|
+
import RingDataModel from '../../../utils/RingDataModel.js'
|
|
145
|
+
import { getIntersectionInfo } from '../../../api/template'
|
|
146
|
+
import { GetRoleByName } from '../../../api/permission.js'
|
|
147
|
+
import { getPermissionMenu, getPermissionControl } from './utils/thirdPartypermission.js'
|
|
148
|
+
|
|
149
|
+
export default {
|
|
150
|
+
name: 'scheme-config',
|
|
151
|
+
components: {
|
|
152
|
+
RealtimeStatusModal,
|
|
153
|
+
ManualControlModal,
|
|
154
|
+
ClosePhaseControlModal,
|
|
155
|
+
LockingPhaseControlModal,
|
|
156
|
+
priorityControl,
|
|
157
|
+
AzimuthLocking,
|
|
158
|
+
TentativePlanControlModal,
|
|
159
|
+
ManualControlModalNew
|
|
160
|
+
},
|
|
161
|
+
props: {
|
|
162
|
+
phaseList: {
|
|
163
|
+
type: Array,
|
|
164
|
+
default: () => []
|
|
165
|
+
},
|
|
166
|
+
reqUrl: {
|
|
167
|
+
type: String,
|
|
168
|
+
default: ''
|
|
169
|
+
},
|
|
170
|
+
responseTime: {
|
|
171
|
+
type: Number,
|
|
172
|
+
default: 0
|
|
173
|
+
},
|
|
174
|
+
statusData: {
|
|
175
|
+
type: Object,
|
|
176
|
+
required: true
|
|
177
|
+
},
|
|
178
|
+
agentName: {
|
|
179
|
+
type: String,
|
|
180
|
+
default: ''
|
|
181
|
+
},
|
|
182
|
+
// devStatus: {
|
|
183
|
+
// type: Number,
|
|
184
|
+
// default: 0
|
|
185
|
+
// },
|
|
186
|
+
agentId: {
|
|
187
|
+
type: String,
|
|
188
|
+
default: '0'
|
|
189
|
+
},
|
|
190
|
+
ip: {
|
|
191
|
+
type: String
|
|
192
|
+
},
|
|
193
|
+
// allPatternList: {
|
|
194
|
+
// type: Array
|
|
195
|
+
// },
|
|
196
|
+
// overlap: {
|
|
197
|
+
// type: Array
|
|
198
|
+
// },
|
|
199
|
+
platform: {
|
|
200
|
+
type: String
|
|
201
|
+
},
|
|
202
|
+
firm: {
|
|
203
|
+
type: String
|
|
204
|
+
},
|
|
205
|
+
realtimeStatusModalvisible: {
|
|
206
|
+
type: Boolean,
|
|
207
|
+
default: true
|
|
208
|
+
},
|
|
209
|
+
Token: {
|
|
210
|
+
type: String,
|
|
211
|
+
default: ''
|
|
212
|
+
},
|
|
213
|
+
roadDirection: {
|
|
214
|
+
type: String,
|
|
215
|
+
default: 'right'
|
|
216
|
+
},
|
|
217
|
+
isFromAtc: {
|
|
218
|
+
type: Boolean,
|
|
219
|
+
default: true
|
|
220
|
+
},
|
|
221
|
+
isShowBack: {
|
|
222
|
+
type: Boolean,
|
|
223
|
+
default: true
|
|
224
|
+
},
|
|
225
|
+
isShowRecovery: {
|
|
226
|
+
type: Boolean,
|
|
227
|
+
default: true
|
|
228
|
+
},
|
|
229
|
+
isShowImplement: {
|
|
230
|
+
type: Boolean,
|
|
231
|
+
default: true
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
data () {
|
|
235
|
+
return {
|
|
236
|
+
crossStatusData: null,
|
|
237
|
+
controlData: {},
|
|
238
|
+
control: '',
|
|
239
|
+
allPatternList: [],
|
|
240
|
+
overlap: [],
|
|
241
|
+
sidewalkPhaseData: [],
|
|
242
|
+
list: [{
|
|
243
|
+
iconClass: 'model',
|
|
244
|
+
name: '控制模式',
|
|
245
|
+
value: '--'
|
|
246
|
+
}, {
|
|
247
|
+
iconClass: 'cycle',
|
|
248
|
+
name: '周期',
|
|
249
|
+
value: '--'
|
|
250
|
+
}, {
|
|
251
|
+
iconClass: 'time',
|
|
252
|
+
name: '当前时间',
|
|
253
|
+
value: '--'
|
|
254
|
+
}, {
|
|
255
|
+
iconClass: 'maincontrol',
|
|
256
|
+
name: '控制方式',
|
|
257
|
+
value: '--'
|
|
258
|
+
}, {
|
|
259
|
+
iconClass: 'phasediff',
|
|
260
|
+
name: '相位差',
|
|
261
|
+
value: '--'
|
|
262
|
+
}, {
|
|
263
|
+
iconClass: 'time',
|
|
264
|
+
name: '剩余时间',
|
|
265
|
+
value: '--'
|
|
266
|
+
}],
|
|
267
|
+
faultTimer: null, // 当前故障定时器
|
|
268
|
+
ParamsMode: new Map([[0, '自主控制'], [1, '本地手动'], [2, '平台控制'], [3, '配置软件控制'], [4, '遥控器控制'], [5, '黄闪器控制'], [6, '降级控制'], [7, '脚本控制'], [8, '算法控制']]),
|
|
269
|
+
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']]),
|
|
270
|
+
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, '设备维护']]),
|
|
271
|
+
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']]),
|
|
272
|
+
phaseType: new Map([[1, '红'], [2, '黄'], [3, '绿']]), // phaseType表示红,黄,绿
|
|
273
|
+
phaseTypeEn: new Map([[1, 'Red'], [2, 'Yellow'], [3, 'Green']]), // phaseType表示红,黄,绿
|
|
274
|
+
mode: '2',
|
|
275
|
+
loading: {},
|
|
276
|
+
modelList: [{
|
|
277
|
+
id: 1,
|
|
278
|
+
iconClass: 'huangshan',
|
|
279
|
+
permission: 'configer:manual:senior',
|
|
280
|
+
iconName: '黄闪'
|
|
281
|
+
}, {
|
|
282
|
+
id: 2,
|
|
283
|
+
iconClass: 'quanhong',
|
|
284
|
+
permission: 'configer:manual:senior',
|
|
285
|
+
iconName: '全红'
|
|
286
|
+
}, {
|
|
287
|
+
id: 3,
|
|
288
|
+
iconClass: 'guandeng',
|
|
289
|
+
permission: 'configer:manual:senior',
|
|
290
|
+
iconName: '关灯'
|
|
291
|
+
}, {
|
|
292
|
+
id: 4,
|
|
293
|
+
iconClass: 'bujin',
|
|
294
|
+
permission: 'configer:manual:dwell',
|
|
295
|
+
iconName: '步进'
|
|
296
|
+
}, {
|
|
297
|
+
id: 5,
|
|
298
|
+
iconClass: 'dingzhouqi',
|
|
299
|
+
permission: 'configer:manual:base',
|
|
300
|
+
iconName: '定周期'
|
|
301
|
+
}, {
|
|
302
|
+
id: 6,
|
|
303
|
+
iconClass: 'ganyingkongzhi',
|
|
304
|
+
permission: 'configer:manual:base',
|
|
305
|
+
iconName: '感应控制'
|
|
306
|
+
}, {
|
|
307
|
+
id: 9,
|
|
308
|
+
iconClass: 'zishiying',
|
|
309
|
+
permission: 'configer:manual:base',
|
|
310
|
+
iconName: '方案生成'
|
|
311
|
+
}, {
|
|
312
|
+
id: 10,
|
|
313
|
+
iconClass: 'wuxianlan',
|
|
314
|
+
permission: 'configer:manual:base',
|
|
315
|
+
iconName: '无电缆协调'
|
|
316
|
+
}, {
|
|
317
|
+
id: 12,
|
|
318
|
+
iconClass: 'xingrenguojie',
|
|
319
|
+
permission: 'configer:manual:base',
|
|
320
|
+
iconName: '行人过街'
|
|
321
|
+
}, {
|
|
322
|
+
id: 19,
|
|
323
|
+
iconClass: 'ganyingshixingrenguojie',
|
|
324
|
+
permission: 'configer:manual:base',
|
|
325
|
+
iconName: '感应式行人过街控制'
|
|
326
|
+
}],
|
|
327
|
+
residentControlList: [
|
|
328
|
+
{
|
|
329
|
+
type: '步进',
|
|
330
|
+
id: 4,
|
|
331
|
+
iconClass: 'bujin',
|
|
332
|
+
permission: 'configer:manual:dwell',
|
|
333
|
+
iconName: this.$t('openatccomponents.overview.modelList4'),
|
|
334
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
type: '阶段锁定',
|
|
338
|
+
id: 4,
|
|
339
|
+
iconClass: 'jieduansuoding',
|
|
340
|
+
permission: 'configer:manual:dwell',
|
|
341
|
+
iconName: this.$t('openatccomponents.overview.modelList4-'),
|
|
342
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
type: '相位锁定',
|
|
346
|
+
id: 22,
|
|
347
|
+
iconClass: 'xiangweisuoding',
|
|
348
|
+
permission: 'configer:manual:optimize',
|
|
349
|
+
iconName: this.$t('openatccomponents.overview.modelList22'),
|
|
350
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
type: '方向锁定',
|
|
354
|
+
id: 25,
|
|
355
|
+
iconClass: 'fangxiangsuoding',
|
|
356
|
+
permission: 'configer:manual:dwell',
|
|
357
|
+
iconName: this.$t('openatccomponents.overview.modelList25'),
|
|
358
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
specialControlList: [
|
|
362
|
+
{
|
|
363
|
+
type: '黄闪',
|
|
364
|
+
id: 1,
|
|
365
|
+
iconClass: 'huangshan',
|
|
366
|
+
permission: 'configer:manual:senior',
|
|
367
|
+
iconName: this.$t('openatccomponents.overview.modelList1'),
|
|
368
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
369
|
+
}, {
|
|
370
|
+
type: '全红',
|
|
371
|
+
id: 2,
|
|
372
|
+
iconClass: 'quanhong',
|
|
373
|
+
permission: 'configer:manual:senior',
|
|
374
|
+
iconName: this.$t('openatccomponents.overview.modelList2'),
|
|
375
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
376
|
+
}, {
|
|
377
|
+
type: '关灯',
|
|
378
|
+
id: 3,
|
|
379
|
+
iconClass: 'guandeng',
|
|
380
|
+
permission: 'configer:manual:senior',
|
|
381
|
+
iconName: this.$t('openatccomponents.overview.modelList3'),
|
|
382
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
patternChooseControlList: [
|
|
386
|
+
{
|
|
387
|
+
type: '定周期',
|
|
388
|
+
id: 5,
|
|
389
|
+
iconClass: 'dingzhouqi',
|
|
390
|
+
permission: 'configer:manual:base',
|
|
391
|
+
iconName: this.$t('openatccomponents.overview.modelList5'),
|
|
392
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
393
|
+
}, {
|
|
394
|
+
type: '自适应',
|
|
395
|
+
id: 6,
|
|
396
|
+
iconClass: 'ganyingkongzhi',
|
|
397
|
+
permission: 'configer:manual:base',
|
|
398
|
+
iconName: this.$t('openatccomponents.overview.modelList6'),
|
|
399
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
400
|
+
}, {
|
|
401
|
+
type: '方案生成',
|
|
402
|
+
id: 9,
|
|
403
|
+
iconClass: 'zishiying',
|
|
404
|
+
permission: 'configer:manual:base',
|
|
405
|
+
iconName: this.$t('openatccomponents.overview.modelList9'),
|
|
406
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
407
|
+
}, {
|
|
408
|
+
type: '无电缆协调',
|
|
409
|
+
id: 10,
|
|
410
|
+
iconClass: 'wuxianlan',
|
|
411
|
+
permission: 'configer:manual:base',
|
|
412
|
+
iconName: this.$t('openatccomponents.overview.modelList10'),
|
|
413
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
414
|
+
}, {
|
|
415
|
+
type: '行人过街',
|
|
416
|
+
id: 12,
|
|
417
|
+
iconClass: 'xingrenguojie',
|
|
418
|
+
permission: 'configer:manual:base',
|
|
419
|
+
iconName: this.$t('openatccomponents.overview.modelList12'),
|
|
420
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
421
|
+
}, {
|
|
422
|
+
type: '感应式行人过街',
|
|
423
|
+
id: 19,
|
|
424
|
+
iconClass: 'ganyingshixingrenguojie',
|
|
425
|
+
permission: 'configer:manual:base',
|
|
426
|
+
iconName: this.$t('openatccomponents.overview.modelList19'),
|
|
427
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
428
|
+
}, {
|
|
429
|
+
type: '感应式自适应',
|
|
430
|
+
id: 18,
|
|
431
|
+
iconClass: 'ganyingshizishiying',
|
|
432
|
+
permission: 'configer:manual:base',
|
|
433
|
+
iconName: this.$t('openatccomponents.overview.modelList18'),
|
|
434
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
othersControlList: [
|
|
438
|
+
{ // 特殊控制
|
|
439
|
+
type: '相位关断',
|
|
440
|
+
id: 23,
|
|
441
|
+
permission: 'configer:manual:optimize',
|
|
442
|
+
iconClass: 'closephase',
|
|
443
|
+
iconName: this.$t('openatccomponents.overview.modelList23'),
|
|
444
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
445
|
+
}, {
|
|
446
|
+
type: '临时方案',
|
|
447
|
+
id: 100,
|
|
448
|
+
permission: 'configer:manual:optimize',
|
|
449
|
+
iconClass: 'tentativeplan',
|
|
450
|
+
iconName: this.$t('openatccomponents.overview.modelList100'),
|
|
451
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
452
|
+
}, {
|
|
453
|
+
type: '优先控制',
|
|
454
|
+
id: 24,
|
|
455
|
+
permission: 'configer:manual:preempt',
|
|
456
|
+
iconClass: 'prioritycontrol',
|
|
457
|
+
iconName: this.$t('openatccomponents.overview.modelList24'),
|
|
458
|
+
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
459
|
+
}],
|
|
460
|
+
currModel: -1,
|
|
461
|
+
preselectModel: -1, // 预选方案
|
|
462
|
+
preselectStages: -1, // 预选阶段
|
|
463
|
+
closePhase: [],
|
|
464
|
+
isOperation: false, // 是否为手动可操作状态
|
|
465
|
+
tempPatternid: 0, // 控制方式手动操作的情况下的控制编号的临时值。
|
|
466
|
+
tempDelay: 0, // 控制方式手动操作的情况下的延迟时间的临时值。
|
|
467
|
+
tempDuration: 0, // 控制方式手动操作的情况下的持续时间的临时值。
|
|
468
|
+
// phaseList: [], // 当前相位集合
|
|
469
|
+
faultvisible: false,
|
|
470
|
+
isClosePhase: false, // 是否在相位关断
|
|
471
|
+
toPage: 1, // 与哪一个页面交互,1 代表路口信息页面,3代表 相位关断页面
|
|
472
|
+
phaseRings: [],
|
|
473
|
+
curFaultList: [],
|
|
474
|
+
confirmedFault: [],
|
|
475
|
+
ignoredFault: [],
|
|
476
|
+
untreatedFault: [],
|
|
477
|
+
patternAll: [],
|
|
478
|
+
patternSelect: [], // 所有方案id
|
|
479
|
+
specialPage: '', // 哪一个特殊控制页面
|
|
480
|
+
nextcycleefficcontrol: [5, 6, 9, 10, 12, 19], // 下周期生效的控制方式
|
|
481
|
+
resetcomponent: false,
|
|
482
|
+
funcSort: 'allFunc',
|
|
483
|
+
thirdPartyControlMenu: [],
|
|
484
|
+
thirdPartyControl: []
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
watch: {
|
|
488
|
+
agentId: {
|
|
489
|
+
handler: function (val1, val2) {
|
|
490
|
+
if (val1 !== val2) {
|
|
491
|
+
this.resetComponent()
|
|
492
|
+
}
|
|
493
|
+
this.getIntersectionInfo(val1)
|
|
494
|
+
},
|
|
495
|
+
// 深度观察监听
|
|
496
|
+
deep: true
|
|
497
|
+
},
|
|
498
|
+
statusData: {
|
|
499
|
+
handler: function (val) {
|
|
500
|
+
this.initData()
|
|
501
|
+
this.getPedPhasePos()
|
|
502
|
+
},
|
|
503
|
+
// 深度观察监听
|
|
504
|
+
deep: true
|
|
505
|
+
},
|
|
506
|
+
phaseList: {
|
|
507
|
+
handler: function (val, oldVal) {
|
|
508
|
+
this.getPedPhasePos()
|
|
509
|
+
},
|
|
510
|
+
// 深度观察监听
|
|
511
|
+
deep: true
|
|
512
|
+
},
|
|
513
|
+
Token: {
|
|
514
|
+
handler: function (val) {
|
|
515
|
+
this.setPropsToken(val)
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
roadDirection: {
|
|
519
|
+
handler: function (val) {
|
|
520
|
+
if (val === 'left' || val === 'right') {
|
|
521
|
+
this.PhaseDataModel = new PhaseDataModel(val)
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
created () {
|
|
527
|
+
this.setHost(this.reqUrl)
|
|
528
|
+
this.PhaseDataModel = new PhaseDataModel(this.roadDirection)
|
|
529
|
+
this.CrossDiagramMgr = new CrossDiagramMgr()
|
|
530
|
+
},
|
|
531
|
+
async mounted () {
|
|
532
|
+
this.resetcomponent = true
|
|
533
|
+
this.init()
|
|
534
|
+
},
|
|
535
|
+
methods: {
|
|
536
|
+
resetComponent () {
|
|
537
|
+
this.resetcomponent = false
|
|
538
|
+
this.$nextTick(() => {
|
|
539
|
+
this.resetcomponent = true
|
|
540
|
+
this.init()
|
|
541
|
+
})
|
|
542
|
+
},
|
|
543
|
+
init () {
|
|
544
|
+
this.getIntersectionInfo(this.agentId)
|
|
545
|
+
if (this.realtimeStatusModalvisible === false) {
|
|
546
|
+
this.changeStatus()
|
|
547
|
+
}
|
|
548
|
+
this.setPropsToken(this.Token)
|
|
549
|
+
this.hiddenPartControl()
|
|
550
|
+
// await this.getPhase()
|
|
551
|
+
this.getFault()
|
|
552
|
+
this.initData()
|
|
553
|
+
},
|
|
554
|
+
setHost (host) {
|
|
555
|
+
// 获取组件外传入的token,便于独立组件调用接口
|
|
556
|
+
if (host && host !== '') {
|
|
557
|
+
setHost(host)
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
getIntersectionInfo (agentid) {
|
|
561
|
+
// 获取路口信息
|
|
562
|
+
getIntersectionInfo(agentid).then(res => {
|
|
563
|
+
this.patternAll = res.data.data.param.patternList
|
|
564
|
+
this.allPatternList = res.data.data.param.patternList
|
|
565
|
+
this.overlap = res.data.data.param.overlaplList
|
|
566
|
+
this.patternSelect = res.data.data.param.patternList.map(item => {
|
|
567
|
+
return {
|
|
568
|
+
value: item.id,
|
|
569
|
+
label: item.desc ? item.desc : '' + item.id ? item.id : ''
|
|
570
|
+
}
|
|
571
|
+
})
|
|
572
|
+
})
|
|
573
|
+
},
|
|
574
|
+
getFault () {
|
|
575
|
+
this.getFaultById()
|
|
576
|
+
this.faultTimer = setInterval(() => {
|
|
577
|
+
this.getFaultById()
|
|
578
|
+
}, 30000)
|
|
579
|
+
},
|
|
580
|
+
getPedPhasePos () {
|
|
581
|
+
let ringDataModel = new RingDataModel(this.statusData, this.phaseList)
|
|
582
|
+
this.sidewalkPhaseData = ringDataModel.getPedPhasePos()
|
|
583
|
+
this.ringDataModel = ringDataModel
|
|
584
|
+
},
|
|
585
|
+
clearFaultInterval () {
|
|
586
|
+
if (this.faultTimer !== null) {
|
|
587
|
+
clearInterval(this.faultTimer) // 清除流量定时器
|
|
588
|
+
this.faultTimer = null
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
initData () {
|
|
592
|
+
this.crossStatusData = JSON.parse(JSON.stringify(this.statusData))
|
|
593
|
+
let TscData = JSON.parse(JSON.stringify(this.crossStatusData))
|
|
594
|
+
this.currModel = TscData.control
|
|
595
|
+
this.controlData = this.handleGetData(TscData)
|
|
596
|
+
this.handleGetPhaseClose()
|
|
597
|
+
},
|
|
598
|
+
lockScreen () {
|
|
599
|
+
this.loading = this.$loading({
|
|
600
|
+
lock: true,
|
|
601
|
+
text: 'Loading',
|
|
602
|
+
spinner: 'el-icon-loading',
|
|
603
|
+
background: 'rgba(0, 0, 0, 0.5)'
|
|
604
|
+
})
|
|
605
|
+
},
|
|
606
|
+
unlockScreen () {
|
|
607
|
+
this.loading.close()
|
|
608
|
+
},
|
|
609
|
+
selectModel (value) {
|
|
610
|
+
if (!this.isOperation) return
|
|
611
|
+
this.preselectStages = -1
|
|
612
|
+
this.recoverLastModel = this.preselectModel // 记录恢复前选中的控制方式
|
|
613
|
+
this.preselectModel = value
|
|
614
|
+
},
|
|
615
|
+
selectStages (value) {
|
|
616
|
+
if (!this.isOperation) return
|
|
617
|
+
if (this.preselectStages !== -1) {
|
|
618
|
+
if (this.preselectStages === value) {
|
|
619
|
+
this.preselectStages = -1
|
|
620
|
+
} else {
|
|
621
|
+
this.preselectStages = value
|
|
622
|
+
this.preselectModel = 4 // 如果选了阶段,默认控制方式为步进
|
|
623
|
+
}
|
|
624
|
+
} else {
|
|
625
|
+
this.preselectStages = value
|
|
626
|
+
this.preselectModel = 4 // 如果选了阶段,默认控制方式为步进
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
changeStatus () {
|
|
630
|
+
this.toPage = 1
|
|
631
|
+
this.isOperation = true
|
|
632
|
+
if (this.platform !== undefined && this.platform !== 'OpenATC') {
|
|
633
|
+
this.queryThirdParty()
|
|
634
|
+
}
|
|
635
|
+
this.$refs.ManualControlModalNew.init()
|
|
636
|
+
},
|
|
637
|
+
queryThirdParty () {
|
|
638
|
+
this.funcSort = 'allFunc'
|
|
639
|
+
GetRoleByName(`td--${this.platform}`).then(res => {
|
|
640
|
+
if (!res.data.success) {
|
|
641
|
+
let msg = getMessageByCode(res.data.code, this.$i18n.locale)
|
|
642
|
+
// this.$message.error(msg)
|
|
643
|
+
console.log(msg)
|
|
644
|
+
return
|
|
645
|
+
}
|
|
646
|
+
this.funcSort = 'thirdPartyFunc'
|
|
647
|
+
this.thirdPartyControl = getPermissionControl(res.data.data)
|
|
648
|
+
this.thirdPartyControlMenu = getPermissionMenu(this.thirdPartyControl)
|
|
649
|
+
this.$refs.ManualControlModalNew.activeName = this.thirdPartyControlMenu[0]
|
|
650
|
+
})
|
|
651
|
+
},
|
|
652
|
+
handleGetData (data) {
|
|
653
|
+
let that = this
|
|
654
|
+
if (data.name === '') {
|
|
655
|
+
if (that.$i18n.locale === 'en') {
|
|
656
|
+
data.name = 'Pattern' + data.patternid
|
|
657
|
+
} else if (that.$i18n.locale === 'zh') {
|
|
658
|
+
data.name = '方案' + data.patternid
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
Object.keys(data).forEach(function (key) {
|
|
662
|
+
if (that.$i18n.locale === 'en') {
|
|
663
|
+
if (key === 'mode') {
|
|
664
|
+
if (that.ParamsModeEn.get(data[key]) !== undefined) {
|
|
665
|
+
data[key] = that.ParamsModeEn.get(data[key])
|
|
666
|
+
} else {
|
|
667
|
+
data[key] = that.ParamsModeEn.get(0)
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
// if (key === 'control') {
|
|
671
|
+
// data[key] = that.ParamsControlEn.get(data[key])
|
|
672
|
+
// }
|
|
673
|
+
if (key === 'phase') {
|
|
674
|
+
for (let val of data[key]) {
|
|
675
|
+
val.type = that.phaseTypeEn.get(val.type)
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
} else if (that.$i18n.locale === 'zh') {
|
|
679
|
+
if (key === 'mode') {
|
|
680
|
+
if (that.ParamsMode.get(data[key]) !== undefined) {
|
|
681
|
+
data[key] = that.ParamsMode.get(data[key])
|
|
682
|
+
} else {
|
|
683
|
+
data[key] = that.ParamsMode.get(0)
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
if (key === 'control') {
|
|
687
|
+
data[key] = that.ParamsControl.get(data[key])
|
|
688
|
+
}
|
|
689
|
+
if (key === 'phase') {
|
|
690
|
+
for (let val of data[key]) {
|
|
691
|
+
val.type = that.phaseType.get(val.type)
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
})
|
|
696
|
+
return data
|
|
697
|
+
},
|
|
698
|
+
closeManualModal () {
|
|
699
|
+
this.isOperation = false
|
|
700
|
+
this.preselectModel = -1
|
|
701
|
+
this.preselectStages = -1
|
|
702
|
+
this.tempPatternid = 0
|
|
703
|
+
this.tempDelay = 0
|
|
704
|
+
this.tempDuration = 0
|
|
705
|
+
this.modelList = this.modelList.filter((item) => {
|
|
706
|
+
return item.id !== 0
|
|
707
|
+
})
|
|
708
|
+
this.toPage = 1
|
|
709
|
+
},
|
|
710
|
+
handleManualConfirm (manualInfo) {
|
|
711
|
+
this.$emit('handleManualConfirm', manualInfo)
|
|
712
|
+
},
|
|
713
|
+
patternCommit (manualInfo) {
|
|
714
|
+
let that = this
|
|
715
|
+
let control = {}
|
|
716
|
+
if (that.preselectModel === -1) {
|
|
717
|
+
this.$message.error(this.$t('openatccomponents.overview.noselectcontroltip'))
|
|
718
|
+
return
|
|
719
|
+
}
|
|
720
|
+
that.ParamsMode.forEach(function (value, key, map) {
|
|
721
|
+
if (that.controlData.mode === value) {
|
|
722
|
+
control.mode = key
|
|
723
|
+
}
|
|
724
|
+
})
|
|
725
|
+
control.control = that.preselectModel
|
|
726
|
+
// control.terminal = isNaN(parseInt(manualInfo.tempPatternid)) ? Number(manualInfo.tempPatternid.replace(/[^0-9]/ig, '')) : manualInfo.tempPatternid
|
|
727
|
+
control.terminal = manualInfo.tempPatternid === undefined ? null : Number(manualInfo.tempPatternid)
|
|
728
|
+
// control.delay = Number(manualInfo.tempDelay)
|
|
729
|
+
control.duration = Number(manualInfo.tempDuration)
|
|
730
|
+
control.value = that.preselectStages === -1 ? 0 : that.preselectStages
|
|
731
|
+
if (control.control === 0) {
|
|
732
|
+
// 恢复自主控制(多时段)时,value为当前控制方式
|
|
733
|
+
control.value = this.currModel
|
|
734
|
+
if (manualInfo && manualInfo.fromControl) {
|
|
735
|
+
const specialControlArr = [40, 4, 100, 101]
|
|
736
|
+
if (specialControlArr.includes(manualInfo.fromControl)) {
|
|
737
|
+
control.value = manualInfo.fromControl
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
if (!this.isShowImplement) {
|
|
742
|
+
console.log(control)
|
|
743
|
+
this.$emit('patternCommitCallback', control)
|
|
744
|
+
return
|
|
745
|
+
}
|
|
746
|
+
this.lockScreen()
|
|
747
|
+
putTscControl(control, this.agentId).then(data => {
|
|
748
|
+
that.unlockScreen()
|
|
749
|
+
if (control.control === 0) {
|
|
750
|
+
that.preselectModel = that.recoverLastModel
|
|
751
|
+
}
|
|
752
|
+
let success = 0
|
|
753
|
+
if (!data.data.success) {
|
|
754
|
+
if (data.data.code === '4002' && data.data.data.errorCode === '4209') {
|
|
755
|
+
let success = data.data.data.content.success
|
|
756
|
+
if (success !== 0) {
|
|
757
|
+
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
758
|
+
this.$message.error(this.$t(errormsg))
|
|
759
|
+
return
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
that.$message.error(getMessageByCode(data.data.code, that.$i18n.locale))
|
|
763
|
+
return
|
|
764
|
+
}
|
|
765
|
+
if (data.data.data && data.data.data.data) {
|
|
766
|
+
success = data.data.data.data.success
|
|
767
|
+
if (success !== 0) {
|
|
768
|
+
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
769
|
+
that.$message.error(this.$t(errormsg))
|
|
770
|
+
return
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
// this.closeManualModal()
|
|
774
|
+
if (this.nextcycleefficcontrol.indexOf(that.currModel) !== -1 && this.nextcycleefficcontrol.indexOf(that.preselectModel) !== -1) {
|
|
775
|
+
that.$message.success(this.$t('openatccomponents.overview.nextcycleeffic'))
|
|
776
|
+
return
|
|
777
|
+
}
|
|
778
|
+
if (that.preselectModel === 4) {
|
|
779
|
+
that.$message.success(this.$t('openatccomponents.overview.transitioneffic'))
|
|
780
|
+
return
|
|
781
|
+
}
|
|
782
|
+
if (success === 0) {
|
|
783
|
+
that.$message.success(this.$t('openatccomponents.common.download'))
|
|
784
|
+
}
|
|
785
|
+
}).catch(error => {
|
|
786
|
+
that.unlockScreen()
|
|
787
|
+
if (control.control === 0) {
|
|
788
|
+
that.preselectModel = that.recoverLastModel
|
|
789
|
+
}
|
|
790
|
+
console.log(error)
|
|
791
|
+
})
|
|
792
|
+
},
|
|
793
|
+
getPhase () {
|
|
794
|
+
let _this = this
|
|
795
|
+
return new Promise(function (resolve, reject) {
|
|
796
|
+
uploadSingleTscParam('phase', _this.agentId).then(data => {
|
|
797
|
+
let res = data.data
|
|
798
|
+
if (!res.success) {
|
|
799
|
+
if (res.code === '4003') {
|
|
800
|
+
_this.$message.error(_this.$t('openatccomponents.errorTip.devicenotonline'))
|
|
801
|
+
return
|
|
802
|
+
}
|
|
803
|
+
_this.$message.error(getMessageByCode(data.data.code, _this.$i18n.locale))
|
|
804
|
+
return
|
|
805
|
+
}
|
|
806
|
+
_this.phaseList = res.data.data.phaseList
|
|
807
|
+
resolve()
|
|
808
|
+
})
|
|
809
|
+
})
|
|
810
|
+
},
|
|
811
|
+
handleFaultsVisible () {
|
|
812
|
+
this.faultvisible = !this.faultvisible
|
|
813
|
+
},
|
|
814
|
+
handleGetPhaseClose () {
|
|
815
|
+
if (this.crossStatusData.phase) {
|
|
816
|
+
this.crossStatusData.phase = this.crossStatusData.phase.map(ele => {
|
|
817
|
+
return {
|
|
818
|
+
...ele,
|
|
819
|
+
close: ele.close || 0,
|
|
820
|
+
locktype: 0 // 默认所有相位显示解锁状态
|
|
821
|
+
}
|
|
822
|
+
})
|
|
823
|
+
// 相位关断标签
|
|
824
|
+
let closePhase = []
|
|
825
|
+
this.crossStatusData.phase.forEach(phase => {
|
|
826
|
+
if (phase.close !== undefined && phase.close !== 0) {
|
|
827
|
+
let typename
|
|
828
|
+
switch (phase.close) {
|
|
829
|
+
case 1: typename = ''
|
|
830
|
+
break
|
|
831
|
+
case 2: typename = this.$t('openatccomponents.overview.vehicle')
|
|
832
|
+
break
|
|
833
|
+
case 3: typename = this.$t('openatccomponents.overview.pedestrian')
|
|
834
|
+
break
|
|
835
|
+
default:typename = ''
|
|
836
|
+
}
|
|
837
|
+
closePhase.push({
|
|
838
|
+
id: phase.id,
|
|
839
|
+
typename: typename
|
|
840
|
+
})
|
|
841
|
+
}
|
|
842
|
+
})
|
|
843
|
+
this.closePhase = JSON.parse(JSON.stringify(closePhase))
|
|
844
|
+
} else {
|
|
845
|
+
this.closePhase = []
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
selectSpecialModelNew () {
|
|
849
|
+
let ringDataModel = new RingDataModel(this.statusData, this.phaseList)
|
|
850
|
+
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
851
|
+
},
|
|
852
|
+
selectSpecialModel (id) {
|
|
853
|
+
let ringDataModel = new RingDataModel(this.statusData, this.phaseList)
|
|
854
|
+
if (id === 23) {
|
|
855
|
+
this.toPage = 3
|
|
856
|
+
this.isClosePhase = true
|
|
857
|
+
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
858
|
+
this.specialPage = 'closephase'
|
|
859
|
+
} else if (id === 22) {
|
|
860
|
+
this.toPage = 3
|
|
861
|
+
this.isClosePhase = true
|
|
862
|
+
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
863
|
+
this.specialPage = 'lockingphase'
|
|
864
|
+
} else if (id === 100) {
|
|
865
|
+
this.toPage = 3
|
|
866
|
+
this.isClosePhase = true
|
|
867
|
+
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
868
|
+
this.specialPage = 'tentativeplan'
|
|
869
|
+
} else if (id === 24) {
|
|
870
|
+
this.toPage = 3
|
|
871
|
+
this.isClosePhase = true
|
|
872
|
+
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
873
|
+
this.specialPage = 'prioritycontrol'
|
|
874
|
+
} else if (id === 25) {
|
|
875
|
+
this.toPage = 3
|
|
876
|
+
this.isClosePhase = true
|
|
877
|
+
this.phaseRings = ringDataModel.initRingPhaseData()
|
|
878
|
+
this.specialPage = 'azimuthlocking'
|
|
879
|
+
} else {
|
|
880
|
+
this.isClosePhase = false
|
|
881
|
+
this.specialPage = ''
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
closePhaseBack () {
|
|
885
|
+
this.toPage = 3
|
|
886
|
+
this.isClosePhase = false
|
|
887
|
+
},
|
|
888
|
+
closePhaseControl (controldata) {
|
|
889
|
+
if (!this.isShowImplement) {
|
|
890
|
+
this.$emit('patternCommitCallback', controldata)
|
|
891
|
+
return
|
|
892
|
+
}
|
|
893
|
+
this.lockScreen()
|
|
894
|
+
putTscControl(controldata, this.agentId).then(data => {
|
|
895
|
+
this.unlockScreen()
|
|
896
|
+
let success = 0
|
|
897
|
+
if (!data.data.success) {
|
|
898
|
+
if (data.data.code === '4002' && data.data.data.errorCode === '4209') {
|
|
899
|
+
let success = data.data.data.content.success
|
|
900
|
+
if (success !== 0) {
|
|
901
|
+
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
902
|
+
this.$message.error(this.$t(errormsg))
|
|
903
|
+
return
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
907
|
+
return
|
|
908
|
+
}
|
|
909
|
+
if (data.data.data && data.data.data.data) {
|
|
910
|
+
success = data.data.data.data.success
|
|
911
|
+
if (success !== 0) {
|
|
912
|
+
let errormsg = 'openatccomponents.overview.putTscControlError' + success
|
|
913
|
+
this.$message.error(this.$t(errormsg))
|
|
914
|
+
return
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
this.$message.success(this.$t('openatccomponents.common.download'))
|
|
918
|
+
}).catch(error => {
|
|
919
|
+
this.unlockScreen()
|
|
920
|
+
console.log(error)
|
|
921
|
+
})
|
|
922
|
+
},
|
|
923
|
+
// initRingPhaseData () {
|
|
924
|
+
// // 环信息从单独上载相位信息里获取,以免相位锁定后,方案状态数据里没有rings,导致相位锁定控制列表无法显示
|
|
925
|
+
// this.phaseRings = []
|
|
926
|
+
// let map = {}
|
|
927
|
+
// let dest = []
|
|
928
|
+
// for (let i = 0; i < this.phaseList.length; i++) {
|
|
929
|
+
// let ai = this.phaseList[i]
|
|
930
|
+
// if (!map[ai.ring]) {
|
|
931
|
+
// let addphse = this.addPhaseInfo(ai)
|
|
932
|
+
// dest.push({
|
|
933
|
+
// num: ai.ring,
|
|
934
|
+
// phases: [{...ai, ...addphse}]
|
|
935
|
+
// })
|
|
936
|
+
// map[ai.ring] = ai
|
|
937
|
+
// } else {
|
|
938
|
+
// for (var j = 0; j < dest.length; j++) {
|
|
939
|
+
// var dj = dest[j]
|
|
940
|
+
// if (dj.num === ai.ring) {
|
|
941
|
+
// let addphse = this.addPhaseInfo(ai)
|
|
942
|
+
// dj.phases.push({...ai, ...addphse})
|
|
943
|
+
// break
|
|
944
|
+
// }
|
|
945
|
+
// }
|
|
946
|
+
// }
|
|
947
|
+
// }
|
|
948
|
+
// this.phaseRings = JSON.parse(JSON.stringify(dest))
|
|
949
|
+
// },
|
|
950
|
+
// addPhaseInfo (phase) {
|
|
951
|
+
// let addphse = {}
|
|
952
|
+
// addphse.name = this.$t('openatccomponents.overview.phase') + phase.id
|
|
953
|
+
// addphse.desc = this.getPhaseDescription(phase.direction)
|
|
954
|
+
// // 相位锁定选项默认都按照解锁状态显示
|
|
955
|
+
// addphse.locktype = 0
|
|
956
|
+
// addphse.close = 0
|
|
957
|
+
// if (this.crossStatusData !== null && this.crossStatusData.phase) {
|
|
958
|
+
// // 如果方案状态相位有close字段,这边就需要对应close状态进相位关断控制的选项里
|
|
959
|
+
// let phaseStatus = this.crossStatusData.phase.filter(ele => ele.id === phase.id)[0]
|
|
960
|
+
// addphse = {...addphse, ...phaseStatus}
|
|
961
|
+
// }
|
|
962
|
+
// return addphse
|
|
963
|
+
// },
|
|
964
|
+
// getPhaseDescription (phaseList) {
|
|
965
|
+
// let list = []
|
|
966
|
+
// for (let id of phaseList) {
|
|
967
|
+
// let obj = {}
|
|
968
|
+
// obj.id = id
|
|
969
|
+
// obj.color = '#454545'
|
|
970
|
+
// list.push(obj)
|
|
971
|
+
// }
|
|
972
|
+
// return list
|
|
973
|
+
// },
|
|
974
|
+
getFaultById () {
|
|
975
|
+
let param = {
|
|
976
|
+
agentId: this.agentId,
|
|
977
|
+
isCurrentFault: true
|
|
978
|
+
}
|
|
979
|
+
GetAllFaultRange(param).then(res => {
|
|
980
|
+
if (res.data.success !== true) {
|
|
981
|
+
// this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
982
|
+
console.log(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
983
|
+
return
|
|
984
|
+
}
|
|
985
|
+
this.curFaultList = res.data.data.content
|
|
986
|
+
this.confirmedFault = this.curFaultList.filter(ele => ele.enumerate === '2')
|
|
987
|
+
this.ignoredFault = this.curFaultList.filter(ele => ele.enumerate === '1')
|
|
988
|
+
this.untreatedFault = this.curFaultList.filter(ele => ele.enumerate === '0')
|
|
989
|
+
})
|
|
990
|
+
},
|
|
991
|
+
showFaultDetail () {
|
|
992
|
+
this.$refs.faultDetail.onViewFaultClick()
|
|
993
|
+
},
|
|
994
|
+
setPropsToken (token) {
|
|
995
|
+
// 获取组件外传入的token,便于独立组件调用接口
|
|
996
|
+
if (token && token !== '') {
|
|
997
|
+
setToken(token)
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
hiddenPartControl () {
|
|
1001
|
+
// 保存的面板,不显示方位锁定的功能
|
|
1002
|
+
if (this.isShowImplement === false) {
|
|
1003
|
+
this.residentControlList = this.residentControlList.filter(item => item.id !== 25)
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
destroyed () {
|
|
1008
|
+
this.clearFaultInterval()
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
</script>
|