@titaui/pc 1.12.7 → 1.12.9-beta.10

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 (321) 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 +21 -20
  10. package/lib/components/change-okr-modal/filterTab.js +2 -2
  11. package/lib/components/change-okr-modal/index.js +2 -2
  12. package/lib/components/change-okr-modal/styledComponents.js +9 -9
  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 +8 -2
  16. package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
  17. package/lib/components/create-okr-modal/fields/index.css +14 -3
  18. package/lib/components/create-okr-modal/fields/o-new-name.js +31 -20
  19. package/lib/components/create-okr-modal/fields/okr-case.js +7 -5
  20. package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
  21. package/lib/components/create-okr-modal/index.js +215 -142
  22. package/lib/components/create-okr-modal/kr-items/index.css +23 -13
  23. package/lib/components/create-okr-modal/kr-items/krDatas.js +96 -76
  24. package/lib/components/create-okr-modal/kr-items/krItem.js +54 -57
  25. package/lib/components/create-okr-modal/objectType.js +2 -2
  26. package/lib/components/create-okr-modal/style.js +5 -5
  27. package/lib/components/date-picker/BodyItem.js +3 -3
  28. package/lib/components/date-picker/CalendarBody.js +3 -3
  29. package/lib/components/date-picker/CalendarHeader.js +3 -3
  30. package/lib/components/date-picker/index.js +2 -2
  31. package/lib/components/date-range-picker/index.js +2 -2
  32. package/lib/components/delete-confirm-pop/ConfirmPop.js +2 -2
  33. package/lib/components/dialog/index.js +1 -1
  34. package/lib/components/dialog-confirm/index.js +1 -1
  35. package/lib/components/drawer/headerDrop.js +1 -1
  36. package/lib/components/drawer/index.css +9 -0
  37. package/lib/components/drawer/index.js +12 -9
  38. package/lib/components/drawer-manager/drawerWrapper.js +1 -1
  39. package/lib/components/drawer-manager/index.js +1 -1
  40. package/lib/components/drop-selector/index.js +1 -1
  41. package/lib/components/dynamic/components/title/index.js +1 -1
  42. package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +7 -7
  43. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
  44. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +8 -8
  45. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
  46. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
  47. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
  48. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +18 -18
  49. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +4 -2
  50. package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
  51. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
  52. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
  53. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
  54. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
  55. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
  56. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +10 -10
  57. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +4 -2
  58. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
  59. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
  60. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
  61. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +4 -2
  62. package/lib/components/dynamic/dynamic-item/index.js +9 -1
  63. package/lib/components/dynamic/dynamic-list/index.js +19 -2
  64. package/lib/components/eReport/eReportListEmpty.js +2 -2
  65. package/lib/components/eReport/eReportLists/reportList.js +31 -32
  66. package/lib/components/eReport/eReportShare/index.js +2 -2
  67. package/lib/components/eReport/eReportShare/style.js +1 -1
  68. package/lib/components/eReport/eReportShare/toast/index.js +2 -2
  69. package/lib/components/edit-kr-wight/EditKrWightModal.js +13 -11
  70. package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
  71. package/lib/components/emotions-selector/selector-content.js +2 -2
  72. package/lib/components/emotions-selector/selector-pop.js +2 -2
  73. package/lib/components/ereport-list/index.js +2 -2
  74. package/lib/components/error-boundary/index.js +2 -2
  75. package/lib/components/form/form-fields/date/index.js +1 -1
  76. package/lib/components/form/form-fields/dropdown/index.js +1 -1
  77. package/lib/components/form/form-fields/input/index.js +1 -1
  78. package/lib/components/form/form-fields/user/index.js +1 -1
  79. package/lib/components/help-card/index.js +1 -1
  80. package/lib/components/mblog/components/ConfirmPop.js +2 -2
  81. package/lib/components/mblog/components/MblogAction.js +2 -2
  82. package/lib/components/mblog/components/MblogContent.js +2 -2
  83. package/lib/components/mblog/index.js +2 -2
  84. package/lib/components/menus/components/menu-tree/index.js +1 -1
  85. package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
  86. package/lib/components/menus/export-modules/appraisal-menus/index.js +30 -12
  87. package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +22 -6
  88. package/lib/components/menus/export-modules/appraisal-menus/menus.js +104 -9
  89. package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +19 -1
  90. package/lib/components/menus/export-modules/demo-menus/menus.js +34 -1
  91. package/lib/components/menus/export-modules/okr-menus/menus.js +6 -3
  92. package/lib/components/nav-top/components/app-center/images/chart.svg +22 -0
  93. package/lib/components/nav-top/components/app-center/images/file.svg +20 -0
  94. package/lib/components/nav-top/components/app-center/images/interview.svg +20 -0
  95. package/lib/components/nav-top/components/app-center/images/learning.svg +23 -0
  96. package/lib/components/nav-top/components/app-center/images/okr.svg +22 -0
  97. package/lib/components/nav-top/components/app-center/images/performance.svg +22 -0
  98. package/lib/components/nav-top/components/app-center/images/plan.svg +22 -0
  99. package/lib/components/nav-top/components/app-center/images/project.svg +23 -0
  100. package/lib/components/nav-top/components/app-center/images/summary.svg +23 -0
  101. package/lib/components/nav-top/components/app-center/index.css +154 -0
  102. package/lib/components/nav-top/components/app-center/index.js +157 -0
  103. package/lib/components/nav-top/components/menu/index.js +5 -9
  104. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
  105. package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +3 -3
  106. package/lib/components/nav-top/index.css +48 -7
  107. package/lib/components/nav-top/index.js +54 -33
  108. package/lib/components/nav-top/utils.js +464 -1
  109. package/lib/components/okr-detail/auth.js +2 -2
  110. package/lib/components/okr-detail/components/ao-nice/index.css +0 -1
  111. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
  112. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
  113. package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
  114. package/lib/components/okr-detail/components/header/edit-name.js +76 -39
  115. package/lib/components/okr-detail/components/header/index.css +122 -41
  116. package/lib/components/okr-detail/components/header/index.js +45 -48
  117. package/lib/components/okr-detail/components/header/o-avatar.js +6 -0
  118. package/lib/components/okr-detail/components/header/o-classify.js +154 -0
  119. package/lib/components/okr-detail/components/header/o-name.js +7 -5
  120. package/lib/components/okr-detail/components/header/o-score.js +1 -1
  121. package/lib/components/okr-detail/components/icon-text/index.js +1 -1
  122. package/lib/components/okr-detail/components/o-progress-update/index.js +2 -2
  123. package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
  124. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
  125. package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
  126. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +66 -4
  127. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +174 -64
  128. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +2 -2
  129. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
  130. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
  131. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +15 -13
  132. package/lib/components/okr-detail/components/tab-panel-content/index.css +1 -0
  133. package/lib/components/okr-detail/detail-header/index.js +11 -5
  134. package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
  135. package/lib/components/okr-detail/okr-list/create-kr-item/index.js +75 -53
  136. package/lib/components/okr-detail/okr-list/index.css +9 -0
  137. package/lib/components/okr-detail/okr-list/index.js +25 -25
  138. package/lib/components/okr-detail/request-apis.js +73 -69
  139. package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
  140. package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
  141. package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
  142. package/lib/components/okr-flow/child-node/kr-node.js +3 -1
  143. package/lib/components/okr-flow/child-node/work-node.js +3 -1
  144. package/lib/components/okr-flow/export-modal/color.png +0 -0
  145. package/lib/components/okr-flow/export-modal/index.css +28 -13
  146. package/lib/components/okr-flow/export-modal/index.js +88 -40
  147. package/lib/components/okr-flow/export-modal/trans1.png +0 -0
  148. package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
  149. package/lib/components/okr-progress/components/o-progress/index.js +3 -1
  150. package/lib/components/okr-progress/components/o-progress-update/index.js +2 -2
  151. package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
  152. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
  153. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
  154. package/lib/components/okr-review/ReviewPop/index.js +2 -2
  155. package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
  156. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +2 -2
  157. package/lib/components/okr-review/index.js +2 -2
  158. package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
  159. package/lib/components/okr-share/common-painter/utils.js +187 -36
  160. package/lib/components/okr-share/index.css +5 -4
  161. package/lib/components/okr-share/pink-card/card.js +3 -3
  162. package/lib/components/okr-share/pink-card/drawKrs.js +97 -18
  163. package/lib/components/okr-share/pink-card/index.js +20 -12
  164. package/lib/components/open-data-painter/index.js +6 -5
  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/components/button/style.js +1 -1
  170. package/lib/components/period-selector/index.css +1 -0
  171. package/lib/components/period-selector/index.js +7 -2
  172. package/lib/components/picker/components/panels/date-panel/index.js +1 -1
  173. package/lib/components/picker/components/panels/month-panel/index.js +1 -1
  174. package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
  175. package/lib/components/picker/components/panels/year-panel/index.js +1 -1
  176. package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
  177. package/lib/components/picker/picker.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/praise-record/PraiseRecordItem.js +2 -2
  183. package/lib/components/praise-record/index.js +2 -2
  184. package/lib/components/range-picker-pop/index.js +3 -3
  185. package/lib/components/range-selector-pop/RangeList.js +2 -2
  186. package/lib/components/range-selector-pop/RangeSelectorPop.js +2 -2
  187. package/lib/components/rich-editor/models/schema.js +2 -2
  188. package/lib/components/rich-editor/plugins/block/block-quote/index.js +2 -2
  189. package/lib/components/rich-editor/plugins/block/heading/index.js +2 -2
  190. package/lib/components/rich-editor/plugins/block/lists/index.js +2 -2
  191. package/lib/components/rich-editor/plugins/block/paragraph/index.js +2 -2
  192. package/lib/components/rich-editor/plugins/core/index.js +2 -2
  193. package/lib/components/rich-editor/plugins/extension/alignment/index.js +2 -2
  194. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +2 -2
  195. package/lib/components/rich-editor/plugins/inline/color/index.js +2 -2
  196. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +2 -2
  197. package/lib/components/rich-editor/plugins/inline/em/index.js +2 -2
  198. package/lib/components/rich-editor/plugins/inline/link/index.js +2 -2
  199. package/lib/components/rich-editor/plugins/inline/strong/index.js +2 -2
  200. package/lib/components/rich-editor/plugins/inline/under-line/index.js +2 -2
  201. package/lib/components/rich-editor/react/reactNodeView.js +4 -4
  202. package/lib/components/rich-editor/react/uiProvider.js +2 -2
  203. package/lib/components/rich-editor/ui/Popup/index.js +2 -2
  204. package/lib/components/scroll-container/index.js +2 -2
  205. package/lib/components/scrollbar/index.js +1 -1
  206. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  207. package/lib/components/scrollbar/simplebar-react.js +1 -1
  208. package/lib/components/search-dropdown/index.js +1 -1
  209. package/lib/components/search-key-handle/index.js +12 -10
  210. package/lib/components/select/Option.js +3 -3
  211. package/lib/components/select/index.js +3 -3
  212. package/lib/components/select-layer/index.js +23 -9
  213. package/lib/components/select-tags/index.js +1 -1
  214. package/lib/components/switch/index.js +1 -1
  215. package/lib/components/table/index.js +1 -1
  216. package/lib/components/tabs/index.js +1 -1
  217. package/lib/components/task-relation-modal/helper.js +1 -56
  218. package/lib/components/task-relation-modal/index.js +1 -1
  219. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
  220. package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
  221. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
  222. package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
  223. package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +2 -2
  224. package/lib/components/task-relation-modal/request-api.js +5 -2
  225. package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
  226. package/lib/components/task-relation-modal/tree/work-tree/search-form.js +22 -3
  227. package/lib/components/task-relation-modal/tree-node/index.js +1 -1
  228. package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -4
  229. package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
  230. package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
  231. package/lib/components/task-relation-modal/work-relation/index.js +1 -1
  232. package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
  233. package/lib/components/task-tree/task-tree.js +1 -1
  234. package/lib/components/textarea/index.js +1 -1
  235. package/lib/components/time-picker/time-picker-selector.js +1 -1
  236. package/lib/components/time-picker/time-picker.js +1 -1
  237. package/lib/components/time-picker/timer-picker-input.js +1 -1
  238. package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
  239. package/lib/components/tita-chart/charts/pie.js +1 -1
  240. package/lib/components/tita-chart/errorBoundary/index.js +2 -2
  241. package/lib/components/tooltip/error-tip.js +1 -1
  242. package/lib/components/tooltip/tooltip.js +10 -5
  243. package/lib/components/tree/index.js +1 -1
  244. package/lib/components/upload/components/uploadedPreview.js +19 -19
  245. package/lib/components/upload/index.js +25 -25
  246. package/lib/components/upvote/index.js +1 -1
  247. package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
  248. package/lib/components/user-selector/category-selector-panel/index.js +1 -0
  249. package/lib/components/user-selector/export-modules/field-tree-selector/index.css +11 -1
  250. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +35 -17
  251. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
  252. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
  253. package/lib/components/user-selector/request-apis.js +43 -9
  254. package/lib/components/user-selector/searched-panel/index.js +11 -5
  255. package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
  256. package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
  257. package/lib/components/viewer/ImageListRender.js +2 -2
  258. package/lib/components/viewer/index.js +2 -2
  259. package/lib/components/wechat-btn/index.css +5 -1
  260. package/lib/components-v1/animate/AnimateChild.js +2 -2
  261. package/lib/components-v1/animate/animate.js +2 -2
  262. package/lib/components-v1/avatar/index.js +2 -2
  263. package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
  264. package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
  265. package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
  266. package/lib/components-v1/confirm/index.js +2 -2
  267. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -2
  268. package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
  269. package/lib/components-v1/input/Input.js +3 -3
  270. package/lib/components-v1/input/InputNumber.js +2 -2
  271. package/lib/components-v1/placement/placement.js +2 -2
  272. package/lib/components-v1/placement/placementInner.js +2 -2
  273. package/lib/components-v1/pop/Pop.js +2 -2
  274. package/lib/components-v1/pop/PopInner.js +2 -2
  275. package/lib/components-v1/portals/Portals.js +2 -2
  276. package/lib/components-v1/progress/CircleProgress.js +2 -2
  277. package/lib/components-v1/progress/LineProgress.js +2 -2
  278. package/lib/components-v1/progress/index.js +2 -2
  279. package/lib/components-v1/radio/radio.js +2 -2
  280. package/lib/components-v1/radio/radioGroup.js +2 -2
  281. package/lib/components-v1/search/index.js +2 -2
  282. package/lib/components-v1/select/Option.js +3 -3
  283. package/lib/components-v1/select/index.js +3 -3
  284. package/lib/components-v1/tabs/index.js +2 -2
  285. package/lib/components-v1/textarea/index.js +2 -2
  286. package/lib/components-v1/transition/index.js +2 -2
  287. package/lib/components-v1/userSelector/UserSelectorPop.js +2 -2
  288. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
  289. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
  290. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
  291. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
  292. package/lib/components-v1/userSelector/components/MultiMode/index.js +2 -2
  293. package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
  294. package/lib/components-v1/userSelector/components/SingleMode.js +9 -7
  295. package/lib/components-v1/userSelector/components/UserItem.js +2 -2
  296. package/lib/components-v1/userSelector/index.js +2 -2
  297. package/lib/pages/aha2021/index.js +5 -5
  298. package/lib/pages/aha2021/new-menu-switcher/index.css +40 -0
  299. package/lib/pages/aha2021/new-menu-switcher/index.js +81 -0
  300. package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
  301. package/lib/pages/aha2021/request-api.js +15 -0
  302. package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
  303. package/lib/pages/appointment-demo/input/index.js +3 -3
  304. package/lib/pages/appointment-demo/popup/index.js +1 -1
  305. package/lib/pages/group-management/components/input-form/index.js +3 -3
  306. package/lib/pages/group-management/components/radio/index.js +1 -1
  307. package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
  308. package/lib/pages/group-management/tree/index.js +1 -1
  309. package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
  310. package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
  311. package/lib/pages/new-okr-list/header/index.js +15 -15
  312. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +1 -1
  313. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
  314. package/lib/pages/okr-map/level2-search/user.js +1 -0
  315. package/lib/pages/okr-map/share-dialog/index.js +1 -1
  316. package/lib/utils/auth.js +2 -2
  317. package/lib/utils/hooks.js +5 -5
  318. package/lib/utils/open-data.js +216 -66
  319. package/lib/utils/tita-okr-cycle.js +3 -3
  320. package/package.json +2 -1
  321. package/lib/utils/planDataJson.js +0 -11115
