@titaui/pc 1.16.24 → 1.16.25

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/lib/components/avatar/icon-avatar/index.js +1 -1
  2. package/lib/components/avatar/num-avatar/index.js +1 -1
  3. package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
  4. package/lib/components/button/default-button/index.js +1 -1
  5. package/lib/components/button/icon-btn/index.js +1 -1
  6. package/lib/components/cascader/index.js +1 -1
  7. package/lib/components/cascader/time.js +1 -1
  8. package/lib/components/change-okr-modal/Filter.js +2 -2
  9. package/lib/components/change-okr-modal/Item.js +2 -2
  10. package/lib/components/change-okr-modal/filterTab.js +2 -2
  11. package/lib/components/change-okr-modal/index.js +4 -6
  12. package/lib/components/common-share/publishMblog.js +2 -4
  13. package/lib/components/communication/CommunicationAttachments.js +2 -2
  14. package/lib/components/communication/ConvertUserName.js +2 -2
  15. package/lib/components/communication/index.js +2 -2
  16. package/lib/components/create-okr-modal/fields/okr-type-detail.js +2 -4
  17. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +2 -4
  18. package/lib/components/create-okr-modal/index.js +2 -4
  19. package/lib/components/create-okr-modal/kr-items/krDatas.js +7 -5
  20. package/lib/components/create-okr-modal/objectType.js +2 -2
  21. package/lib/components/create-okr-modal/request-api.js +12 -16
  22. package/lib/components/create-okr-modal/utils/helper.js +2 -6
  23. package/lib/components/date-picker/BodyItem.js +6 -6
  24. package/lib/components/date-picker/CalendarBody.js +3 -3
  25. package/lib/components/date-picker/CalendarHeader.js +6 -6
  26. package/lib/components/date-picker/index.js +2 -2
  27. package/lib/components/date-range-picker/index.js +2 -2
  28. package/lib/components/delete-confirm-pop/ConfirmPop.js +5 -5
  29. package/lib/components/dialog/index.js +1 -1
  30. package/lib/components/dialog-confirm/index.js +1 -1
  31. package/lib/components/dialog-qq-docs/index.js +9 -11
  32. package/lib/components/dialog-qq-docs/utils.js +2 -6
  33. package/lib/components/dialog-select/index.js +1 -1
  34. package/lib/components/dialog-upload/index.js +2 -4
  35. package/lib/components/dialog-upload-type/components/upload-type-item/index.js +1 -1
  36. package/lib/components/dialog-upload-type/index.js +1 -1
  37. package/lib/components/drawer/headerDrop.js +1 -1
  38. package/lib/components/drawer/index.js +1 -1
  39. package/lib/components/drawer-manager/drawerWrapper.js +3 -5
  40. package/lib/components/drawer-manager/index.js +1 -1
  41. package/lib/components/drop-selector/index.js +1 -1
  42. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +2 -4
  43. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +4 -6
  44. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
  45. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
  46. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
  47. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
  48. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
  49. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
  50. package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +1 -1
  51. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
  52. package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
  53. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
  54. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +1 -1
  55. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
  56. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
  57. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
  58. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
  59. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
  60. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
  61. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
  62. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
  63. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
  64. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
  65. package/lib/components/dynamic/dynamic-item/index.js +1 -1
  66. package/lib/components/dynamic/dynamic-list/index.js +1 -1
  67. package/lib/components/eReport/eReportListEmpty.js +2 -2
  68. package/lib/components/eReport/eReportLists/reportList.js +5 -5
  69. package/lib/components/eReport/eReportShare/index.js +2 -2
  70. package/lib/components/eReport/eReportShare/toast/index.js +2 -2
  71. package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -2
  72. package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
  73. package/lib/components/emotions-selector/selector-content.js +2 -2
  74. package/lib/components/emotions-selector/selector-pop.js +5 -5
  75. package/lib/components/ereport-list/index.js +5 -5
  76. package/lib/components/error-boundary/index.js +2 -2
  77. package/lib/components/filter-buttons/department.js +1 -1
  78. package/lib/components/filter-buttons/index.js +1 -1
  79. package/lib/components/filter-buttons/name.js +1 -1
  80. package/lib/components/firework/index.js +2 -6
  81. package/lib/components/form/form-fields/date/index.js +1 -1
  82. package/lib/components/form/form-fields/dropdown/index.js +1 -1
  83. package/lib/components/form/form-fields/input/index.js +1 -1
  84. package/lib/components/form/form-fields/input-verification-code/index.js +2 -4
  85. package/lib/components/form/form-fields/user/index.js +1 -1
  86. package/lib/components/grid-layout/util/network.js +6 -10
  87. package/lib/components/guide-order/index.js +1 -1
  88. package/lib/components/guide-tip/index.js +1 -1
  89. package/lib/components/help-card/index.js +1 -1
  90. package/lib/components/import-modal/import-task-modal/index.js +1 -1
  91. package/lib/components/import-modal/tree/okr-tree/index.js +2 -4
  92. package/lib/components/import-modal/tree-node/index.js +1 -1
  93. package/lib/components/magnet/index.js +1 -1
  94. package/lib/components/mblog/components/ConfirmPop.js +2 -2
  95. package/lib/components/mblog/components/MblogAction.js +5 -5
  96. package/lib/components/mblog/components/MblogContent.js +2 -2
  97. package/lib/components/mblog/index.js +2 -2
  98. package/lib/components/menus/components/menu-tree/index.js +1 -1
  99. package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
  100. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +1 -1
  101. package/lib/components/okr-detail/auth.js +2 -2
  102. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +2 -4
  103. package/lib/components/okr-detail/components/ao-nice/index.js +4 -6
  104. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
  105. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
  106. package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
  107. package/lib/components/okr-detail/components/header/edit-name.js +2 -4
  108. package/lib/components/okr-detail/components/header/o-avatar.js +2 -4
  109. package/lib/components/okr-detail/components/header/o-classify.js +2 -4
  110. package/lib/components/okr-detail/components/header/o-score.js +1 -1
  111. package/lib/components/okr-detail/components/icon-text/index.js +1 -1
  112. package/lib/components/okr-detail/components/o-classify.js +2 -4
  113. package/lib/components/okr-detail/components/o-progress-update/index.js +2 -4
  114. package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
  115. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +2 -4
  116. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -4
  117. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -4
  118. package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
  119. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +2 -4
  120. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +5 -5
  121. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
  122. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +2 -4
  123. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +6 -8
  124. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +2 -4
  125. package/lib/components/okr-detail/detail-footer/index.js +2 -4
  126. package/lib/components/okr-detail/detail-header/index.js +10 -12
  127. package/lib/components/okr-detail/okr-list/index.js +2 -4
  128. package/lib/components/okr-detail/request-apis.js +2 -6
  129. package/lib/components/okr-excel/renders.js +4 -8
  130. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.js +2 -4
  131. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/buttonv2.js +2 -2
  132. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/confirm.js +2 -2
  133. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/object-type.js +2 -2
  134. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.js +2 -4
  135. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/buttonv2.js +2 -2
  136. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/confirm.js +2 -2
  137. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/object-type.js +2 -2
  138. package/lib/components/okr-flow/child-node/fields/creator.js +2 -4
  139. package/lib/components/okr-flow/child-node/work-node.js +2 -4
  140. package/lib/components/okr-flow/export-modal/index.js +43 -6
  141. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +8 -10
  142. package/lib/components/okr-flow/request-apis.js +2 -6
  143. package/lib/components/okr-flow/root-node/index.js +2 -4
  144. package/lib/components/okr-progress/components/o-progress-update/index.js +2 -4
  145. package/lib/components/okr-progress-modal/index.js +2 -4
  146. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +4 -6
  147. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
  148. package/lib/components/okr-review/ReviewPop/index.js +2 -2
  149. package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
  150. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +5 -5
  151. package/lib/components/okr-review/index.js +2 -2
  152. package/lib/components/okr-share/common-painter/darwAvatar.js +4 -8
  153. package/lib/components/okr-share/common-painter/openDataPainter.js +2 -6
  154. package/lib/components/okr-share/common-painter/utils.js +4 -8
  155. package/lib/components/okr-share/pink-card/drawDepartmentName.js +2 -6
  156. package/lib/components/okr-share/pink-card/drawKrs.js +2 -6
  157. package/lib/components/okr-share/pink-card/drawQuote.js +2 -6
  158. package/lib/components/okr-share/pink-card/drawUserName.js +2 -6
  159. package/lib/components/okr-share/pink-card/index.js +2 -6
  160. package/lib/components/okr-share/publishMblog.js +2 -4
  161. package/lib/components/okr-share/shareCardSelector.js +4 -6
  162. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
  163. package/lib/components/okrcase-library/server/network.js +20 -24
  164. package/lib/components/open-data-painter/index.js +2 -6
  165. package/lib/components/operation-records/OperationRecordItem.js +2 -2
  166. package/lib/components/operation-records/index.js +2 -2
  167. package/lib/components/pagination/pagination.js +1 -1
  168. package/lib/components/period-selector/components/button/index.js +1 -1
  169. package/lib/components/period-selector/helper/index.js +2 -6
  170. package/lib/components/picker/components/panels/date-panel/index.js +1 -1
  171. package/lib/components/picker/components/panels/month-panel/index.js +1 -1
  172. package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
  173. package/lib/components/picker/components/panels/week-panel/index.js +1 -1
  174. package/lib/components/picker/components/panels/year-panel/index.js +1 -1
  175. package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
  176. package/lib/components/picker/picker.js +1 -1
  177. package/lib/components/picker/range-picker/index.js +1 -1
  178. package/lib/components/point-demo/drop-down-box/index.js +1 -1
  179. package/lib/components/point-demo/input/index.js +3 -3
  180. package/lib/components/point-demo/popup/index.js +1 -1
  181. package/lib/components/popup/index.js +1 -1
  182. package/lib/components/popup-select/index.js +1 -1
  183. package/lib/components/praise-record/PraiseRecordItem.js +2 -2
  184. package/lib/components/praise-record/index.js +2 -2
  185. package/lib/components/range-picker-pop/index.js +3 -3
  186. package/lib/components/range-selector-pop/RangeList.js +2 -2
  187. package/lib/components/range-selector-pop/RangeSelectorPop.js +5 -5
  188. package/lib/components/rate/index.js +1 -1
  189. package/lib/components/rich-editor/models/schema.js +8 -8
  190. package/lib/components/rich-editor/plugins/block/block-quote/index.js +10 -10
  191. package/lib/components/rich-editor/plugins/block/heading/index.js +10 -10
  192. package/lib/components/rich-editor/plugins/block/lists/index.js +16 -16
  193. package/lib/components/rich-editor/plugins/block/paragraph/index.js +7 -7
  194. package/lib/components/rich-editor/plugins/core/index.js +6 -6
  195. package/lib/components/rich-editor/plugins/extension/alignment/index.js +7 -7
  196. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +6 -6
  197. package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
  198. package/lib/components/rich-editor/plugins/inline/color/index.js +13 -13
  199. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +10 -10
  200. package/lib/components/rich-editor/plugins/inline/em/index.js +7 -7
  201. package/lib/components/rich-editor/plugins/inline/link/index.js +10 -10
  202. package/lib/components/rich-editor/plugins/inline/strong/index.js +10 -10
  203. package/lib/components/rich-editor/plugins/inline/under-line/index.js +10 -10
  204. package/lib/components/rich-editor/react/reactNodeView.js +4 -4
  205. package/lib/components/rich-editor/react/uiProvider.js +5 -5
  206. package/lib/components/rich-editor/ui/Popup/index.js +5 -5
  207. package/lib/components/scroll-container/index.js +2 -2
  208. package/lib/components/scrollbar/index.js +1 -1
  209. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  210. package/lib/components/scrollbar/simplebar-react.js +1 -1
  211. package/lib/components/search-dropdown/index.js +1 -1
  212. package/lib/components/select/Option.js +6 -6
  213. package/lib/components/select/index.js +3 -3
  214. package/lib/components/select-layer/index.js +1 -1
  215. package/lib/components/select-tags/index.js +1 -1
  216. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +2 -6
  217. package/lib/components/superset-charts/fetch-assets-and-append/index.js +4 -8
  218. package/lib/components/survey-model/request-api.js +2 -6
  219. package/lib/components/switch/index.js +1 -1
  220. package/lib/components/table/index.js +1 -1
  221. package/lib/components/table-excel-v2/index.js +1 -1
  222. package/lib/components/tabs/index.js +1 -1
  223. package/lib/components/tag/index.js +1 -1
  224. package/lib/components/task-relation-modal/index.js +5 -7
  225. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
  226. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
  227. package/lib/components/task-relation-modal/tree/category-tree/index.js +2 -4
  228. package/lib/components/task-relation-modal/tree/okr-tree/index.js +2 -4
  229. package/lib/components/task-relation-modal/tree/work-tree/index.js +2 -4
  230. package/lib/components/task-relation-modal/tree-node/index.js +1 -1
  231. package/lib/components/task-relation-modal/work-relation/index.js +5 -7
  232. package/lib/components/task-tree/task-item-node/e-project.js +2 -4
  233. package/lib/components/task-tree/task-item-node/e-task.js +2 -4
  234. package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
  235. package/lib/components/task-tree/task-tree.js +1 -1
  236. package/lib/components/textarea/index.js +1 -1
  237. package/lib/components/time-picker/time-picker-selector.js +1 -1
  238. package/lib/components/time-picker/time-picker.js +1 -1
  239. package/lib/components/time-picker/timer-picker-input.js +1 -1
  240. package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
  241. package/lib/components/tita-chart/charts/pie.js +1 -1
  242. package/lib/components/tita-chart/errorBoundary/index.js +5 -5
  243. package/lib/components/toast/index.js +8 -12
  244. package/lib/components/tooltip/error-tip.js +1 -1
  245. package/lib/components/tooltip/tooltip.js +1 -1
  246. package/lib/components/tree/index.js +1 -1
  247. package/lib/components/upload/components/uploadedPreview.js +2 -2
  248. package/lib/components/upload/index.js +4 -6
  249. package/lib/components/upload/index2.js +2 -4
  250. package/lib/components/upvote/index.js +5 -7
  251. package/lib/components/user-selector/category-selector-panel/depart-tree.js +7 -3
  252. package/lib/components/user-selector/enum.js +15 -0
  253. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +27 -12
  254. package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.css +14 -0
  255. package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.js +46 -9
  256. package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +4 -2
  257. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
  258. package/lib/components/user-selector/request-apis.js +13 -7
  259. package/lib/components/user-selector/searched-panel/index.js +6 -3
  260. package/lib/components/user-selector/select-tree/choose-tree/index.js +5 -3
  261. package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
  262. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +7 -0
  263. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +7 -1
  264. package/lib/components/version-change-modal/index.js +4 -6
  265. package/lib/components/version-change-modal/request-api.js +2 -6
  266. package/lib/components/viewer/ImageListRender.js +2 -2
  267. package/lib/components/viewer/index.js +2 -2
  268. package/lib/components/weekly-report/card.js +12 -4
  269. package/lib/components/weekly-report/common-painter/darwAvatar.js +6 -10
  270. package/lib/components/weekly-report/common-painter/drawName.js +2 -6
  271. package/lib/components/weekly-report/common-painter/openDataPainter.js +2 -6
  272. package/lib/components/weekly-report/index.js +4 -6
  273. package/lib/components-v1/animate/AnimateChild.js +5 -5
  274. package/lib/components-v1/animate/animate.js +2 -2
  275. package/lib/components-v1/avatar/index.js +5 -5
  276. package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
  277. package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
  278. package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
  279. package/lib/components-v1/confirm/index.js +2 -2
  280. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +5 -5
  281. package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
  282. package/lib/components-v1/input/Input.js +3 -3
  283. package/lib/components-v1/input/InputNumber.js +2 -2
  284. package/lib/components-v1/placement/placement.js +2 -2
  285. package/lib/components-v1/placement/placementInner.js +2 -2
  286. package/lib/components-v1/pop/Pop.js +2 -2
  287. package/lib/components-v1/pop/PopInner.js +2 -2
  288. package/lib/components-v1/portals/Portals.js +2 -2
  289. package/lib/components-v1/progress/CircleProgress.js +5 -5
  290. package/lib/components-v1/progress/LineProgress.js +2 -2
  291. package/lib/components-v1/progress/index.js +2 -2
  292. package/lib/components-v1/radio/radio.js +2 -2
  293. package/lib/components-v1/radio/radioGroup.js +2 -2
  294. package/lib/components-v1/search/index.js +2 -2
  295. package/lib/components-v1/select/Option.js +6 -6
  296. package/lib/components-v1/select/index.js +3 -3
  297. package/lib/components-v1/tabs/index.js +2 -2
  298. package/lib/components-v1/textarea/index.js +2 -2
  299. package/lib/components-v1/transition/index.js +2 -2
  300. package/lib/components-v1/userSelector/UserSelectorPop.js +5 -5
  301. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
  302. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
  303. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
  304. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
  305. package/lib/components-v1/userSelector/components/MultiMode/index.js +5 -5
  306. package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
  307. package/lib/components-v1/userSelector/components/SingleMode.js +2 -2
  308. package/lib/components-v1/userSelector/components/UserItem.js +5 -5
  309. package/lib/components-v1/userSelector/index.js +2 -2
  310. package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
  311. package/lib/pages/appointment-demo/input/index.js +3 -3
  312. package/lib/pages/appointment-demo/popup/index.js +1 -1
  313. package/lib/pages/group-management/components/input-form/index.js +3 -3
  314. package/lib/pages/group-management/components/radio/index.js +1 -1
  315. package/lib/pages/group-management/groupInterface.js +2 -6
  316. package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
  317. package/lib/pages/group-management/tree/index.js +1 -1
  318. package/lib/pages/new-okr-list/request-api.js +14 -18
  319. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -5
  320. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
  321. package/lib/pages/okr-map/request-apis.js +2 -6
  322. package/lib/pages/okr-map/share-dialog/index.js +1 -1
  323. package/lib/utils/auth.js +2 -2
  324. package/lib/utils/helpers.js +2 -6
  325. package/lib/utils/open-data.js +4 -6
  326. package/lib/utils/request-v1.js +2 -6
  327. package/lib/utils/request.js +2 -6
  328. package/package.json +1 -1
