openatc-components 0.5.42 → 0.5.44

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 (356) 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/Channelization/Channelization.vue +585 -585
  21. package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +360 -360
  22. package/package/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +518 -518
  23. package/package/kisscomps/components/CommonKanban/CommonKanban.vue +132 -132
  24. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-east-bottom.vue +41 -41
  25. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-east-top.vue +60 -60
  26. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-ewped.vue +105 -105
  27. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-north-left.vue +60 -60
  28. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-north-right.vue +60 -60
  29. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-snped.vue +105 -105
  30. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-south-left.vue +60 -60
  31. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-south-right.vue +60 -60
  32. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-west-bottom.vue +60 -60
  33. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-west-top.vue +60 -60
  34. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-xlped.vue +30 -30
  35. package/package/kisscomps/components/DirectionListConfiguration/svg/ped-xrped.vue +30 -30
  36. package/package/kisscomps/components/DirectionListConfiguration/svg/pedSvg.vue +78 -78
  37. package/package/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +181 -181
  38. package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
  39. package/package/kisscomps/components/DrawChannelization/drawsvg/detectorAssociatedComponent.vue +152 -152
  40. package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/TextBox.vue +91 -91
  41. package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/editText.vue +108 -108
  42. package/package/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +51 -51
  43. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +236 -236
  44. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +247 -247
  45. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +210 -210
  46. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +72 -72
  47. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +368 -368
  48. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +230 -230
  49. package/package/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +74 -74
  50. package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +144 -144
  51. package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +707 -707
  52. package/package/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +172 -172
  53. package/package/kisscomps/components/DrawChannelization/drawsvg/table.vue +99 -99
  54. package/package/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +87 -87
  55. package/package/kisscomps/components/DrawChannelization/drawsvg/utils/phaseDataModel.js +32 -32
  56. package/package/kisscomps/components/DrawChannelization/drawsvg/utils/phasePos.json +20 -20
  57. package/package/kisscomps/components/DrawChannelization/phaseDataMgr.js +278 -278
  58. package/package/kisscomps/components/ExpendConfig/ExpendConfig.vue +118 -118
  59. package/package/kisscomps/components/FaultDetailModal/FaultDetailModal.vue +178 -178
  60. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CrossRoadsSvg.vue +629 -629
  61. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +46 -46
  62. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +447 -447
  63. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +341 -341
  64. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +497 -497
  65. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +353 -353
  66. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +359 -359
  67. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +443 -443
  68. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1190 -1190
  69. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeEastRoadsSvg.vue +498 -498
  70. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeNorthRoadsSvg.vue +484 -484
  71. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeSouthRoadsSvg.vue +488 -488
  72. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeWestRoadsSvg.vue +566 -566
  73. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +640 -640
  74. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +497 -497
  75. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +486 -486
  76. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +490 -490
  77. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +575 -575
  78. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/refreshSvg.vue +63 -63
  79. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/busMapSvg.vue +50 -50
  80. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/eastBusSvg.vue +167 -167
  81. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/northBusSvg.vue +168 -168
  82. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/southBusSvg.vue +168 -168
  83. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/westBusSvg.vue +169 -169
  84. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +70 -2
  85. package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +9 -5
  86. package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +11 -5
  87. package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +122 -122
  88. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.json +196 -196
  89. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.left.json +196 -196
  90. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +49 -17
  91. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
  92. package/package/kisscomps/components/IntersectionMap/crossDirection/utils.js +7 -0
  93. package/package/kisscomps/components/KanBan/kanban.vue +231 -231
  94. package/package/kisscomps/components/MessageBox/index.vue +96 -96
  95. package/package/kisscomps/components/OptimizeKanban/index.js +2 -0
  96. package/package/kisscomps/components/OptimizeKanban/index.vue +369 -0
  97. package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +329 -329
  98. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +1 -1
  99. package/package/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
  100. package/package/kisscomps/components/PhaseDirectionSelect/PhaseDirectionSelect.vue +126 -126
  101. package/package/kisscomps/components/PhaseDirectionText/PhaseDirectionText.vue +106 -106
  102. package/package/kisscomps/components/PhaseLegend/PhaseLegend.vue +286 -286
  103. package/package/kisscomps/components/PhaseMarker/index.js +6 -6
  104. package/package/kisscomps/components/PhaseMarker/phasemarker.vue +215 -215
  105. package/package/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -121
  106. package/package/kisscomps/components/PhaseMarker/svg/phase.vue +60 -60
  107. package/package/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -62
  108. package/package/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -62
  109. package/package/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -117
  110. package/package/kisscomps/components/PhasePedSelect/index.vue +206 -206
  111. package/package/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +365 -365
  112. package/package/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +92 -92
  113. package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +214 -214
  114. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +235 -235
  115. package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +235 -235
  116. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +131 -131
  117. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/othersIcon.vue +151 -151
  118. package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +215 -215
  119. package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
  120. package/package/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
  121. package/package/kisscomps/components/StageOptimize/StageOptimize.vue +367 -367
  122. package/package/kisscomps/components/StageOptimize/index.js +2 -2
  123. package/package/kisscomps/components/StageOptimize/index.vue +310 -0
  124. package/package/kisscomps/components/StageStatus/StageStatus.vue +341 -341
  125. package/package/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
  126. package/package/kisscomps/components/XiaoKanban/DirSelector.vue +356 -356
  127. package/package/kisscomps/components/XiaoKanban/index.vue +122 -122
  128. package/package/kisscomps/components/patternConfig/pattern/planChart/model/coordinationModel.js +665 -665
  129. package/package/kisscomps/components/patternConfig/planContent.vue +604 -604
  130. package/package/kisscomps/components/patternConfig/planMenu.vue +329 -329
  131. package/package/kissui.min.js +1 -1
  132. package/package.json +1 -1
  133. package/src/EdgeMgr/EdgeModelBase.js +16 -16
  134. package/src/EdgeMgr/controller/crossDiagramMgr.js +125 -125
  135. package/src/api/authapi.js +31 -31
  136. package/src/api/config.js +21 -21
  137. package/src/api/control.js +110 -110
  138. package/src/api/device.js +135 -135
  139. package/src/api/fault.js +66 -66
  140. package/src/api/index.js +24 -24
  141. package/src/api/login.js +46 -46
  142. package/src/api/optimize.js +72 -72
  143. package/src/api/passwdAssest.js +101 -101
  144. package/src/api/permission.js +33 -33
  145. package/src/api/route.js +171 -171
  146. package/src/assets/font/LICENSE.txt +202 -202
  147. package/src/assets/font/font.css +6 -6
  148. package/src/i18n/index.js +26 -26
  149. package/src/icons/index.js +20 -20
  150. package/src/icons/svg/azimuthlocking.svg +26 -26
  151. package/src/icons/svg/bendi.svg +110 -110
  152. package/src/icons/svg/bujin.svg +36 -36
  153. package/src/icons/svg/connectBlue.svg +7 -7
  154. package/src/icons/svg/currentvolume.svg +0 -0
  155. package/src/icons/svg/custom-BRTlane.svg +40 -40
  156. package/src/icons/svg/custom-buslane.svg +40 -40
  157. package/src/icons/svg/custom-detector.svg +12 -12
  158. package/src/icons/svg/custom-east-bottom.svg +32 -32
  159. package/src/icons/svg/custom-east-top.svg +32 -32
  160. package/src/icons/svg/custom-ewped.svg +35 -35
  161. package/src/icons/svg/custom-nonmotorizedlane.svg +40 -40
  162. package/src/icons/svg/custom-north-left.svg +32 -32
  163. package/src/icons/svg/custom-north-right.svg +32 -32
  164. package/src/icons/svg/custom-peddetector.svg +17 -17
  165. package/src/icons/svg/custom-snped.svg +35 -35
  166. package/src/icons/svg/custom-south-left.svg +32 -32
  167. package/src/icons/svg/custom-south-right.svg +32 -32
  168. package/src/icons/svg/custom-tramlane.svg +40 -40
  169. package/src/icons/svg/custom-vehiclebranch.svg +40 -40
  170. package/src/icons/svg/custom-vehiclemainroad.svg +41 -41
  171. package/src/icons/svg/custom-west-bottom.svg +32 -32
  172. package/src/icons/svg/custom-west-top.svg +32 -32
  173. package/src/icons/svg/custom-xlped.svg +14 -14
  174. package/src/icons/svg/custom-xrped.svg +14 -14
  175. package/src/icons/svg/cutRed.svg +7 -7
  176. package/src/icons/svg/cycle.svg +0 -0
  177. package/src/icons/svg/dingzhouqi.svg +34 -34
  178. package/src/icons/svg/ganyingkongzhi.svg +30 -30
  179. package/src/icons/svg/guandeng.svg +81 -81
  180. package/src/icons/svg/huangshan.svg +71 -71
  181. package/src/icons/svg/maincontrol.svg +0 -0
  182. package/src/icons/svg/manualcontrolbackground.svg +51 -51
  183. package/src/icons/svg/manualcontrolbackground1.svg +62 -62
  184. package/src/icons/svg/manualcontrolbackgrounden.svg +62 -62
  185. package/src/icons/svg/model.svg +0 -0
  186. package/src/icons/svg/phasediff.svg +0 -0
  187. package/src/icons/svg/prioritycontrol.svg +21 -21
  188. package/src/icons/svg/quanhong.svg +86 -86
  189. package/src/icons/svg/shanghe.svg +11 -11
  190. package/src/icons/svg/shoudong.svg +103 -103
  191. package/src/icons/svg/tentativeplan.svg +28 -28
  192. package/src/icons/svg/time.svg +0 -0
  193. package/src/icons/svg/wuxianlan.svg +46 -46
  194. package/src/icons/svg/xiala.svg +11 -11
  195. package/src/icons/svg/xingrenguojie.svg +33 -33
  196. package/src/icons/svg/xitong.svg +89 -89
  197. package/src/icons/svg/youxian.svg +41 -41
  198. package/src/icons/svg/zizhukongzhi.svg +43 -43
  199. package/src/kisscomps/components/Channelization/Channelization.vue +585 -585
  200. package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +360 -360
  201. package/src/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +518 -518
  202. package/src/kisscomps/components/CommonKanban/CommonKanban.vue +132 -132
  203. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-east-bottom.vue +41 -41
  204. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-east-top.vue +60 -60
  205. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-ewped.vue +105 -105
  206. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-north-left.vue +60 -60
  207. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-north-right.vue +60 -60
  208. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-snped.vue +105 -105
  209. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-south-left.vue +60 -60
  210. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-south-right.vue +60 -60
  211. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-west-bottom.vue +60 -60
  212. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-west-top.vue +60 -60
  213. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-xlped.vue +30 -30
  214. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-xrped.vue +30 -30
  215. package/src/kisscomps/components/DirectionListConfiguration/svg/pedSvg.vue +78 -78
  216. package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +181 -181
  217. package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
  218. package/src/kisscomps/components/DrawChannelization/drawsvg/detectorAssociatedComponent.vue +152 -152
  219. package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/TextBox.vue +91 -91
  220. package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/editText.vue +108 -108
  221. package/src/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +51 -51
  222. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +236 -236
  223. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +247 -247
  224. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +210 -210
  225. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +72 -72
  226. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +368 -368
  227. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +230 -230
  228. package/src/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +74 -74
  229. package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +144 -144
  230. package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +707 -707
  231. package/src/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +172 -172
  232. package/src/kisscomps/components/DrawChannelization/drawsvg/table.vue +99 -99
  233. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +87 -87
  234. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/phaseDataModel.js +32 -32
  235. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/phasePos.json +20 -20
  236. package/src/kisscomps/components/DrawChannelization/phaseDataMgr.js +278 -278
  237. package/src/kisscomps/components/ExpendConfig/ExpendConfig.vue +118 -118
  238. package/src/kisscomps/components/FaultDetailModal/FaultDetailModal.vue +178 -178
  239. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CrossRoadsSvg.vue +629 -629
  240. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +46 -46
  241. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +447 -447
  242. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +341 -341
  243. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +497 -497
  244. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +353 -353
  245. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +359 -359
  246. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +443 -443
  247. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1190 -1190
  248. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeEastRoadsSvg.vue +498 -498
  249. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeNorthRoadsSvg.vue +484 -484
  250. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeSouthRoadsSvg.vue +488 -488
  251. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/TShapeWestRoadsSvg.vue +566 -566
  252. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +640 -640
  253. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +497 -497
  254. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +486 -486
  255. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +490 -490
  256. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +575 -575
  257. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/refreshSvg.vue +63 -63
  258. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/busMapSvg.vue +50 -50
  259. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/eastBusSvg.vue +167 -167
  260. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/northBusSvg.vue +168 -168
  261. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/southBusSvg.vue +168 -168
  262. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/westBusSvg.vue +169 -169
  263. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +70 -2
  264. package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +9 -5
  265. package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +11 -5
  266. package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +122 -122
  267. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.json +196 -196
  268. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.left.json +196 -196
  269. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +49 -17
  270. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
  271. package/src/kisscomps/components/IntersectionMap/crossDirection/utils.js +7 -0
  272. package/src/kisscomps/components/KanBan/kanban.vue +231 -231
  273. package/src/kisscomps/components/MessageBox/index.vue +96 -96
  274. package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +329 -329
  275. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +1 -1
  276. package/src/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
  277. package/src/kisscomps/components/PhaseDirectionSelect/PhaseDirectionSelect.vue +126 -126
  278. package/src/kisscomps/components/PhaseDirectionText/PhaseDirectionText.vue +106 -106
  279. package/src/kisscomps/components/PhaseLegend/PhaseLegend.vue +286 -286
  280. package/src/kisscomps/components/PhaseMarker/index.js +6 -6
  281. package/src/kisscomps/components/PhaseMarker/phasemarker.vue +215 -215
  282. package/src/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -121
  283. package/src/kisscomps/components/PhaseMarker/svg/phase.vue +60 -60
  284. package/src/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -62
  285. package/src/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -62
  286. package/src/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -117
  287. package/src/kisscomps/components/PhasePedSelect/index.vue +206 -206
  288. package/src/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +365 -365
  289. package/src/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +92 -92
  290. package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +214 -214
  291. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +235 -235
  292. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +235 -235
  293. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +131 -131
  294. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/othersIcon.vue +151 -151
  295. package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +215 -215
  296. package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
  297. package/src/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
  298. package/src/kisscomps/components/StageOptimize/StageOptimize.vue +367 -367
  299. package/src/kisscomps/components/StageOptimize/index.js +2 -2
  300. package/src/kisscomps/components/StageStatus/StageStatus.vue +341 -341
  301. package/src/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
  302. package/src/kisscomps/components/XiaoKanban/DirSelector.vue +356 -356
  303. package/src/kisscomps/components/XiaoKanban/index.vue +122 -122
  304. package/src/kisscomps/components/patternConfig/pattern/planChart/model/coordinationModel.js +665 -665
  305. package/src/kisscomps/components/patternConfig/planContent.vue +604 -604
  306. package/src/kisscomps/components/patternConfig/planMenu.vue +329 -329
  307. package/src/lib/publicjs/ArryListUtil.js +38 -38
  308. package/src/lib/publicjs/HttpurlMgr.js +45 -45
  309. package/src/lib/publicjs/KissApi.js +158 -158
  310. package/src/lib/publicjs/KissWSSub/Heartcheck.js +128 -128
  311. package/src/lib/publicjs/KissWSSub/KissWsSub.js +91 -91
  312. package/src/lib/publicjs/KissWSSub/KissWsSubByType.js +152 -152
  313. package/src/lib/publicjs/KissWSSub/SimuWsSubByType.js +44 -44
  314. package/src/lib/publicjs/KissWSSub/Sub.js +51 -51
  315. package/src/lib/publicjs/KissWSSub/SubChannel.js +119 -119
  316. package/src/lib/publicjs/basecomponents.js +65 -65
  317. package/src/lib/publicjs/localStorage.js +112 -112
  318. package/src/lib/publicjs/objdeepcopy.js +32 -32
  319. package/src/lib/publicjs/pageScroll.js +30 -30
  320. package/src/lib/publicjs/passwdAssest.js +101 -101
  321. package/src/lib/publicjs/styleclassfactory.js +32 -32
  322. package/src/node_modules/.package_versions.json +1 -0
  323. package/src/store/index.js +26 -26
  324. package/src/store/modules/globalParam.js +67 -67
  325. package/src/utils/RingDataModel.js +335 -335
  326. package/src/utils/conflictList.js +87 -87
  327. package/src/utils/dateFormat.js +41 -41
  328. package/src/utils/index.js +69 -69
  329. package/src/utils/phaseList.js +203 -203
  330. package/src/utils/validate.js +43 -43
  331. package/src/views/home.1.vue +479 -479
  332. package/src/views/home.vue +93 -93
  333. package/static/styles/channelizatioon.scss +433 -433
  334. package/static/styles/common.scss +30 -30
  335. package/static/styles/commonkanban.scss +168 -168
  336. package/static/styles/dark/index.scss +2 -2
  337. package/static/styles/dark/theme/element-dark.scss +44 -44
  338. package/static/styles/index.scss +84 -84
  339. package/static/styles/intersection.scss +180 -180
  340. package/static/styles/light/index.scss +2 -2
  341. package/static/styles/light/theme/element-light.scss +44 -44
  342. package/static/styles/patternConfig.scss +56 -56
  343. package/static/styles/phasePedSelect.scss +71 -71
  344. package/static/styles/stages.scss +57 -57
  345. package/static/styles/xiaokanban.scss +61 -61
  346. package/static/token.json +2 -2
  347. package/test/e2e/custom-assertions/elementCount.js +27 -27
  348. package/test/e2e/nightwatch.conf.js +46 -46
  349. package/test/e2e/runner.js +48 -48
  350. package/test/e2e/specs/test.js +19 -19
  351. package/test/unit/.eslintrc +7 -7
  352. package/test/unit/jest.conf.js +30 -30
  353. package/test/unit/setup.js +3 -3
  354. package/test/unit/specs/HelloWorld.spec.js +11 -11
  355. package/package/kissui.js +0 -216608
  356. package/pnpm-lock.yaml +0 -16362