@@ -51,7 +51,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
51
51
 
52
52
  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; }
53
53
 
54
- 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); }
54
+ 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); }
55
55
 
56
56
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
57
57
 
@@ -69,7 +69,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
69
69
 
70
70
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
71
71
 
72
- var prefix = "titaui-dynamic-relative-item";
72
+ var prefix = 'titaui-dynamic-relative-item';
73
73
 
74
74
  var DynamicRelative = function DynamicRelative(_ref) {
75
75
  var _classNames, _classNames2;
@@ -99,13 +99,13 @@ var DynamicRelative = function DynamicRelative(_ref) {
99
99
 
100
100
  var handleClickTitle = function handleClickTitle(id, type) {
101
101
  if (type === _constant.EObjType.Kr) {
102
- _drawerManager["default"].open("krDetail", {
102
+ _drawerManager["default"].open('krDetail', {
103
103
  krId: id
104
104
  });
105
105
  }
106
106
 
107
107
  if (type === _constant.EObjType.O) {
108
- _drawerManager["default"].open("okrDetail", {
108
+ _drawerManager["default"].open('okrDetail', {
109
109
  okrId: id
110
110
  });
111
111
  }
@@ -115,7 +115,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
115
115
  }
116
116
 
117
117
  if (type === _constant.EObjType.Task) {
118
- window.Talent.app.vent.trigger("global-pull-screen", id, "task");
118
+ window.Talent.app.vent.trigger('global-pull-screen', id, 'task');
119
119
  }
120
120
  };
121
121
 
@@ -123,15 +123,15 @@ var DynamicRelative = function DynamicRelative(_ref) {
123
123
  var text;
124
124
 
125
125
  if (relateObjType === _constant.EObjType.Kr) {
126
- text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Mod_KeyResults"));
126
+ text = "".concat((0, _getLocale.getLocale)('Mod_Connected')).concat((0, _getLocale.getLocale)('Mod_KeyResults'));
127
127
  }
128
128
 
129
129
  if (relateObjType === _constant.EObjType.O) {
130
- text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Mod_Objective"));
130
+ text = "".concat((0, _getLocale.getLocale)('Mod_Connected')).concat((0, _getLocale.getLocale)('Mod_Objective'));
131
131
  }
132
132
 
133
133
  if (relateObjType === _constant.EObjType.Project) {
134
- text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Feed_Set_Project"));
134
+ text = "".concat((0, _getLocale.getLocale)('Mod_Connected')).concat((0, _getLocale.getLocale)('Feed_Set_Project'));
135
135
  }
136
136
 
137
137
  return /*#__PURE__*/_react["default"].createElement("span", {
@@ -165,7 +165,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
165
165
  }, /*#__PURE__*/_react["default"].createElement("img", {
166
166
  alt: "",
167
167
  className: "".concat(prefix, "__obj-base-info-left-img"),
168
- src: relatedImgUrl || ""
168
+ src: relatedImgUrl || ''
169
169
  })), /*#__PURE__*/_react["default"].createElement("div", {
170
170
  className: "".concat(prefix, "__obj-base-info-right")
171
171
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -213,7 +213,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
213
213
  }
214
214
  }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
215
215
  isPercent: true,
216
- text: (0, _tools.htmlDecodeByRegExp)(objName)
216
+ text: (0, _openData.parseString)((0, _tools.htmlDecodeByRegExp)(objName))
217
217
  })), /*#__PURE__*/_react["default"].createElement("div", {
218
218
  className: "".concat(prefix, "__obj-other-info")
219
219
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -29,6 +29,8 @@ var _getLocale = require("../../../../utils/getLocale");
29
29
 
30
30
  var _tools = require("../../../../utils/tools");
31
31
 
32
+ var _openData = require("../../../../utils/open-data");
33
+
32
34
  require("./index.css");
33
35
 
34
36
  var _excluded = ["data"];
@@ -39,7 +41,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
39
41
 
40
42
  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; }
41
43
 
42
- 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); }
44
+ 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); }
43
45
 
