openatc-components 0.5.71 → 0.5.72

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.
Files changed (314) hide show
  1. package/.babelrc +18 -18
  2. package/.editorconfig +9 -9
  3. package/.eslintignore +5 -5
  4. package/.eslintrc.js +31 -31
  5. package/.postcssrc.js +10 -10
  6. package/README.md +30 -30
  7. package/build/build.js +41 -41
  8. package/build/check-versions.js +54 -54
  9. package/build/package.config.js +58 -58
  10. package/build/package.dev.config.js +107 -107
  11. package/build/package.prod.config.js +160 -160
  12. package/build/utils.js +101 -101
  13. package/build/vue-loader.conf.js +22 -22
  14. package/build/webpack.base.conf.js +120 -120
  15. package/build/webpack.dev.conf.js +95 -95
  16. package/build/webpack.prod.conf.js +149 -149
  17. package/config/prod.env.js +5 -5
  18. package/config/test.env.js +7 -7
  19. package/index.html +12 -12
  20. package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +360 -360
  21. package/package/kisscomps/components/CommonKanban/CommonKanban.vue +132 -132
  22. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-east-bottom.vue +41 -41
  23. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-east-top.vue +60 -60
  24. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-ewped.vue +105 -105
  25. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-north-left.vue +60 -60
  26. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-north-right.vue +60 -60
  27. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-snped.vue +105 -105
  28. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-south-left.vue +60 -60
  29. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-south-right.vue +60 -60
  30. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-west-bottom.vue +60 -60
  31. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-west-top.vue +60 -60
  32. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-xlped.vue +30 -30
  33. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-xrped.vue +30 -30
  34. package/package/kisscomps/components/DirectionListConfiguration/svg/pedSvg.vue +78 -78
  35. package/package/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +181 -181
  36. package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
  37. package/package/kisscomps/components/DrawChannelization/drawsvg/detectorAssociatedComponent.vue +152 -152
  38. package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/TextBox.vue +91 -91
  39. package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/editText.vue +108 -108
  40. package/package/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +51 -51
  41. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +236 -236
  42. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +247 -247
  43. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +72 -72
  44. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +368 -368
  45. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +230 -230
  46. package/package/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +74 -74
  47. package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +144 -144
  48. package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +707 -707
  49. package/package/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +172 -172
  50. package/package/kisscomps/components/DrawChannelization/drawsvg/table.vue +99 -99
  51. package/package/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +87 -87
  52. package/package/kisscomps/components/DrawChannelization/drawsvg/utils/phaseDataModel.js +32 -32
  53. package/package/kisscomps/components/DrawChannelization/drawsvg/utils/phasePos.json +20 -20
  54. package/package/kisscomps/components/DrawChannelization/phaseDataMgr.js +278 -278
  55. package/package/kisscomps/components/ExpendConfig/ExpendConfig.vue +118 -118
  56. package/package/kisscomps/components/FaultDetailModal/FaultDetailModal.vue +178 -178
  57. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +46 -46
  58. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +447 -447
  59. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +341 -341
  60. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +497 -497
  61. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +353 -353
  62. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +359 -359
  63. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +443 -443
  64. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1190 -1190
  65. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +640 -640
  66. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +497 -497
  67. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +486 -486
  68. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +490 -490
  69. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +575 -575
  70. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/refreshSvg.vue +63 -63
  71. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/busMapSvg.vue +50 -50
  72. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/eastBusSvg.vue +167 -167
  73. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/northBusSvg.vue +168 -168
  74. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/southBusSvg.vue +168 -168
  75. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/westBusSvg.vue +169 -169
  76. package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +122 -122
  77. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.json +196 -196
  78. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.left.json +196 -196
  79. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
  80. package/package/kisscomps/components/KanBan/kanban.vue +231 -231
  81. package/package/kisscomps/components/MessageBox/index.vue +96 -96
  82. package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +329 -329
  83. package/package/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
  84. package/package/kisscomps/components/PhaseDirectionText/PhaseDirectionText.vue +106 -106
  85. package/package/kisscomps/components/PhaseLegend/PhaseLegend.vue +286 -286
  86. package/package/kisscomps/components/PhaseMarker/index.js +6 -6
  87. package/package/kisscomps/components/PhaseMarker/phasemarker.vue +215 -215
  88. package/package/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -121
  89. package/package/kisscomps/components/PhaseMarker/svg/phase.vue +60 -60
  90. package/package/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -62
  91. package/package/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -62
  92. package/package/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -117
  93. package/package/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +365 -365
  94. package/package/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +92 -92
  95. package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +214 -214
  96. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +235 -235
  97. package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +235 -235
  98. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +131 -131
  99. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/othersIcon.vue +151 -151
  100. package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +215 -215
  101. package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
  102. package/package/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
  103. package/package/kisscomps/components/StageOptimize/StageOptimize.vue +367 -367
  104. package/package/kisscomps/components/StageOptimize/index.js +2 -2
  105. package/package/kisscomps/components/StageStatus/StageStatus.vue +341 -341
  106. package/package/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
  107. package/package/kisscomps/components/XiaoKanban/DirSelector.vue +356 -356
  108. package/package/kisscomps/components/XiaoKanban/index.vue +122 -122
  109. package/package/kisscomps/components/patternConfig/pattern/planChart/model/coordinationModel.js +665 -665
  110. package/package/kisscomps/components/patternConfig/planMenu.vue +329 -329
  111. package/package/kissui.js +216608 -0
  112. package/package/kissui.min.js +1 -1
  113. package/package.json +1 -1
  114. package/pnpm-lock.yaml +16362 -0
  115. package/src/EdgeMgr/EdgeModelBase.js +16 -16
  116. package/src/EdgeMgr/controller/crossDiagramMgr.js +125 -125
  117. package/src/api/authapi.js +31 -31
  118. package/src/api/config.js +21 -21
  119. package/src/api/device.js +135 -135
  120. package/src/api/fault.js +66 -66
  121. package/src/api/index.js +24 -24
  122. package/src/api/login.js +46 -46
  123. package/src/api/optimize.js +72 -72
  124. package/src/api/passwdAssest.js +101 -101
  125. package/src/api/permission.js +33 -33
  126. package/src/api/route.js +171 -171
  127. package/src/assets/font/LICENSE.txt +202 -202
  128. package/src/assets/font/font.css +6 -6
  129. package/src/i18n/index.js +26 -26
  130. package/src/icons/index.js +20 -20
  131. package/src/icons/svg/azimuthlocking.svg +26 -26
  132. package/src/icons/svg/bendi.svg +110 -110
  133. package/src/icons/svg/bujin.svg +36 -36
  134. package/src/icons/svg/connectBlue.svg +7 -7
  135. package/src/icons/svg/currentvolume.svg +0 -0
  136. package/src/icons/svg/custom-BRTlane.svg +40 -40
  137. package/src/icons/svg/custom-buslane.svg +40 -40
  138. package/src/icons/svg/custom-detector.svg +12 -12
  139. package/src/icons/svg/custom-east-bottom.svg +32 -32
  140. package/src/icons/svg/custom-east-top.svg +32 -32
  141. package/src/icons/svg/custom-ewped.svg +35 -35
  142. package/src/icons/svg/custom-nonmotorizedlane.svg +40 -40
  143. package/src/icons/svg/custom-north-left.svg +32 -32
  144. package/src/icons/svg/custom-north-right.svg +32 -32
  145. package/src/icons/svg/custom-peddetector.svg +17 -17
  146. package/src/icons/svg/custom-snped.svg +35 -35
  147. package/src/icons/svg/custom-south-left.svg +32 -32
  148. package/src/icons/svg/custom-south-right.svg +32 -32
  149. package/src/icons/svg/custom-tramlane.svg +40 -40
  150. package/src/icons/svg/custom-vehiclebranch.svg +40 -40
  151. package/src/icons/svg/custom-vehiclemainroad.svg +41 -41
  152. package/src/icons/svg/custom-west-bottom.svg +32 -32
  153. package/src/icons/svg/custom-west-top.svg +32 -32
  154. package/src/icons/svg/custom-xlped.svg +14 -14
  155. package/src/icons/svg/custom-xrped.svg +14 -14
  156. package/src/icons/svg/cutRed.svg +7 -7
  157. package/src/icons/svg/cycle.svg +0 -0
  158. package/src/icons/svg/dingzhouqi.svg +34 -34
  159. package/src/icons/svg/ganyingkongzhi.svg +30 -30
  160. package/src/icons/svg/guandeng.svg +81 -81
  161. package/src/icons/svg/huangshan.svg +71 -71
  162. package/src/icons/svg/maincontrol.svg +0 -0
  163. package/src/icons/svg/manualcontrolbackground.svg +51 -51
  164. package/src/icons/svg/manualcontrolbackground1.svg +62 -62
  165. package/src/icons/svg/manualcontrolbackgrounden.svg +62 -62
  166. package/src/icons/svg/model.svg +0 -0
  167. package/src/icons/svg/phasediff.svg +0 -0
  168. package/src/icons/svg/prioritycontrol.svg +21 -21
  169. package/src/icons/svg/quanhong.svg +86 -86
  170. package/src/icons/svg/shanghe.svg +11 -11
  171. package/src/icons/svg/shoudong.svg +103 -103
  172. package/src/icons/svg/tentativeplan.svg +28 -28
  173. package/src/icons/svg/time.svg +0 -0
  174. package/src/icons/svg/wuxianlan.svg +46 -46
  175. package/src/icons/svg/xiala.svg +11 -11
  176. package/src/icons/svg/xingrenguojie.svg +33 -33
  177. package/src/icons/svg/xitong.svg +89 -89
  178. package/src/icons/svg/youxian.svg +41 -41
  179. package/src/icons/svg/zizhukongzhi.svg +43 -43
  180. package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +360 -360
  181. package/src/kisscomps/components/CommonKanban/CommonKanban.vue +132 -132
  182. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-east-bottom.vue +41 -41
  183. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-east-top.vue +60 -60
  184. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-ewped.vue +105 -105
  185. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-north-left.vue +60 -60
  186. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-north-right.vue +60 -60
  187. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-snped.vue +105 -105
  188. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-south-left.vue +60 -60
  189. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-south-right.vue +60 -60
  190. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-west-bottom.vue +60 -60
  191. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-west-top.vue +60 -60
  192. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-xlped.vue +30 -30
  193. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-xrped.vue +30 -30
  194. package/src/kisscomps/components/DirectionListConfiguration/svg/pedSvg.vue +78 -78
  195. package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +181 -181
  196. package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
  197. package/src/kisscomps/components/DrawChannelization/drawsvg/detectorAssociatedComponent.vue +152 -152
  198. package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/TextBox.vue +91 -91
  199. package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/editText.vue +108 -108
  200. package/src/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +51 -51
  201. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +236 -236
  202. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +247 -247
  203. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +72 -72
  204. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +368 -368
  205. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +230 -230
  206. package/src/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +74 -74
  207. package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +144 -144
  208. package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +707 -707
  209. package/src/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +172 -172
  210. package/src/kisscomps/components/DrawChannelization/drawsvg/table.vue +99 -99
  211. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +87 -87
  212. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/phaseDataModel.js +32 -32
  213. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/phasePos.json +20 -20
  214. package/src/kisscomps/components/DrawChannelization/phaseDataMgr.js +278 -278
  215. package/src/kisscomps/components/ExpendConfig/ExpendConfig.vue +118 -118
  216. package/src/kisscomps/components/FaultDetailModal/FaultDetailModal.vue +178 -178
  217. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +46 -46
  218. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +447 -447
  219. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +341 -341
  220. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +497 -497
  221. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +353 -353
  222. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +359 -359
  223. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +443 -443
  224. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1190 -1190
  225. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +640 -640
  226. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +497 -497
  227. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +486 -486
  228. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +490 -490
  229. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +575 -575
  230. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/refreshSvg.vue +63 -63
  231. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/busMapSvg.vue +50 -50
  232. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/eastBusSvg.vue +167 -167
  233. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/northBusSvg.vue +168 -168
  234. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/southBusSvg.vue +168 -168
  235. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/westBusSvg.vue +169 -169
  236. package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +122 -122
  237. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.json +196 -196
  238. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.left.json +196 -196
  239. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
  240. package/src/kisscomps/components/KanBan/kanban.vue +231 -231
  241. package/src/kisscomps/components/MessageBox/index.vue +96 -96
  242. package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +329 -329
  243. package/src/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
  244. package/src/kisscomps/components/PhaseDirectionText/PhaseDirectionText.vue +106 -106
  245. package/src/kisscomps/components/PhaseLegend/PhaseLegend.vue +286 -286
  246. package/src/kisscomps/components/PhaseMarker/index.js +6 -6
  247. package/src/kisscomps/components/PhaseMarker/phasemarker.vue +215 -215
  248. package/src/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -121
  249. package/src/kisscomps/components/PhaseMarker/svg/phase.vue +60 -60
  250. package/src/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -62
  251. package/src/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -62
  252. package/src/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -117
  253. package/src/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +365 -365
  254. package/src/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +92 -92
  255. package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +214 -214
  256. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +235 -235
  257. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +235 -235
  258. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +131 -131
  259. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/othersIcon.vue +151 -151
  260. package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +215 -215
  261. package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
  262. package/src/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
  263. package/src/kisscomps/components/StageOptimize/StageOptimize.vue +367 -367
  264. package/src/kisscomps/components/StageOptimize/index.js +2 -2
  265. package/src/kisscomps/components/StageStatus/StageStatus.vue +341 -341
  266. package/src/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
  267. package/src/kisscomps/components/XiaoKanban/DirSelector.vue +356 -356
  268. package/src/kisscomps/components/XiaoKanban/index.vue +122 -122
  269. package/src/kisscomps/components/patternConfig/pattern/planChart/model/coordinationModel.js +665 -665
  270. package/src/kisscomps/components/patternConfig/planMenu.vue +329 -329
  271. package/src/lib/publicjs/ArryListUtil.js +38 -38
  272. package/src/lib/publicjs/HttpurlMgr.js +45 -45
  273. package/src/lib/publicjs/KissApi.js +158 -158
  274. package/src/lib/publicjs/KissWSSub/Heartcheck.js +128 -128
  275. package/src/lib/publicjs/KissWSSub/KissWsSub.js +91 -91
  276. package/src/lib/publicjs/KissWSSub/KissWsSubByType.js +152 -152
  277. package/src/lib/publicjs/KissWSSub/SimuWsSubByType.js +44 -44
  278. package/src/lib/publicjs/KissWSSub/Sub.js +51 -51
  279. package/src/lib/publicjs/KissWSSub/SubChannel.js +119 -119
  280. package/src/lib/publicjs/basecomponents.js +65 -65
  281. package/src/lib/publicjs/localStorage.js +112 -112
  282. package/src/lib/publicjs/objdeepcopy.js +32 -32
  283. package/src/lib/publicjs/pageScroll.js +30 -30
  284. package/src/lib/publicjs/passwdAssest.js +101 -101
  285. package/src/lib/publicjs/styleclassfactory.js +32 -32
  286. package/src/store/index.js +26 -26
  287. package/src/store/modules/globalParam.js +67 -67
  288. package/src/utils/conflictList.js +87 -87
  289. package/src/utils/dateFormat.js +41 -41
  290. package/src/utils/index.js +69 -69
  291. package/src/utils/phaseList.js +203 -203
  292. package/src/utils/validate.js +43 -43
  293. package/src/views/home.1.vue +479 -479
  294. package/static/styles/channelizatioon.scss +433 -433
  295. package/static/styles/common.scss +30 -30
  296. package/static/styles/commonkanban.scss +168 -168
  297. package/static/styles/dark/index.scss +2 -2
  298. package/static/styles/dark/theme/element-dark.scss +44 -44
  299. package/static/styles/index.scss +84 -84
  300. package/static/styles/light/index.scss +2 -2
  301. package/static/styles/light/theme/element-light.scss +44 -44
  302. package/static/styles/patternConfig.scss +56 -56
  303. package/static/styles/phasePedSelect.scss +71 -71
  304. package/static/styles/stages.scss +57 -57
  305. package/static/styles/xiaokanban.scss +61 -61
  306. package/static/token.json +2 -2
  307. package/test/e2e/custom-assertions/elementCount.js +27 -27
  308. package/test/e2e/nightwatch.conf.js +46 -46
  309. package/test/e2e/runner.js +48 -48
  310. package/test/e2e/specs/test.js +19 -19
  311. package/test/unit/.eslintrc +7 -7
  312. package/test/unit/jest.conf.js +30 -30
  313. package/test/unit/setup.js +3 -3
  314. package/test/unit/specs/HelloWorld.spec.js +11 -11
