openatc-components 0.5.64 → 0.5.66

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 (328) 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/CustomRoadsSvg.vue +46 -46
  61. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +447 -447
  62. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +341 -341
  63. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +497 -497
  64. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +353 -353
  65. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +359 -359
  66. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +443 -443
  67. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1190 -1190
  68. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +640 -640
  69. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +497 -497
  70. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +486 -486
  71. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +490 -490
  72. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +575 -575
  73. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/refreshSvg.vue +63 -63
  74. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/busMapSvg.vue +50 -50
  75. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/eastBusSvg.vue +167 -167
  76. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/northBusSvg.vue +168 -168
  77. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/southBusSvg.vue +168 -168
  78. package/package/kisscomps/components/IntersectionMap/crossDirection/busIcon/westBusSvg.vue +169 -169
  79. package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +122 -122
  80. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.json +196 -196
  81. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.left.json +196 -196
  82. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
  83. package/package/kisscomps/components/KanBan/kanban.vue +231 -231
  84. package/package/kisscomps/components/MessageBox/index.vue +96 -96
  85. package/package/kisscomps/components/OverviewComponent/index.vue +1 -0
  86. package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +329 -329
  87. package/package/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
  88. package/package/kisscomps/components/PhaseDirectionSelect/PhaseDirectionSelect.vue +126 -126
  89. package/package/kisscomps/components/PhaseDirectionText/PhaseDirectionText.vue +106 -106
  90. package/package/kisscomps/components/PhaseLegend/PhaseLegend.vue +286 -286
  91. package/package/kisscomps/components/PhaseMarker/index.js +6 -6
  92. package/package/kisscomps/components/PhaseMarker/phasemarker.vue +215 -215
  93. package/package/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -121
  94. package/package/kisscomps/components/PhaseMarker/svg/phase.vue +60 -60
  95. package/package/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -62
  96. package/package/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -62
  97. package/package/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -117
  98. package/package/kisscomps/components/PhasePedSelect/index.vue +206 -206
  99. package/package/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +365 -365
  100. package/package/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +92 -92
  101. package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +214 -214
  102. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +235 -235
  103. package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +235 -235
  104. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +131 -131
  105. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/othersIcon.vue +151 -151
  106. package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +215 -215
  107. package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
  108. package/package/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
  109. package/package/kisscomps/components/StageOptimize/StageOptimize.vue +367 -367
  110. package/package/kisscomps/components/StageOptimize/index.js +2 -2
  111. package/package/kisscomps/components/StageStatus/StageStatus.vue +341 -341
  112. package/package/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
  113. package/package/kisscomps/components/XiaoKanban/DirSelector.vue +356 -356
  114. package/package/kisscomps/components/XiaoKanban/index.vue +122 -122
  115. package/package/kisscomps/components/patternConfig/pattern/planChart/model/coordinationModel.js +665 -665
  116. package/package/kisscomps/components/patternConfig/planMenu.vue +329 -329
  117. package/package/kissui.min.js +1 -1
  118. package/package.json +1 -1
  119. package/src/EdgeMgr/EdgeModelBase.js +16 -16
  120. package/src/EdgeMgr/controller/crossDiagramMgr.js +125 -125
  121. package/src/api/authapi.js +31 -31
  122. package/src/api/config.js +21 -21
  123. package/src/api/device.js +135 -135
  124. package/src/api/fault.js +66 -66
  125. package/src/api/index.js +24 -24
  126. package/src/api/login.js +46 -46
  127. package/src/api/optimize.js +72 -72
  128. package/src/api/passwdAssest.js +101 -101
  129. package/src/api/permission.js +33 -33
  130. package/src/api/route.js +171 -171
  131. package/src/assets/font/LICENSE.txt +202 -202
  132. package/src/assets/font/font.css +6 -6
  133. package/src/i18n/index.js +26 -26
  134. package/src/icons/index.js +20 -20
  135. package/src/icons/svg/azimuthlocking.svg +26 -26
  136. package/src/icons/svg/bendi.svg +110 -110
  137. package/src/icons/svg/bujin.svg +36 -36
  138. package/src/icons/svg/connectBlue.svg +7 -7
  139. package/src/icons/svg/currentvolume.svg +0 -0
  140. package/src/icons/svg/custom-BRTlane.svg +40 -40
  141. package/src/icons/svg/custom-buslane.svg +40 -40
  142. package/src/icons/svg/custom-detector.svg +12 -12
  143. package/src/icons/svg/custom-east-bottom.svg +32 -32
  144. package/src/icons/svg/custom-east-top.svg +32 -32
  145. package/src/icons/svg/custom-ewped.svg +35 -35
  146. package/src/icons/svg/custom-nonmotorizedlane.svg +40 -40
  147. package/src/icons/svg/custom-north-left.svg +32 -32
  148. package/src/icons/svg/custom-north-right.svg +32 -32
  149. package/src/icons/svg/custom-peddetector.svg +17 -17
  150. package/src/icons/svg/custom-snped.svg +35 -35
  151. package/src/icons/svg/custom-south-left.svg +32 -32
  152. package/src/icons/svg/custom-south-right.svg +32 -32
  153. package/src/icons/svg/custom-tramlane.svg +40 -40
  154. package/src/icons/svg/custom-vehiclebranch.svg +40 -40
  155. package/src/icons/svg/custom-vehiclemainroad.svg +41 -41
  156. package/src/icons/svg/custom-west-bottom.svg +32 -32
  157. package/src/icons/svg/custom-west-top.svg +32 -32
  158. package/src/icons/svg/custom-xlped.svg +14 -14
  159. package/src/icons/svg/custom-xrped.svg +14 -14
  160. package/src/icons/svg/cutRed.svg +7 -7
  161. package/src/icons/svg/cycle.svg +0 -0
  162. package/src/icons/svg/dingzhouqi.svg +34 -34
  163. package/src/icons/svg/ganyingkongzhi.svg +30 -30
  164. package/src/icons/svg/guandeng.svg +81 -81
  165. package/src/icons/svg/huangshan.svg +71 -71
  166. package/src/icons/svg/maincontrol.svg +0 -0
  167. package/src/icons/svg/manualcontrolbackground.svg +51 -51
  168. package/src/icons/svg/manualcontrolbackground1.svg +62 -62
  169. package/src/icons/svg/manualcontrolbackgrounden.svg +62 -62
  170. package/src/icons/svg/model.svg +0 -0
  171. package/src/icons/svg/phasediff.svg +0 -0
  172. package/src/icons/svg/prioritycontrol.svg +21 -21
  173. package/src/icons/svg/quanhong.svg +86 -86
  174. package/src/icons/svg/shanghe.svg +11 -11
  175. package/src/icons/svg/shoudong.svg +103 -103
  176. package/src/icons/svg/tentativeplan.svg +28 -28
  177. package/src/icons/svg/time.svg +0 -0
  178. package/src/icons/svg/wuxianlan.svg +46 -46
  179. package/src/icons/svg/xiala.svg +11 -11
  180. package/src/icons/svg/xingrenguojie.svg +33 -33
  181. package/src/icons/svg/xitong.svg +89 -89
  182. package/src/icons/svg/youxian.svg +41 -41
  183. package/src/icons/svg/zizhukongzhi.svg +43 -43
  184. package/src/kisscomps/components/Channelization/Channelization.vue +585 -585
  185. package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +360 -360
  186. package/src/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +518 -518
  187. package/src/kisscomps/components/CommonKanban/CommonKanban.vue +132 -132
  188. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-east-bottom.vue +41 -41
  189. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-east-top.vue +60 -60
  190. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-ewped.vue +105 -105
  191. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-north-left.vue +60 -60
  192. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-north-right.vue +60 -60
  193. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-snped.vue +105 -105
  194. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-south-left.vue +60 -60
  195. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-south-right.vue +60 -60
  196. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-west-bottom.vue +60 -60
  197. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-west-top.vue +60 -60
  198. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-xlped.vue +30 -30
  199. package/src/kisscomps/components/DirectionListConfiguration/svg/ped-xrped.vue +30 -30
  200. package/src/kisscomps/components/DirectionListConfiguration/svg/pedSvg.vue +78 -78
  201. package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +181 -181
  202. package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
  203. package/src/kisscomps/components/DrawChannelization/drawsvg/detectorAssociatedComponent.vue +152 -152
  204. package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/TextBox.vue +91 -91
  205. package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/editText.vue +108 -108
  206. package/src/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +51 -51
  207. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +236 -236
  208. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +247 -247
  209. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +210 -210
  210. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +72 -72
  211. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +368 -368
  212. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +230 -230
  213. package/src/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +74 -74
  214. package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +144 -144
  215. package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +707 -707
  216. package/src/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +172 -172
  217. package/src/kisscomps/components/DrawChannelization/drawsvg/table.vue +99 -99
  218. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +87 -87
  219. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/phaseDataModel.js +32 -32
  220. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/phasePos.json +20 -20
  221. package/src/kisscomps/components/DrawChannelization/phaseDataMgr.js +278 -278
  222. package/src/kisscomps/components/ExpendConfig/ExpendConfig.vue +118 -118
  223. package/src/kisscomps/components/FaultDetailModal/FaultDetailModal.vue +178 -178
  224. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +46 -46
  225. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionEWSvg.vue +447 -447
  226. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/PedSectionSNSvg.vue +341 -341
  227. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampEastSvg.vue +497 -497
  228. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampNorthSvg.vue +353 -353
  229. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampSouthSvg.vue +359 -359
  230. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/RampWestSvg.vue +443 -443
  231. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkSvg.vue +1190 -1190
  232. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LCrossRoadsSvg.vue +640 -640
  233. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeEastRoadsSvg.vue +497 -497
  234. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeNorthRoadsSvg.vue +486 -486
  235. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeSouthRoadsSvg.vue +490 -490
  236. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/leftroad/LTShapeWestRoadsSvg.vue +575 -575
  237. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/refreshSvg.vue +63 -63
  238. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/busMapSvg.vue +50 -50
  239. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/eastBusSvg.vue +167 -167
  240. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/northBusSvg.vue +168 -168
  241. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/southBusSvg.vue +168 -168
  242. package/src/kisscomps/components/IntersectionMap/crossDirection/busIcon/westBusSvg.vue +169 -169
  243. package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/rampPhaseIconSvg.vue +122 -122
  244. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.json +196 -196
  245. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/busPos.left.json +196 -196
  246. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/rampPos.json +52 -52
  247. package/src/kisscomps/components/KanBan/kanban.vue +231 -231
  248. package/src/kisscomps/components/MessageBox/index.vue +96 -96
  249. package/src/kisscomps/components/OverviewComponent/index.vue +1 -0
  250. package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +329 -329
  251. package/src/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +423 -423
  252. package/src/kisscomps/components/PhaseDirectionSelect/PhaseDirectionSelect.vue +126 -126
  253. package/src/kisscomps/components/PhaseDirectionText/PhaseDirectionText.vue +106 -106
  254. package/src/kisscomps/components/PhaseLegend/PhaseLegend.vue +286 -286
  255. package/src/kisscomps/components/PhaseMarker/index.js +6 -6
  256. package/src/kisscomps/components/PhaseMarker/phasemarker.vue +215 -215
  257. package/src/kisscomps/components/PhaseMarker/svg/patternSvg.vue +121 -121
  258. package/src/kisscomps/components/PhaseMarker/svg/phase.vue +60 -60
  259. package/src/kisscomps/components/PhaseMarker/svg/phaseCount.vue +62 -62
  260. package/src/kisscomps/components/PhaseMarker/svg/phaseCountCycle.vue +62 -62
  261. package/src/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +117 -117
  262. package/src/kisscomps/components/PhasePedSelect/index.vue +206 -206
  263. package/src/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +365 -365
  264. package/src/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +92 -92
  265. package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +214 -214
  266. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +235 -235
  267. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +235 -235
  268. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +131 -131
  269. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/othersIcon.vue +151 -151
  270. package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +215 -215
  271. package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -163
  272. package/src/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +95 -95
  273. package/src/kisscomps/components/StageOptimize/StageOptimize.vue +367 -367
  274. package/src/kisscomps/components/StageOptimize/index.js +2 -2
  275. package/src/kisscomps/components/StageStatus/StageStatus.vue +341 -341
  276. package/src/kisscomps/components/SvgIcon/SvgIcon.vue +53 -53
  277. package/src/kisscomps/components/XiaoKanban/DirSelector.vue +356 -356
  278. package/src/kisscomps/components/XiaoKanban/index.vue +122 -122
  279. package/src/kisscomps/components/patternConfig/pattern/planChart/model/coordinationModel.js +665 -665
  280. package/src/kisscomps/components/patternConfig/planMenu.vue +329 -329
  281. package/src/lib/publicjs/ArryListUtil.js +38 -38
  282. package/src/lib/publicjs/HttpurlMgr.js +45 -45
  283. package/src/lib/publicjs/KissApi.js +158 -158
  284. package/src/lib/publicjs/KissWSSub/Heartcheck.js +128 -128
  285. package/src/lib/publicjs/KissWSSub/KissWsSub.js +91 -91
  286. package/src/lib/publicjs/KissWSSub/KissWsSubByType.js +152 -152
  287. package/src/lib/publicjs/KissWSSub/SimuWsSubByType.js +44 -44
  288. package/src/lib/publicjs/KissWSSub/Sub.js +51 -51
  289. package/src/lib/publicjs/KissWSSub/SubChannel.js +119 -119
  290. package/src/lib/publicjs/basecomponents.js +65 -65
  291. package/src/lib/publicjs/localStorage.js +112 -112
  292. package/src/lib/publicjs/objdeepcopy.js +32 -32
  293. package/src/lib/publicjs/pageScroll.js +30 -30
  294. package/src/lib/publicjs/passwdAssest.js +101 -101
  295. package/src/lib/publicjs/styleclassfactory.js +32 -32
  296. package/src/store/index.js +26 -26
  297. package/src/store/modules/globalParam.js +67 -67
  298. package/src/utils/conflictList.js +87 -87
  299. package/src/utils/dateFormat.js +41 -41
  300. package/src/utils/index.js +69 -69
  301. package/src/utils/phaseList.js +203 -203
  302. package/src/utils/validate.js +43 -43
  303. package/src/views/home.1.vue +479 -479
  304. package/src/views/home.vue +93 -93
  305. package/static/styles/channelizatioon.scss +433 -433
  306. package/static/styles/common.scss +30 -30
  307. package/static/styles/commonkanban.scss +168 -168
  308. package/static/styles/dark/index.scss +2 -2
  309. package/static/styles/dark/theme/element-dark.scss +44 -44
  310. package/static/styles/index.scss +84 -84
  311. package/static/styles/intersection.scss +1 -0
  312. package/static/styles/light/index.scss +2 -2
  313. package/static/styles/light/theme/element-light.scss +44 -44
  314. package/static/styles/patternConfig.scss +56 -56
  315. package/static/styles/phasePedSelect.scss +71 -71
  316. package/static/styles/stages.scss +57 -57
  317. package/static/styles/xiaokanban.scss +61 -61
  318. package/static/token.json +2 -2
  319. package/test/e2e/custom-assertions/elementCount.js +27 -27
  320. package/test/e2e/nightwatch.conf.js +46 -46
  321. package/test/e2e/runner.js +48 -48
  322. package/test/e2e/specs/test.js +19 -19
  323. package/test/unit/.eslintrc +7 -7
  324. package/test/unit/jest.conf.js +30 -30
  325. package/test/unit/setup.js +3 -3
  326. package/test/unit/specs/HelloWorld.spec.js +11 -11
  327. package/package/kissui.js +0 -216608
  328. package/pnpm-lock.yaml +0 -16362