44
46
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
45
47
 
@@ -95,7 +97,7 @@ var DynamicReply = function DynamicReply(_ref) {
95
97
  className: "".concat(prefix, "__object-name"),
96
98
  onClick: handleClickOTitle
97
99
  }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
98
- text: (0, _tools.htmlDecodeByRegExp)(data.obj.objName),
100
+ text: (0, _openData.parseString)((0, _tools.htmlDecodeByRegExp)(data.obj.objName)),
99
101
  isPercent: true
100
102
  })), "\u4E0B\u5173\u952E\u6210\u679C\u7684\u590D\u76D8");
101
103
  }
@@ -33,7 +33,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
33
33
 
34
34
  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; }
35
35
 
36
- 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); }
36
+ 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
37
 
38
38
  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; }
39
39
 
@@ -49,7 +49,7 @@ 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 _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); }
52
+ 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); }
53
53
 
54
54
  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; }
55
55
 
@@ -39,7 +39,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
39
39
 
40
40
  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; }
41
41
 
42
- 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); }
42
+ 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); }
43
43
 
44
44
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
45
45
 
@@ -29,6 +29,8 @@ var _getLocale = require("../../../../utils/getLocale");
29
29
 
30
30
  var _mblog = require("../../../../utils/mblog");
31
31
 