@@ -49,8 +49,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
49
49
 
50
50
  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; }
51
51
 
52
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
53
-
54
52
  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); } }
55
53
 
56
54
  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); }); }; }
@@ -81,7 +79,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
81
79
 
82
80
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
83
81
 
84
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
82
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
85
83
 
86
84
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
87
85
 
@@ -91,7 +89,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
91
89
 
92
90
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
93
91
 
94
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
92
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
95
93
 
96
94
  // 默认在钉钉环境下禁用
97
95
  var openTencentDocFile = ((_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$Tena = _window$BSGlobal.TenantAdvancedSetting) === null || _window$BSGlobal$Tena === void 0 ? void 0 : (_window$BSGlobal$Tena2 = _window$BSGlobal$Tena.TenantFunAdvancedSetting) === null || _window$BSGlobal$Tena2 === void 0 ? void 0 : _window$BSGlobal$Tena2.TencentDocFile) && !(0, _platform.isDD)(true);
@@ -517,9 +515,9 @@ var Upload = /*#__PURE__*/function (_PureComponent) {
517
515
  }
518
516
  };
519
517
 
520
- _this.onShowDialogQQDocs = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
518
+ _this.onShowDialogQQDocs = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
521
519
  var data;
522
- return _regeneratorRuntime().wrap(function _callee$(_context) {
520
+ return regeneratorRuntime.wrap(function _callee$(_context) {
523
521
  while (1) {
524
522
  switch (_context.prev = _context.next) {
525
523
  case 0:
@@ -53,8 +53,6 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
53
53
 
54
54
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
55
55
 
56
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
57
-
58
56
  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); } }
59
57
 
60
58
  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); }); }; }