@@ -1,119 +1,119 @@
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
- /**
13
- * @Description: 该类实现一个基本的sub模块,该模块可以支持订阅频道和取消频道
14
- * @Author: chengcheng
15
- * @Date: Create in 10:26 2018/12/21
16
- * @Modified By:
17
- */
18
- import Channel from 'chnl'
19
- import {
20
- kdiff,
21
- kconcat
22
- } from '../ArryListUtil'
23
- export default class SubChannel {
24
- /**
25
- *
26
- * @param {in} name sub标识
27
- */
28
- constructor (name, ws) {
29
- this._name = name
30
- this._channel = new Channel()
31
- this.setMessageListener()
32
- this._ws = ws
33
- this._curCareWholist = []
34
- }
35
- /**
36
- * 开始订阅,需要指定订阅哪些对象的该类型数据
37
- * @param {*} wholist
38
- */
39
- start (wholist) {
40
- // let difflist = kdiff(wholist, this._curCareWholist)
41
- this._curCareWholist = kconcat(this._curCareWholist, wholist)
42
- // if (difflist.length === 0) return
43
- this._ws.sendPacked({
44
- 'messagetype': this._name,
45
- param: wholist,
46
- subscribe: 'up'
47
- })
48
- }
49
- /**
50
- * 停止订阅,需要指定取消哪些对象的该类型数据的订阅
51
- * @param {*} wholist
52
- */
53
- stop (wholist) {
54
- this._curCareWholist = kdiff(this._curCareWholist, wholist)
55
- this._ws.sendPacked({
56
- 'messagetype': this._name,
57
- param: wholist,
58
- subscribe: 'down'
59
- })
60
- }
61
- /**
62
- * 处理来的消息 分发给所有关心者
63
- * @param {*} message
64
- */
65
- handleMessage (message) {
66
- this._channel.dispatchAsync(message)
67
- }
68
- /**
69
- * 设置消息监听,一旦发现是自己的消息就处理自己的消息
70
- */
71
- setMessageListener () {
72
- this._emitter = new Channel.EventEmitter()
73
- // listen 'myEvent'
74
- this._emitter.on(name, (message) => {
75
- this.handleMessage(message)
76
- })
77
- }
78
- /**
79
- * 发射处理消息的消息让自己处理
80
- * @param {*} data 处理的数据
81
- */
82
- emitHandleSignal (data) {
83
- this._emitter.emit(name, data)
84
- }
85
- /**
86
- * 添加回调
87
- * @param {*} call 回调函数
88
- * @param {*} context 上下文
89
- */
90
- addCare (call, context) {
91
- this._channel.addListener(call, context)
92
- }
93
- /**
94
- * 添加一次响应的回调,只会关心一次
95
- * @param {*} call 回调函数
96
- * @param {*} context 上下文
97
- */
98
- addOnceCare (call, context) {
99
- this._channel.addOnceListener(call, context)
100
- }
101
- /**
102
- * 删除已经存在的回调
103
- * @param {*} call 回调函数
104
- * @param {*} context 上下文
105
- */
106
- removeCare (call, context) {
107
- if (this._channel.hasListener(call, context)) {
108
- this._channel.removeListener(call, context)
109
- }
110
- }
111
- /**
112
- * 删除所有的关心该消息的回调
113
- */
114
- removeAllCares () {
115
- if (this._channel.hasListeners()) {
116
- this._channel.removeAllListeners()
117
- }
118
- }
119
- }
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
+ /**
13
+ * @Description: 该类实现一个基本的sub模块,该模块可以支持订阅频道和取消频道
14
+ * @Author: chengcheng
15
+ * @Date: Create in 10:26 2018/12/21
16
+ * @Modified By:
17
+ */
18
+ import Channel from 'chnl'
19
+ import {
20
+ kdiff,
21
+ kconcat
22
+ } from '../ArryListUtil'
23
+ export default class SubChannel {
24
+ /**
25
+ *
26
+ * @param {in} name sub标识
27
+ */
28
+ constructor (name, ws) {
29
+ this._name = name
30
+ this._channel = new Channel()
31
+ this.setMessageListener()
32
+ this._ws = ws
33
+ this._curCareWholist = []
34
+ }
35
+ /**
36
+ * 开始订阅,需要指定订阅哪些对象的该类型数据
37
+ * @param {*} wholist
38
+ */
39
+ start (wholist) {
40
+ // let difflist = kdiff(wholist, this._curCareWholist)
41
+ this._curCareWholist = kconcat(this._curCareWholist, wholist)
42
+ // if (difflist.length === 0) return
43
+ this._ws.sendPacked({
44
+ 'messagetype': this._name,
45
+ param: wholist,
46
+ subscribe: 'up'
47
+ })
48
+ }
49
+ /**
50
+ * 停止订阅,需要指定取消哪些对象的该类型数据的订阅
51
+ * @param {*} wholist
52
+ */
53
+ stop (wholist) {
54
+ this._curCareWholist = kdiff(this._curCareWholist, wholist)
55
+ this._ws.sendPacked({
56
+ 'messagetype': this._name,
57
+ param: wholist,
58
+ subscribe: 'down'
59
+ })
60
+ }
61
+ /**
62
+ * 处理来的消息 分发给所有关心者
63
+ * @param {*} message
64
+ */
65
+ handleMessage (message) {
66
+ this._channel.dispatchAsync(message)
67
+ }
68
+ /**
69
+ * 设置消息监听,一旦发现是自己的消息就处理自己的消息
70
+ */
71
+ setMessageListener () {
72
+ this._emitter = new Channel.EventEmitter()
73
+ // listen 'myEvent'
74
+ this._emitter.on(name, (message) => {
75
+ this.handleMessage(message)
76
+ })
77
+ }
78
+ /**
79
+ * 发射处理消息的消息让自己处理
80
+ * @param {*} data 处理的数据
81
+ */
82
+ emitHandleSignal (data) {
83
+ this._emitter.emit(name, data)
84
+ }
85
+ /**
86
+ * 添加回调
87
+ * @param {*} call 回调函数
88
+ * @param {*} context 上下文
89
+ */
90
+ addCare (call, context) {
91
+ this._channel.addListener(call, context)
92
+ }
93
+ /**
94
+ * 添加一次响应的回调,只会关心一次
95
+ * @param {*} call 回调函数
96
+ * @param {*} context 上下文
97
+ */
98
+ addOnceCare (call, context) {
99
+ this._channel.addOnceListener(call, context)
100
+ }
101
+ /**
102
+ * 删除已经存在的回调
103
+ * @param {*} call 回调函数
104
+ * @param {*} context 上下文
105
+ */
106
+ removeCare (call, context) {
107
+ if (this._channel.hasListener(call, context)) {
108
+ this._channel.removeListener(call, context)
109
+ }
110
+ }
111
+ /**
112
+ * 删除所有的关心该消息的回调
113
+ */
114
+ removeAllCares () {
115
+ if (this._channel.hasListeners()) {
116
+ this._channel.removeAllListeners()
117
+ }
118
+ }
119
+ }
@@ -1,65 +1,65 @@
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
- /*
13
- @brief 队列容器
14
- @date 2018-08-16
15
- */
16
- export class Queue {
17
- constructor () {
18
- this.items = []
19
- }
20
-
21
- enqueue () {
22
- let len = arguments.length
23
- if (len === 0) {
24
- return
25
- }
26
- for (var i = 0; i < len; i++) {
27
- this.items.push(arguments[i])
28
- }
29
- this.mutex = false
30
- }
31
-
32
- dequeue () {
33
- let result = this.items.shift()
34
- this.mutex = false
35
- // return typeof result !== 'undefined' ? result : undefined
36
- return result
37
- }
38
-
39
- front () {
40
- return this.items[this.items.length - 1]
41
- }
42
-
43
- isEmpty () {
44
- return this.items.length === 0
45
- }
46
-
47
- size () {
48
- return this.items.length
49
- }
50
-
51
- clear () {
52
- this.items = []
53
- this.mutex = false
54
- }
55
-
56
- show () {
57
- return this.items
58
- }
59
- }
60
-
61
- export const mapcopy = (map1, map2) => {
62
- for (let [key, value] of map1) {
63
- map2.set(key, value)
64
- }
65
- }
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
+ /*
13
+ @brief 队列容器
14
+ @date 2018-08-16
15
+ */
16
+ export class Queue {
17
+ constructor () {
18
+ this.items = []
19
+ }
20
+
21
+ enqueue () {
22
+ let len = arguments.length
23
+ if (len === 0) {
24
+ return
25
+ }
26
+ for (var i = 0; i < len; i++) {
27
+ this.items.push(arguments[i])
28
+ }
29
+ this.mutex = false
30
+ }
31
+
32
+ dequeue () {
33
+ let result = this.items.shift()
34
+ this.mutex = false
35
+ // return typeof result !== 'undefined' ? result : undefined
36
+ return result
37
+ }
38
+
39
+ front () {
40
+ return this.items[this.items.length - 1]
41
+ }
42
+
43
+ isEmpty () {
44
+ return this.items.length === 0
45
+ }
46
+
47
+ size () {
48
+ return this.items.length
49
+ }
50
+
51
+ clear () {
52
+ this.items = []
53
+ this.mutex = false
54
+ }
55
+
56
+ show () {
57
+ return this.items
58
+ }
59
+ }
60
+
61
+ export const mapcopy = (map1, map2) => {
62
+ for (let [key, value] of map1) {
63
+ map2.set(key, value)
64
+ }
65
+ }
@@ -1,112 +1,112 @@
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
- /*
13
- @brief 浏览器缓存
14
- @auth caijiadong
15
- @date 2018-08-13
16
- */
17
- import Cookies from 'js-cookie'
18
- import localStorage from 'localStorage'
19
- export const isObject = val => {
20
- return val !== null && typeof val === 'object'
21
- }
22
-
23
- export const setStorage = (key, val, type = 'localStorage') => {
24
- if (type === 'localStorage') {
25
- localStorage.setItem(key, val)
26
- } else if (type === 'sessionStorage') {
27
- Cookies.set(key, val)
28
- } else {
29
- if (isObject(val)) window[type].setItem(key, JSON.stringify(val))
30
- else window[type].setItem(key, val)
31
- }
32
- }
33
-
34
- const listToString = list => {
35
- return JSON.stringify(list)
36
- }
37
-
38
- const StringToList = string => {
39
- return JSON.parse(string)
40
- }
41
-
42
- export const setListStorage = (key, list, type = 'localStorage') => {
43
- let data = listToString(list)
44
-
45
- setStorage(key, data, type)
46
- }
47
-
48
- export const getListStorage = (key, type = 'localStorage') => {
49
- let data = getStorage(key, type)
50
-
51
- return StringToList(data)
52
- }
53
-
54
- export const getStorage = (key, type = 'localStorage') => {
55
- if (type === 'localStorage') {
56
- return localStorage.getItem(key)
57
- } else if (type === 'sessionStorage') {
58
- return Cookies.get(key)
59
- } else {
60
- let val = window[type].getItem(key)
61
- try {
62
- return JSON.parse(val)
63
- } catch (e) {
64
- return val
65
- }
66
- }
67
- }
68
-
69
- export const setSessionStore = (key, val) => {
70
- setStorage(key, val, 'sessionStorage')
71
- }
72
-
73
- export const getSessionStore = key => {
74
- return getStorage(key, 'sessionStorage')
75
- }
76
-
77
- export const getSessionObj = () => {
78
- return Cookies
79
- }
80
-
81
- export class TempCache {
82
- constructor () {
83
- this.cacheMap = new Map()
84
- }
85
-
86
- init () {
87
- this.cacheMap.clear()
88
- }
89
-
90
- setData (key, value) {
91
- this.cacheMap.set(key, value)
92
- }
93
-
94
- getData (key) {
95
- return this.cacheMap.get(key)
96
- }
97
-
98
- hasData (key) {
99
- return this.cacheMap.has(key)
100
- }
101
- }
102
- export const tempCache = new TempCache()
103
-
104
- export default {
105
- isObject,
106
- setStorage,
107
- getStorage,
108
- setSessionStore,
109
- getSessionStore,
110
- tempCache,
111
- getSessionObj
112
- }
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
+ /*
13
+ @brief 浏览器缓存
14
+ @auth caijiadong
15
+ @date 2018-08-13
16
+ */
17
+ import Cookies from 'js-cookie'
18
+ import localStorage from 'localStorage'
19
+ export const isObject = val => {
20
+ return val !== null && typeof val === 'object'
21
+ }
22
+
23
+ export const setStorage = (key, val, type = 'localStorage') => {
24
+ if (type === 'localStorage') {
25
+ localStorage.setItem(key, val)
26
+ } else if (type === 'sessionStorage') {
27
+ Cookies.set(key, val)
28
+ } else {
29
+ if (isObject(val)) window[type].setItem(key, JSON.stringify(val))
30
+ else window[type].setItem(key, val)
31
+ }
32
+ }
33
+
34
+ const listToString = list => {
35
+ return JSON.stringify(list)
36
+ }
37
+
38
+ const StringToList = string => {
39
+ return JSON.parse(string)
40
+ }
41
+
42
+ export const setListStorage = (key, list, type = 'localStorage') => {
43
+ let data = listToString(list)
44
+
45
+ setStorage(key, data, type)
46
+ }
47
+
48
+ export const getListStorage = (key, type = 'localStorage') => {
49
+ let data = getStorage(key, type)
50
+
51
+ return StringToList(data)
52
+ }
53
+
54
+ export const getStorage = (key, type = 'localStorage') => {
55
+ if (type === 'localStorage') {
56
+ return localStorage.getItem(key)
57
+ } else if (type === 'sessionStorage') {
58
+ return Cookies.get(key)
59
+ } else {
60
+ let val = window[type].getItem(key)
61
+ try {
62
+ return JSON.parse(val)
63
+ } catch (e) {
64
+ return val
65
+ }
66
+ }
67
+ }
68
+
69
+ export const setSessionStore = (key, val) => {
70
+ setStorage(key, val, 'sessionStorage')
71
+ }
72
+
73
+ export const getSessionStore = key => {
74
+ return getStorage(key, 'sessionStorage')
75
+ }
76
+
77
+ export const getSessionObj = () => {
78
+ return Cookies
79
+ }
80
+
81
+ export class TempCache {
82
+ constructor () {
83
+ this.cacheMap = new Map()
84
+ }
85
+
86
+ init () {
87
+ this.cacheMap.clear()
88
+ }
89
+
90
+ setData (key, value) {
91
+ this.cacheMap.set(key, value)
92
+ }
93
+
94
+ getData (key) {
95
+ return this.cacheMap.get(key)
96
+ }
97
+
98
+ hasData (key) {
99
+ return this.cacheMap.has(key)
100
+ }
101
+ }
102
+ export const tempCache = new TempCache()
103
+
104
+ export default {
105
+ isObject,
106
+ setStorage,
107
+ getStorage,
108
+ setSessionStore,
109
+ getSessionStore,
110
+ tempCache,
111
+ getSessionObj
112
+ }
@@ -1,32 +1,32 @@
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
- /**
13
- * 实现对象的深copy
14
- * @param {in} obj
15
- */
16
- export default function DeepClone (obj) {
17
- // 判断拷贝的要进行深拷贝的是数组还是对象,是数组的话进行数组拷贝,对象的话进行对象拷贝
18
- var objClone = Array.isArray(obj) ? [] : {}
19
- // 进行深拷贝的不能为空,并且是对象或者是
20
- if (obj && typeof obj === 'object') {
21
- for (let key in obj) {
22
- if (obj.hasOwnProperty(key)) {
23
- if (obj[key] && typeof obj[key] === 'object') {
24
- objClone[key] = DeepClone(obj[key])
25
- } else {
26
- objClone[key] = obj[key]
27
- }
28
- }
29
- }
30
- }
31
- return objClone
32
- }
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
+ /**
13
+ * 实现对象的深copy
14
+ * @param {in} obj
15
+ */
16
+ export default function DeepClone (obj) {
17
+ // 判断拷贝的要进行深拷贝的是数组还是对象,是数组的话进行数组拷贝,对象的话进行对象拷贝
18
+ var objClone = Array.isArray(obj) ? [] : {}
19
+ // 进行深拷贝的不能为空,并且是对象或者是
20
+ if (obj && typeof obj === 'object') {
21
+ for (let key in obj) {
22
+ if (obj.hasOwnProperty(key)) {
23
+ if (obj[key] && typeof obj[key] === 'object') {
24
+ objClone[key] = DeepClone(obj[key])
25
+ } else {
26
+ objClone[key] = obj[key]
27
+ }
28
+ }
29
+ }
30
+ }
31
+ return objClone
32
+ }