32
+ var _openData = require("../../../../utils/open-data");
33
+
32
34
  require("./index.css");
33
35
 
34
36
  var _excluded = ["data"];
@@ -39,7 +41,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
39
41
 
40
42
  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; }
41
43
 
42
- 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); }
44
+ 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); }
43
45
 
44
46
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
45
47
 
@@ -118,7 +120,7 @@ var DynamicTask = function DynamicTask(_ref) {
118
120
  className: "".concat(prefix, "__object-name"),
119
121
  onClick: handleClickTitle
120
122
  }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
121
- text: (0, _mblog.htmlDecodeByRegExp)(obj.objName),
123
+ text: (0, _openData.parseString)((0, _mblog.htmlDecodeByRegExp)(obj.objName)),
122
124
  isPercent: true
123
125
  })), (0, _getLocale.getLocale)('Mod_stask'));
124
126
  }
@@ -154,7 +154,11 @@ var DynamicItem = function DynamicItem(_ref) {
154
154
  setUpvoteModalVisible = _useState12[1];
155
155
 
156
156
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
157
- searchKeyWord = _useContext.searchKeyWord;
157
+ searchKeyWord = _useContext.searchKeyWord,
158
+ atAllText = _useContext.atAllText,
159
+ atAllTipText = _useContext.atAllTipText,
160
+ atAllValue = _useContext.atAllValue,
161
+ isShowAtAll = _useContext.isShowAtAll;
158
162
 
159
163
  var hasDynamicOpereateAuth = new _auth.DynamicManagerAuth().hasAuth();
160
164
  var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)('WebHead')) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