@@ -1,230 +1,230 @@
1
- /**
2
- * Copyright (c) 2020 kedacom
3
- * OpenATC is licensed under Mulan PSL v2.
4
- * You can use this software according to the terms and conditions of the Mulan PSL v2.
5
- * You may obtain a copy of Mulan PSL v2 at:
6
- * http://license.coscl.org.cn/MulanPSL2
7
- * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8
- * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9
- * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
- * See the Mulan PSL v2 for more details.
11
- **/
12
- <template>
13
- <div v-if="reset" class="pedroad-icon">
14
- <!-- <div class="phaseText" :style="{'left': PedData.x - PedData.w / 2 - 10 + 'px', 'top': PedData.y - PedData.h / 2 - 10 + 'px'}">{{PedData.phaselabel}}</div> -->
15
- <drr
16
- :style="{'z-index': chooseIndex === PedData.index ? 9 : 0}"
17
- :x="item.x"
18
- :y="item.y"
19
- :w="item.w"
20
- :h="item.h"
21
- :selected="chooseIndex === PedData.index"
22
- :selectable="isSeletable"
23
- :angle="item.angle"
24
- @select="handleSelectIcon(item)"
25
- @dragstop="boxDragStop(item, ...arguments)"
26
- @resizestop="boxResizeStop(item, ...arguments)"
27
- @rotatestop="boxRotateStop(item, ...arguments)"
28
- >
29
- <div class="phaseText"
30
- style="top: -28px;"
31
- :style="{'marginLeft': PedData.w / 2 + 'px', 'transform': `translateX(-50%) rotate(${-item.angle}deg)`}">{{PedData.phaselabel}}</div>
32
-
33
- <svg
34
- xmlns="http://www.w3.org/2000/svg"
35
- :viewBox="Viewbox.join(' ')"
36
- :width="IconW"
37
- :height="IconH"
38
- >
39
- <!-- 绘制模式 -->
40
- <g v-if="UsageMode === 'draw'" :fill="chooseIndex === PedData.index ? highlightColor : defaultColor">
41
- <rect v-for="(rectItem, index) in rectArr" :x="rectItem" :key="index" width="4" :height="IconH"></rect>
42
- </g>
43
- <!-- 展示模式 -->
44
- <g v-if="UsageMode === 'show'" :fill="this.FlashColor ? this.FlashColor : (PedData.color ? PedData.color : showDefaultColor)">
45
- <rect v-for="(rectItem, index) in rectArr" :x="rectItem" :key="index" width="4" :height="IconH"></rect>
46
- </g>
47
- </svg>
48
- </drr>
49
- </div>
50
- </template>
51
- <script>
52
- export default {
53
- name: 'ped-icon-svg',
54
- data () {
55
- return {
56
- defaultColor: '#fff', // 默认状态颜色
57
- highlightColor: '#299BCC', // 选中高亮状态颜色
58
- item: {},
59
- reset: true,
60
- rectArr: [],
61
- Viewbox: [0, 0, 206, 22],
62
- showDefaultColor: '#fff', // 默认状态颜色
63
- FlashColor: undefined,
64
- GreenColor: '#77fb65',
65
- YellowColor: '#f7b500',
66
- lastType: ''
67
- }
68
- },
69
- watch: {
70
- // item: {
71
- // handler: function (newval, oldval) {
72
- // if ((JSON.stringify(oldval) !== '{}')) {
73
- // // 更改原数据的位置大小数据
74
- // let data = {
75
- // ...this.PedData,
76
- // ...newval,
77
- // viewbox: this.Viewbox
78
- // }
79
- // let fields = Object.keys(newval).concat('viewbox')
80
- // this.$emit('changePedItem', data, fields)
81
- // }
82
- // }
83
- // },
84
- PedData: {
85
- handler: function (val) {
86
- if (this.UsageMode === 'draw') {
87
- this.item.x = val.x
88
- this.item.y = val.y
89
- this.item.angle = val.angle
90
- }
91
- if (this.UsageMode === 'show') {
92
- if (this.lastType === '') {
93
- if (val.pedtype === 4 || val.pedtype === '黄闪') {
94
- let flashLightColor = ''
95
- if (val.pedtype === 4) {
96
- flashLightColor = this.GreenColor
97
- }
98
- if (val.pedtype === '黄闪') {
99
- flashLightColor = this.YellowColor
100
- }
101
- this.FlashColor = flashLightColor
102
- // 绿闪:绿-》灰-》绿 循环效果
103
- this.GreenIntervalId = setInterval(() => {
104
- this.FlashColor =
105
- !this.FlashColor || this.FlashColor === '#828282'
106
- ? flashLightColor
107
- : '#828282'
108
- }, 500)
109
- this.lastType = val.pedtype
110
- }
111
- }
112
- if (
113
- this.GreenIntervalId &&
114
- val.pedtype !== 4 &&
115
- val.pedtype !== '黄闪' &&
116
- val.pedtype !== this.lastType
117
- ) {
118
- clearInterval(this.GreenIntervalId)
119
- this.FlashColor = undefined
120
- this.lastType = ''
121
- }
122
- }
123
- },
124
- deep: true
125
- }
126
- // ,
127
- // chooseIndex: {
128
- // handler: function (val) {
129
- // debugger
130
- // }
131
- // }
132
- },
133
- props: {
134
- PedData: {
135
- type: Object
136
- },
137
- isSeletable: {
138
- type: Boolean
139
- },
140
- chooseIndex: {
141
- type: Number
142
- },
143
- UsageMode: { // 当前图标模式: 绘制draw 展示show
144
- type: String,
145
- default: 'draw'
146
- }
147
- },
148
- methods: {
149
- boxDragStop (origin, final) {
150
- this.item = JSON.parse(JSON.stringify(final))
151
- this.handleChangeData()
152
- },
153
- boxResizeStop (origin, final) {
154
- this.IconW = final.w + 'px'
155
- this.IconH = final.h + 'px'
156
- this.resetSvg()
157
- this.drawRect(0, final.w, 8)
158
- this.Viewbox[2] = final.w.toFixed(1)
159
- this.Viewbox[3] = final.h.toFixed(1)
160
- this.item = JSON.parse(JSON.stringify(final))
161
- this.handleChangeData()
162
- },
163
- boxRotateStop (origin, final) {
164
- this.item = JSON.parse(JSON.stringify(final))
165
- // 第四象限的角度是负值(开源组件接口返回),转化为正值便于理解
166
- if (this.item.angle < 0) {
167
- this.item.angle = this.item.angle + 360
168
- }
169
- this.handleChangeData()
170
- },
171
- resetSvg () {
172
- this.reset = false
173
- this.$nextTick(() => {
174
- this.reset = true
175
- })
176
- },
177
- drawRect (startX, length, step) {
178
- this.rectArr = []
179
- for (let i = startX; i < length; i = i + step) {
180
- this.rectArr.push(i)
181
- }
182
- },
183
- handleSelectIcon () {
184
- this.$emit('handleSelectIcon', this.PedData)
185
- },
186
- handleChangeData () {
187
- let data = {
188
- ...this.PedData,
189
- ...this.item,
190
- viewbox: this.Viewbox
191
- }
192
- let fields = Object.keys(this.item).concat('viewbox')
193
- this.$emit('changePedItem', data, fields)
194
- this.handleSelectIcon()
195
- }
196
- },
197
- created () {
198
- this.IconW = this.PedData.w
199
- this.IconH = this.PedData.h
200
- this.item = {
201
- x: this.PedData.x,
202
- y: this.PedData.y,
203
- w: this.PedData.w,
204
- h: this.PedData.h,
205
- angle: this.PedData.angle
206
- }
207
- if (this.PedData.viewbox) {
208
- this.Viewbox = this.PedData.viewbox
209
- }
210
- // this.drawRect(0, 206, 8)
211
- },
212
- mounted () {
213
- if (this.PedData.w) {
214
- // 按照加载后人行道的长绘制
215
- this.drawRect(0, this.PedData.w, 8)
216
- }
217
- }
218
- }
219
- </script>
220
- <style scoped>
221
- .invisible {
222
- visibility: hidden;
223
- }
224
- .hide {
225
- display: none;
226
- }
227
- .st0 {
228
- fill: #ccc;
229
- }
230
- </style>
1
+ /**
2
+ * Copyright (c) 2020 kedacom
3
+ * OpenATC is licensed under Mulan PSL v2.
4
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
5
+ * You may obtain a copy of Mulan PSL v2 at:
6
+ * http://license.coscl.org.cn/MulanPSL2
7
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
+ * See the Mulan PSL v2 for more details.
11
+ **/
12
+ <template>
13
+ <div v-if="reset" class="pedroad-icon">
14
+ <!-- <div class="phaseText" :style="{'left': PedData.x - PedData.w / 2 - 10 + 'px', 'top': PedData.y - PedData.h / 2 - 10 + 'px'}">{{PedData.phaselabel}}</div> -->
15
+ <drr
16
+ :style="{'z-index': chooseIndex === PedData.index ? 9 : 0}"
17
+ :x="item.x"
18
+ :y="item.y"
19
+ :w="item.w"
20
+ :h="item.h"
21
+ :selected="chooseIndex === PedData.index"
22
+ :selectable="isSeletable"
23
+ :angle="item.angle"
24
+ @select="handleSelectIcon(item)"
25
+ @dragstop="boxDragStop(item, ...arguments)"
26
+ @resizestop="boxResizeStop(item, ...arguments)"
27
+ @rotatestop="boxRotateStop(item, ...arguments)"
28
+ >
29
+ <div class="phaseText"
30
+ style="top: -28px;"
31
+ :style="{'marginLeft': PedData.w / 2 + 'px', 'transform': `translateX(-50%) rotate(${-item.angle}deg)`}">{{PedData.phaselabel}}</div>
32
+
33
+ <svg
34
+ xmlns="http://www.w3.org/2000/svg"
35
+ :viewBox="Viewbox.join(' ')"
36
+ :width="IconW"
37
+ :height="IconH"
38
+ >
39
+ <!-- 绘制模式 -->
40
+ <g v-if="UsageMode === 'draw'" :fill="chooseIndex === PedData.index ? highlightColor : defaultColor">
41
+ <rect v-for="(rectItem, index) in rectArr" :x="rectItem" :key="index" width="4" :height="IconH"></rect>
42
+ </g>
43
+ <!-- 展示模式 -->
44
+ <g v-if="UsageMode === 'show'" :fill="this.FlashColor ? this.FlashColor : (PedData.color ? PedData.color : showDefaultColor)">
45
+ <rect v-for="(rectItem, index) in rectArr" :x="rectItem" :key="index" width="4" :height="IconH"></rect>
46
+ </g>
47
+ </svg>
48
+ </drr>
49
+ </div>
50
+ </template>
51
+ <script>
52
+ export default {
53
+ name: 'ped-icon-svg',
54
+ data () {
55
+ return {
56
+ defaultColor: '#fff', // 默认状态颜色
57
+ highlightColor: '#299BCC', // 选中高亮状态颜色
58
+ item: {},
59
+ reset: true,
60
+ rectArr: [],
61
+ Viewbox: [0, 0, 206, 22],
62
+ showDefaultColor: '#fff', // 默认状态颜色
63
+ FlashColor: undefined,
64
+ GreenColor: '#77fb65',
65
+ YellowColor: '#f7b500',
66
+ lastType: ''
67
+ }
68
+ },
69
+ watch: {
70
+ // item: {
71
+ // handler: function (newval, oldval) {
72
+ // if ((JSON.stringify(oldval) !== '{}')) {
73
+ // // 更改原数据的位置大小数据
74
+ // let data = {
75
+ // ...this.PedData,
76
+ // ...newval,
77
+ // viewbox: this.Viewbox
78
+ // }
79
+ // let fields = Object.keys(newval).concat('viewbox')
80
+ // this.$emit('changePedItem', data, fields)
81
+ // }
82
+ // }
83
+ // },
84
+ PedData: {
85
+ handler: function (val) {
86
+ if (this.UsageMode === 'draw') {
87
+ this.item.x = val.x
88
+ this.item.y = val.y
89
+ this.item.angle = val.angle
90
+ }
91
+ if (this.UsageMode === 'show') {
92
+ if (this.lastType === '') {
93
+ if (val.pedtype === 4 || val.pedtype === '黄闪') {
94
+ let flashLightColor = ''
95
+ if (val.pedtype === 4) {
96
+ flashLightColor = this.GreenColor
97
+ }
98
+ if (val.pedtype === '黄闪') {
99
+ flashLightColor = this.YellowColor
100
+ }
101
+ this.FlashColor = flashLightColor
102
+ // 绿闪:绿-》灰-》绿 循环效果
103
+ this.GreenIntervalId = setInterval(() => {
104
+ this.FlashColor =
105
+ !this.FlashColor || this.FlashColor === '#828282'
106
+ ? flashLightColor
107
+ : '#828282'
108
+ }, 500)
109
+ this.lastType = val.pedtype
110
+ }
111
+ }
112
+ if (
113
+ this.GreenIntervalId &&
114
+ val.pedtype !== 4 &&
115
+ val.pedtype !== '黄闪' &&
116
+ val.pedtype !== this.lastType
117
+ ) {
118
+ clearInterval(this.GreenIntervalId)
119
+ this.FlashColor = undefined
120
+ this.lastType = ''
121
+ }
122
+ }
123
+ },
124
+ deep: true
125
+ }
126
+ // ,
127
+ // chooseIndex: {
128
+ // handler: function (val) {
129
+ // debugger
130
+ // }
131
+ // }
132
+ },
133
+ props: {
134
+ PedData: {
135
+ type: Object
136
+ },
137
+ isSeletable: {
138
+ type: Boolean
139
+ },
140
+ chooseIndex: {
141
+ type: Number
142
+ },
143
+ UsageMode: { // 当前图标模式: 绘制draw 展示show
144
+ type: String,
145
+ default: 'draw'
146
+ }
147
+ },
148
+ methods: {
149
+ boxDragStop (origin, final) {
150
+ this.item = JSON.parse(JSON.stringify(final))
151
+ this.handleChangeData()
152
+ },
153
+ boxResizeStop (origin, final) {
154
+ this.IconW = final.w + 'px'
155
+ this.IconH = final.h + 'px'
156
+ this.resetSvg()
157
+ this.drawRect(0, final.w, 8)
158
+ this.Viewbox[2] = final.w.toFixed(1)
159
+ this.Viewbox[3] = final.h.toFixed(1)
160
+ this.item = JSON.parse(JSON.stringify(final))
161
+ this.handleChangeData()
162
+ },
163
+ boxRotateStop (origin, final) {
164
+ this.item = JSON.parse(JSON.stringify(final))
165
+ // 第四象限的角度是负值(开源组件接口返回),转化为正值便于理解
166
+ if (this.item.angle < 0) {
167
+ this.item.angle = this.item.angle + 360
168
+ }
169
+ this.handleChangeData()
170
+ },
171
+ resetSvg () {
172
+ this.reset = false
173
+ this.$nextTick(() => {
174
+ this.reset = true
175
+ })
176
+ },
177
+ drawRect (startX, length, step) {
178
+ this.rectArr = []
179
+ for (let i = startX; i < length; i = i + step) {
180
+ this.rectArr.push(i)
181
+ }
182
+ },
183
+ handleSelectIcon () {
184
+ this.$emit('handleSelectIcon', this.PedData)
185
+ },
186
+ handleChangeData () {
187
+ let data = {
188
+ ...this.PedData,
189
+ ...this.item,
190
+ viewbox: this.Viewbox
191
+ }
192
+ let fields = Object.keys(this.item).concat('viewbox')
193
+ this.$emit('changePedItem', data, fields)
194
+ this.handleSelectIcon()
195
+ }
196
+ },
197
+ created () {
198
+ this.IconW = this.PedData.w
199
+ this.IconH = this.PedData.h
200
+ this.item = {
201
+ x: this.PedData.x,
202
+ y: this.PedData.y,
203
+ w: this.PedData.w,
204
+ h: this.PedData.h,
205
+ angle: this.PedData.angle
206
+ }
207
+ if (this.PedData.viewbox) {
208
+ this.Viewbox = this.PedData.viewbox
209
+ }
210
+ // this.drawRect(0, 206, 8)
211
+ },
212
+ mounted () {
213
+ if (this.PedData.w) {
214
+ // 按照加载后人行道的长绘制
215
+ this.drawRect(0, this.PedData.w, 8)
216
+ }
217
+ }
218
+ }
219
+ </script>
220
+ <style scoped>
221
+ .invisible {
222
+ visibility: hidden;
223
+ }
224
+ .hide {
225
+ display: none;
226
+ }
227
+ .st0 {
228
+ fill: #ccc;
229
+ }
230
+ </style>
@@ -1,74 +1,74 @@
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
- <el-dialog
14
- :title="$t('openatccomponents.plan.tip')"
15
- :visible.sync="dialogVisible"
16
- width="30%"
17
- >
18
- <input
19
- v-if="dialogVisible"
20
- type="file"
21
- id="importimg"
22
- />
23
- <span
24
- slot="footer"
25
- class="dialog-footer"
26
- >
27
- <el-button @click="dialogVisible = false">{{$t('openatccomponents.common.cancel')}}</el-button>
28
- <el-button
29
- type="primary"
30
- @click="readAsText"
31
- >{{$t('openatccomponents.common.confirm')}}</el-button>
32
- </span>
33
- </el-dialog>
34
- </template>
35
- <script>
36
- import Svgmethods from './utils/loadutils.js'
37
- export default {
38
- name: 'import-dialog',
39
- data () {
40
- return {
41
- dialogVisible: false
42
- }
43
- },
44
- methods: {
45
- clickOpen () {
46
- this.dialogVisible = true
47
- },
48
- // 底图加载
49
- readAsText () {
50
- this.svgmethods = new Svgmethods()
51
- this.svgmethods.clickOpen(this.loadSvgString, this.getMapWidthHeighgt)
52
- this.dialogVisible = false
53
- },
54
- loadSvgString (type, content) {
55
- if (type === 'error') {
56
- if (content === 'size') {
57
- this.$message.error(this.$t('openatccomponents.channelizationmap.importsizeerror'))
58
- }
59
- if (content === 'type') {
60
- this.$message.error(this.$t('openatccomponents.channelizationmap.importtypeerror'))
61
- }
62
- } else {
63
- this.$emit('loadSvgString', type, content)
64
- }
65
- },
66
- getMapWidthHeighgt (type, size) {
67
- this.$emit('loadMapSize', type, size)
68
- }
69
- },
70
- mounted () {}
71
- }
72
- </script>
73
- <style scoped>
74
- </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
+ <el-dialog
14
+ :title="$t('openatccomponents.plan.tip')"
15
+ :visible.sync="dialogVisible"
16
+ width="30%"
17
+ >
18
+ <input
19
+ v-if="dialogVisible"
20
+ type="file"
21
+ id="importimg"
22
+ />
23
+ <span
24
+ slot="footer"
25
+ class="dialog-footer"
26
+ >
27
+ <el-button @click="dialogVisible = false">{{$t('openatccomponents.common.cancel')}}</el-button>
28
+ <el-button
29
+ type="primary"
30
+ @click="readAsText"
31
+ >{{$t('openatccomponents.common.confirm')}}</el-button>
32
+ </span>
33
+ </el-dialog>
34
+ </template>
35
+ <script>
36
+ import Svgmethods from './utils/loadutils.js'
37
+ export default {
38
+ name: 'import-dialog',
39
+ data () {
40
+ return {
41
+ dialogVisible: false
42
+ }
43
+ },
44
+ methods: {
45
+ clickOpen () {
46
+ this.dialogVisible = true
47
+ },
48
+ // 底图加载
49
+ readAsText () {
50
+ this.svgmethods = new Svgmethods()
51
+ this.svgmethods.clickOpen(this.loadSvgString, this.getMapWidthHeighgt)
52
+ this.dialogVisible = false
53
+ },
54
+ loadSvgString (type, content) {
55
+ if (type === 'error') {
56
+ if (content === 'size') {
57
+ this.$message.error(this.$t('openatccomponents.channelizationmap.importsizeerror'))
58
+ }
59
+ if (content === 'type') {
60
+ this.$message.error(this.$t('openatccomponents.channelizationmap.importtypeerror'))
61
+ }
62
+ } else {
63
+ this.$emit('loadSvgString', type, content)
64
+ }
65
+ },
66
+ getMapWidthHeighgt (type, size) {
67
+ this.$emit('loadMapSize', type, size)
68
+ }
69
+ },
70
+ mounted () {}
71
+ }
72
+ </script>
73
+ <style scoped>
74
+ </style>