@titaui/pc 1.11.0 → 1.11.1

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 (297) hide show
  1. package/es/components/cascader/time.js +31 -0
  2. package/es/components/common-share/request-apis.js +56 -0
  3. package/es/components/confidence/heart.js +66 -0
  4. package/es/components/create-okr-modal/fields/index.js +17 -0
  5. package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +154 -0
  6. package/es/components/date-picker/BodyItem.js +121 -0
  7. package/es/components/date-picker/CalendarBody.js +157 -0
  8. package/es/components/date-picker/CalendarHeader.js +187 -0
  9. package/es/components/date-picker/index.js +157 -0
  10. package/es/components/date-range-picker/index.js +210 -0
  11. package/es/components/dialog/index.js +119 -0
  12. package/es/components/dialog-confirm/index.js +154 -0
  13. package/es/components/drop-selector/icon-item.js +40 -0
  14. package/es/components/drop-selector/index.js +179 -0
  15. package/es/components/dynamic/dynamic-like-ranking/mock.js +84 -0
  16. package/es/components/dynamic/dynamic-liking/mock.js +83 -0
  17. package/es/components/dynamic/dynamic-topping/request-api.js +36 -0
  18. package/es/components/e-priority/index.js +88 -0
  19. package/es/components/e-status-dropdown/index.js +94 -0
  20. package/es/components/grid-layout/commen-components/index.js +73 -0
  21. package/es/components/grid-layout/image/could.js +8 -0
  22. package/es/components/grid-layout/image/lv.js +8 -0
  23. package/es/components/grid-layout/image/tita-mask.js +8 -0
  24. package/es/components/help-card/request-api.js +35 -0
  25. package/es/components/icon-button-list/index.js +65 -0
  26. package/es/components/menus/context.js +18 -0
  27. package/es/components/menus/precls.js +8 -0
  28. package/es/components/okr-detail/auth.js +197 -0
  29. package/es/components/okr-detail/components/ao-nice/index.js +245 -0
  30. package/es/components/okr-detail/components/block-line/index.js +20 -0
  31. package/es/components/okr-detail/components/header/index.js +211 -0
  32. package/es/components/okr-detail/components/icon-text/index.js +116 -0
  33. package/es/components/okr-detail/components/okr-tree/index.js +48 -0
  34. package/es/components/okr-detail/components/okr-tree/precls.js +8 -0
  35. package/es/components/okr-detail/components/okr-tree/tree-node/default-node.js +22 -0
  36. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +88 -0
  37. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +200 -0
  38. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +98 -0
  39. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +412 -0
  40. package/es/components/okr-detail/components/okr-tree/tree-node/get-process-color.js +62 -0
  41. package/es/components/okr-detail/components/okr-tree/tree-node/index.js +90 -0
  42. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +46 -0
  43. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +421 -0
  44. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +54 -0
  45. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +62 -0
  46. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +94 -0
  47. package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +273 -0
  48. package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +207 -0
  49. package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +236 -0
  50. package/es/components/okr-detail/components/padding-layout.js +22 -0
  51. package/es/components/okr-detail/components/tab-panel-content/index.js +27 -0
  52. package/es/components/okr-detail/context.js +30 -0
  53. package/es/components/okr-detail/e-list/index.js +243 -0
  54. package/es/components/okr-detail/e-list/precls.js +8 -0
  55. package/es/components/okr-detail/e-list/search-form/fields/e-order.js +172 -0
  56. package/es/components/okr-detail/e-list/search-form/fields/e-status.js +99 -0
  57. package/es/components/okr-detail/e-list/search-form/fields/e-user.js +49 -0
  58. package/es/components/okr-detail/e-list/search-form/index.js +143 -0
  59. package/es/components/okr-detail/error-page/index.js +33 -0
  60. package/es/components/okr-detail/index.js +428 -0
  61. package/es/components/okr-detail/loading/index.js +28 -0
  62. package/es/components/okr-detail/okr-list/add-parent-okr.js +37 -0
  63. package/es/components/okr-detail/okr-list/create-kr-item/heart.js +38 -0
  64. package/es/components/okr-detail/okr-list/drag-order-kr.js +62 -0
  65. package/es/components/okr-detail/okr-list/empty/index.js +48 -0
  66. package/es/components/okr-detail/okr-list/index.js +524 -0
  67. package/es/components/okr-detail/okr-list/warp-parent-okr.js +21 -0
  68. package/es/components/okr-detail/store.js +1 -0
  69. package/es/components/okr-flow/child-node/fields/creator.js +175 -0
  70. package/es/components/okr-flow/child-node/fields/okrClassify.js +31 -0
  71. package/es/components/okr-flow/child-node/fields/okrType.js +21 -0
  72. package/es/components/okr-flow/child-node/helper.js +35 -0
  73. package/es/components/okr-flow/child-node/index.js +110 -0
  74. package/es/components/okr-flow/child-node/kr-node.js +75 -0
  75. package/es/components/okr-flow/child-node/work-node.js +242 -0
  76. package/es/components/okr-flow/context.js +14 -0
  77. package/es/components/okr-flow/empty/index.js +29 -0
  78. package/es/components/okr-flow/export-modules/okr-search-panel/index.js +394 -0
  79. package/es/components/okr-flow/index.js +24 -0
  80. package/es/components/okr-flow/mini-map/index.js +112 -0
  81. package/es/components/okr-flow/mini-map/map.js +145 -0
  82. package/es/components/okr-flow/mini-map/mini-node.js +57 -0
  83. package/es/components/okr-flow/mini-map/utils.js +79 -0
  84. package/es/components/okr-flow/okr-map/index.js +192 -0
  85. package/es/components/okr-flow/open-data/index.js +115 -0
  86. package/es/components/okr-flow/precls.js +8 -0
  87. package/es/components/okr-flow/request-apis.js +118 -0
  88. package/es/components/okr-flow/root-node/index.js +229 -0
  89. package/es/components/okr-flow/utils/config.js +18 -0
  90. package/es/components/okr-flow/utils/helper.js +36 -0
  91. package/es/components/okr-flow/utils/index.js +66 -0
  92. package/es/components/okr-flow/utils/tree-handler.js +323 -0
  93. package/es/components/okr-progress-modal/helper.js +156 -0
  94. package/es/components/okr-progress-modal/request-apis.js +34 -0
  95. package/es/components/okr-share/request-apis.js +56 -0
  96. package/es/components/okrcase-library/server/network.js +407 -0
  97. package/es/components/pagination/locale/en_US.js +22 -0
  98. package/es/components/pagination/locale/zh_CN.js +22 -0
  99. package/es/components/point-demo/drop-down-box/index.js +159 -0
  100. package/es/components/point-demo/index.js +533 -0
  101. package/es/components/point-demo/input/index.js +176 -0
  102. package/es/components/point-demo/point-demo.js +75 -0
  103. package/es/components/point-demo/popup/index.js +113 -0
  104. package/es/components/point-demo/popup/placement.js +44 -0
  105. package/es/components/range-picker-pop/index.js +273 -0
  106. package/es/components/scrollbar/simplebar/helpers.js +59 -0
  107. package/es/components/scrollbar/simplebar/index.js +91 -0
  108. package/es/components/scrollbar/simplebar/scrollbar-width.js +47 -0
  109. package/es/components/scrollbar/simplebar/simplebar.js +852 -0
  110. package/es/components/scrollbar/simplebar-react.js +163 -0
  111. package/es/components/search-dropdown/index.js +40 -0
  112. package/es/components/search-input/index.js +126 -0
  113. package/es/components/select/Option.js +94 -0
  114. package/es/components/select/index.js +330 -0
  115. package/es/components/selector-input/debounce.js +36 -0
  116. package/es/components/selector-input/index.js +109 -0
  117. package/es/components/slider-input/index.js +119 -0
  118. package/es/components/switch/index.js +39 -0
  119. package/es/components/table/index.js +275 -0
  120. package/es/components/tabs/index.js +63 -0
  121. package/es/components/task-relation-modal/tree-node/index.js +58 -0
  122. package/es/components/tita-chart/charts/img/could.js +8 -0
  123. package/es/components/tooltip/error-tip.js +24 -0
  124. package/es/components/tooltip/index.js +21 -0
  125. package/es/components/tree/index.js +79 -0
  126. package/es/components/tree/precls.js +8 -0
  127. package/es/components/upvote/request-apis.js +45 -0
  128. package/es/components/user-selector/action-btns/btn-cancel.js +21 -0
  129. package/es/components/user-selector/action-btns/btn-ok.js +21 -0
  130. package/es/components/user-selector/action-btns/index.js +27 -0
  131. package/es/components/user-selector/context.js +18 -0
  132. package/es/components/user-selector/empty/group.js +55 -0
  133. package/es/components/user-selector/empty/index.js +28 -0
  134. package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +41 -0
  135. package/es/components/user-selector/export-modules/group-selector/index.js +170 -0
  136. package/es/components/user-selector/export-modules/group-selector/searched-panel.js +68 -0
  137. package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +246 -0
  138. package/es/components/user-selector/index.js +25 -0
  139. package/es/components/user-selector/layout/index.js +25 -0
  140. package/es/components/user-selector/loading/index.js +18 -0
  141. package/es/components/user-selector/request-apis.js +180 -0
  142. package/es/components/user-selector/searched-panel/index.js +139 -0
  143. package/es/components/user-selector/searched-panel/result-part.js +43 -0
  144. package/es/components/user-selector/select-tree/selected-tree/index.js +91 -0
  145. package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +48 -0
  146. package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +27 -0
  147. package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +57 -0
  148. package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +93 -0
  149. package/es/components/user-selector/utils.js +139 -0
  150. package/es/components/viewer/ImageListRender.js +143 -0
  151. package/es/components/viewer/index.js +168 -0
  152. package/es/components/word-cloud/index.js +109 -0
  153. package/es/components/word-cloud/request-apis.js +26 -0
  154. package/es/components-v1/animate/AnimateChild.js +76 -0
  155. package/es/components-v1/animate/animate.js +148 -0
  156. package/es/components-v1/animate/index.js +13 -0
  157. package/es/components-v1/dom/index.js +30 -0
  158. package/es/components-v1/placement/index.js +13 -0
  159. package/es/components-v1/placement/placement.js +111 -0
  160. package/es/components-v1/placement/placementInner.js +139 -0
  161. package/es/components-v1/pop/Pop.js +246 -0
  162. package/es/components-v1/pop/PopInner.js +163 -0
  163. package/es/components-v1/pop/index.js +13 -0
  164. package/es/components-v1/progress/CircleProgress.js +152 -0
  165. package/es/components-v1/progress/LineProgress.js +83 -0
  166. package/es/components-v1/progress/index.js +80 -0
  167. package/es/components-v1/select/Option.js +94 -0
  168. package/es/components-v1/select/index.js +330 -0
  169. package/es/components-v1/utils/animate/animate.js +103 -0
  170. package/es/components-v1/utils/animate/event.js +79 -0
  171. package/es/components-v1/utils/dom/index.js +30 -0
  172. package/es/components-v1/utils/placement/autoAdjustPlacement.js +93 -0
  173. package/es/components-v1/utils/placement/getContainerVisibleArea.js +22 -0
  174. package/es/components-v1/utils/placement/getExpectPlacement.js +49 -0
  175. package/es/components-v1/utils/placement/getPlacementInContainer.js +26 -0
  176. package/es/components-v1/utils/placement/placement.js +76 -0
  177. package/es/index.js +777 -0
  178. package/es/pages/appointment-demo/drop-down-box/index.js +159 -0
  179. package/es/pages/appointment-demo/index.js +649 -0
  180. package/es/pages/appointment-demo/input/index.js +176 -0
  181. package/es/pages/appointment-demo/popup/index.js +113 -0
  182. package/es/pages/appointment-demo/popup/placement.js +44 -0
  183. package/es/pages/group-management/components/checkbox/index.js +28 -0
  184. package/es/pages/group-management/components/input-form/index.js +174 -0
  185. package/es/pages/group-management/components/radio/index.js +21 -0
  186. package/es/pages/group-management/components/table/index.js +174 -0
  187. package/es/pages/group-management/groupInterface.js +293 -0
  188. package/es/pages/group-management/index.js +13 -0
  189. package/es/pages/group-management/page-view/empty.js +111 -0
  190. package/es/pages/group-management/page-view/group-empty.js +66 -0
  191. package/es/pages/group-management/page-view/importGroupStaff/index.js +208 -0
  192. package/es/pages/group-management/page-view/index.js +412 -0
  193. package/es/pages/group-management/page-view/loading/index.js +32 -0
  194. package/es/pages/group-management/table/index.js +104 -0
  195. package/es/pages/group-management/tree/add-group-dialog/index.js +153 -0
  196. package/es/pages/group-management/tree/delete-group-dialog/index.js +82 -0
  197. package/es/pages/group-management/tree/edit-group-dialog/index.js +155 -0
  198. package/es/pages/group-management/tree/group-form/index.js +207 -0
  199. package/es/pages/group-management/tree/index.js +168 -0
  200. package/es/pages/group-management/tree/operation-panel.js +41 -0
  201. package/es/pages/group-management/tree/trigger-render.js +99 -0
  202. package/es/pages/like-ranking/mock.js +366 -0
  203. package/es/pages/okr-map/export-modules/index.js +1 -0
  204. package/es/pages/okr-map/export-modules/okr-map/header/index.js +182 -0
  205. package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +47 -0
  206. package/es/pages/okr-map/export-modules/okr-map/okr-map.js +497 -0
  207. package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +69 -0
  208. package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +168 -0
  209. package/es/pages/okr-map/hooks/useStorage.js +96 -0
  210. package/es/pages/okr-map/index.js +18 -0
  211. package/es/pages/okr-map/level2-search/depart.js +53 -0
  212. package/es/pages/okr-map/level2-search/group.js +69 -0
  213. package/es/pages/okr-map/level2-search/index.js +51 -0
  214. package/es/pages/okr-map/level2-search/level2-input.js +46 -0
  215. package/es/pages/okr-map/level2-search/user.js +54 -0
  216. package/es/pages/okr-map/no-okr/index.js +24 -0
  217. package/es/pages/okr-map/number-select/index.js +81 -0
  218. package/es/pages/okr-map/open-data/index.js +115 -0
  219. package/es/pages/okr-map/precls.js +8 -0
  220. package/es/pages/okr-map/request-apis.js +76 -0
  221. package/es/pages/okr-map/share-dialog/index.js +122 -0
  222. package/es/pages/okr-map/unsupport-ie/index.js +83 -0
  223. package/es/pages/okr-map/utils.js +51 -0
  224. package/es/utils/auth.js +294 -0
  225. package/es/utils/bs-global.js +114 -0
  226. package/es/utils/local-storage.js +42 -0
  227. package/es/utils/mblog.js +33 -0
  228. package/es/utils/mock-bsglobal.js +1837 -0
  229. package/es/utils/open-data.js +341 -0
  230. package/es/utils/request-v1.js +115 -0
  231. package/es/utils/request.js +183 -0
  232. package/es/utils/tools.js +286 -0
  233. package/lib/components/date-picker/BodyItem.js +3 -3
  234. package/lib/components/date-picker/CalendarHeader.js +3 -3
  235. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
  236. package/lib/components/dynamic/online-broadcast/data.js +1 -7
  237. package/lib/components/eReport/eReportLists/reportList.js +3 -3
  238. package/lib/components/emotions-selector/selector-pop.js +3 -3
  239. package/lib/components/ereport-list/index.js +3 -3
  240. package/lib/components/mblog/components/MblogAction.js +3 -3
  241. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
  242. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  243. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
  244. package/lib/components/okrcase-library/okrcases-components/caseLibrary-main.js +8 -7
  245. package/lib/components/picker/components/panels/date-panel/date-body.js +116 -0
  246. package/lib/components/picker/components/panels/date-panel/date-head.js +66 -0
  247. package/lib/components/picker/components/panels/date-panel/index.css +14 -0
  248. package/lib/components/picker/components/panels/date-panel/index.js +49 -0
  249. package/lib/components/picker/components/panels/month-panel/index.css +27 -0
  250. package/lib/components/picker/components/panels/month-panel/index.js +63 -0
  251. package/lib/components/picker/components/panels/month-panel/month-body.js +87 -0
  252. package/lib/components/picker/components/panels/month-panel/month-head.js +47 -0
  253. package/lib/components/picker/components/panels/panel-body/index.js +53 -0
  254. package/lib/components/picker/components/panels/panel-head/index.js +48 -0
  255. package/lib/components/picker/components/panels/year-panel/index.css +23 -0
  256. package/lib/components/picker/components/panels/year-panel/index.js +65 -0
  257. package/lib/components/picker/components/panels/year-panel/year-body.js +92 -0
  258. package/lib/components/picker/components/panels/year-panel/year-head.js +35 -0
  259. package/lib/components/picker/components/picker-trigger/index.css +26 -0
  260. package/lib/components/picker/components/picker-trigger/index.js +85 -0
  261. package/lib/components/picker/context.js +15 -0
  262. package/lib/components/picker/index.css +121 -0
  263. package/lib/components/picker/index.js +13 -0
  264. package/lib/components/picker/picker-panels.js +182 -0
  265. package/lib/components/picker/picker.js +133 -0
  266. package/lib/components/picker/type.js +5 -0
  267. package/lib/components/picker/utils.js +28 -0
  268. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  269. package/lib/components/rich-editor/models/schema.js +6 -6
  270. package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
  271. package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
  272. package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
  273. package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
  274. package/lib/components/rich-editor/plugins/core/index.js +4 -4
  275. package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
  276. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
  277. package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
  278. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
  279. package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
  280. package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
  281. package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
  282. package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
  283. package/lib/components/rich-editor/react/uiProvider.js +3 -3
  284. package/lib/components/rich-editor/ui/Popup/index.js +3 -3
  285. package/lib/components/select/Option.js +3 -3
  286. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  287. package/lib/components-v1/animate/AnimateChild.js +3 -3
  288. package/lib/components-v1/avatar/index.js +3 -3
  289. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  290. package/lib/components-v1/progress/CircleProgress.js +3 -3
  291. package/lib/components-v1/select/Option.js +3 -3
  292. package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
  293. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
  294. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  295. package/lib/index.js +8 -0
  296. package/package.json +1 -1
  297. package/yarn-error.log +21252 -0
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = _default;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _rcTable = _interopRequireDefault(require("rc-table"));
13
+
14
+ var _classnames = _interopRequireDefault(require("classnames"));
15
+
16
+ var _rcPagination = _interopRequireDefault(require("rc-pagination"));
17
+
18
+ var _checkbox = _interopRequireDefault(require("../../../../components/checkbox"));
19
+
20
+ require("rc-table/assets/index.css");
21
+
22
+ require("rc-pagination/assets/index.css");
23
+
24
+ require("./index.scss");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
+
30
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
+
32
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
33
+
34
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
35
+
36
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
37
+
38
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
39
+
40
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
41
+
42
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
43
+
44
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
45
+
46
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
47
+
48
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
49
+
50
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
51
+
52
+ var preCls = "tita-components";
53
+
54
+ var mapTableRowKey = function mapTableRowKey(data) {
55
+ if (data && data.length > 0) {
56
+ data.map(function (item, i) {
57
+ data[i].key = i;
58
+ });
59
+ }
60
+
61
+ return data;
62
+ };
63
+
64
+ function _default(props) {
65
+ var prefixCls = props.prefixCls,
66
+ columns = props.columns,
67
+ tableData = props.tableData,
68
+ pageSize = props.pageSize,
69
+ pageNum = props.pageNum,
70
+ tableLayout = props.tableLayout,
71
+ setPageNum = props.setPageNum,
72
+ total = props.total,
73
+ rowSelection = props.rowSelection;
74
+
75
+ var _useState = (0, _react.useState)(function () {
76
+ return mapTableRowKey(tableData);
77
+ }),
78
+ _useState2 = _slicedToArray(_useState, 2),
79
+ tdata = _useState2[0],
80
+ setTdata = _useState2[1];
81
+
82
+ (0, _react.useEffect)(function () {
83
+ setTdata(mapTableRowKey(tableData));
84
+ }, tableData);
85
+
86
+ if (rowSelection) {
87
+ var rowSelected = rowSelection.rowSelected,
88
+ setRowSelected = rowSelection.setRowSelected;
89
+
90
+ var has = function has(id) {
91
+ var status = false;
92
+ rowSelected.map(function (item) {
93
+ if (item === id) {
94
+ status = true;
95
+ }
96
+ });
97
+ return status;
98
+ };
99
+
100
+ var onCheckAllHandler = function onCheckAllHandler(checked) {
101
+ var arr = [];
102
+
103
+ if (checked) {
104
+ for (var i = 0; i < tdata.length; i++) {
105
+ arr.push(i);
106
+ }
107
+ }
108
+
109
+ setRowSelected(arr);
110
+ };
111
+
112
+ var onCheckHandler = function onCheckHandler(checked, id) {
113
+ var arr = _toConsumableArray(rowSelected);
114
+
115
+ if (checked) {
116
+ arr.push(id);
117
+ arr.sort(function (a, b) {
118
+ return a - b;
119
+ });
120
+ } else {
121
+ arr.map(function (item, i) {
122
+ if (item === id) {
123
+ arr.splice(i, 1);
124
+ }
125
+ });
126
+ }
127
+
128
+ setRowSelected(arr);
129
+ };
130
+
131
+ var selectCloumn = {
132
+ title: /*#__PURE__*/_react["default"].createElement("span", {
133
+ className: (0, _classnames["default"])("".concat(preCls, "__select-td"))
134
+ }, " ", /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
135
+ className: "tita-checkbox",
136
+ checked: rowSelected.length === tdata.length,
137
+ onChange: onCheckAllHandler
138
+ }), " "),
139
+ dataIndex: "key",
140
+ key: "key",
141
+ width: 23,
142
+ render: function render(id, data) {
143
+ return /*#__PURE__*/_react["default"].createElement("span", {
144
+ key: id,
145
+ className: (0, _classnames["default"])("".concat(preCls, "__select-td"))
146
+ }, /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
147
+ className: "tita-checkbox",
148
+ checked: has(id),
149
+ name: id,
150
+ onChange: onCheckHandler
151
+ }));
152
+ }
153
+ };
154
+ rowSelection && columns.unshift(selectCloumn);
155
+ }
156
+
157
+ return /*#__PURE__*/_react["default"].createElement("div", {
158
+ className: (0, _classnames["default"])("".concat(preCls, "__table"))
159
+ }, /*#__PURE__*/_react["default"].createElement(_rcTable["default"], {
160
+ prefixCls: prefixCls || "rc-table",
161
+ columns: columns,
162
+ data: tdata,
163
+ tableLayout: tableLayout || "auto"
164
+ }), /*#__PURE__*/_react["default"].createElement("div", {
165
+ className: (0, _classnames["default"])("".concat(preCls, "__table-pagination"))
166
+ }, /*#__PURE__*/_react["default"].createElement(_rcPagination["default"], {
167
+ pageSize: pageSize || 10,
168
+ total: total,
169
+ current: pageNum,
170
+ onChange: function onChange(current) {
171
+ return setPageNum(current);
172
+ }
173
+ })));
174
+ }
@@ -0,0 +1,293 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.addGroup = addGroup;
7
+ exports.addGroupStaff = addGroupStaff;
8
+ exports.deleteGroupType = deleteGroupType;
9
+ exports.editGroup = editGroup;
10
+ exports.getApiUrl = getApiUrl;
11
+ exports.getDomain = getDomain;
12
+ exports.getGroupList = getGroupList;
13
+ exports.getTenantInfo = getTenantInfo;
14
+ exports.getUserInfo = getUserInfo;
15
+ exports.getVisible = getVisible;
16
+ exports.isWx = exports.isDingDing = void 0;
17
+ exports.removeGroupStaff = removeGroupStaff;
18
+ exports.searchGroupStaffList = searchGroupStaffList;
19
+ exports.searchUserDetail = searchUserDetail;
20
+ exports.taker = taker;
21
+
22
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23
+
24
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25
+
26
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
27
+
28
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
29
+
30
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
31
+
32
+ var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
33
+ var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
34
+
35
+ function getTenantInfo() {
36
+ return BSGlobal && BSGlobal.tenantInfo;
37
+ }
38
+
39
+ function getUserInfo() {
40
+ return BSGlobal && BSGlobal.loginUserInfo;
41
+ } // 模拟获取基础路径
42
+
43
+
44
+ function getDomain() {
45
+ if (!window.location.hostname.match(/dev/)) return "";
46
+ return "http://www.tita.gift";
47
+ }
48
+ /**
49
+ * 封装taker
50
+ * @param {路由} url
51
+ */
52
+
53
+
54
+ function taker(_x, _x2, _x3) {
55
+ return _taker.apply(this, arguments);
56
+ }
57
+ /**
58
+ * 拼接 v1 url
59
+ * @param {v1/之后的路径} url
60
+ */
61
+
62
+
63
+ function _taker() {
64
+ _taker = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url, method, body) {
65
+ var header,
66
+ settings,
67
+ bodyStr,
68
+ key,
69
+ response,
70
+ data,
71
+ _args = arguments;
72
+ return regeneratorRuntime.wrap(function _callee$(_context) {
73
+ while (1) {
74
+ switch (_context.prev = _context.next) {
75
+ case 0:
76
+ header = _args.length > 3 && _args[3] !== undefined ? _args[3] : {};
77
+ settings = {};
78
+
79
+ if (method) {
80
+ settings.headers = _objectSpread({
81
+ Accept: "application/json, application/xml, text/play, text/html, *.*",
82
+ "Content-Type": "application/json; charset=utf-8"
83
+ }, header);
84
+ settings.method = method;
85
+ }
86
+
87
+ if (body) settings.body = JSON.stringify(body);
88
+
89
+ if (settings.headers) {
90
+ if (settings.headers["Content-Type"] == "application/x-www-form-urlencoded") {
91
+ bodyStr = "";
92
+
93
+ for (key in body) {
94
+ bodyStr += "".concat(key, "=").concat(body[key], "&");
95
+ }
96
+
97
+ bodyStr.substring(0, bodyStr.length - 1);
98
+ settings.body = bodyStr;
99
+ }
100
+ }
101
+
102
+ settings.credentials = "same-origin"; // 有些组件里的参数已经做过一次编码****
103
+
104
+ url = encodeURI(decodeURI(url));
105
+ _context.next = 9;
106
+ return fetch(url, settings);
107
+
108
+ case 9:
109
+ response = _context.sent;
110
+ _context.next = 12;
111
+ return response.json();
112
+
113
+ case 12:
114
+ data = _context.sent;
115
+ return _context.abrupt("return", data);
116
+
117
+ case 14:
118
+ case "end":
119
+ return _context.stop();
120
+ }
121
+ }
122
+ }, _callee);
123
+ }));
124
+ return _taker.apply(this, arguments);
125
+ }
126
+
127
+ function getApiUrl(url) {
128
+ var apiServer = getDomain(); // 获取基础路径***
129
+
130
+ return "".concat(apiServer, "/api/v1/").concat(tenantId, "/").concat(userId, "/").concat(url);
131
+ }
132
+ /**
133
+ * 检索群组列表
134
+ * @param {*}
135
+ */
136
+
137
+
138
+ function getGroupList() {
139
+ var url = getApiUrl("group/getAll?sourceFrom=fromback");
140
+ return taker(url, "GET").then(function (res) {
141
+ return res;
142
+ });
143
+ }
144
+ /**
145
+ * 添加群组列表
146
+ * @param {群组名} groupName
147
+ * @param {类型} groupvisible 0是全部,1是选特定人
148
+ * @param {群组可使用人} groupvisible
149
+ */
150
+
151
+
152
+ function addGroup(obj) {
153
+ var apiUrl = getApiUrl("group/add");
154
+ return taker(apiUrl, "POST", {
155
+ groupName: obj.groupName,
156
+ groupVisiblity: obj.groupVisiblity,
157
+ selectUserids: obj.selectUserids,
158
+ selectDepartmentIds: obj.selectDepartmentIds,
159
+ selectGroupIds: obj.selectGroupIds
160
+ }).then(function (res) {
161
+ return res;
162
+ });
163
+ }
164
+ /**
165
+ * 编辑群组列表前要获取群组可见范围
166
+ * @param {群组名称} groupName
167
+ * @param {群组id} groupId
168
+ * @param {群组可使用人} groupvisible
169
+ */
170
+
171
+
172
+ function getVisible(groupId) {
173
+ var apiUrl = getApiUrl("group/getVisible");
174
+ var url = "".concat(apiUrl, "?groupId=").concat(groupId);
175
+ return taker(url, "GET").then(function (res) {
176
+ return res;
177
+ });
178
+ }
179
+ /**
180
+ * 编辑群组列表
181
+ * @param {群组名称} groupName
182
+ * @param {群组id} groupId
183
+ * @param {群组可使用人} groupvisible
184
+ */
185
+
186
+
187
+ function editGroup(obj) {
188
+ var apiUrl = getApiUrl("group/edit");
189
+ return taker(apiUrl, "POST", {
190
+ groupName: obj.groupName,
191
+ groupId: obj.groupId,
192
+ groupVisiblity: obj.groupVisiblity,
193
+ selectUserids: obj.selectUserids,
194
+ selectDepartmentIds: obj.selectDepartmentIds,
195
+ selectGroupIds: obj.selectGroupIds
196
+ }).then(function (res) {
197
+ return res;
198
+ });
199
+ }
200
+ /**
201
+ * 删除群组
202
+ * @param {群组名称} groupName
203
+ * @param {群组id} groupId
204
+ * @param {群组可使用人} groupvisible
205
+ */
206
+
207
+
208
+ function deleteGroupType(id) {
209
+ var apiUrl = getApiUrl("group/delete");
210
+ var url = "".concat(apiUrl, "?groupId=").concat(id);
211
+ return taker(url, "POST").then(function (res) {
212
+ return res;
213
+ });
214
+ }
215
+ /**
216
+ * 检索群组人员列表
217
+ * @param {群组id} groupid
218
+ * @param {群组当前页} groupPageNum
219
+ */
220
+
221
+
222
+ function searchGroupStaffList(groupid, groupPageNum, keyword) {
223
+ var apiUrl = getApiUrl("group/user/get");
224
+ return taker(apiUrl, "POST", {
225
+ groupid: groupid,
226
+ pagenum: groupPageNum,
227
+ pagesize: 10,
228
+ keyWords: keyword
229
+ }).then(function (res) {
230
+ return res;
231
+ });
232
+ }
233
+ /**
234
+ * 添加员工
235
+ * @param {群组id} groupId
236
+ * @param {selectedStaffList} list 选人列表的所有信息
237
+ * groupid,(selectUserids或者selectDepartmentIds或者selectGroupIds必填)
238
+ */
239
+
240
+
241
+ function addGroupStaff(opt) {
242
+ var apiUrl = getApiUrl("group/user/add");
243
+ return taker(apiUrl, "POST", _objectSpread({}, opt)).then(function (res) {
244
+ return res;
245
+ });
246
+ }
247
+ /**
248
+ * 移除员工
249
+ * @param {群组id} groupId
250
+ * @param {selectedStaffList} list 选人列表的所有信息
251
+ */
252
+
253
+
254
+ function removeGroupStaff(list, groupId) {
255
+ var apiUrl = getApiUrl("group/user/remove");
256
+ return taker(apiUrl, "POST", {
257
+ groupid: groupId,
258
+ selectUserids: list
259
+ }).then(function (res) {
260
+ return res;
261
+ });
262
+ }
263
+ /**
264
+ * 获取用户添加时的部门、群组信息
265
+ * @param {群组id} groupId
266
+ */
267
+
268
+
269
+ function searchUserDetail(groupId) {
270
+ var apiUrl = getApiUrl("group/user/detail");
271
+ var url = "".concat(apiUrl, "?groupId=").concat(groupId);
272
+ return taker(url, "get");
273
+ }
274
+ /*
275
+ * 判断是钉钉
276
+ */
277
+
278
+
279
+ var isDingDing = function isDingDing() {
280
+ return getTenantInfo().Source == 861;
281
+ };
282
+ /*
283
+ * 判断是企业微信
284
+ */
285
+
286
+
287
+ exports.isDingDing = isDingDing;
288
+
289
+ var isWx = function isWx() {
290
+ return getTenantInfo().Source == 860;
291
+ };
292
+
293
+ exports.isWx = isWx;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _pageView = _interopRequireDefault(require("./page-view"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var _default = _pageView["default"];
13
+ exports["default"] = _default;
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = _default;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _userSelector = _interopRequireDefault(require("../../../components/user-selector"));
15
+
16
+ var _importGroupStaff = _interopRequireDefault(require("./importGroupStaff"));
17
+
18
+ var _toast = _interopRequireDefault(require("../../../components/toast"));
19
+
20
+ var _groupInterface = require("../groupInterface");
21
+
22
+ require("./index.scss");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
+
28
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
+
30
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
+
32
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33
+
34
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
35
+
36
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
37
+
38
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
39
+
40
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
+
42
+ var preCls = "user-group-page";
43
+
44
+ function _default(props) {
45
+ var selectedGroupId = props.selectedGroupId;
46
+
47
+ var _useState = (0, _react.useState)(false),
48
+ _useState2 = _slicedToArray(_useState, 2),
49
+ visible = _useState2[0],
50
+ setVisible = _useState2[1];
51
+
52
+ var _useState3 = (0, _react.useState)(false),
53
+ _useState4 = _slicedToArray(_useState3, 2),
54
+ importVisible = _useState4[0],
55
+ setImportVisible = _useState4[1];
56
+
57
+ var onAddGroupHandler = function onAddGroupHandler(selectedUsers) {
58
+ var departments = selectedUsers.departments,
59
+ users = selectedUsers.users,
60
+ groups = selectedUsers.groups;
61
+ (0, _groupInterface.addGroupStaff)({
62
+ groupid: selectedGroupId,
63
+ selectUserids: users.map(function (it) {
64
+ return it.userId;
65
+ }),
66
+ selectDepartmentIds: departments.map(function (it) {
67
+ return it.id;
68
+ }),
69
+ selectGroupIds: groups.map(function (it) {
70
+ return it.id;
71
+ })
72
+ }).then(function (res) {
73
+ if (res.Code === 1) {
74
+ setVisible(false);
75
+ props.getPageData();
76
+ } else {
77
+ _toast["default"].Error(res.Message);
78
+ }
79
+ });
80
+ };
81
+
82
+ var onDialogCloseHandler = function onDialogCloseHandler() {
83
+ setVisible(false);
84
+ };
85
+
86
+ return /*#__PURE__*/_react["default"].createElement("div", {
87
+ className: (0, _classnames["default"])("".concat(preCls, "__page-empty"))
88
+ }, /*#__PURE__*/_react["default"].createElement("div", {
89
+ className: (0, _classnames["default"])("".concat(preCls, "__page-empty-box"))
90
+ }, /*#__PURE__*/_react["default"].createElement("img", {
91
+ src: require("../images/kong.png")
92
+ }), /*#__PURE__*/_react["default"].createElement("p", null, "\u5F53\u524D\u7FA4\u7EC4\u4E0B\u65E0\u5458\u5DE5"), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
93
+ multiple: true,
94
+ selectNodes: {},
95
+ onOk: onAddGroupHandler,
96
+ sourceFrom: "fromback",
97
+ position: "center",
98
+ trigger: /*#__PURE__*/_react["default"].createElement("span", {
99
+ className: (0, _classnames["default"])("".concat(preCls, "__btn ").concat(preCls, "__btn--gray"))
100
+ }, getLocale("Pro_page_Ext_Tab_Addnow")),
101
+ className: (0, _classnames["default"])("".concat(preCls, "__btn ").concat(preCls, "__btn--gray"))
102
+ }), /*#__PURE__*/_react["default"].createElement("span", {
103
+ className: (0, _classnames["default"])("".concat(preCls, "__btn ").concat(preCls, "__btn--blue")),
104
+ onClick: function onClick() {
105
+ return setImportVisible(true);
106
+ }
107
+ }, "\u6279\u91CF\u5BFC\u5165"))), /*#__PURE__*/_react["default"].createElement(_importGroupStaff["default"], {
108
+ visible: importVisible,
109
+ setVisible: setImportVisible
110
+ }));
111
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = _default;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _index = _interopRequireDefault(require("../tree/add-group-dialog/index"));
15
+
16
+ require("./index.scss");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
25
+
26
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
27
+
28
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
29
+
30
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
31
+
32
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
33
+
34
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
+
36
+ var preCls = "user-group-page";
37
+
38
+ function _default(props) {
39
+ var getGroup = props.getGroup;
40
+
41
+ var _useState = (0, _react.useState)(false),
42
+ _useState2 = _slicedToArray(_useState, 2),
43
+ visible = _useState2[0],
44
+ setVisible = _useState2[1];
45
+
46
+ return /*#__PURE__*/_react["default"].createElement("div", {
47
+ className: (0, _classnames["default"])("".concat(preCls, "__page-groupEmpty"))
48
+ }, /*#__PURE__*/_react["default"].createElement("div", {
49
+ className: (0, _classnames["default"])("".concat(preCls, "__page-empty"))
50
+ }, /*#__PURE__*/_react["default"].createElement("div", {
51
+ className: (0, _classnames["default"])("".concat(preCls, "__page-empty-box"))
52
+ }, /*#__PURE__*/_react["default"].createElement("img", {
53
+ src: require("../images/kong.png")
54
+ }), /*#__PURE__*/_react["default"].createElement("div", {
55
+ className: (0, _classnames["default"])("".concat(preCls, "__page-empty-box-text"))
56
+ }, "\u60A8\u53EF\u4EE5\u6839\u636E\u89D2\u8272\u3001\u56E2\u961F\u7B49\u8BBE\u7F6E\u7FA4\u7EC4\uFF0C", /*#__PURE__*/_react["default"].createElement("br", null), "\u8BBE\u7F6E\u540E\u53EF\u4EE5\u6839\u636E\u7FA4\u7EC4\u6DFB\u52A0\u4EBA\u5458\uFF0C\u7ACB\u5373", /*#__PURE__*/_react["default"].createElement("span", {
57
+ className: (0, _classnames["default"])("".concat(preCls, "__page-empty-box-btn")),
58
+ onClick: function onClick() {
59
+ return setVisible(true);
60
+ }
61
+ }, "\u6DFB\u52A0\u7FA4\u7EC4")))), /*#__PURE__*/_react["default"].createElement(_index["default"], {
62
+ visible: visible,
63
+ setVisible: setVisible,
64
+ getGroup: getGroup
65
+ }));
66
+ }