@@ -515,6 +519,10 @@ var DynamicItem = function DynamicItem(_ref) {
515
519
  }, /*#__PURE__*/_react["default"].createElement("div", {
516
520
  className: (0, _classnames["default"])("".concat(prefix, "__communication"))
517
521
  }, /*#__PURE__*/_react["default"].createElement(_communication["default"], {
522
+ atAllText: atAllText,
523
+ atAllTipText: atAllTipText,
524
+ atAllValue: atAllValue,
525
+ showAtAll: isShowAtAll,
518
526
  feedId: feedId,
519
527
  commentCount: 3,
520
528
  ref: communicationRef,
@@ -21,8 +21,14 @@ var _context = require("../context");
21
21
 
22
22
  require("./index.css");
23
23
 
24
+ var _excluded = ["data", "dynamicShareIsShowToping", "onDeleteFeed", "height", "searchKeyWord", "atAllText", "atAllTipText", "atAllValue", "isShowAtAll"];
25
+
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
27
 
28
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
29
+
30
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
31
+
26
32
  var prefix = 'titaui-dynamic-list';
27
33
 
28
34
  var DynamicList = function DynamicList(_ref) {
@@ -32,7 +38,14 @@ var DynamicList = function DynamicList(_ref) {
32
38
  _ref$height = _ref.height,
33
39
  height = _ref$height === void 0 ? -1 : _ref$height,
34
40
  _ref$searchKeyWord = _ref.searchKeyWord,
35
- searchKeyWord = _ref$searchKeyWord === void 0 ? "" : _ref$searchKeyWord;
41
+ searchKeyWord = _ref$searchKeyWord === void 0 ? "" : _ref$searchKeyWord,
42
+ atAllText = _ref.atAllText,
43
+ atAllTipText = _ref.atAllTipText,
44
+ atAllValue = _ref.atAllValue,
45
+ isShowAtAll = _ref.isShowAtAll,
46
+ restProps = _objectWithoutProperties(_ref, _excluded);
47
+
48
+ console.log(123, restProps);
36
49
 
37
50
  var handleDeleteFeed = function handleDeleteFeed(feedId) {
38
51
  if (onDeleteFeed) {
@@ -42,7 +55,11 @@ var DynamicList = function DynamicList(_ref) {
42
55
 
43
56
  return /*#__PURE__*/_react["default"].createElement(_context.SearchKeyContext.Provider, {
44
57
  value: {
45
- searchKeyWord: searchKeyWord
58
+ searchKeyWord: searchKeyWord,
59
+ atAllText: atAllText,
60
+ atAllTipText: atAllTipText,
61
+ atAllValue: atAllValue,
62
+ isShowAtAll: isShowAtAll
46
63
  }
47
64
  }, /*#__PURE__*/_react["default"].createElement("div", {
48
65
  className: prefix,
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
29
29
 
30
30
  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); }
31
31
 
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
34
34
  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); }; }
35
35
 
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
39
39
 
40
40
  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; } }
41
41
 
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
43
 
44
44
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
45
45
 
@@ -37,7 +37,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
37
37
 
38
38
  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); }
39
39
 
40
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
40
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
41
 
42
42
  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); }; }
43
43
 
@@ -47,7 +47,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
47
47
 
48
48
  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; } }
49
49
 
50
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
50
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
51
51
 
52
52
  var EReportList = /*#__PURE__*/function (_React$Component) {
53
53
  _inherits(EReportList, _React$Component);
@@ -64,7 +64,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
64
64
  }
65
65
 
66
66
  return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
67
- selectedPeriodValue: "",
67
+ selectedPeriodValue: '',
68
68
  showDatePick: false,
69
69
  eReportWeekList: [],
70
70
  timePickRef: /*#__PURE__*/_react["default"].createRef(),
@@ -73,25 +73,25 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
73
73
  timePickResultsEmpty: false,
74
74
  isShowEReportSharePop: false,
75
75
  eReportId: 0,
76
- eReportDate: "",
76
+ eReportDate: '',
77
77
  isShowToast: false,