@@ -1,247 +1,247 @@
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="detector-chart-icon">
14
- <drr
15
- :style="{'z-index': chooseIndex === DetectorChartData.index ? 9 : 0}"
16
- :x="item.x"
17
- :y="item.y"
18
- :w="item.w"
19
- :h="item.h"
20
- :selected="chooseIndex === DetectorChartData.index"
21
- :selectable="isSeletable"
22
- :angle="item.angle"
23
- :resizable="false"
24
- :rotatable="false"
25
- @select="handleSelectIcon(item)"
26
- @dragstop="boxDragStop(item, ...arguments)"
27
- >
28
- <div v-if="UsageMode === 'draw'" class="centerText" :class="{'defaultBg': chooseIndex !== DetectorChartData.index, 'highlightBg': chooseIndex === DetectorChartData.index }" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
29
- <div class="detector-statistics-echarts" :id="'detectorStatisticsEcharts' + DetectorChartData.index"></div>
30
- <!-- <div>
31
- <div class="detector-rect"
32
- :class="{'defaultVehicleBorder': DetectorData.detectortype === 1,
33
- 'defaultPedBorder': DetectorData.detectortype === 2 }"></div>
34
- </div> -->
35
- </div>
36
- <div v-if="UsageMode === 'show'" class="centerText" :class="{'defaultBg': chooseIndex !== DetectorChartData.index, 'highlightBg': chooseIndex === DetectorChartData.index }" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
37
- </div>
38
- </drr>
39
- </div>
40
- </template>
41
- <script>
42
- import * as echart from 'echarts'
43
- import { getTheme } from '../../../../../utils/auth.js'
44
- export default {
45
- name: 'countdownsvg',
46
- data () {
47
- return {
48
- defaultColor: 'DeepSkyBlue', // 默认状态颜色
49
- item: {},
50
- reset: true,
51
- Fontsize: 16, // 默认字号
52
- flowsaturation: [100],
53
- occupancysaturation: [50]
54
- }
55
- },
56
- watch: {
57
- item: {
58
- handler: function (newval, oldval) {
59
- if ((JSON.stringify(oldval) !== '{}')) {
60
- // 更改原数据的位置大小数据
61
- let data = {
62
- ...this.DetectorChartData,
63
- ...newval
64
- }
65
- let fields = Object.keys(newval)
66
- this.$emit('changeDetectorItem', data, fields)
67
- }
68
- }
69
- },
70
- DetectorChartData: {
71
- handler: function (newval, oldval) {
72
- console.log(this.Detector)
73
- }
74
- }
75
- },
76
- props: {
77
- DetectorChartData: {
78
- type: Object
79
- },
80
- Detector: {
81
- type: Array
82
- },
83
- isSeletable: {
84
- type: Boolean
85
- },
86
- chooseIndex: {
87
- type: Number
88
- },
89
- UsageMode: { // 当前图标模式: 绘制draw 展示show
90
- type: String,
91
- default: 'draw'
92
- }
93
- },
94
- methods: {
95
- boxDragStop (origin, final) {
96
- this.item = JSON.parse(JSON.stringify(final))
97
- this.$emit('handleSelectIcon', this.DetectorChartData)
98
- },
99
- resetSvg () {
100
- this.reset = false
101
- this.$nextTick(() => {
102
- this.reset = true
103
- })
104
- },
105
- handleSelectIcon (iconparams) {
106
- this.$emit('handleSelectIcon', this.DetectorChartData)
107
- },
108
- culculateFontsize () {
109
- // 根据倒计时图标大小,动态计算内部文字大小
110
- this.Fontsize = Math.floor(this.DetectorChartData.w / 140 * 20)
111
- },
112
- initEcharts () {
113
- this.detectorEcharts = echart.init(document.getElementById('detectorStatisticsEcharts' + this.DetectorChartData.index))
114
- },
115
- getEchartsData () {
116
- let option = {
117
- tooltip: {
118
- trigger: 'item'
119
- },
120
- grid: {
121
- left: '2%',
122
- right: '2%',
123
- top: '10',
124
- bottom: '10',
125
- containLabel: true
126
- },
127
- xAxis: {
128
- type: 'category',
129
- axisLabel: {
130
- show: false,
131
- textStyle: {
132
- color: getTheme() === 'light' ? '#666666' : '#B9BABF'
133
- }
134
- },
135
- axisTick: {
136
- show: false,
137
- lineStyle: {
138
- color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
139
- }
140
- },
141
- axisLine: {
142
- show: false,
143
- lineStyle: {
144
- color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
145
- }
146
- },
147
- splitLine: {
148
- show: false
149
- }
150
- },
151
- yAxis: {
152
- type: 'value',
153
- max: 100,
154
- axisTick: {
155
- show: false
156
- // lineStyle: {
157
- // color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
158
- // }
159
- },
160
- axisLine: {
161
- show: false,
162
- lineStyle: {
163
- color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
164
- }
165
- },
166
- splitLine: {
167
- show: false
168
- // lineStyle: {
169
- // color: getTheme() === 'light' ? '#DCDFE6' : '#30384d'
170
- // }
171
- },
172
- splitArea: {
173
- show: false
174
- // areaStyle: {
175
- // color: getTheme() === 'light' ? ['#fafafa', '#fff'] : ['#202940', '#1a2338']
176
- // }
177
- },
178
- axisLabel: {
179
- show: false,
180
- textStyle: {
181
- color: getTheme() === 'light' ? '#666666' : '#B9BABF'
182
- }
183
- }
184
- },
185
- series: [{
186
- type: 'bar',
187
- barWidth: '10',
188
- itemStyle: {
189
- color: 'red',
190
- borderWidth: 0,
191
- shadowBlur: {
192
- shadowColor: 'rgba(255,255,255,0.31)',
193
- shadowBlur: 10,
194
- shadowOffsetX: 0,
195
- shadowOffsetY: 2
196
- }
197
- },
198
- data: this.flowsaturation
199
- }, {
200
- type: 'bar',
201
- barWidth: '10',
202
- itemStyle: {
203
- color: 'green'
204
- },
205
- data: this.occupancysaturation
206
- }]
207
- }
208
- this.detectorEcharts.setOption(option)
209
- },
210
- handleTooltipEvent () {
211
- let _this = this
212
- this.detectorEcharts.on('mouseover', function (params) {
213
- _this.detectorEcharts.dispatchAction({
214
- type: 'showTip',
215
- seriesIndex: 0,
216
- dataIndex: params.dataIndex,
217
- position: ['0', '0']
218
- })
219
- })
220
- this.detectorEcharts.on('mouseout', function (params) {
221
- _this.detectorEcharts.dispatchAction({
222
- type: 'hideTip'
223
- })
224
- })
225
- }
226
- },
227
- created () {
228
- this.item = {
229
- x: this.DetectorChartData.x,
230
- y: this.DetectorChartData.y,
231
- w: this.DetectorChartData.w,
232
- h: this.DetectorChartData.h,
233
- angle: this.DetectorChartData.angle
234
- }
235
- },
236
- mounted () {
237
- this.initEcharts()
238
- this.getEchartsData()
239
- this.handleTooltipEvent()
240
- }
241
- }
242
- </script>
243
- <style scoped>
244
- .detector-statistics-echarts {
245
- height: 100%;
246
- }
247
- </style>
1
+ /**
2
+ * Copyright (c) 2020 kedacom
3
+ * OpenATC is licensed under Mulan PSL v2.
4
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
5
+ * You may obtain a copy of Mulan PSL v2 at:
6
+ * http://license.coscl.org.cn/MulanPSL2
7
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
+ * See the Mulan PSL v2 for more details.
11
+ **/
12
+ <template>
13
+ <div class="detector-chart-icon">
14
+ <drr
15
+ :style="{'z-index': chooseIndex === DetectorChartData.index ? 9 : 0}"
16
+ :x="item.x"
17
+ :y="item.y"
18
+ :w="item.w"
19
+ :h="item.h"
20
+ :selected="chooseIndex === DetectorChartData.index"
21
+ :selectable="isSeletable"
22
+ :angle="item.angle"
23
+ :resizable="false"
24
+ :rotatable="false"
25
+ @select="handleSelectIcon(item)"
26
+ @dragstop="boxDragStop(item, ...arguments)"
27
+ >
28
+ <div v-if="UsageMode === 'draw'" class="centerText" :class="{'defaultBg': chooseIndex !== DetectorChartData.index, 'highlightBg': chooseIndex === DetectorChartData.index }" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
29
+ <div class="detector-statistics-echarts" :id="'detectorStatisticsEcharts' + DetectorChartData.index"></div>
30
+ <!-- <div>
31
+ <div class="detector-rect"
32
+ :class="{'defaultVehicleBorder': DetectorData.detectortype === 1,
33
+ 'defaultPedBorder': DetectorData.detectortype === 2 }"></div>
34
+ </div> -->
35
+ </div>
36
+ <div v-if="UsageMode === 'show'" class="centerText" :class="{'defaultBg': chooseIndex !== DetectorChartData.index, 'highlightBg': chooseIndex === DetectorChartData.index }" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
37
+ </div>
38
+ </drr>
39
+ </div>
40
+ </template>
41
+ <script>
42
+ import * as echart from 'echarts'
43
+ import { getTheme } from '../../../../../utils/auth.js'
44
+ export default {
45
+ name: 'countdownsvg',
46
+ data () {
47
+ return {
48
+ defaultColor: 'DeepSkyBlue', // 默认状态颜色
49
+ item: {},
50
+ reset: true,
51
+ Fontsize: 16, // 默认字号
52
+ flowsaturation: [100],
53
+ occupancysaturation: [50]
54
+ }
55
+ },
56
+ watch: {
57
+ item: {
58
+ handler: function (newval, oldval) {
59
+ if ((JSON.stringify(oldval) !== '{}')) {
60
+ // 更改原数据的位置大小数据
61
+ let data = {
62
+ ...this.DetectorChartData,
63
+ ...newval
64
+ }
65
+ let fields = Object.keys(newval)
66
+ this.$emit('changeDetectorItem', data, fields)
67
+ }
68
+ }
69
+ },
70
+ DetectorChartData: {
71
+ handler: function (newval, oldval) {
72
+ console.log(this.Detector)
73
+ }
74
+ }
75
+ },
76
+ props: {
77
+ DetectorChartData: {
78
+ type: Object
79
+ },
80
+ Detector: {
81
+ type: Array
82
+ },
83
+ isSeletable: {
84
+ type: Boolean
85
+ },
86
+ chooseIndex: {
87
+ type: Number
88
+ },
89
+ UsageMode: { // 当前图标模式: 绘制draw 展示show
90
+ type: String,
91
+ default: 'draw'
92
+ }
93
+ },
94
+ methods: {
95
+ boxDragStop (origin, final) {
96
+ this.item = JSON.parse(JSON.stringify(final))
97
+ this.$emit('handleSelectIcon', this.DetectorChartData)
98
+ },
99
+ resetSvg () {
100
+ this.reset = false
101
+ this.$nextTick(() => {
102
+ this.reset = true
103
+ })
104
+ },
105
+ handleSelectIcon (iconparams) {
106
+ this.$emit('handleSelectIcon', this.DetectorChartData)
107
+ },
108
+ culculateFontsize () {
109
+ // 根据倒计时图标大小,动态计算内部文字大小
110
+ this.Fontsize = Math.floor(this.DetectorChartData.w / 140 * 20)
111
+ },
112
+ initEcharts () {
113
+ this.detectorEcharts = echart.init(document.getElementById('detectorStatisticsEcharts' + this.DetectorChartData.index))
114
+ },
115
+ getEchartsData () {
116
+ let option = {
117
+ tooltip: {
118
+ trigger: 'item'
119
+ },
120
+ grid: {
121
+ left: '2%',
122
+ right: '2%',
123
+ top: '10',
124
+ bottom: '10',
125
+ containLabel: true
126
+ },
127
+ xAxis: {
128
+ type: 'category',
129
+ axisLabel: {
130
+ show: false,
131
+ textStyle: {
132
+ color: getTheme() === 'light' ? '#666666' : '#B9BABF'
133
+ }
134
+ },
135
+ axisTick: {
136
+ show: false,
137
+ lineStyle: {
138
+ color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
139
+ }
140
+ },
141
+ axisLine: {
142
+ show: false,
143
+ lineStyle: {
144
+ color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
145
+ }
146
+ },
147
+ splitLine: {
148
+ show: false
149
+ }
150
+ },
151
+ yAxis: {
152
+ type: 'value',
153
+ max: 100,
154
+ axisTick: {
155
+ show: false
156
+ // lineStyle: {
157
+ // color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
158
+ // }
159
+ },
160
+ axisLine: {
161
+ show: false,
162
+ lineStyle: {
163
+ color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
164
+ }
165
+ },
166
+ splitLine: {
167
+ show: false
168
+ // lineStyle: {
169
+ // color: getTheme() === 'light' ? '#DCDFE6' : '#30384d'
170
+ // }
171
+ },
172
+ splitArea: {
173
+ show: false
174
+ // areaStyle: {
175
+ // color: getTheme() === 'light' ? ['#fafafa', '#fff'] : ['#202940', '#1a2338']
176
+ // }
177
+ },
178
+ axisLabel: {
179
+ show: false,
180
+ textStyle: {
181
+ color: getTheme() === 'light' ? '#666666' : '#B9BABF'
182
+ }
183
+ }
184
+ },
185
+ series: [{
186
+ type: 'bar',
187
+ barWidth: '10',
188
+ itemStyle: {
189
+ color: 'red',
190
+ borderWidth: 0,
191
+ shadowBlur: {
192
+ shadowColor: 'rgba(255,255,255,0.31)',
193
+ shadowBlur: 10,
194
+ shadowOffsetX: 0,
195
+ shadowOffsetY: 2
196
+ }
197
+ },
198
+ data: this.flowsaturation
199
+ }, {
200
+ type: 'bar',
201
+ barWidth: '10',
202
+ itemStyle: {
203
+ color: 'green'
204
+ },
205
+ data: this.occupancysaturation
206
+ }]
207
+ }
208
+ this.detectorEcharts.setOption(option)
209
+ },
210
+ handleTooltipEvent () {
211
+ let _this = this
212
+ this.detectorEcharts.on('mouseover', function (params) {
213
+ _this.detectorEcharts.dispatchAction({
214
+ type: 'showTip',
215
+ seriesIndex: 0,
216
+ dataIndex: params.dataIndex,
217
+ position: ['0', '0']
218
+ })
219
+ })
220
+ this.detectorEcharts.on('mouseout', function (params) {
221
+ _this.detectorEcharts.dispatchAction({
222
+ type: 'hideTip'
223
+ })
224
+ })
225
+ }
226
+ },
227
+ created () {
228
+ this.item = {
229
+ x: this.DetectorChartData.x,
230
+ y: this.DetectorChartData.y,
231
+ w: this.DetectorChartData.w,
232
+ h: this.DetectorChartData.h,
233
+ angle: this.DetectorChartData.angle
234
+ }
235
+ },
236
+ mounted () {
237
+ this.initEcharts()
238
+ this.getEchartsData()
239
+ this.handleTooltipEvent()
240
+ }
241
+ }
242
+ </script>
243
+ <style scoped>
244
+ .detector-statistics-echarts {
245
+ height: 100%;
246
+ }
247
+ </style>
@@ -1,72 +1,72 @@
1
- /**
2
- * Copyright (c) 2020 kedacom
3
- * OpenATC is licensed under Mulan PSL v2.
4
- * You can use this software according to the terms and conditions of the Mulan PSL v2.
5
- * You may obtain a copy of Mulan PSL v2 at:
6
- * http://license.coscl.org.cn/MulanPSL2
7
- * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8
- * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9
- * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
- * See the Mulan PSL v2 for more details.
11
- **/
12
- <template>
13
- <div class="lane-icon-svg">
14
- <div :class="laneicon.type === 'motorway' ? '' : 'hide'">
15
- <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
16
- <path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
17
- d="M-0.002,3.940 L7.022,-0.006 L7.022,2.357 L11.085,2.357 C13.793,2.357 15.998,4.501 15.998,7.136 L15.998,16.005 L12.744,16.005 L12.744,7.136 C12.744,6.246 11.999,5.523 11.085,5.523 L7.022,5.523 L7.022,7.886 L-0.002,3.940 Z"/>
18
- </svg>
19
- </div>
20
- <div :class="laneicon.type === 'pedcrossing' ? '' : 'hide'">
21
- <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
22
- <path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
23
- d="M13.473,12.000 L13.473,-0.000 L16.000,-0.000 L16.000,12.000 L13.473,12.000 ZM8.982,-0.000 L11.508,-0.000 L11.508,12.000 L8.982,12.000 L8.982,-0.000 ZM4.491,-0.000 L7.017,-0.000 L7.017,12.000 L4.491,12.000 L4.491,-0.000 ZM-0.000,-0.000 L2.526,-0.000 L2.526,12.000 L-0.000,12.000 L-0.000,-0.000 Z"/>
24
- </svg>
25
- </div>
26
- <div :class="laneicon.type === 'countdown' ? '' : 'hide'">
27
- <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
28
- <path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
29
- d="M6.561,10.851 C5.921,10.851 5.402,10.341 5.402,9.712 L5.402,6.151 C5.402,5.522 5.921,5.012 6.561,5.012 C7.201,5.012 7.719,5.522 7.719,6.151 L7.719,8.572 L10.181,8.572 C10.821,8.572 11.340,9.083 11.340,9.712 C11.340,10.341 10.821,10.851 10.181,10.851 L6.561,10.851 ZM15.113,7.994 L10.211,4.200 L11.824,3.565 C10.796,2.732 9.505,2.270 8.136,2.270 C4.927,2.270 2.317,4.838 2.317,7.994 C2.317,11.149 4.927,13.717 8.136,13.717 C10.261,13.717 12.218,12.577 13.242,10.742 C13.550,10.191 14.253,9.989 14.815,10.291 C15.376,10.594 15.581,11.287 15.273,11.839 C13.843,14.402 11.108,15.995 8.136,15.995 C3.650,15.995 0.000,12.406 0.000,7.994 C0.000,3.581 3.650,-0.008 8.136,-0.008 C10.467,-0.008 12.627,0.956 14.170,2.642 L16.003,1.921 L15.113,7.994 Z"/>
30
- </svg>
31
- </div>
32
- <div :class="laneicon.type === 'detector' ? '' : 'hide'">
33
- <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1551"
34
- xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
35
- <path :fill="laneicon.active === true ? highlightColor : defaultColor"
36
- d="M864 64H160c-35.296 0-64 28.704-64 64v768c0 35.296 28.704 64 64 64h704c35.296 0 64-28.704 64-64V128c0-35.296-28.704-64-64-64zM160 896v-57.344h96a32 32 0 1 0 0-64H160v-32h96a32 32 0 1 0 0-64H160V128h704l0.032 550.656H768a32 32 0 1 0 0 64h96.064v32H768a32 32 0 1 0 0 64h96.064V896H160z"
37
- p-id="3622"></path>
38
- <path :fill="laneicon.active === true ? highlightColor : defaultColor" d="M832 160H192v480h640V160z m-64 416H256V224h512v352z" p-id="3623"></path>
39
- </svg>
40
- </div>
41
- </div>
42
- </template>
43
- <script>
44
- export default {
45
- name: 'lane-icon-svg',
46
- data () {
47
- return {
48
- iconw: '16px',
49
- iconh: '16px',
50
- defaultColor: 'rgb(96, 98, 102)', // 默认状态颜色
51
- highlightColor: 'rgb(64, 158, 255)'
52
- }
53
- },
54
- watch: {
55
- },
56
- props: {
57
- laneicon: {
58
- type: Object
59
- }
60
- },
61
- methods: {},
62
- mounted () {}
63
- }
64
- </script>
65
- <style scoped>
66
- .invisible {
67
- visibility: hidden;
68
- }
69
- .hide {
70
- display: none;
71
- }
72
- </style>
1
+ /**
2
+ * Copyright (c) 2020 kedacom
3
+ * OpenATC is licensed under Mulan PSL v2.
4
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
5
+ * You may obtain a copy of Mulan PSL v2 at:
6
+ * http://license.coscl.org.cn/MulanPSL2
7
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
+ * See the Mulan PSL v2 for more details.
11
+ **/
12
+ <template>
13
+ <div class="lane-icon-svg">
14
+ <div :class="laneicon.type === 'motorway' ? '' : 'hide'">
15
+ <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
16
+ <path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
17
+ d="M-0.002,3.940 L7.022,-0.006 L7.022,2.357 L11.085,2.357 C13.793,2.357 15.998,4.501 15.998,7.136 L15.998,16.005 L12.744,16.005 L12.744,7.136 C12.744,6.246 11.999,5.523 11.085,5.523 L7.022,5.523 L7.022,7.886 L-0.002,3.940 Z"/>
18
+ </svg>
19
+ </div>
20
+ <div :class="laneicon.type === 'pedcrossing' ? '' : 'hide'">
21
+ <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
22
+ <path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
23
+ d="M13.473,12.000 L13.473,-0.000 L16.000,-0.000 L16.000,12.000 L13.473,12.000 ZM8.982,-0.000 L11.508,-0.000 L11.508,12.000 L8.982,12.000 L8.982,-0.000 ZM4.491,-0.000 L7.017,-0.000 L7.017,12.000 L4.491,12.000 L4.491,-0.000 ZM-0.000,-0.000 L2.526,-0.000 L2.526,12.000 L-0.000,12.000 L-0.000,-0.000 Z"/>
24
+ </svg>
25
+ </div>
26
+ <div :class="laneicon.type === 'countdown' ? '' : 'hide'">
27
+ <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
28
+ <path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
29
+ d="M6.561,10.851 C5.921,10.851 5.402,10.341 5.402,9.712 L5.402,6.151 C5.402,5.522 5.921,5.012 6.561,5.012 C7.201,5.012 7.719,5.522 7.719,6.151 L7.719,8.572 L10.181,8.572 C10.821,8.572 11.340,9.083 11.340,9.712 C11.340,10.341 10.821,10.851 10.181,10.851 L6.561,10.851 ZM15.113,7.994 L10.211,4.200 L11.824,3.565 C10.796,2.732 9.505,2.270 8.136,2.270 C4.927,2.270 2.317,4.838 2.317,7.994 C2.317,11.149 4.927,13.717 8.136,13.717 C10.261,13.717 12.218,12.577 13.242,10.742 C13.550,10.191 14.253,9.989 14.815,10.291 C15.376,10.594 15.581,11.287 15.273,11.839 C13.843,14.402 11.108,15.995 8.136,15.995 C3.650,15.995 0.000,12.406 0.000,7.994 C0.000,3.581 3.650,-0.008 8.136,-0.008 C10.467,-0.008 12.627,0.956 14.170,2.642 L16.003,1.921 L15.113,7.994 Z"/>
30
+ </svg>
31
+ </div>
32
+ <div :class="laneicon.type === 'detector' ? '' : 'hide'">
33
+ <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1551"
34
+ xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
35
+ <path :fill="laneicon.active === true ? highlightColor : defaultColor"
36
+ d="M864 64H160c-35.296 0-64 28.704-64 64v768c0 35.296 28.704 64 64 64h704c35.296 0 64-28.704 64-64V128c0-35.296-28.704-64-64-64zM160 896v-57.344h96a32 32 0 1 0 0-64H160v-32h96a32 32 0 1 0 0-64H160V128h704l0.032 550.656H768a32 32 0 1 0 0 64h96.064v32H768a32 32 0 1 0 0 64h96.064V896H160z"
37
+ p-id="3622"></path>
38
+ <path :fill="laneicon.active === true ? highlightColor : defaultColor" d="M832 160H192v480h640V160z m-64 416H256V224h512v352z" p-id="3623"></path>
39
+ </svg>
40
+ </div>
41
+ </div>
42
+ </template>
43
+ <script>
44
+ export default {
45
+ name: 'lane-icon-svg',
46
+ data () {
47
+ return {
48
+ iconw: '16px',
49
+ iconh: '16px',
50
+ defaultColor: 'rgb(96, 98, 102)', // 默认状态颜色
51
+ highlightColor: 'rgb(64, 158, 255)'
52
+ }
53
+ },
54
+ watch: {
55
+ },
56
+ props: {
57
+ laneicon: {
58
+ type: Object
59
+ }
60
+ },
61
+ methods: {},
62
+ mounted () {}
63
+ }
64
+ </script>
65
+ <style scoped>
66
+ .invisible {
67
+ visibility: hidden;
68
+ }
69
+ .hide {
70
+ display: none;
71
+ }
72
+ </style>