@@ -158,9 +156,9 @@ var UploadMode = function UploadMode(_ref) {
158
156
  dialogQQDocsVidible = _useState14[0],
159
157
  setDialogQQDocsVidible = _useState14[1];
160
158
 
161
- var onShowDialogQQDocs = (0, _react.useCallback)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
159
+ var onShowDialogQQDocs = (0, _react.useCallback)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
162
160
  var data;
163
- return _regeneratorRuntime().wrap(function _callee$(_context) {
161
+ return regeneratorRuntime.wrap(function _callee$(_context) {
164
162
  while (1) {
165
163
  switch (_context.prev = _context.next) {
166
164
  case 0:
@@ -34,7 +34,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
34
34
 
35
35
  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; }
36
36
 
37
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
37
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
38
38
 
39
39
  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; }
40
40
 
@@ -42,8 +42,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
42
42
 
43
43
  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; }
44
44
 
45
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
46
-
47
45
  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); } }
48
46
 
49
47
  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); }); }; }
@@ -139,9 +137,9 @@ function UpvoteButton(_ref) {
139
137
  ,
140
138
  align: popAlign,
141
139
  onSelect: /*#__PURE__*/function () {
142
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(type) {
140
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(type) {
143
141
  var count;
144
- return _regeneratorRuntime().wrap(function _callee$(_context) {
142
+ return regeneratorRuntime.wrap(function _callee$(_context) {
145
143
  while (1) {
146
144
  switch (_context.prev = _context.next) {
147
145
  case 0:
@@ -185,8 +183,8 @@ function UpvoteButton(_ref) {
185
183
  }()
186
184
  }, /*#__PURE__*/_react["default"].createElement("a", {
187
185
  className: "feed-upvote-button__wrapper",
188
- onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
189
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
186
+ onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
187
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
190
188
  while (1) {
191
189
  switch (_context2.prev = _context2.next) {
192
190
  case 0:
@@ -23,6 +23,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
23
23
 
24
24
  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; }
25
25
 
26
+ // eslint-disable-next-line func-names
26
27
  function _default(props) {
27
28
  var onSelect = props.onSelect,
28
29
  selected = props.selected,
@@ -38,7 +39,8 @@ function _default(props) {
38
39
  auth = _useContext.auth,
39
40
  authType = _useContext.authType,
40
41
  isGetRoot = _useContext.isGetRoot,
41
- disabledDepartSelect = _useContext.disabledDepartSelect;
42
+ disabledDepartSelect = _useContext.disabledDepartSelect,
43
+ staffStatus = _useContext.staffStatus;
42
44
 
43
45
  var onGetDepartTreeData = function onGetDepartTreeData() {
44
46
  return (0, _requestApis.getTreeData)(departId, {
@@ -46,7 +48,8 @@ function _default(props) {
46
48
  auth: auth,
47
49
  authType: authType,
48
50
  isGetRoot: isGetRoot,
49
- sourceFrom: sourceFrom
51
+ sourceFrom: sourceFrom,
52
+ staffStatus: staffStatus
50
53
  });
51
54
  };
52
55
 
@@ -57,7 +60,8 @@ function _default(props) {
57
60
  authType: authType,
58
61
  isGetRoot: isGetRoot,
59
62
  sourceFrom: sourceFrom,
60
- isLoadNodes: true
63
+ isLoadNodes: true,
64
+ staffStatus: staffStatus
61
65
  });
62
66
  };
63
67
 
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.StaffStatus = void 0;
7
+ // eslint-disable-next-line import/prefer-default-export
8
+ var StaffStatus;
9
+ exports.StaffStatus = StaffStatus;
10
+
11
+ (function (StaffStatus) {
12
+ StaffStatus[StaffStatus["All"] = 0] = "All";
13
+ StaffStatus[StaffStatus["OnTheJob"] = 1] = "OnTheJob";
14
+ StaffStatus[StaffStatus["Dimission"] = 2] = "Dimission";
15
+ })(StaffStatus || (exports.StaffStatus = StaffStatus = {}));
@@ -21,6 +21,8 @@ var _popup = _interopRequireDefault(require("../../../popup"));
21
21
 
22
22
  var _getLocale = require("../../../../utils/getLocale");
23
23
 
24
+ var _enum = require("../../enum");
25
+
24
26
  require("../../index.css");
25
27
 
26
28
  require("./index.css");
@@ -113,7 +115,9 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
113
115
  adjustY: true
114
116
  },
115
117
  targetOffset: [0, 0]
116
- } : _props$popupAlign;
118
+ } : _props$popupAlign,
119
+ _props$enableDimissio = props.enableDimissionSwitch,
120
+ enableDimissionSwitch = _props$enableDimissio === void 0 ? false : _props$enableDimissio;
117
121
 
118
122
  var _useState = (0, _react.useState)([]),
119
123
  _useState2 = _slicedToArray(_useState, 2),
@@ -125,15 +129,20 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
125
129
  selectedText = _useState4[0],
126
130
  setSelectedText = _useState4[1];
127
131
 
128
- var _useState5 = (0, _react.useState)(),
132
+ var _useState5 = (0, _react.useState)(_enum.StaffStatus.OnTheJob),
129
133
  _useState6 = _slicedToArray(_useState5, 2),
130
- jsxDomValues = _useState6[0],
131
- setJsxDomValues = _useState6[1];
134
+ staffStatus = _useState6[0],
135
+ setStaffStatus = _useState6[1];
132
136
 
133
- var _useState7 = (0, _react.useState)(false),
137
+ var _useState7 = (0, _react.useState)(),
134
138
  _useState8 = _slicedToArray(_useState7, 2),
135
- visible = _useState8[0],
136
- setVisible = _useState8[1];
139
+ jsxDomValues = _useState8[0],
140
+ setJsxDomValues = _useState8[1];
141
+
142
+ var _useState9 = (0, _react.useState)(false),
143
+ _useState10 = _slicedToArray(_useState9, 2),
144
+ visible = _useState10[0],
145
+ setVisible = _useState10[1];
137
146
 
138
147
  var setSelectedByProps = function setSelectedByProps() {
139
148
  var selected = [];
@@ -192,7 +201,8 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
192
201
  departOnly: departOnly,
193
202
  auth: auth,
194
203
  isGetRoot: isGetRoot,
195
- sourceFrom: sourceFrom
204
+ sourceFrom: sourceFrom,
205
+ staffStatus: staffStatus
196
206
  }).then(function (departs) {
197
207
  var rootNode;
198
208
 
@@ -210,7 +220,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
210
220
  getDepartRoot(rootNode);
211
221
  });
212
222
  }
213
- }, []);
223
+ }, [staffStatus]);
214
224
  (0, _react.useImperativeHandle)(ref, function () {
215
225
  return {
216
226
  open: function open() {
@@ -297,12 +307,15 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
297
307
  };
298
308
 
299
309
  var popup = /*#__PURE__*/_react["default"].createElement(_selectorGenerater["default"], {
300
- multiple: multiple,
310
+ multiple: multiple // key={staffStatus}
311
+ ,
301
312
  onCancel: onCancelHandler,
302
313
  onOk: onOkHandler,
303
314
  selected: selected,
304
315
  onSelect: onOkHandler,
305
- showSearchInput: showSearchInput
316
+ onStaffStatusChange: setStaffStatus,
317
+ showSearchInput: showSearchInput,
318
+ staffStatus: staffStatus
306
319
  });
307
320
 
308
321
  if (disabled) return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
@@ -326,7 +339,9 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
326
339
  disabledDepartSelect: disabledDepartSelect,
327
340
  panes: panes,
328
341
  searchWord: searchWord,
329
- searchedPanes: searchedPanes
342
+ searchedPanes: searchedPanes,
343
+ enableDimissionSwitch: enableDimissionSwitch,
344
+ staffStatus: staffStatus
330
345
  }
331
346
  }, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
332
347
  popup: popup,
@@ -37,3 +37,17 @@
37
37
  border-top: solid 1px #e9ecf0;
38
38
  border-radius: 1px;
39
39
  }
40
+
41
+ .perspm-multiple-selector__box-footer__dimission {
42
+ flex: 1;
43
+ padding-left: 20px;
44
+ display: flex;
45
+ align-items: center;
46
+ }
47
+
48
+ .perspm-multiple-selector__box-footer__dimission label {
49
+ margin-left: 8px;
50
+ font-size: 13px;
51
+ line-height: 18px;
52
+ color: #6F7886;
53
+ }
@@ -11,6 +11,14 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
+ var _getLocale = require("../../../../../utils/getLocale");
15
+
16
+ var _context = require("../../../context");
17
+
18
+ var _enum = require("../../../enum");
19
+
20
+ var _switch = _interopRequireDefault(require("../../../../switch"));
21
+
14
22
  var _actionBtns = _interopRequireDefault(require("../../../action-btns"));
15
23
 
16
24
  var _selectedPanel = _interopRequireDefault(require("../../../selected-panel"));
@@ -47,24 +55,39 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
47
55
 
48
56
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
49
57
 
50
- var preCls = "perspm-multiple-selector";
58
+ var preCls = 'perspm-multiple-selector';
51
59
 
52
60
  function _default(props) {
53
61
  var _props$onCancel = props.onCancel,
54
62
  onCancel = _props$onCancel === void 0 ? function () {} : _props$onCancel,
55
63
  _props$onOk = props.onOk,
56
- onOk = _props$onOk === void 0 ? function () {} : _props$onOk;
64
+ onOk = _props$onOk === void 0 ? function () {} : _props$onOk,
65
+ _props$onStaffStatusC = props.onStaffStatusChange,
66
+ onStaffStatusChange = _props$onStaffStatusC === void 0 ? function () {} : _props$onStaffStatusC,
67
+ staffStatus = props.staffStatus;
68
+
69
+ var _useContext = (0, _react.useContext)(_context.CommonContext),
70
+ enableDimissionSwitch = _useContext.enableDimissionSwitch;
57
71
 
58
- var _useState = (0, _react.useState)([]),
72
+ var _useState = (0, _react.useState)(staffStatus === _enum.StaffStatus.All),
59
73
  _useState2 = _slicedToArray(_useState, 2),
60
- selected = _useState2[0],
61
- setSelected = _useState2[1]; // 外部可以修改选中的节点
74
+ switchChecked = _useState2[0],
75
+ setSwitchChecked = _useState2[1];
76
+
77
+ var _useState3 = (0, _react.useState)([]),
78
+ _useState4 = _slicedToArray(_useState3, 2),
79
+ selected = _useState4[0],
80
+ setSelected = _useState4[1]; // 外部可以修改选中的节点
62
81
 
63
82
 
64
83
  (0, _react.useEffect)(function () {
65
84
  setSelected(props.selected);
66
85
  }, [props.selected]);
67
86
 
87
+ var getStaffStatus = function getStaffStatus(showDimissionPerson) {
88
+ return enableDimissionSwitch && showDimissionPerson ? _enum.StaffStatus.All : _enum.StaffStatus.OnTheJob;
89
+ };
90
+
68
91
  var onTreeNodeSelectHander = function onTreeNodeSelectHander(_, info) {
69
92
  var nodeIsSelected = !!(selected || []).filter(function (it) {
70
93
  return it.id == info.node.id;
@@ -76,12 +99,17 @@ function _default(props) {
76
99
  setSelected([].concat(_toConsumableArray(selected || []), [info.node]));
77
100
  };
78
101
 
102
+ var onSwitchChange = function onSwitchChange(checked) {
103
+ setSwitchChecked(checked);
104
+ onStaffStatusChange(getStaffStatus(checked));
105
+ };
106
+
79
107
  var onOkHandler = function onOkHandler(e) {
80
- onOk(selected, e);
108
+ return onOk(selected, e);
81
109
  };
82
110
 
83
111
  var wrapperClickHandler = function wrapperClickHandler(e) {
84
- e.stopPropagation();
112
+ return e.stopPropagation();
85
113
  };
86
114
 
87
115
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -95,7 +123,8 @@ function _default(props) {
95
123
  className: (0, _classnames["default"])("".concat(preCls, "__box-inner-left"))
96
124
  }, /*#__PURE__*/_react["default"].createElement(_singleSelector["default"], {
97
125
  onSelectPure: onTreeNodeSelectHander,
98
- showSearchInput: true
126
+ showSearchInput: true,
127
+ staffStatus: getStaffStatus(switchChecked)
99
128
  })), /*#__PURE__*/_react["default"].createElement("div", {
100
129
  className: (0, _classnames["default"])("".concat(preCls, "__box-inner-right"))
101
130
  }, /*#__PURE__*/_react["default"].createElement(_selectedPanel["default"], {
@@ -103,7 +132,15 @@ function _default(props) {
103
132
  setSelected: setSelected
104
133
  }))), /*#__PURE__*/_react["default"].createElement("div", {
105
134
  className: (0, _classnames["default"])("".concat(preCls, "__box-footer"))
106
- }, /*#__PURE__*/_react["default"].createElement(_actionBtns["default"], {
135
+ }, enableDimissionSwitch && /*#__PURE__*/_react["default"].createElement("div", {
136
+ className: (0, _classnames["default"])("".concat(preCls, "__box-footer__dimission"))
137
+ }, /*#__PURE__*/_react["default"].createElement(_switch["default"], {
138
+ checked: switchChecked,
139
+ id: "".concat(preCls, "__dimission-switch"),
140
+ onChange: onSwitchChange
141
+ }), /*#__PURE__*/_react["default"].createElement("label", {
142
+ htmlFor: "".concat(preCls, "__dimission-switch")
143
+ }, (0, _getLocale.getLocale)('Per_Ass_New_but_disdis'))), /*#__PURE__*/_react["default"].createElement(_actionBtns["default"], {
107
144
  onCancel: onCancel,
108
145
  onOk: onOkHandler
109
146
  }))));
@@ -49,7 +49,8 @@ function _default(props) {
49
49
  var onSelect = props.onSelect,
50
50
  onSelectPure = props.onSelectPure,
51
51
  _props$showSearchInpu = props.showSearchInput,
52
- showSearchInput = _props$showSearchInpu === void 0 ? true : _props$showSearchInpu;
52
+ showSearchInput = _props$showSearchInpu === void 0 ? true : _props$showSearchInpu,
53
+ staffStatus = props.staffStatus;
53
54
 
54
55
  var _useContext = (0, _react.useContext)(_context.CommonContext),
55
56
  _useContext$searchWor = _useContext.searchWord,
@@ -96,8 +97,9 @@ function _default(props) {
96
97
  })), /*#__PURE__*/_react["default"].createElement("div", {
97
98
  className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-content"), _defineProperty({}, (0, _classnames["default"])("".concat(_precls["default"], "__inner-content--nosearch")), !showSearchInput))
98
99
  }, searchKey ? /*#__PURE__*/_react["default"].createElement(_searchedPanel["default"], {
100
+ onNodeSelect: onTreeNodeClichHandler,
99
101
  searchKey: searchKey,
100
- onNodeSelect: onTreeNodeClichHandler
102
+ staffStatus: staffStatus
101
103
  }) : /*#__PURE__*/_react["default"].createElement("div", {
102
104
  style: {
103
105
  height: "100%"
@@ -31,7 +31,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
31
31
 
32
32
  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; }
33
33
 
34
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
34
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
35
35
 
36
36
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
37
37
 
@@ -9,7 +9,7 @@ var _axios = _interopRequireDefault(require("axios"));
9
9
 
10
10
  var _utils = require("./utils");
11
11
 
12
- var _openData = require("../../utils/open-data");
12
+ var _enum = require("./enum");
13
13
 
14
14
  var _BSGlobal, _BSGlobal$tenantInfo, _BSGlobal2, _BSGlobal2$loginUserI;
15
15
 
@@ -46,7 +46,9 @@ var getDepartments = function getDepartments(_ref) {
46
46
  auth = _ref$auth === void 0 ? false : _ref$auth,
47
47
  authType = _ref.authType,
48
48
  isGetRoot = _ref.isGetRoot,
49
- isLoadNodes = _ref.isLoadNodes;
49
+ isLoadNodes = _ref.isLoadNodes,
50
+ _ref$staffStatus = _ref.staffStatus,
51
+ staffStatus = _ref$staffStatus === void 0 ? _enum.StaffStatus.OnTheJob : _ref$staffStatus;
50
52
  // 根据权限类型使用不同的objtype
51
53
  var authTypeId;
52
54
  if (auth && !authType) authType = 'okr';
@@ -61,7 +63,7 @@ var getDepartments = function getDepartments(_ref) {
61
63
  var prevPath = "".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/department/sub"); // 请求参数
62
64
 
63
65
  var urlParams = "departmentId=".concat(nodeId, "&isGetUser=").concat(isGetUser).concat(isGetRootNode ? '&isRoot=true' : '');
64
- return _axios["default"].get(auth ? "".concat(prevPath, "/depsAndUsersByPrivilege?").concat(urlParams, "&objtype=").concat(authTypeId) : "".concat(prevPath, "/depsAndUsers?").concat(urlParams)).then(function (departs) {
66
+ return _axios["default"].get(auth ? "".concat(prevPath, "/depsAndUsersByPrivilege?").concat(urlParams, "&objtype=").concat(authTypeId, "&staffStatus=").concat(staffStatus) : "".concat(prevPath, "/depsAndUsers?").concat(urlParams, "&staffStatus=").concat(staffStatus)).then(function (departs) {
65
67
  if (isGetRootNode) {
66
68
  // 第一次获取根节点
67
69
  // 无权时,获取的节点列表中存在 -1 的节点,用 -1 的节点作为根节点
@@ -120,7 +122,8 @@ var getTreeData = function getTreeData(id, opts, resolve) {
120
122
  _opts$isLoadNodes = opts.isLoadNodes,
121
123
  isLoadNodes = _opts$isLoadNodes === void 0 ? false : _opts$isLoadNodes,
122
124
  isGetRoot = opts.isGetRoot,
123
- authType = opts.authType;
125
+ authType = opts.authType,
126
+ staffStatus = opts.staffStatus;
124
127
  return getDepartments({
125
128
  nodeId: id,
126
129
  isGetUser: !departOnly,
@@ -128,7 +131,8 @@ var getTreeData = function getTreeData(id, opts, resolve) {
128
131
  auth: auth,
129
132
  isGetRoot: isGetRoot,
130
133
  authType: authType,
131
- isLoadNodes: isLoadNodes
134
+ isLoadNodes: isLoadNodes,
135
+ staffStatus: staffStatus
132
136
  }).then(function (res) {
133
137
  var _res$Data = res.Data,
134
138
  _res$Data$departments = _res$Data.departments,
@@ -176,7 +180,9 @@ var search = function search(_ref4) {
176
180
  _ref4$auth = _ref4.auth,
177
181
  auth = _ref4$auth === void 0 ? false : _ref4$auth,
178
182
  _ref4$isVerify = _ref4.isVerify,
179
- isVerify = _ref4$isVerify === void 0 ? false : _ref4$isVerify;
183
+ isVerify = _ref4$isVerify === void 0 ? false : _ref4$isVerify,
184
+ _ref4$staffStatus = _ref4.staffStatus,
185
+ staffStatus = _ref4$staffStatus === void 0 ? _enum.StaffStatus.OnTheJob : _ref4$staffStatus;
180
186
  var isGetUser = true;
181
187
  var isGetDep = true;
182
188
  var isGetGroup = false;
@@ -203,7 +209,7 @@ var search = function search(_ref4) {
203
209
  isGetGroup = false;
204
210
  }
205
211
 
206
- return _axios["default"].get("".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/search/searchAll?keyWord=").concat(searchKey, "&isVerify=").concat(isVerify, "&isGetUser=").concat(isGetUser, "&isGetDep=").concat(isGetDep, "&isGetGroup=").concat(isGetGroup)).then(function (searchRes) {
212
+ return _axios["default"].get("".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/search/searchAll?keyWord=").concat(searchKey, "&isVerify=").concat(isVerify, "&isGetUser=").concat(isGetUser, "&isGetDep=").concat(isGetDep, "&isGetGroup=").concat(isGetGroup, "&staffStatus=").concat(staffStatus)).then(function (searchRes) {
207
213
  return searchRes.data;
208
214
  });
209
215
  };
@@ -50,7 +50,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
50
50
  function _default(props) {
51
51
  var searchKey = props.searchKey,
52
52
  onNodeSelect = props.onNodeSelect,
53
- selected = props.selected;
53
+ selected = props.selected,
54
+ _props$staffStatus = props.staffStatus,
55
+ staffStatus = _props$staffStatus === void 0 ? 1 : _props$staffStatus;
54
56
 
55
57
  var _useState = (0, _react.useState)(false),
56
58
  _useState2 = _slicedToArray(_useState, 2),
@@ -103,7 +105,8 @@ function _default(props) {
103
105
  searchUserOnly: searchUserOnly,
104
106
  auth: auth,
105
107
  panes: panes,
106
- isVerify: isVerify
108
+ isVerify: isVerify,
109
+ staffStatus: staffStatus
107
110
  }).then(function (res) {
108
111
  var Code = res.Code,
109
112
  Data = res.Data;
@@ -126,7 +129,7 @@ function _default(props) {
126
129
 
127
130
  (0, _hooks.useDebouncedEffect)(function () {
128
131
  searchUser();
129
- }, 200, [searchKey]); // 计算结果,是否显示空值
132
+ }, 200, [searchKey, staffStatus]); // 计算结果,是否显示空值
130
133
 
131
134
  var itemCount = 0;
132
135
 
@@ -37,7 +37,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
37
37
 
38
38
  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; }
39
39
 
40
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
40
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
41
41
 
42
42
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
43
43
 
@@ -92,7 +92,8 @@ function _default(props) {
92
92
  setRawTreeData = _useState6[1];
93
93
 
94
94
  var _useContext = (0, _react.useContext)(_context.CommonContext),
95
- disabledDepartSelect = _useContext.disabledDepartSelect;
95
+ disabledDepartSelect = _useContext.disabledDepartSelect,
96
+ staffStatus = _useContext.staffStatus;
96
97
 
97
98
  (0, _react.useEffect)(function () {
98
99
  if (!asyncData) {
@@ -106,7 +107,7 @@ function _default(props) {
106
107
  setTreeData((0, _utils.toTree)(rawTreeData));
107
108
  setLoading(false);
108
109
  });
109
- }, []);
110
+ }, [staffStatus]);
110
111
 
111
112
  var onBeforeSelect = function onBeforeSelect(node) {
112
113
  if (disabledDepartSelect && node.nodeType == "depart") return false;
@@ -193,6 +194,7 @@ function _default(props) {
193
194
  return /*#__PURE__*/_react["default"].createElement("div", {
194
195
  className: "perspm-tree"
195
196
  }, /*#__PURE__*/_react["default"].createElement(_tree["default"], _extends({}, restProps, {
197
+ key: staffStatus,
196
198
  multiple: multiple,
197
199
  selectNodeHighlight: false,
198
200
  defaultExpandedKeys: getDefaultExpandedKeys(),