78
- submitStatus: ""
78
+ submitStatus: ''
79
79
  }, _this.setIsTimeSelected = function (v) {
80
80
  _this.setState({
81
81
  selectedPeriodValue: v
82
82
  });
83
83
  }, _this.handleClickReportListsDiv = function (e) {
84
84
  _this.setState({
85
- showDatePick: e.target.getAttribute("data-name") === "time-pick"
85
+ showDatePick: e.target.getAttribute('data-name') === 'time-pick'
86
86
  });
87
87
  }, _this.handleTimePickConfirm = function (_ref) {
88
88
  var startDate = _ref.startDate,
89
89
  endDate = _ref.endDate;
90
90
  // 将2019-12-3改为2019年12月3日
91
- var start = startDate.substring(0, startDate.indexOf("T"));
92
- var end = endDate.substring(0, endDate.indexOf("T"));
93
- start = start.replace(/-/i, "").replace(/-/i, "") + (0, _getLocale.getLocale)("Mod_Sun");
94
- end = end.replace(/-/i, "").replace(/-/i, "") + (0, _getLocale.getLocale)("Mod_Sun");
91
+ var start = startDate.substring(0, startDate.indexOf('T'));
92
+ var end = endDate.substring(0, endDate.indexOf('T'));
93
+ start = start.replace(/-/i, '').replace(/-/i, '') + (0, _getLocale.getLocale)('Mod_Sun');
94
+ end = end.replace(/-/i, '').replace(/-/i, '') + (0, _getLocale.getLocale)('Mod_Sun');
95
95
 
96
96
  _this.setState({
97
97
  selectedPeriodValue: "".concat(start, " - ").concat(end),
@@ -102,7 +102,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
102
102
 
103
103
  var okrId = _this.props.okrId;
104
104
  var url = (0, _requestV.getApiUrl)("okr/weekStatistics/list?okrId=".concat(okrId, "&startDate=").concat(start, "&endDate=").concat(end));
105
- (0, _requestV.taker)(url, "get", null, {}).then(function (res) {
105
+ (0, _requestV.taker)(url, 'get', null, {}).then(function (res) {
106
106
  _this.setState({
107
107
  eReportWeekList: res.Data
108
108
  });
@@ -113,15 +113,15 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
113
113
  });
114
114
 
115
115
  var url = (0, _requestV.getApiUrl)("okr/weekStatistics/info?id=".concat(id));
116
- (0, _requestV.taker)(url, "get", null).then(function (res) {
116
+ (0, _requestV.taker)(url, 'get', null).then(function (res) {
117
117
  window.open();
118
118
  });
119
119
  }, _this.handlerEReportShareSubmit = function (submitStatus, eReportId, startDate, endDate) {
120
- if (submitStatus === "success") {
120
+ if (submitStatus === 'success') {
121
121
  _this.setState({
122
122
  isShowEReportSharePop: false,
123
123
  isShowToast: true,
124
- submitStatus: "success"
124
+ submitStatus: 'success'
125
125
  });
126
126
 
127
127
  setTimeout(function () {
@@ -129,11 +129,11 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
129
129
  isShowToast: false
130
130
  });
131
131
  }, 2000);
132
- } else if (submitStatus === "failed") {
132
+ } else if (submitStatus === 'failed') {
133
133
  _this.setState({
134
134
  isShowEReportSharePop: false,
135
135
  isShowToast: true,
136
- submitStatus: "error"
136
+ submitStatus: 'error'
137
137
  });
138
138
 
139
139
  setTimeout(function () {
@@ -141,11 +141,11 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
141
141
  isShowToast: false
142
142
  });
143
143
  }, 2000);
144
- } else if (submitStatus === "cancel") {
144
+ } else if (submitStatus === 'cancel') {
145
145
  _this.setState({
146
146
  isShowEReportSharePop: false
147
147
  });
148
- } else if (submitStatus === "showEReportShare") {
148
+ } else if (submitStatus === 'showEReportShare') {
149
149
  _this.setState({
150
150
  isShowEReportSharePop: true,
151
151
  eReportId: eReportId || 0,
@@ -157,6 +157,8 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
157
157
  isVisible = _this$props.isVisible,
158
158
  okrName = _this$props.okrName,
159
159
  okrId = _this$props.okrId;
160
+ var StrRreg = /@\$(userName|departmentName)\=(.+?)\$/g;
161
+ var workName = okrName === null || okrName === void 0 ? void 0 : okrName.replace(StrRreg, '');
160
162
  return /*#__PURE__*/_react["default"].createElement(_Portals["default"], null, /*#__PURE__*/_react["default"].createElement(_transition["default"], {
161
163
  visible: showShare,
162
164
  animate: true,
@@ -168,7 +170,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
168
170
  }, /*#__PURE__*/_react["default"].createElement(_eReportShare["default"], {
169
171
  className: "ereport__share__wrapper",
170
172
  isVisible: isVisible,
171
- workName: okrName,
173
+ workName: workName,
172
174
  workId: okrId,
173
175
  eReportId: id,
174
176
  eReportDate: date,
@@ -186,7 +188,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
186
188
 
187
189
  var okrId = this.props.okrId;
188
190
  var url = (0, _requestV.getApiUrl)("okr/weekStatistics/list?okrId=".concat(okrId));
189
- (0, _requestV.taker)(url, "get", null, {}).then(function (res) {
191
+ (0, _requestV.taker)(url, 'get', null, {}).then(function (res) {
190
192
  _this2.setState({
191
193
  eReportWeekList: res.Data || [],
192
194
  timePick: _this2.state.timePickRef.current
@@ -204,22 +206,19 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
204
206
  key: v.id
205
207
  }, /*#__PURE__*/_react["default"].createElement(_style.ItemTimeDivStyle, null, /*#__PURE__*/_react["default"].createElement(_style.ItemTimeBackgroundStyle, {
206
208
  className: "tu-icon-OKRs-E"
207
- }), /*#__PURE__*/_react["default"].createElement(_style.ItemTimeTextStyle, null, "(", "".concat(v.startDate, "-").concat(v.endDate), ")")), /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsActionsDivStyle, null, /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsChildsDivStyle, null, /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsShareBackgroundStyle, {
209
+ }), /*#__PURE__*/_react["default"].createElement(_style.ItemTimeTextStyle, null, "(", "".concat(v.startDate, "-").concat(v.endDate), ")")), /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsActionsDivStyle, null, /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsChildsDivStyle, {
208
210
  onClick: function onClick() {
209
- return _this3.handlerEReportShareSubmit("showEReportShare", v.id, v.startDate, v.endDate);
210
- },
211
- className: "tu-icon-share1"
212
- }), /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsShareTextStyle, {
213
- onClick: function onClick() {
214
- return _this3.handlerEReportShareSubmit("showEReportShare", v.id, v.startDate, v.endDate);
211
+ return _this3.handlerEReportShareSubmit('showEReportShare', v.id, v.startDate, v.endDate);
215
212
  }
216
- }, (0, _getLocale.getLocale)("OKR_MyO_Share"))), /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsChildsDivStyle, null, /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsMoreInfoTextStyle, {
213
+ }, /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsShareBackgroundStyle, {
214
+ className: "tu-icon-share1 hahahahaha"
215
+ }), /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsShareTextStyle, null, (0, _getLocale.getLocale)('OKR_MyO_Share'))), /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsChildsDivStyle, null, /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsMoreInfoTextStyle, {
217
216
  target: "_new",
218
217
  onClick: function onClick() {
219
218
  return window.open("".concat(location.pathname, "#okr/eReport?okrId=").concat(v.id, "&work_id=").concat(okrId));
220
219
  },
221
220
  href: void 0
222
- }, (0, _getLocale.getLocale)("Mod_Checkdetails")), /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsMoreInfoBackgroundStyle, {
221
+ }, (0, _getLocale.getLocale)('Mod_Checkdetails')), /*#__PURE__*/_react["default"].createElement(_style.ItemOptionsMoreInfoBackgroundStyle, {
223
222
  onClick: function onClick() {
224
223
  window.open("".concat(location.pathname, "#okr/eReport?okrId=").concat(v.id, "&work_id=").concat(okrId));
225
224
  },
@@ -239,7 +238,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
239
238
  value: function getTimePick() {
240
239
  return /*#__PURE__*/_react["default"].createElement(_style.ListTopDivStyle, {
241
240
  ref: this.state.timePickRef
242
- }, /*#__PURE__*/_react["default"].createElement(_style.ListTopLabelStyle, null, (0, _getLocale.getLocale)("OKR_MyO_Ew_List")), /*#__PURE__*/_react["default"].createElement(_style.ListTopTimePickDivStyle, null, /*#__PURE__*/_react["default"].createElement(_style.TimePickStyle, {
241
+ }, /*#__PURE__*/_react["default"].createElement(_style.ListTopLabelStyle, null, (0, _getLocale.getLocale)('OKR_MyO_Ew_List')), /*#__PURE__*/_react["default"].createElement(_style.ListTopTimePickDivStyle, null, /*#__PURE__*/_react["default"].createElement(_style.TimePickStyle, {
243
242
  "data-name": "time-pick",
244
243
  className: "tu-icon-schedule"
245
244
  }), /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
@@ -250,7 +249,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
250
249
  onConfirm: this.handleTimePickConfirm
251
250
  }, /*#__PURE__*/_react["default"].createElement(_style.TimePickTextStyle, {
252
251
  "data-name": "time-pick"
253
- }, this.state.selectedPeriodValue || (0, _getLocale.getLocale)("OKR_MyO_Ew_Butt_Filterbytime")))));
252
+ }, this.state.selectedPeriodValue || (0, _getLocale.getLocale)('OKR_MyO_Ew_Butt_Filterbytime')))));
254
253
  }
255
254
  }, {
256
255
  key: "render",
@@ -267,7 +266,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
267
266
  return timePickResultsEmpty ? /*#__PURE__*/_react["default"].createElement(_style.ListStyle, {
268
267
  onClick: this.handleClickReportListsDiv
269
268
  }, this.getTimePick(), eReportWeekList.length === 0 ? /*#__PURE__*/_react["default"].createElement(_eReportListEmpty["default"], {
270
- text: (0, _getLocale.getLocale)("Mod_ lookingfor")
269
+ text: (0, _getLocale.getLocale)('Mod_ lookingfor')
271
270
  }) : this.getListItem(eReportWeekList), this.getShare(isShowEReportSharePop, eReportId, eReportDate), this.getToast(isShowToast, submitStatus)) : eReportWeekList.length === 0 ? /*#__PURE__*/_react["default"].createElement(_eReportListEmpty["default"], {
272
271
  text: "\u8FD8\u672A\u5230E-\u5468\u62A5\u751F\u6210\u65F6\u95F4\u54E6~"
273
272
  }) : /*#__PURE__*/_react["default"].createElement(_style.ListStyle, {
@@ -35,7 +35,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
35
35
 
36
36
  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); }
37
37
 
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
38
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
39
 
40
40
  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); }; }
