openatc-components 0.1.20 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +18 -18
- package/.editorconfig +9 -9
- package/.eslintignore +5 -5
- package/.eslintrc.js +29 -29
- package/.postcssrc.js +10 -10
- package/README.md +30 -30
- package/build/build.js +41 -41
- package/build/check-versions.js +54 -54
- package/build/package.config.js +58 -58
- package/build/package.dev.config.js +107 -107
- package/build/package.prod.config.js +160 -160
- package/build/utils.js +101 -101
- package/build/vue-loader.conf.js +22 -22
- package/build/webpack.base.conf.js +114 -114
- package/build/webpack.dev.conf.js +95 -95
- package/build/webpack.prod.conf.js +149 -149
- package/config/dev.env.js +8 -8
- package/config/index.js +91 -91
- package/config/prod.env.js +5 -5
- package/config/test.env.js +7 -7
- package/index.html +12 -12
- package/package/kisscomps/components/BoardCard/BoardCard.vue +94 -94
- package/package/kisscomps/components/BoardCard/index.js +2 -2
- package/package/kisscomps/components/Channelization/Channelization.vue +544 -544
- package/package/kisscomps/components/Channelization/index.js +2 -2
- package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +349 -349
- package/package/kisscomps/components/ChannelizationFlowStatistic/index.js +2 -2
- package/package/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +486 -486
- package/package/kisscomps/components/ChannelizationWithInterface/index.js +2 -2
- package/package/kisscomps/components/CommonKanban/CommonKanban.vue +118 -118
- package/package/kisscomps/components/CommonKanban/index.js +2 -2
- package/package/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +165 -165
- package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
- package/package/kisscomps/components/DrawChannelization/drawsvg/detectorAssociatedComponent.vue +152 -152
- package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/TextBox.vue +91 -91
- package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +194 -194
- package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/editText.vue +108 -108
- package/package/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +51 -51
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +236 -236
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +247 -247
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +210 -210
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +72 -72
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +455 -455
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +219 -219
- package/package/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +74 -74
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +1002 -1002
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +110 -110
- package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +699 -699
- package/package/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +157 -157
- package/package/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +157 -157
- package/package/kisscomps/components/DrawChannelization/drawsvg/table.vue +99 -99
- package/package/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +87 -87
- package/package/kisscomps/components/DrawChannelization/drawsvg/utils/phaseDataModel.js +32 -32
- package/package/kisscomps/components/DrawChannelization/drawsvg/utils/phasePos.json +20 -20
- package/package/kisscomps/components/DrawChannelization/index.js +2 -2
- package/package/kisscomps/components/DrawChannelization/phaseDataMgr.js +278 -278
- package/package/kisscomps/components/ExpendConfig/ExpendConfig.vue +114 -114
- package/package/kisscomps/components/ExpendConfig/index.js +2 -2
- package/package/kisscomps/components/FaultDetailModal/FaultDetailModal.vue +170 -170
- package/package/kisscomps/components/FaultDetailModal/index.js +2 -2
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CrossRoadsSvg.vue +497 -497
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +46 -46
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +300 -300
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +288 -288
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +391 -391
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +336 -336
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +345 -345
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +389 -389
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1179 -1179
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeEastRoadsSvg.vue +402 -402
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeNorthRoadsSvg.vue +361 -361
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeSouthRoadsSvg.vue +368 -368
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeWestRoadsSvg.vue +475 -475
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +494 -494
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +401 -401
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +360 -360
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +367 -367
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +476 -476
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/refreshSvg.vue +63 -63
- package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/busMapSvg.vue +50 -50
- package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/eastBusSvg.vue +167 -167
- package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/northBusSvg.vue +168 -168
- package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/southBusSvg.vue +168 -168
- package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/westBusSvg.vue +169 -169
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +920 -920
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +112 -112
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +112 -112
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +111 -111
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.json +196 -196
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.left.json +196 -196
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +99 -99
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +99 -99
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/sidePos.json +99 -99
- package/package/kisscomps/components/IntersectionMap/crossDirection/utils.js +78 -78
- package/package/kisscomps/components/IntersectionMap/index.js +2 -2
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +159 -159
- package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +521 -521
- package/package/kisscomps/components/IntersectionWithInterface/index.js +2 -2
- package/package/kisscomps/components/KanBan/index.js +2 -2
- package/package/kisscomps/components/KanBan/kanban.vue +219 -219
- package/package/kisscomps/components/MessageBox/index.vue +96 -96
- package/package/kisscomps/components/OverLap/OverLap.vue +207 -207
- package/package/kisscomps/components/OverLap/index.js +2 -2
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +962 -962
- package/package/kisscomps/components/PatternStatus/index.js +2 -2
- package/package/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
- package/package/kisscomps/components/PatternWalkSvg/index.js +2 -2
- package/package/kisscomps/components/PhaseMarker/index.js +6 -6
- package/package/kisscomps/components/PhaseMarker/phasemarker.vue +215 -215
- package/package/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -121
- package/package/kisscomps/components/PhaseMarker/svg/phase.vue +60 -60
- package/package/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -62
- package/package/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -62
- package/package/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -117
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +779 -779
- package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +195 -195
- package/package/kisscomps/components/SchemeConfig/index.js +2 -2
- package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +198 -198
- package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +226 -226
- package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +198 -198
- package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
- package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +275 -275
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +574 -574
- package/package/kisscomps/components/StageBord/StageBord.vue +242 -242
- package/package/kisscomps/components/StageBord/index.js +2 -2
- package/package/kisscomps/components/StageStatus/StageStatus.vue +310 -310
- package/package/kisscomps/components/StageStatus/index.js +2 -2
- package/package/kisscomps/components/Stages/index.vue +139 -139
- package/package/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
- package/package/kisscomps/components/SvgIcon/index.js +2 -2
- package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +522 -522
- package/package/kisscomps/components/XRDDirSelector/index.js +2 -2
- package/package/kisscomps/components/overView/index.vue +687 -687
- package/package/kisscomps/components/patternList/index.js +2 -2
- package/package/kisscomps/components/patternList/patternList.vue +567 -567
- package/package/kisscomps/index.js +109 -109
- package/package/kissui.min.js +1 -1
- package/package.json +126 -126
- package/src/App.vue +24 -24
- package/src/EdgeMgr/EdgeModelBase.js +16 -16
- package/src/EdgeMgr/controller/crossDiagramMgr.js +120 -120
- package/src/api/authapi.js +31 -31
- package/src/api/config.js +21 -21
- package/src/api/control.js +76 -76
- package/src/api/cross.js +33 -33
- package/src/api/fault.js +66 -66
- package/src/api/index.js +24 -24
- package/src/api/login.js +46 -46
- package/src/api/optimize.js +72 -72
- package/src/api/param.js +154 -154
- package/src/api/passwdAssest.js +101 -101
- package/src/api/template.js +27 -27
- package/src/i18n/index.js +26 -26
- package/src/i18n/language/en.js +1228 -1227
- package/src/i18n/language/index.js +25 -25
- package/src/i18n/language/zh.js +1227 -1226
- package/src/icons/demo.css +539 -539
- package/src/icons/iconfont.css +835 -835
- package/src/icons/iconfont.json +1444 -1444
- package/src/icons/index.js +20 -20
- package/src/icons/svg/bendi.svg +110 -110
- package/src/icons/svg/bujin.svg +36 -36
- package/src/icons/svg/connectBlue.svg +7 -7
- package/src/icons/svg/currentvolume.svg +0 -0
- package/src/icons/svg/custom-BRTlane.svg +40 -40
- package/src/icons/svg/custom-buslane.svg +40 -40
- package/src/icons/svg/custom-detector.svg +12 -12
- package/src/icons/svg/custom-east-bottom.svg +32 -32
- package/src/icons/svg/custom-east-top.svg +32 -32
- package/src/icons/svg/custom-ewped.svg +35 -35
- package/src/icons/svg/custom-nonmotorizedlane.svg +40 -40
- package/src/icons/svg/custom-north-left.svg +32 -32
- package/src/icons/svg/custom-north-right.svg +32 -32
- package/src/icons/svg/custom-peddetector.svg +17 -17
- package/src/icons/svg/custom-snped.svg +35 -35
- package/src/icons/svg/custom-south-left.svg +32 -32
- package/src/icons/svg/custom-south-right.svg +32 -32
- package/src/icons/svg/custom-tramlane.svg +40 -40
- package/src/icons/svg/custom-vehiclebranch.svg +40 -40
- package/src/icons/svg/custom-vehiclemainroad.svg +41 -41
- package/src/icons/svg/custom-west-bottom.svg +32 -32
- package/src/icons/svg/custom-west-top.svg +32 -32
- package/src/icons/svg/custom-xlped.svg +14 -14
- package/src/icons/svg/custom-xrped.svg +14 -14
- package/src/icons/svg/cutRed.svg +7 -7
- package/src/icons/svg/cycle.svg +0 -0
- package/src/icons/svg/dingzhouqi.svg +34 -34
- package/src/icons/svg/ganyingkongzhi.svg +30 -30
- package/src/icons/svg/guandeng.svg +81 -81
- package/src/icons/svg/huangshan.svg +71 -71
- package/src/icons/svg/maincontrol.svg +0 -0
- package/src/icons/svg/manualcontrolbackground.svg +51 -51
- package/src/icons/svg/manualcontrolbackground1.svg +62 -62
- package/src/icons/svg/manualcontrolbackgrounden.svg +62 -62
- package/src/icons/svg/model.svg +0 -0
- package/src/icons/svg/phasediff.svg +0 -0
- package/src/icons/svg/quanhong.svg +86 -86
- package/src/icons/svg/shanghe.svg +11 -11
- package/src/icons/svg/shoudong.svg +103 -103
- package/src/icons/svg/time.svg +0 -0
- package/src/icons/svg/wuxianlan.svg +46 -46
- package/src/icons/svg/xiala.svg +11 -11
- package/src/icons/svg/xingrenguojie.svg +33 -33
- package/src/icons/svg/xitong.svg +89 -89
- package/src/icons/svg/youxian.svg +41 -41
- package/src/icons/svg/zizhukongzhi.svg +43 -43
- package/src/kisscomps/components/BoardCard/BoardCard.vue +94 -94
- package/src/kisscomps/components/BoardCard/index.js +2 -2
- package/src/kisscomps/components/Channelization/Channelization.vue +544 -544
- package/src/kisscomps/components/Channelization/index.js +2 -2
- package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +349 -349
- package/src/kisscomps/components/ChannelizationFlowStatistic/index.js +2 -2
- package/src/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +486 -486
- package/src/kisscomps/components/ChannelizationWithInterface/index.js +2 -2
- package/src/kisscomps/components/CommonKanban/CommonKanban.vue +118 -118
- package/src/kisscomps/components/CommonKanban/index.js +2 -2
- package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +165 -165
- package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
- package/src/kisscomps/components/DrawChannelization/drawsvg/detectorAssociatedComponent.vue +152 -152
- package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/TextBox.vue +91 -91
- package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +194 -194
- package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/editText.vue +108 -108
- package/src/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +51 -51
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +236 -236
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +247 -247
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +210 -210
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +72 -72
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +455 -455
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +219 -219
- package/src/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +74 -74
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +1002 -1002
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +110 -110
- package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +699 -699
- package/src/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +157 -157
- package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +157 -157
- package/src/kisscomps/components/DrawChannelization/drawsvg/table.vue +99 -99
- package/src/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +87 -87
- package/src/kisscomps/components/DrawChannelization/drawsvg/utils/phaseDataModel.js +32 -32
- package/src/kisscomps/components/DrawChannelization/drawsvg/utils/phasePos.json +20 -20
- package/src/kisscomps/components/DrawChannelization/index.js +2 -2
- package/src/kisscomps/components/DrawChannelization/phaseDataMgr.js +278 -278
- package/src/kisscomps/components/ExpendConfig/ExpendConfig.vue +114 -114
- package/src/kisscomps/components/ExpendConfig/index.js +2 -2
- package/src/kisscomps/components/FaultDetailModal/FaultDetailModal.vue +170 -170
- package/src/kisscomps/components/FaultDetailModal/index.js +2 -2
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CrossRoadsSvg.vue +497 -497
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +46 -46
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +300 -300
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +288 -288
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +391 -391
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +336 -336
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +345 -345
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +389 -389
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1179 -1179
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeEastRoadsSvg.vue +402 -402
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeNorthRoadsSvg.vue +361 -361
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeSouthRoadsSvg.vue +368 -368
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeWestRoadsSvg.vue +475 -475
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +494 -494
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +401 -401
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +360 -360
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +367 -367
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +476 -476
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/refreshSvg.vue +63 -63
- package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/busMapSvg.vue +50 -50
- package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/eastBusSvg.vue +167 -167
- package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/northBusSvg.vue +168 -168
- package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/southBusSvg.vue +168 -168
- package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/westBusSvg.vue +169 -169
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +920 -920
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +112 -112
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +112 -112
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +111 -111
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.json +196 -196
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.left.json +196 -196
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +99 -99
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +99 -99
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/sidePos.json +99 -99
- package/src/kisscomps/components/IntersectionMap/crossDirection/utils.js +78 -78
- package/src/kisscomps/components/IntersectionMap/index.js +2 -2
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +159 -159
- package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +521 -521
- package/src/kisscomps/components/IntersectionWithInterface/index.js +2 -2
- package/src/kisscomps/components/KanBan/index.js +2 -2
- package/src/kisscomps/components/KanBan/kanban.vue +219 -219
- package/src/kisscomps/components/MessageBox/index.vue +96 -96
- package/src/kisscomps/components/OverLap/OverLap.vue +207 -207
- package/src/kisscomps/components/OverLap/index.js +2 -2
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +962 -962
- package/src/kisscomps/components/PatternStatus/index.js +2 -2
- package/src/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
- package/src/kisscomps/components/PatternWalkSvg/index.js +2 -2
- package/src/kisscomps/components/PhaseMarker/index.js +6 -6
- package/src/kisscomps/components/PhaseMarker/phasemarker.vue +215 -215
- package/src/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -121
- package/src/kisscomps/components/PhaseMarker/svg/phase.vue +60 -60
- package/src/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -62
- package/src/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -62
- package/src/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -117
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +779 -779
- package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +195 -195
- package/src/kisscomps/components/SchemeConfig/index.js +2 -2
- package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +198 -198
- package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +226 -226
- package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +198 -198
- package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
- package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +275 -275
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +574 -574
- package/src/kisscomps/components/StageBord/StageBord.vue +242 -242
- package/src/kisscomps/components/StageBord/index.js +2 -2
- package/src/kisscomps/components/StageStatus/StageStatus.vue +310 -310
- package/src/kisscomps/components/StageStatus/index.js +2 -2
- package/src/kisscomps/components/Stages/index.vue +139 -139
- package/src/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
- package/src/kisscomps/components/SvgIcon/index.js +2 -2
- package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +522 -522
- package/src/kisscomps/components/XRDDirSelector/index.js +2 -2
- package/src/kisscomps/components/overView/index.vue +687 -687
- package/src/kisscomps/components/patternList/index.js +2 -2
- package/src/kisscomps/components/patternList/patternList.vue +567 -567
- package/src/kisscomps/index.js +109 -109
- package/src/lib/publicjs/ArryListUtil.js +38 -38
- package/src/lib/publicjs/HttpurlMgr.js +45 -45
- package/src/lib/publicjs/KissApi.js +158 -158
- package/src/lib/publicjs/KissWSSub/Heartcheck.js +128 -128
- package/src/lib/publicjs/KissWSSub/KissWsSub.js +91 -91
- package/src/lib/publicjs/KissWSSub/KissWsSubByType.js +152 -152
- package/src/lib/publicjs/KissWSSub/SimuWsSubByType.js +44 -44
- package/src/lib/publicjs/KissWSSub/Sub.js +51 -51
- package/src/lib/publicjs/KissWSSub/SubChannel.js +119 -119
- package/src/lib/publicjs/basecomponents.js +65 -65
- package/src/lib/publicjs/localStorage.js +112 -112
- package/src/lib/publicjs/objdeepcopy.js +32 -32
- package/src/lib/publicjs/pageScroll.js +30 -30
- package/src/lib/publicjs/passwdAssest.js +101 -101
- package/src/lib/publicjs/styleclassfactory.js +32 -32
- package/src/main.js +50 -50
- package/src/router/index.js +42 -42
- package/src/store/getters.js +16 -16
- package/src/store/index.js +26 -26
- package/src/store/modules/globalParam.js +67 -67
- package/src/utils/ControlFormat.js +68 -68
- package/src/utils/RingDataModel.js +191 -191
- package/src/utils/auth.js +178 -178
- package/src/utils/dateFormat.js +41 -41
- package/src/utils/errorcode.js +224 -224
- package/src/utils/fault.js +195 -195
- package/src/utils/faultcode.js +209 -209
- package/src/utils/index.js +69 -69
- package/src/utils/pedphasedesc.js +119 -119
- package/src/utils/phasedesc.js +124 -124
- package/src/utils/responseMessage.js +21 -21
- package/src/utils/validate.js +43 -43
- package/src/views/customchannelization.vue +49 -49
- package/src/views/home.1.vue +479 -479
- package/src/views/home.vue +78 -78
- package/src/views/intersection.vue +309 -309
- package/src/views/overView.vue +41 -41
- package/src/views/schemeconfig.vue +165 -165
- package/static/apiconfig.json +351 -351
- package/static/styles/channelizatioon.scss +414 -414
- package/static/styles/common.scss +20 -20
- package/static/styles/commonkanban.scss +87 -87
- package/static/styles/dark/index.scss +2 -2
- package/static/styles/dark/theme/element-dark.scss +42 -42
- package/static/styles/index.scss +84 -84
- package/static/styles/intersection.scss +170 -170
- package/static/styles/light/index.scss +2 -2
- package/static/styles/light/theme/element-light.scss +42 -42
- package/static/styles/overview.scss +371 -371
- package/static/styles/schemeconfig.scss +457 -457
- package/static/styles/stages.scss +64 -64
- package/static/token.json +2 -2
- package/test/e2e/custom-assertions/elementCount.js +27 -27
- package/test/e2e/nightwatch.conf.js +46 -46
- package/test/e2e/runner.js +48 -48
- package/test/e2e/specs/test.js +19 -19
- package/test/unit/.eslintrc +7 -7
- package/test/unit/jest.conf.js +30 -30
- package/test/unit/setup.js +3 -3
- package/test/unit/specs/HelloWorld.spec.js +11 -11
- package/pnpm-lock.yaml +0 -12343
|
@@ -1,574 +1,574 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="tentativeplan-control">
|
|
3
|
-
<div class="title" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.tentativeplan')}}</div>
|
|
4
|
-
<el-row>
|
|
5
|
-
<el-col :span="12">
|
|
6
|
-
<el-form
|
|
7
|
-
ref="manual"
|
|
8
|
-
label-position="left"
|
|
9
|
-
:model="manualInfo"
|
|
10
|
-
label-width="100px">
|
|
11
|
-
<el-form-item
|
|
12
|
-
:label="$t('openatccomponents.overview.patternid') + ':'"
|
|
13
|
-
prop="count">
|
|
14
|
-
<el-select @change="selectPattern()" v-model="manualInfo.tempPatternid" class="col-inner" size="small" :placeholder="$t('openatccomponents.common.select')">
|
|
15
|
-
<el-option
|
|
16
|
-
v-for="item in patternSelect"
|
|
17
|
-
:key="item.value"
|
|
18
|
-
:label="item.label"
|
|
19
|
-
:value="item.value">
|
|
20
|
-
</el-option>
|
|
21
|
-
</el-select>
|
|
22
|
-
<!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
23
|
-
</el-form-item>
|
|
24
|
-
<el-form-item
|
|
25
|
-
:label="$t('openatccomponents.overview.delay') + ':'"
|
|
26
|
-
prop="intersection">
|
|
27
|
-
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDelay" size="mini"></el-input-number>
|
|
28
|
-
<!-- <el-input v-model="manualInfo.tempDelay" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
29
|
-
</el-form-item>
|
|
30
|
-
</el-form>
|
|
31
|
-
</el-col>
|
|
32
|
-
<el-col :span="12">
|
|
33
|
-
<el-form
|
|
34
|
-
ref="manual"
|
|
35
|
-
label-position="left"
|
|
36
|
-
:model="manualInfo"
|
|
37
|
-
label-width="100px">
|
|
38
|
-
<el-form-item
|
|
39
|
-
:label="$t('openatccomponents.overview.patternoffset') + ':'"
|
|
40
|
-
prop="count">
|
|
41
|
-
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.offset" size="mini"></el-input-number>
|
|
42
|
-
<!-- <el-input v-model="manualInfo.offset" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
43
|
-
</el-form-item>
|
|
44
|
-
<el-form-item
|
|
45
|
-
:label="$t('openatccomponents.overview.duration') + ':'"
|
|
46
|
-
prop="intersection">
|
|
47
|
-
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.duration" size="mini"></el-input-number>
|
|
48
|
-
<!-- <el-input v-model="manualInfo.duration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
49
|
-
</el-form-item>
|
|
50
|
-
</el-form>
|
|
51
|
-
</el-col>
|
|
52
|
-
</el-row>
|
|
53
|
-
<el-row>
|
|
54
|
-
<div class="title" style="margin-top:18px; margin-bottom:10px">{{$t('openatccomponents.overview.patternstate')}}:
|
|
55
|
-
<span>({{$t('openatccomponents.overview.cycle')}}: {{cycle}} {{$t('openatccomponents.overview.patternoffset')}}: {{offset}})</span>
|
|
56
|
-
</div>
|
|
57
|
-
<stage-status
|
|
58
|
-
:patternStatusList="patternOne.length===0?planPattern.rings:patternOne[0].rings"
|
|
59
|
-
>
|
|
60
|
-
</stage-status>
|
|
61
|
-
<pattern-list
|
|
62
|
-
:patternList="patternOne.length===0?planPattern.rings:patternOne"
|
|
63
|
-
:patternStatusList="patternOne.length===0?planPattern.rings:patternOne[0].rings"
|
|
64
|
-
:cycles="patternOne.length===0?planPattern.cycle:patternOne[0].cycle"
|
|
65
|
-
:phaseList="phaseList">
|
|
66
|
-
</pattern-list>
|
|
67
|
-
</el-row>
|
|
68
|
-
<el-row>
|
|
69
|
-
<el-tabs v-model="activeList" type="card">
|
|
70
|
-
<el-tab-pane :label="$t('openatccomponents.pattern.ringConfig')" name="ring">
|
|
71
|
-
<div style="width: 100%; overflow: hidden;margin-top: 20px;">
|
|
72
|
-
<kan-ban v-for="n in ringCount"
|
|
73
|
-
:key="n" class="closephasekanban"
|
|
74
|
-
:index="n"
|
|
75
|
-
:options="patternOne.length===0?allPatternList[0].options:patternOne[0].options"
|
|
76
|
-
:list="patternOne.length===0?planPattern.rings[n-1]:patternOne[0].rings[n-1]"
|
|
77
|
-
:phaseList="phaseList"
|
|
78
|
-
:header-text="$t('openatccomponents.pattern.ring')+n"
|
|
79
|
-
@handleSplit="handleSplit">
|
|
80
|
-
</kan-ban>
|
|
81
|
-
</div>
|
|
82
|
-
</el-tab-pane>
|
|
83
|
-
<el-tab-pane :label="$t('openatccomponents.pattern.stageConfig')" name="kanban">
|
|
84
|
-
<el-scrollbar :vertical="true">
|
|
85
|
-
<div class="stage-panel-contener">
|
|
86
|
-
<stage-board v-for="(stage,index) in patternOne.length===0?allPatternList[0].stagesList:patternOne[0].stagesList"
|
|
87
|
-
class="closephasekanban"
|
|
88
|
-
:key="index"
|
|
89
|
-
:stage="stage"
|
|
90
|
-
:options="patternOne.length===0?allPatternList[0].options:patternOne[0].options"
|
|
91
|
-
:stageInfo="patternOne.length===0?allPatternList[0].stagesList:patternOne[0].stagesList"
|
|
92
|
-
:coordphaseOption="coordphaseOption"
|
|
93
|
-
:subIndex="index"
|
|
94
|
-
@onStageSplitChange="onStageSplitChange"
|
|
95
|
-
@stageSplitChange="stageSplitChange"
|
|
96
|
-
@onStageDelaystartChange="onStageDelaystartChange"
|
|
97
|
-
@onStageAdvanceendChange="onStageAdvanceendChange"
|
|
98
|
-
>
|
|
99
|
-
</stage-board>
|
|
100
|
-
</div>
|
|
101
|
-
</el-scrollbar>
|
|
102
|
-
</el-tab-pane>
|
|
103
|
-
<el-tab-pane :label="$t('openatccomponents.pattern.parameters')" name="parame">
|
|
104
|
-
<el-row>
|
|
105
|
-
<expend-config
|
|
106
|
-
v-for="(j,index) in ringCounts"
|
|
107
|
-
:key="index"
|
|
108
|
-
class="closephasekanban"
|
|
109
|
-
:options="patternOne.length===0?allPatternList[0].options:patternOne[0].options"
|
|
110
|
-
:header-text="$t('openatccomponents.pattern.ring')+j"
|
|
111
|
-
:list="patternOne.length===0?planPattern.rings[j-1]:patternOne[0].rings[j-1]"
|
|
112
|
-
>
|
|
113
|
-
</expend-config>
|
|
114
|
-
<div style="width: 60%;margin: 10px auto;color:#ffffff">
|
|
115
|
-
{{$t('openatccomponents.pattern.forbiddenstage')}}
|
|
116
|
-
<el-input class="stage-value" size="small" v-model="forbiddenstage"></el-input>
|
|
117
|
-
</div>
|
|
118
|
-
<div style="width: 60%;margin: 10px auto;color:#ffffff">
|
|
119
|
-
{{$t('openatccomponents.pattern.screenstage')}}
|
|
120
|
-
<el-input class="stage-value" size="small" v-model="screenstage"></el-input>
|
|
121
|
-
</div>
|
|
122
|
-
<div style="width: 60%;margin: 10px auto;color:#ffffff">
|
|
123
|
-
{{$t('openatccomponents.pattern.coordinatestage')}}
|
|
124
|
-
<el-input class="stage-value" size="small" v-model="coordinatestage"></el-input>
|
|
125
|
-
</div>
|
|
126
|
-
</el-row>
|
|
127
|
-
</el-tab-pane>
|
|
128
|
-
<el-tab-pane :label="$t('openatccomponents.pattern.overLap')" name="overlap">
|
|
129
|
-
<el-row :gutter="20">
|
|
130
|
-
<el-col :span="24" >
|
|
131
|
-
<over-lap
|
|
132
|
-
:stageList="stagesList"
|
|
133
|
-
:overlap="overlap"
|
|
134
|
-
:checked="true"
|
|
135
|
-
:tentative="true"
|
|
136
|
-
:cycle="patternOne.length===0?planPattern.cycle:patternOne[0].cycle"
|
|
137
|
-
>
|
|
138
|
-
</over-lap>
|
|
139
|
-
</el-col>
|
|
140
|
-
</el-row>
|
|
141
|
-
</el-tab-pane>
|
|
142
|
-
</el-tabs>
|
|
143
|
-
</el-row>
|
|
144
|
-
<div class="footer" v-if="realtimeStatusModalvisible">
|
|
145
|
-
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
146
|
-
<el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.implement')}}</el-button>
|
|
147
|
-
</div>
|
|
148
|
-
<div class="footer" v-if="!realtimeStatusModalvisible">
|
|
149
|
-
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
150
|
-
<el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.comfirm')}}</el-button>
|
|
151
|
-
</div>
|
|
152
|
-
</div>
|
|
153
|
-
</template>
|
|
154
|
-
|
|
155
|
-
<script>
|
|
156
|
-
export default {
|
|
157
|
-
name: 'tentativeplancontrol',
|
|
158
|
-
props: {
|
|
159
|
-
realtimeStatusModalvisible: {
|
|
160
|
-
type: Boolean,
|
|
161
|
-
default: true
|
|
162
|
-
},
|
|
163
|
-
controlData: {
|
|
164
|
-
type: Object
|
|
165
|
-
},
|
|
166
|
-
phaseList: {
|
|
167
|
-
type: Array
|
|
168
|
-
},
|
|
169
|
-
overlap: {
|
|
170
|
-
type: Array
|
|
171
|
-
},
|
|
172
|
-
allPatternList: {
|
|
173
|
-
type: Array
|
|
174
|
-
},
|
|
175
|
-
patternSelect: {
|
|
176
|
-
type: Array
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
computed: {
|
|
180
|
-
rings () {
|
|
181
|
-
return this.patternOne.length === 0 ? this.planPattern.rings : this.patternOne[0].rings
|
|
182
|
-
},
|
|
183
|
-
cycle () {
|
|
184
|
-
return this.patternOne.length === 0 ? this.max : (this.patternOne.length > 0 && (this.patternOne[0].cycle < this.max)) ? this.max : this.patternOne[0].cycle
|
|
185
|
-
},
|
|
186
|
-
offset () {
|
|
187
|
-
return Number((this.patternOne.length === 0 || this.manualInfo.offset > 0) ? this.manualInfo.offset : this.patternOne[0].offset)
|
|
188
|
-
},
|
|
189
|
-
forbiddenstage () {
|
|
190
|
-
return this.patternOne.length === 0 ? this.allPatternList[0].forbiddenstage : this.patternOne[0].forbiddenstage
|
|
191
|
-
},
|
|
192
|
-
screenstage () {
|
|
193
|
-
return this.patternOne.length === 0 ? this.allPatternList[0].screenstage : this.patternOne[0].screenstage
|
|
194
|
-
},
|
|
195
|
-
coordinatestage () {
|
|
196
|
-
return this.patternOne.length === 0 ? this.allPatternList[0].coordinatestage : this.patternOne[0].coordinatestage
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
data () {
|
|
200
|
-
return {
|
|
201
|
-
stagesList: [],
|
|
202
|
-
phaseRings: [],
|
|
203
|
-
options: {
|
|
204
|
-
group: 'pattern'
|
|
205
|
-
},
|
|
206
|
-
max: '',
|
|
207
|
-
patternCycleEqual: true,
|
|
208
|
-
activeList: 'ring',
|
|
209
|
-
ringCount: 1,
|
|
210
|
-
ringCounts: 1,
|
|
211
|
-
coordphaseOption: [],
|
|
212
|
-
patternOne: [],
|
|
213
|
-
planPattern: {},
|
|
214
|
-
manualInfo: {
|
|
215
|
-
tempPatternid: '',
|
|
216
|
-
offset: 0,
|
|
217
|
-
duration: 300,
|
|
218
|
-
tempDelay: 0 // 控制方式手动操作的情况下的延迟时间的临时值。
|
|
219
|
-
// tempDuration: 300 // 控制方式手动操作的情况下的持续时间的临时值。
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
created () {
|
|
224
|
-
this.patternPlan()
|
|
225
|
-
this.getCycle()
|
|
226
|
-
if (this.patternOne.length === 0) {
|
|
227
|
-
this.handleStageData(this.planPattern.rings)
|
|
228
|
-
}
|
|
229
|
-
this.initData()
|
|
230
|
-
},
|
|
231
|
-
methods: {
|
|
232
|
-
patternPlan () {
|
|
233
|
-
let Pattern = {
|
|
234
|
-
offset: 0,
|
|
235
|
-
cycle: 0,
|
|
236
|
-
rings: [[], [], [], []]
|
|
237
|
-
}
|
|
238
|
-
var newPattern = JSON.parse(JSON.stringify(Pattern))
|
|
239
|
-
for (let phase of this.phaseList) {
|
|
240
|
-
let ring = {}
|
|
241
|
-
ring.name = 'Phase ' + phase.id
|
|
242
|
-
ring.desc = this.getPhaseDescription(phase.direction)
|
|
243
|
-
ring.id = phase.id
|
|
244
|
-
ring.value = 30
|
|
245
|
-
ring.mode = 2
|
|
246
|
-
ring.options = []
|
|
247
|
-
ring.delaystart = 0
|
|
248
|
-
ring.advanceend = 0
|
|
249
|
-
if (phase.ring === 1) {
|
|
250
|
-
newPattern.rings[0].push(ring)
|
|
251
|
-
} else if (phase.ring === 2) {
|
|
252
|
-
newPattern.rings[1].push(ring)
|
|
253
|
-
} else if (phase.ring === 3) {
|
|
254
|
-
newPattern.rings[2].push(ring)
|
|
255
|
-
} else if (phase.ring === 4) {
|
|
256
|
-
newPattern.rings[3].push(ring)
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
this.planPattern = newPattern
|
|
260
|
-
},
|
|
261
|
-
getCycle () {
|
|
262
|
-
for (let rings of this.planPattern.rings) {
|
|
263
|
-
let num = 0
|
|
264
|
-
for (let i = 0; i < rings.length; i++) {
|
|
265
|
-
if (rings[i].length !== 0) {
|
|
266
|
-
if (rings[i].mode === 7) { // 忽略相位不计周期
|
|
267
|
-
continue
|
|
268
|
-
}
|
|
269
|
-
num = num + Number(rings[i].value)
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
if (num !== 0) {
|
|
273
|
-
this.planPattern.cycle = num
|
|
274
|
-
break
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
getPhaseDescription (phaseList) {
|
|
279
|
-
if (!phaseList) return
|
|
280
|
-
let list = []
|
|
281
|
-
for (let id of phaseList) {
|
|
282
|
-
let obj = {}
|
|
283
|
-
obj.id = id
|
|
284
|
-
obj.color = '#454545'
|
|
285
|
-
list.push(obj)
|
|
286
|
-
}
|
|
287
|
-
return list
|
|
288
|
-
},
|
|
289
|
-
handleClose () {
|
|
290
|
-
this.$emit('closePhaseBack')
|
|
291
|
-
},
|
|
292
|
-
onStageSplitChange (diff, rowIndex, subIndex) {
|
|
293
|
-
let stageArr = this.stagesList[subIndex].stages
|
|
294
|
-
let row = this.patternList[rowIndex]
|
|
295
|
-
let ringsList = row.rings
|
|
296
|
-
for (let rings of ringsList) {
|
|
297
|
-
for (let ring of rings) {
|
|
298
|
-
if (stageArr.includes(ring.id)) {
|
|
299
|
-
ring.value = (ring.value ? ring.value : 0) + diff
|
|
300
|
-
continue
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
stageSplitChange (diff, rowIndex, subIndex) {
|
|
306
|
-
let row = this.patternList[rowIndex]
|
|
307
|
-
let ringsList = row.stagesList
|
|
308
|
-
for (let rings of ringsList) {
|
|
309
|
-
if (subIndex === rings.key) {
|
|
310
|
-
rings.stageSplit = (rings.green ? rings.green : 0) + (rings.yellow ? rings.yellow : 0) + (rings.red ? rings.red : 0)
|
|
311
|
-
continue
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
onStageDelaystartChange (diff, rowIndex, subIndex) {
|
|
316
|
-
let stageArr = this.stagesList[subIndex].stages
|
|
317
|
-
let row = this.patternList[rowIndex]
|
|
318
|
-
let ringsList = row.rings
|
|
319
|
-
for (let rings of ringsList) {
|
|
320
|
-
for (let ring of rings) {
|
|
321
|
-
if (stageArr.includes(ring.id)) {
|
|
322
|
-
ring.delaystart = (ring.delaystart ? ring.delaystart : 0) + diff
|
|
323
|
-
continue
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
onStageAdvanceendChange (diff, rowIndex, subIndex) {
|
|
329
|
-
let stageArr = this.stagesList[subIndex].stages
|
|
330
|
-
let row = this.patternList[rowIndex]
|
|
331
|
-
let ringsList = row.rings
|
|
332
|
-
for (let rings of ringsList) {
|
|
333
|
-
for (let ring of rings) {
|
|
334
|
-
if (stageArr.includes(ring.id)) {
|
|
335
|
-
ring.advanceend = (ring.advanceend ? ring.advanceend : 0) + diff
|
|
336
|
-
continue
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
handleSplit (index) {
|
|
342
|
-
if (this.patternOne.length > 0) {
|
|
343
|
-
let currPattern = this.patternOne[0].rings
|
|
344
|
-
setTimeout(() => {
|
|
345
|
-
this.handleStageData(currPattern)
|
|
346
|
-
}, 50)
|
|
347
|
-
} else {
|
|
348
|
-
let currPattern = this.planPattern.rings
|
|
349
|
-
setTimeout(() => {
|
|
350
|
-
this.handleStageData(currPattern)
|
|
351
|
-
}, 50)
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
selectPattern () {
|
|
355
|
-
this.manualInfo.offset = 0
|
|
356
|
-
let selectId = Number(this.manualInfo.tempPatternid)
|
|
357
|
-
this.patternOne = this.allPatternList.filter(item => {
|
|
358
|
-
return item.id === selectId
|
|
359
|
-
})
|
|
360
|
-
this.manualInfo.offset = this.offset
|
|
361
|
-
for (let rings of this.patternOne[0].rings) {
|
|
362
|
-
if (rings.length === 0) continue
|
|
363
|
-
for (let ring of rings) {
|
|
364
|
-
if (ring.value === 0) continue
|
|
365
|
-
let currPhase = this.phaseList.filter((item) => {
|
|
366
|
-
return item.id === ring.id
|
|
367
|
-
})[0]
|
|
368
|
-
ring.desc = currPhase.direction.map(item => {
|
|
369
|
-
return {
|
|
370
|
-
id: item,
|
|
371
|
-
color: '#454545'
|
|
372
|
-
}
|
|
373
|
-
})
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
this.handleStageData(this.patternOne[0].rings)
|
|
377
|
-
},
|
|
378
|
-
handleStageData (rings) { // stagesList
|
|
379
|
-
for (let i = 0; i < rings.length; i++) {
|
|
380
|
-
if (rings[i].length > 0) {
|
|
381
|
-
let phaseList = []
|
|
382
|
-
let stagesList = []
|
|
383
|
-
// rings = JSON.parse(JSON.stringify(rings))
|
|
384
|
-
let mapAdd = rings.map(item => {
|
|
385
|
-
return item.map(val => {
|
|
386
|
-
return val.value + (val.sum ? val.sum : 0)
|
|
387
|
-
})
|
|
388
|
-
})
|
|
389
|
-
let maxCycle = mapAdd.length > 0 ? mapAdd.map(item => {
|
|
390
|
-
return item.length > 0 ? item.reduce((a, b) => {
|
|
391
|
-
return a + b
|
|
392
|
-
}) : 0
|
|
393
|
-
}) : 0
|
|
394
|
-
this.max = Math.max(...maxCycle)// 每个环的周期最大值
|
|
395
|
-
this.stateList = [0]
|
|
396
|
-
this.narr = []
|
|
397
|
-
let currentIds = ''
|
|
398
|
-
let lastCurrentIds = ''
|
|
399
|
-
for (let j = 0; j <= this.max; j++) { // 指针长度
|
|
400
|
-
for (let i = 0; i < rings.length; i++) { // 环列表
|
|
401
|
-
let ring = rings[i]// 每个环对象
|
|
402
|
-
let sum = 0
|
|
403
|
-
for (let n = 0; n < ring.length; n++) { // 相位累计长度
|
|
404
|
-
if (ring[n].mode !== 7) {
|
|
405
|
-
sum = sum + ring[n].value + (ring[n].sum ? ring[n].sum : 0)
|
|
406
|
-
if (j < sum) {
|
|
407
|
-
let phaseId = ring[n].id
|
|
408
|
-
currentIds = currentIds + '-' + phaseId
|
|
409
|
-
break
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
if (lastCurrentIds !== currentIds && lastCurrentIds !== '') { // 当前相位id和上一个相比不同说明相位变化了
|
|
415
|
-
phaseList.push(lastCurrentIds)
|
|
416
|
-
this.stateList.push(j)// 阶段累计长度的集合
|
|
417
|
-
}
|
|
418
|
-
lastCurrentIds = currentIds
|
|
419
|
-
currentIds = ''
|
|
420
|
-
}
|
|
421
|
-
let newPhaselist = []
|
|
422
|
-
phaseList.forEach(i => {
|
|
423
|
-
let rangeArr = i.split('-').map(Number)
|
|
424
|
-
if (rangeArr.length > 2) {
|
|
425
|
-
newPhaselist.push([
|
|
426
|
-
JSON.parse(JSON.stringify(rangeArr[1])),
|
|
427
|
-
JSON.parse(JSON.stringify(rangeArr[2]))
|
|
428
|
-
])
|
|
429
|
-
} else {
|
|
430
|
-
newPhaselist.push([
|
|
431
|
-
JSON.parse(JSON.stringify(rangeArr[1]))
|
|
432
|
-
])
|
|
433
|
-
}
|
|
434
|
-
})
|
|
435
|
-
for (let i = this.stateList.length - 1; i >= 1; i--) {
|
|
436
|
-
this.narr.push(this.stateList[i] - this.stateList[i - 1])
|
|
437
|
-
}
|
|
438
|
-
// newPhaselist
|
|
439
|
-
this.narr.reverse()// 阶段差
|
|
440
|
-
for (let i = 0; i < newPhaselist.length; i++) {
|
|
441
|
-
let stage = JSON.parse(JSON.stringify(newPhaselist[i]))
|
|
442
|
-
let stageItem = this.getStageItem(stage, rings, i)
|
|
443
|
-
stagesList.push(JSON.parse(JSON.stringify(stageItem)))
|
|
444
|
-
}
|
|
445
|
-
this.stagesList = JSON.parse(JSON.stringify(stagesList))
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
getStageItem (stageArr, ringsList, i) {
|
|
450
|
-
let res = {
|
|
451
|
-
key: i,
|
|
452
|
-
split: this.narr[i], // 阶段绿性比
|
|
453
|
-
stages: stageArr,
|
|
454
|
-
delaystart: 0,
|
|
455
|
-
advanceend: 0
|
|
456
|
-
}
|
|
457
|
-
// let splitArr = []
|
|
458
|
-
let delaystartArr = []
|
|
459
|
-
let advanceendArr = []
|
|
460
|
-
for (let rings of ringsList) {
|
|
461
|
-
for (let ring of rings) {
|
|
462
|
-
if (stageArr.includes(ring.id)) {
|
|
463
|
-
// let split = ring.value
|
|
464
|
-
let delaystart = ring.delaystart
|
|
465
|
-
let advanceend = ring.advanceend
|
|
466
|
-
// splitArr.push(split)
|
|
467
|
-
delaystartArr.push(delaystart)
|
|
468
|
-
advanceendArr.push(advanceend)
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
// splitArr.sort(function (a, b) { return a - b })
|
|
473
|
-
delaystartArr.sort(function (a, b) { return b - a })
|
|
474
|
-
advanceendArr.sort(function (a, b) { return a - b })
|
|
475
|
-
// res.split = splitArr.length > 0 ? splitArr[0] : 0
|
|
476
|
-
res.delaystart = delaystartArr.length > 0 ? delaystartArr[0] : 0
|
|
477
|
-
res.advanceend = advanceendArr.length > 0 ? advanceendArr[0] : 0
|
|
478
|
-
return res
|
|
479
|
-
},
|
|
480
|
-
initData () {
|
|
481
|
-
// 判断有几个环,就创建几个看板
|
|
482
|
-
// let phaseList = this.globalParamModel.getParamsByType('phaseList')
|
|
483
|
-
this.coordphaseOption = this.phaseList.map(ele => {
|
|
484
|
-
return {
|
|
485
|
-
value: ele.id
|
|
486
|
-
}
|
|
487
|
-
})
|
|
488
|
-
// this.overlap = this.globalParamModel.getParamsByType('overlaplList')
|
|
489
|
-
// this.agentId = getIframdevid()
|
|
490
|
-
let rings = []
|
|
491
|
-
if (this.phaseList.length === 0) {
|
|
492
|
-
// this.$store.getters.tscParam.patternList = []
|
|
493
|
-
return
|
|
494
|
-
}
|
|
495
|
-
for (let phase of this.phaseList) {
|
|
496
|
-
rings.push(phase.ring)
|
|
497
|
-
}
|
|
498
|
-
this.ringCount = Array.from(new Set(rings)) // 去除数组重复的元素
|
|
499
|
-
this.ringCount = this.ringCount.sort(this.sortNumbers) // 把数组中的值按照从小到大的顺序重新排序
|
|
500
|
-
this.ringCounts = Array.from(new Set(rings)) // 去除数组重复的元素
|
|
501
|
-
this.ringCounts = this.ringCounts.sort(this.sortNumbers) // 把数组中的值按照从小到大的顺序重新排序
|
|
502
|
-
// this.increaseId()
|
|
503
|
-
// this.getCycle()
|
|
504
|
-
// this.updatePhaseDescription()
|
|
505
|
-
// this.getOptionsOfRing()
|
|
506
|
-
},
|
|
507
|
-
sortNumbers (a, b) {
|
|
508
|
-
return a - b
|
|
509
|
-
},
|
|
510
|
-
isRingCycleEqual (rings) {
|
|
511
|
-
let isequal = true
|
|
512
|
-
// this.patternmsg = []
|
|
513
|
-
let maxCycle = 0
|
|
514
|
-
for (let ring of rings) {
|
|
515
|
-
if (ring.length === 0) continue
|
|
516
|
-
let cycle = 0
|
|
517
|
-
for (let r of ring) {
|
|
518
|
-
if (r.mode === 7) { // 忽略相位不计周期
|
|
519
|
-
continue
|
|
520
|
-
}
|
|
521
|
-
cycle = cycle + r.value
|
|
522
|
-
}
|
|
523
|
-
if (cycle > maxCycle && maxCycle === 0) {
|
|
524
|
-
maxCycle = cycle
|
|
525
|
-
}
|
|
526
|
-
if (cycle !== maxCycle) {
|
|
527
|
-
// this.patternmsg.push(rings.id)
|
|
528
|
-
isequal = false
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
return isequal
|
|
532
|
-
},
|
|
533
|
-
checkPatternRules (rings) {
|
|
534
|
-
if (!this.isRingCycleEqual(rings)) {
|
|
535
|
-
this.patternCycleEqual = false
|
|
536
|
-
} else {
|
|
537
|
-
this.patternCycleEqual = true
|
|
538
|
-
}
|
|
539
|
-
if (!this.patternCycleEqual) {
|
|
540
|
-
let mess = `方案中存在环周期时长不一致`
|
|
541
|
-
if (this.$i18n.locale === 'en') {
|
|
542
|
-
mess = `Inconsistent loop cycle durations exist in the scheme`
|
|
543
|
-
}
|
|
544
|
-
this.$message({
|
|
545
|
-
message: mess,
|
|
546
|
-
type: 'error',
|
|
547
|
-
dangerouslyUseHTMLString: true
|
|
548
|
-
})
|
|
549
|
-
return false
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
handleManualControl () {
|
|
553
|
-
let submitdata = {
|
|
554
|
-
control: 100,
|
|
555
|
-
delay: this.manualInfo.tempDelay !== undefined ? Number(this.manualInfo.tempDelay) : 0,
|
|
556
|
-
duration: Number(this.manualInfo.duration),
|
|
557
|
-
// duration: this.manualInfo.tempDuration !== undefined ? Number(this.manualInfo.tempDuration) : 0,
|
|
558
|
-
data: {}
|
|
559
|
-
}
|
|
560
|
-
submitdata.data.offset = this.offset
|
|
561
|
-
submitdata.data.cycle = this.cycle
|
|
562
|
-
submitdata.data.rings = this.rings
|
|
563
|
-
this.checkPatternRules(submitdata.data.rings)
|
|
564
|
-
if (this.patternCycleEqual) {
|
|
565
|
-
this.$emit('closePhaseControl', submitdata)
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
</script>
|
|
571
|
-
|
|
572
|
-
<style>
|
|
573
|
-
|
|
574
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tentativeplan-control">
|
|
3
|
+
<div class="title" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.tentativeplan')}}</div>
|
|
4
|
+
<el-row>
|
|
5
|
+
<el-col :span="12">
|
|
6
|
+
<el-form
|
|
7
|
+
ref="manual"
|
|
8
|
+
label-position="left"
|
|
9
|
+
:model="manualInfo"
|
|
10
|
+
label-width="100px">
|
|
11
|
+
<el-form-item
|
|
12
|
+
:label="$t('openatccomponents.overview.patternid') + ':'"
|
|
13
|
+
prop="count">
|
|
14
|
+
<el-select @change="selectPattern()" v-model="manualInfo.tempPatternid" class="col-inner" size="small" :placeholder="$t('openatccomponents.common.select')">
|
|
15
|
+
<el-option
|
|
16
|
+
v-for="item in patternSelect"
|
|
17
|
+
:key="item.value"
|
|
18
|
+
:label="item.label"
|
|
19
|
+
:value="item.value">
|
|
20
|
+
</el-option>
|
|
21
|
+
</el-select>
|
|
22
|
+
<!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
23
|
+
</el-form-item>
|
|
24
|
+
<el-form-item
|
|
25
|
+
:label="$t('openatccomponents.overview.delay') + ':'"
|
|
26
|
+
prop="intersection">
|
|
27
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDelay" size="mini"></el-input-number>
|
|
28
|
+
<!-- <el-input v-model="manualInfo.tempDelay" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
29
|
+
</el-form-item>
|
|
30
|
+
</el-form>
|
|
31
|
+
</el-col>
|
|
32
|
+
<el-col :span="12">
|
|
33
|
+
<el-form
|
|
34
|
+
ref="manual"
|
|
35
|
+
label-position="left"
|
|
36
|
+
:model="manualInfo"
|
|
37
|
+
label-width="100px">
|
|
38
|
+
<el-form-item
|
|
39
|
+
:label="$t('openatccomponents.overview.patternoffset') + ':'"
|
|
40
|
+
prop="count">
|
|
41
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.offset" size="mini"></el-input-number>
|
|
42
|
+
<!-- <el-input v-model="manualInfo.offset" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
43
|
+
</el-form-item>
|
|
44
|
+
<el-form-item
|
|
45
|
+
:label="$t('openatccomponents.overview.duration') + ':'"
|
|
46
|
+
prop="intersection">
|
|
47
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.duration" size="mini"></el-input-number>
|
|
48
|
+
<!-- <el-input v-model="manualInfo.duration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
49
|
+
</el-form-item>
|
|
50
|
+
</el-form>
|
|
51
|
+
</el-col>
|
|
52
|
+
</el-row>
|
|
53
|
+
<el-row>
|
|
54
|
+
<div class="title" style="margin-top:18px; margin-bottom:10px">{{$t('openatccomponents.overview.patternstate')}}:
|
|
55
|
+
<span>({{$t('openatccomponents.overview.cycle')}}: {{cycle}} {{$t('openatccomponents.overview.patternoffset')}}: {{offset}})</span>
|
|
56
|
+
</div>
|
|
57
|
+
<stage-status
|
|
58
|
+
:patternStatusList="patternOne.length===0?planPattern.rings:patternOne[0].rings"
|
|
59
|
+
>
|
|
60
|
+
</stage-status>
|
|
61
|
+
<pattern-list
|
|
62
|
+
:patternList="patternOne.length===0?planPattern.rings:patternOne"
|
|
63
|
+
:patternStatusList="patternOne.length===0?planPattern.rings:patternOne[0].rings"
|
|
64
|
+
:cycles="patternOne.length===0?planPattern.cycle:patternOne[0].cycle"
|
|
65
|
+
:phaseList="phaseList">
|
|
66
|
+
</pattern-list>
|
|
67
|
+
</el-row>
|
|
68
|
+
<el-row>
|
|
69
|
+
<el-tabs v-model="activeList" type="card">
|
|
70
|
+
<el-tab-pane :label="$t('openatccomponents.pattern.ringConfig')" name="ring">
|
|
71
|
+
<div style="width: 100%; overflow: hidden;margin-top: 20px;">
|
|
72
|
+
<kan-ban v-for="n in ringCount"
|
|
73
|
+
:key="n" class="closephasekanban"
|
|
74
|
+
:index="n"
|
|
75
|
+
:options="patternOne.length===0?allPatternList[0].options:patternOne[0].options"
|
|
76
|
+
:list="patternOne.length===0?planPattern.rings[n-1]:patternOne[0].rings[n-1]"
|
|
77
|
+
:phaseList="phaseList"
|
|
78
|
+
:header-text="$t('openatccomponents.pattern.ring')+n"
|
|
79
|
+
@handleSplit="handleSplit">
|
|
80
|
+
</kan-ban>
|
|
81
|
+
</div>
|
|
82
|
+
</el-tab-pane>
|
|
83
|
+
<el-tab-pane :label="$t('openatccomponents.pattern.stageConfig')" name="kanban">
|
|
84
|
+
<el-scrollbar :vertical="true">
|
|
85
|
+
<div class="stage-panel-contener">
|
|
86
|
+
<stage-board v-for="(stage,index) in patternOne.length===0?allPatternList[0].stagesList:patternOne[0].stagesList"
|
|
87
|
+
class="closephasekanban"
|
|
88
|
+
:key="index"
|
|
89
|
+
:stage="stage"
|
|
90
|
+
:options="patternOne.length===0?allPatternList[0].options:patternOne[0].options"
|
|
91
|
+
:stageInfo="patternOne.length===0?allPatternList[0].stagesList:patternOne[0].stagesList"
|
|
92
|
+
:coordphaseOption="coordphaseOption"
|
|
93
|
+
:subIndex="index"
|
|
94
|
+
@onStageSplitChange="onStageSplitChange"
|
|
95
|
+
@stageSplitChange="stageSplitChange"
|
|
96
|
+
@onStageDelaystartChange="onStageDelaystartChange"
|
|
97
|
+
@onStageAdvanceendChange="onStageAdvanceendChange"
|
|
98
|
+
>
|
|
99
|
+
</stage-board>
|
|
100
|
+
</div>
|
|
101
|
+
</el-scrollbar>
|
|
102
|
+
</el-tab-pane>
|
|
103
|
+
<el-tab-pane :label="$t('openatccomponents.pattern.parameters')" name="parame">
|
|
104
|
+
<el-row>
|
|
105
|
+
<expend-config
|
|
106
|
+
v-for="(j,index) in ringCounts"
|
|
107
|
+
:key="index"
|
|
108
|
+
class="closephasekanban"
|
|
109
|
+
:options="patternOne.length===0?allPatternList[0].options:patternOne[0].options"
|
|
110
|
+
:header-text="$t('openatccomponents.pattern.ring')+j"
|
|
111
|
+
:list="patternOne.length===0?planPattern.rings[j-1]:patternOne[0].rings[j-1]"
|
|
112
|
+
>
|
|
113
|
+
</expend-config>
|
|
114
|
+
<div style="width: 60%;margin: 10px auto;color:#ffffff">
|
|
115
|
+
{{$t('openatccomponents.pattern.forbiddenstage')}}
|
|
116
|
+
<el-input class="stage-value" size="small" v-model="forbiddenstage"></el-input>
|
|
117
|
+
</div>
|
|
118
|
+
<div style="width: 60%;margin: 10px auto;color:#ffffff">
|
|
119
|
+
{{$t('openatccomponents.pattern.screenstage')}}
|
|
120
|
+
<el-input class="stage-value" size="small" v-model="screenstage"></el-input>
|
|
121
|
+
</div>
|
|
122
|
+
<div style="width: 60%;margin: 10px auto;color:#ffffff">
|
|
123
|
+
{{$t('openatccomponents.pattern.coordinatestage')}}
|
|
124
|
+
<el-input class="stage-value" size="small" v-model="coordinatestage"></el-input>
|
|
125
|
+
</div>
|
|
126
|
+
</el-row>
|
|
127
|
+
</el-tab-pane>
|
|
128
|
+
<el-tab-pane :label="$t('openatccomponents.pattern.overLap')" name="overlap">
|
|
129
|
+
<el-row :gutter="20">
|
|
130
|
+
<el-col :span="24" >
|
|
131
|
+
<over-lap
|
|
132
|
+
:stageList="stagesList"
|
|
133
|
+
:overlap="overlap"
|
|
134
|
+
:checked="true"
|
|
135
|
+
:tentative="true"
|
|
136
|
+
:cycle="patternOne.length===0?planPattern.cycle:patternOne[0].cycle"
|
|
137
|
+
>
|
|
138
|
+
</over-lap>
|
|
139
|
+
</el-col>
|
|
140
|
+
</el-row>
|
|
141
|
+
</el-tab-pane>
|
|
142
|
+
</el-tabs>
|
|
143
|
+
</el-row>
|
|
144
|
+
<div class="footer" v-if="realtimeStatusModalvisible">
|
|
145
|
+
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
146
|
+
<el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.implement')}}</el-button>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="footer" v-if="!realtimeStatusModalvisible">
|
|
149
|
+
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
150
|
+
<el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.comfirm')}}</el-button>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
</template>
|
|
154
|
+
|
|
155
|
+
<script>
|
|
156
|
+
export default {
|
|
157
|
+
name: 'tentativeplancontrol',
|
|
158
|
+
props: {
|
|
159
|
+
realtimeStatusModalvisible: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: true
|
|
162
|
+
},
|
|
163
|
+
controlData: {
|
|
164
|
+
type: Object
|
|
165
|
+
},
|
|
166
|
+
phaseList: {
|
|
167
|
+
type: Array
|
|
168
|
+
},
|
|
169
|
+
overlap: {
|
|
170
|
+
type: Array
|
|
171
|
+
},
|
|
172
|
+
allPatternList: {
|
|
173
|
+
type: Array
|
|
174
|
+
},
|
|
175
|
+
patternSelect: {
|
|
176
|
+
type: Array
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
computed: {
|
|
180
|
+
rings () {
|
|
181
|
+
return this.patternOne.length === 0 ? this.planPattern.rings : this.patternOne[0].rings
|
|
182
|
+
},
|
|
183
|
+
cycle () {
|
|
184
|
+
return this.patternOne.length === 0 ? this.max : (this.patternOne.length > 0 && (this.patternOne[0].cycle < this.max)) ? this.max : this.patternOne[0].cycle
|
|
185
|
+
},
|
|
186
|
+
offset () {
|
|
187
|
+
return Number((this.patternOne.length === 0 || this.manualInfo.offset > 0) ? this.manualInfo.offset : this.patternOne[0].offset)
|
|
188
|
+
},
|
|
189
|
+
forbiddenstage () {
|
|
190
|
+
return this.patternOne.length === 0 ? this.allPatternList[0].forbiddenstage : this.patternOne[0].forbiddenstage
|
|
191
|
+
},
|
|
192
|
+
screenstage () {
|
|
193
|
+
return this.patternOne.length === 0 ? this.allPatternList[0].screenstage : this.patternOne[0].screenstage
|
|
194
|
+
},
|
|
195
|
+
coordinatestage () {
|
|
196
|
+
return this.patternOne.length === 0 ? this.allPatternList[0].coordinatestage : this.patternOne[0].coordinatestage
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
data () {
|
|
200
|
+
return {
|
|
201
|
+
stagesList: [],
|
|
202
|
+
phaseRings: [],
|
|
203
|
+
options: {
|
|
204
|
+
group: 'pattern'
|
|
205
|
+
},
|
|
206
|
+
max: '',
|
|
207
|
+
patternCycleEqual: true,
|
|
208
|
+
activeList: 'ring',
|
|
209
|
+
ringCount: 1,
|
|
210
|
+
ringCounts: 1,
|
|
211
|
+
coordphaseOption: [],
|
|
212
|
+
patternOne: [],
|
|
213
|
+
planPattern: {},
|
|
214
|
+
manualInfo: {
|
|
215
|
+
tempPatternid: '',
|
|
216
|
+
offset: 0,
|
|
217
|
+
duration: 300,
|
|
218
|
+
tempDelay: 0 // 控制方式手动操作的情况下的延迟时间的临时值。
|
|
219
|
+
// tempDuration: 300 // 控制方式手动操作的情况下的持续时间的临时值。
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
created () {
|
|
224
|
+
this.patternPlan()
|
|
225
|
+
this.getCycle()
|
|
226
|
+
if (this.patternOne.length === 0) {
|
|
227
|
+
this.handleStageData(this.planPattern.rings)
|
|
228
|
+
}
|
|
229
|
+
this.initData()
|
|
230
|
+
},
|
|
231
|
+
methods: {
|
|
232
|
+
patternPlan () {
|
|
233
|
+
let Pattern = {
|
|
234
|
+
offset: 0,
|
|
235
|
+
cycle: 0,
|
|
236
|
+
rings: [[], [], [], []]
|
|
237
|
+
}
|
|
238
|
+
var newPattern = JSON.parse(JSON.stringify(Pattern))
|
|
239
|
+
for (let phase of this.phaseList) {
|
|
240
|
+
let ring = {}
|
|
241
|
+
ring.name = 'Phase ' + phase.id
|
|
242
|
+
ring.desc = this.getPhaseDescription(phase.direction)
|
|
243
|
+
ring.id = phase.id
|
|
244
|
+
ring.value = 30
|
|
245
|
+
ring.mode = 2
|
|
246
|
+
ring.options = []
|
|
247
|
+
ring.delaystart = 0
|
|
248
|
+
ring.advanceend = 0
|
|
249
|
+
if (phase.ring === 1) {
|
|
250
|
+
newPattern.rings[0].push(ring)
|
|
251
|
+
} else if (phase.ring === 2) {
|
|
252
|
+
newPattern.rings[1].push(ring)
|
|
253
|
+
} else if (phase.ring === 3) {
|
|
254
|
+
newPattern.rings[2].push(ring)
|
|
255
|
+
} else if (phase.ring === 4) {
|
|
256
|
+
newPattern.rings[3].push(ring)
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
this.planPattern = newPattern
|
|
260
|
+
},
|
|
261
|
+
getCycle () {
|
|
262
|
+
for (let rings of this.planPattern.rings) {
|
|
263
|
+
let num = 0
|
|
264
|
+
for (let i = 0; i < rings.length; i++) {
|
|
265
|
+
if (rings[i].length !== 0) {
|
|
266
|
+
if (rings[i].mode === 7) { // 忽略相位不计周期
|
|
267
|
+
continue
|
|
268
|
+
}
|
|
269
|
+
num = num + Number(rings[i].value)
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if (num !== 0) {
|
|
273
|
+
this.planPattern.cycle = num
|
|
274
|
+
break
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
getPhaseDescription (phaseList) {
|
|
279
|
+
if (!phaseList) return
|
|
280
|
+
let list = []
|
|
281
|
+
for (let id of phaseList) {
|
|
282
|
+
let obj = {}
|
|
283
|
+
obj.id = id
|
|
284
|
+
obj.color = '#454545'
|
|
285
|
+
list.push(obj)
|
|
286
|
+
}
|
|
287
|
+
return list
|
|
288
|
+
},
|
|
289
|
+
handleClose () {
|
|
290
|
+
this.$emit('closePhaseBack')
|
|
291
|
+
},
|
|
292
|
+
onStageSplitChange (diff, rowIndex, subIndex) {
|
|
293
|
+
let stageArr = this.stagesList[subIndex].stages
|
|
294
|
+
let row = this.patternList[rowIndex]
|
|
295
|
+
let ringsList = row.rings
|
|
296
|
+
for (let rings of ringsList) {
|
|
297
|
+
for (let ring of rings) {
|
|
298
|
+
if (stageArr.includes(ring.id)) {
|
|
299
|
+
ring.value = (ring.value ? ring.value : 0) + diff
|
|
300
|
+
continue
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
stageSplitChange (diff, rowIndex, subIndex) {
|
|
306
|
+
let row = this.patternList[rowIndex]
|
|
307
|
+
let ringsList = row.stagesList
|
|
308
|
+
for (let rings of ringsList) {
|
|
309
|
+
if (subIndex === rings.key) {
|
|
310
|
+
rings.stageSplit = (rings.green ? rings.green : 0) + (rings.yellow ? rings.yellow : 0) + (rings.red ? rings.red : 0)
|
|
311
|
+
continue
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
onStageDelaystartChange (diff, rowIndex, subIndex) {
|
|
316
|
+
let stageArr = this.stagesList[subIndex].stages
|
|
317
|
+
let row = this.patternList[rowIndex]
|
|
318
|
+
let ringsList = row.rings
|
|
319
|
+
for (let rings of ringsList) {
|
|
320
|
+
for (let ring of rings) {
|
|
321
|
+
if (stageArr.includes(ring.id)) {
|
|
322
|
+
ring.delaystart = (ring.delaystart ? ring.delaystart : 0) + diff
|
|
323
|
+
continue
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
onStageAdvanceendChange (diff, rowIndex, subIndex) {
|
|
329
|
+
let stageArr = this.stagesList[subIndex].stages
|
|
330
|
+
let row = this.patternList[rowIndex]
|
|
331
|
+
let ringsList = row.rings
|
|
332
|
+
for (let rings of ringsList) {
|
|
333
|
+
for (let ring of rings) {
|
|
334
|
+
if (stageArr.includes(ring.id)) {
|
|
335
|
+
ring.advanceend = (ring.advanceend ? ring.advanceend : 0) + diff
|
|
336
|
+
continue
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
handleSplit (index) {
|
|
342
|
+
if (this.patternOne.length > 0) {
|
|
343
|
+
let currPattern = this.patternOne[0].rings
|
|
344
|
+
setTimeout(() => {
|
|
345
|
+
this.handleStageData(currPattern)
|
|
346
|
+
}, 50)
|
|
347
|
+
} else {
|
|
348
|
+
let currPattern = this.planPattern.rings
|
|
349
|
+
setTimeout(() => {
|
|
350
|
+
this.handleStageData(currPattern)
|
|
351
|
+
}, 50)
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
selectPattern () {
|
|
355
|
+
this.manualInfo.offset = 0
|
|
356
|
+
let selectId = Number(this.manualInfo.tempPatternid)
|
|
357
|
+
this.patternOne = this.allPatternList.filter(item => {
|
|
358
|
+
return item.id === selectId
|
|
359
|
+
})
|
|
360
|
+
this.manualInfo.offset = this.offset
|
|
361
|
+
for (let rings of this.patternOne[0].rings) {
|
|
362
|
+
if (rings.length === 0) continue
|
|
363
|
+
for (let ring of rings) {
|
|
364
|
+
if (ring.value === 0) continue
|
|
365
|
+
let currPhase = this.phaseList.filter((item) => {
|
|
366
|
+
return item.id === ring.id
|
|
367
|
+
})[0]
|
|
368
|
+
ring.desc = currPhase.direction.map(item => {
|
|
369
|
+
return {
|
|
370
|
+
id: item,
|
|
371
|
+
color: '#454545'
|
|
372
|
+
}
|
|
373
|
+
})
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
this.handleStageData(this.patternOne[0].rings)
|
|
377
|
+
},
|
|
378
|
+
handleStageData (rings) { // stagesList
|
|
379
|
+
for (let i = 0; i < rings.length; i++) {
|
|
380
|
+
if (rings[i].length > 0) {
|
|
381
|
+
let phaseList = []
|
|
382
|
+
let stagesList = []
|
|
383
|
+
// rings = JSON.parse(JSON.stringify(rings))
|
|
384
|
+
let mapAdd = rings.map(item => {
|
|
385
|
+
return item.map(val => {
|
|
386
|
+
return val.value + (val.sum ? val.sum : 0)
|
|
387
|
+
})
|
|
388
|
+
})
|
|
389
|
+
let maxCycle = mapAdd.length > 0 ? mapAdd.map(item => {
|
|
390
|
+
return item.length > 0 ? item.reduce((a, b) => {
|
|
391
|
+
return a + b
|
|
392
|
+
}) : 0
|
|
393
|
+
}) : 0
|
|
394
|
+
this.max = Math.max(...maxCycle)// 每个环的周期最大值
|
|
395
|
+
this.stateList = [0]
|
|
396
|
+
this.narr = []
|
|
397
|
+
let currentIds = ''
|
|
398
|
+
let lastCurrentIds = ''
|
|
399
|
+
for (let j = 0; j <= this.max; j++) { // 指针长度
|
|
400
|
+
for (let i = 0; i < rings.length; i++) { // 环列表
|
|
401
|
+
let ring = rings[i]// 每个环对象
|
|
402
|
+
let sum = 0
|
|
403
|
+
for (let n = 0; n < ring.length; n++) { // 相位累计长度
|
|
404
|
+
if (ring[n].mode !== 7) {
|
|
405
|
+
sum = sum + ring[n].value + (ring[n].sum ? ring[n].sum : 0)
|
|
406
|
+
if (j < sum) {
|
|
407
|
+
let phaseId = ring[n].id
|
|
408
|
+
currentIds = currentIds + '-' + phaseId
|
|
409
|
+
break
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
if (lastCurrentIds !== currentIds && lastCurrentIds !== '') { // 当前相位id和上一个相比不同说明相位变化了
|
|
415
|
+
phaseList.push(lastCurrentIds)
|
|
416
|
+
this.stateList.push(j)// 阶段累计长度的集合
|
|
417
|
+
}
|
|
418
|
+
lastCurrentIds = currentIds
|
|
419
|
+
currentIds = ''
|
|
420
|
+
}
|
|
421
|
+
let newPhaselist = []
|
|
422
|
+
phaseList.forEach(i => {
|
|
423
|
+
let rangeArr = i.split('-').map(Number)
|
|
424
|
+
if (rangeArr.length > 2) {
|
|
425
|
+
newPhaselist.push([
|
|
426
|
+
JSON.parse(JSON.stringify(rangeArr[1])),
|
|
427
|
+
JSON.parse(JSON.stringify(rangeArr[2]))
|
|
428
|
+
])
|
|
429
|
+
} else {
|
|
430
|
+
newPhaselist.push([
|
|
431
|
+
JSON.parse(JSON.stringify(rangeArr[1]))
|
|
432
|
+
])
|
|
433
|
+
}
|
|
434
|
+
})
|
|
435
|
+
for (let i = this.stateList.length - 1; i >= 1; i--) {
|
|
436
|
+
this.narr.push(this.stateList[i] - this.stateList[i - 1])
|
|
437
|
+
}
|
|
438
|
+
// newPhaselist
|
|
439
|
+
this.narr.reverse()// 阶段差
|
|
440
|
+
for (let i = 0; i < newPhaselist.length; i++) {
|
|
441
|
+
let stage = JSON.parse(JSON.stringify(newPhaselist[i]))
|
|
442
|
+
let stageItem = this.getStageItem(stage, rings, i)
|
|
443
|
+
stagesList.push(JSON.parse(JSON.stringify(stageItem)))
|
|
444
|
+
}
|
|
445
|
+
this.stagesList = JSON.parse(JSON.stringify(stagesList))
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
getStageItem (stageArr, ringsList, i) {
|
|
450
|
+
let res = {
|
|
451
|
+
key: i,
|
|
452
|
+
split: this.narr[i], // 阶段绿性比
|
|
453
|
+
stages: stageArr,
|
|
454
|
+
delaystart: 0,
|
|
455
|
+
advanceend: 0
|
|
456
|
+
}
|
|
457
|
+
// let splitArr = []
|
|
458
|
+
let delaystartArr = []
|
|
459
|
+
let advanceendArr = []
|
|
460
|
+
for (let rings of ringsList) {
|
|
461
|
+
for (let ring of rings) {
|
|
462
|
+
if (stageArr.includes(ring.id)) {
|
|
463
|
+
// let split = ring.value
|
|
464
|
+
let delaystart = ring.delaystart
|
|
465
|
+
let advanceend = ring.advanceend
|
|
466
|
+
// splitArr.push(split)
|
|
467
|
+
delaystartArr.push(delaystart)
|
|
468
|
+
advanceendArr.push(advanceend)
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
// splitArr.sort(function (a, b) { return a - b })
|
|
473
|
+
delaystartArr.sort(function (a, b) { return b - a })
|
|
474
|
+
advanceendArr.sort(function (a, b) { return a - b })
|
|
475
|
+
// res.split = splitArr.length > 0 ? splitArr[0] : 0
|
|
476
|
+
res.delaystart = delaystartArr.length > 0 ? delaystartArr[0] : 0
|
|
477
|
+
res.advanceend = advanceendArr.length > 0 ? advanceendArr[0] : 0
|
|
478
|
+
return res
|
|
479
|
+
},
|
|
480
|
+
initData () {
|
|
481
|
+
// 判断有几个环,就创建几个看板
|
|
482
|
+
// let phaseList = this.globalParamModel.getParamsByType('phaseList')
|
|
483
|
+
this.coordphaseOption = this.phaseList.map(ele => {
|
|
484
|
+
return {
|
|
485
|
+
value: ele.id
|
|
486
|
+
}
|
|
487
|
+
})
|
|
488
|
+
// this.overlap = this.globalParamModel.getParamsByType('overlaplList')
|
|
489
|
+
// this.agentId = getIframdevid()
|
|
490
|
+
let rings = []
|
|
491
|
+
if (this.phaseList.length === 0) {
|
|
492
|
+
// this.$store.getters.tscParam.patternList = []
|
|
493
|
+
return
|
|
494
|
+
}
|
|
495
|
+
for (let phase of this.phaseList) {
|
|
496
|
+
rings.push(phase.ring)
|
|
497
|
+
}
|
|
498
|
+
this.ringCount = Array.from(new Set(rings)) // 去除数组重复的元素
|
|
499
|
+
this.ringCount = this.ringCount.sort(this.sortNumbers) // 把数组中的值按照从小到大的顺序重新排序
|
|
500
|
+
this.ringCounts = Array.from(new Set(rings)) // 去除数组重复的元素
|
|
501
|
+
this.ringCounts = this.ringCounts.sort(this.sortNumbers) // 把数组中的值按照从小到大的顺序重新排序
|
|
502
|
+
// this.increaseId()
|
|
503
|
+
// this.getCycle()
|
|
504
|
+
// this.updatePhaseDescription()
|
|
505
|
+
// this.getOptionsOfRing()
|
|
506
|
+
},
|
|
507
|
+
sortNumbers (a, b) {
|
|
508
|
+
return a - b
|
|
509
|
+
},
|
|
510
|
+
isRingCycleEqual (rings) {
|
|
511
|
+
let isequal = true
|
|
512
|
+
// this.patternmsg = []
|
|
513
|
+
let maxCycle = 0
|
|
514
|
+
for (let ring of rings) {
|
|
515
|
+
if (ring.length === 0) continue
|
|
516
|
+
let cycle = 0
|
|
517
|
+
for (let r of ring) {
|
|
518
|
+
if (r.mode === 7) { // 忽略相位不计周期
|
|
519
|
+
continue
|
|
520
|
+
}
|
|
521
|
+
cycle = cycle + r.value
|
|
522
|
+
}
|
|
523
|
+
if (cycle > maxCycle && maxCycle === 0) {
|
|
524
|
+
maxCycle = cycle
|
|
525
|
+
}
|
|
526
|
+
if (cycle !== maxCycle) {
|
|
527
|
+
// this.patternmsg.push(rings.id)
|
|
528
|
+
isequal = false
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
return isequal
|
|
532
|
+
},
|
|
533
|
+
checkPatternRules (rings) {
|
|
534
|
+
if (!this.isRingCycleEqual(rings)) {
|
|
535
|
+
this.patternCycleEqual = false
|
|
536
|
+
} else {
|
|
537
|
+
this.patternCycleEqual = true
|
|
538
|
+
}
|
|
539
|
+
if (!this.patternCycleEqual) {
|
|
540
|
+
let mess = `方案中存在环周期时长不一致`
|
|
541
|
+
if (this.$i18n.locale === 'en') {
|
|
542
|
+
mess = `Inconsistent loop cycle durations exist in the scheme`
|
|
543
|
+
}
|
|
544
|
+
this.$message({
|
|
545
|
+
message: mess,
|
|
546
|
+
type: 'error',
|
|
547
|
+
dangerouslyUseHTMLString: true
|
|
548
|
+
})
|
|
549
|
+
return false
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
handleManualControl () {
|
|
553
|
+
let submitdata = {
|
|
554
|
+
control: 100,
|
|
555
|
+
delay: this.manualInfo.tempDelay !== undefined ? Number(this.manualInfo.tempDelay) : 0,
|
|
556
|
+
duration: Number(this.manualInfo.duration),
|
|
557
|
+
// duration: this.manualInfo.tempDuration !== undefined ? Number(this.manualInfo.tempDuration) : 0,
|
|
558
|
+
data: {}
|
|
559
|
+
}
|
|
560
|
+
submitdata.data.offset = this.offset
|
|
561
|
+
submitdata.data.cycle = this.cycle
|
|
562
|
+
submitdata.data.rings = this.rings
|
|
563
|
+
this.checkPatternRules(submitdata.data.rings)
|
|
564
|
+
if (this.patternCycleEqual) {
|
|
565
|
+
this.$emit('closePhaseControl', submitdata)
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
</script>
|
|
571
|
+
|
|
572
|
+
<style>
|
|
573
|
+
|
|
574
|
+
</style>
|