41
41
 
@@ -45,7 +45,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
45
45
 
46
46
  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; } }
47
47
 
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
48
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
49
 
50
50
  var EReportShare = /*#__PURE__*/function (_PureComponent) {
51
51
  _inherits(EReportShare, _PureComponent);
@@ -17,7 +17,7 @@ var ModalWrapper = _styledComponents["default"].div(_templateObject || (_templat
17
17
 
18
18
  exports.ModalWrapper = ModalWrapper;
19
19
 
20
- var ModalContainer = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", ";\n height: 223px;\n padding: 20px 30px 10px;\n box-shadow: 0 0 4px 0 rgba(0,0,0,0.20);\n border-radius: 4px;\n background: #FFFFFF;\n"])), function (p) {
20
+ var ModalContainer = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", ";\n height: 223px;\n padding: 20px 30px 10px;\n box-shadow: 0 0 4px 0 rgba(0,0,0,0.20);\n border-radius: 12px;\n background: #FFFFFF;\n"])), function (p) {
21
21
  return p.width;
22
22
  });
23
23
 
@@ -25,7 +25,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
25
25
 
26
26
  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); }
27
27
 
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
30
30
  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); }; }
31
31
 
@@ -35,7 +35,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
35
35
 
36
36
  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; } }
37
37
 
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
39
 
40
40
  var Toast = /*#__PURE__*/function (_PureComponent) {
41
41
  _inherits(Toast, _PureComponent);
@@ -27,6 +27,8 @@ var _utils = require("./utils");
27
27
 
28
28
  var _getLocale = require("../../utils/getLocale");
29
29
 
30
+ var _openData = require("../../utils/open-data");
31
+
30
32
  require("./style/style.css");
31
33
 
32
34
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -49,7 +51,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
49
51
 
50
52
  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); }
51
53
 
52
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
54
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
53
55
 
54
56
  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); }; }
55
57
 
@@ -59,7 +61,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
59
61
 
60
62
  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; } }
61
63
 
62
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
64
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
63
65
 
64
66
  function totalWeightCalculator(milepostData) {
65
67
  return milepostData.reduce(function (acc, curr) {
@@ -110,7 +112,7 @@ var EditKrWightModal = /*#__PURE__*/function (_Component) {
110
112
 
111
113
  _this.handleOk = function () {
112
114
  if (!_this.state.isValid) {
113
- _toast["default"].Warning("关键成果总权重须等于100%");
115
+ _toast["default"].Warning('关键成果总权重须等于100%');
114
116
 
115
117
  return;
116
118
  }
@@ -126,10 +128,10 @@ var EditKrWightModal = /*#__PURE__*/function (_Component) {
126
128
  };
127
129
  });
128
130
 
129
- (0, _requestV.taker)((0, _requestV.getApiUrl)(url), "post", data).then(function (res) {
131
+ (0, _requestV.taker)((0, _requestV.getApiUrl)(url), 'post', data).then(function (res) {
130
132
  _this.props.onOk && _this.props.onOk(); // @ts-ignore
131
133
 
132
- window.Talent.app.vent.trigger("updateProgress:Project-Progress-View", {});
134
+ window.Talent.app.vent.trigger('updateProgress:Project-Progress-View', {});
133
135
  });
134
136
  };
135
137
 
@@ -295,7 +297,7 @@ var EditKrWightModal = /*#__PURE__*/function (_Component) {
295
297
  isValid = _this$state.isValid,
296
298
  isDone = _this$state.isDone;
297
299
  return /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
298
- title: (0, _getLocale.getLocale)("OKR_MyO_Text_krweightsetting"),
300
+ title: (0, _getLocale.getLocale)('OKR_MyO_Text_krweightsetting'),
299
301
  noFooterLine: true,
300
302
  visible: !isDone && isShowModal,
301
303
  width: "570px",
@@ -324,19 +326,19 @@ var EditKrWightModal = /*#__PURE__*/function (_Component) {
324
326
  }, /*#__PURE__*/_react["default"].createElement(_style.KrCounter, null, /*#__PURE__*/_react["default"].createElement("div", {
325
327
  className: "kr-counter"
326
328
  }, "KR".concat(index + 1))), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
327
- title: mileStoneName,
329
+ title: (0, _openData.parseString)(mileStoneName),
328
330
  overlayStyle: mileStoneName.length > 18 ? {
329
331
  zIndex: 99999
330
332
  } : {}
331
- }, /*#__PURE__*/_react["default"].createElement(_style.KrTitle, null, mileStoneName)), /*#__PURE__*/_react["default"].createElement(_style.FormItemWrapper, {
333
+ }, /*#__PURE__*/_react["default"].createElement(_style.KrTitle, null, (0, _openData.parseString)(mileStoneName))), /*#__PURE__*/_react["default"].createElement(_style.FormItemWrapper, {
332
334
  style: {
333
335
  width: 140
334
336
  }
335
- }, /*#__PURE__*/_react["default"].createElement(_style.FormItemLabel, null, (0, _getLocale.getLocale)("OKR_MyO_Text_Weights")), /*#__PURE__*/_react["default"].createElement(_FormItemV["default"], {
337
+ }, /*#__PURE__*/_react["default"].createElement(_style.FormItemLabel, null, (0, _getLocale.getLocale)('OKR_MyO_Text_Weights')), /*#__PURE__*/_react["default"].createElement(_FormItemV["default"], {
336
338
  isDirty: data.isDirty,
337
- errorText: (0, _getLocale.getLocale)("OKR_MyO_KRP_Please0and100")
339
+ errorText: (0, _getLocale.getLocale)('OKR_MyO_KRP_Please0and100')
338
340
  }, /*#__PURE__*/_react["default"].createElement(_Input["default"], {
339
- suffixIcon: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage"),
341
+ suffixIcon: (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Percentage'),
340
342
  value: krWeight,
341
343
  onChange: function onChange(value) {
342
344
  return _this4.handleWeightChange(value, feedId);