@titaui/pc 1.12.13-beta.1 → 1.12.15

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 (296) hide show
  1. package/lib/components/communication/index.js +6 -0
  2. package/lib/components/dialog-confirm/index.css +0 -1
  3. package/lib/components/dialog-confirm/index.js +3 -5
  4. package/lib/components/drawer/index.css +9 -0
  5. package/lib/components/drawer/index.js +11 -8
  6. package/lib/components/dynamic/dynamic-item/components/header/index.js +5 -1
  7. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +2 -3
  8. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +2 -3
  9. package/lib/components/dynamic/dynamic-item/index.css +0 -1
  10. package/lib/components/dynamic/dynamic-item/index.js +14 -19
  11. package/lib/components/dynamic/dynamic-list/index.js +19 -2
  12. package/lib/components/form/form-fields/date/index.js +13 -13
  13. package/lib/components/menus/components/menu-tree/tree-node/index.css +0 -120
  14. package/lib/components/menus/components/menu-tree/tree-node/index.js +2 -22
  15. package/lib/components/menus/export-modules/appraisal-menus/index.js +30 -12
  16. package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +22 -6
  17. package/lib/components/menus/export-modules/appraisal-menus/menus.js +104 -9
  18. package/lib/components/menus/export-modules/okr-menus/menus.js +6 -3
  19. package/lib/components/menus/i18n.js +0 -8
  20. package/lib/components/menus/index.js +0 -6
  21. package/lib/components/menus/request-apis.js +2 -8
  22. package/lib/components/nav-top/components/app-center/images/chart.svg +22 -0
  23. package/lib/components/nav-top/components/app-center/images/file.svg +20 -0
  24. package/lib/components/nav-top/components/app-center/images/interview.svg +20 -0
  25. package/lib/components/nav-top/components/app-center/images/learning.svg +23 -0
  26. package/lib/components/nav-top/components/app-center/images/okr.svg +22 -0
  27. package/lib/components/nav-top/components/app-center/images/performance.svg +22 -0
  28. package/lib/components/nav-top/components/app-center/images/plan.svg +22 -0
  29. package/lib/components/nav-top/components/app-center/images/project.svg +23 -0
  30. package/lib/components/nav-top/components/app-center/images/summary.svg +23 -0
  31. package/lib/components/nav-top/components/app-center/index.css +154 -0
  32. package/lib/components/{import-modal/import-okr-modal → nav-top/components/app-center}/index.js +104 -84
  33. package/lib/components/nav-top/components/menu/index.js +3 -7
  34. package/lib/components/nav-top/index.css +48 -7
  35. package/lib/components/nav-top/index.js +54 -33
  36. package/lib/components/nav-top/utils.js +464 -1
  37. package/lib/components/okr-detail/components/header/o-avatar.js +6 -0
  38. package/lib/components/okr-flow/export-modal/color.png +0 -0
  39. package/lib/components/okr-flow/export-modal/index.css +28 -13
  40. package/lib/components/okr-flow/export-modal/index.js +81 -44
  41. package/lib/components/okr-flow/export-modal/trans1.png +0 -0
  42. package/lib/components/period-selector/components/button/style.js +1 -1
  43. package/lib/components/period-selector/index.css +1 -0
  44. package/lib/components/period-selector/index.js +7 -2
  45. package/lib/components/picker/components/panels/date-panel/date-body.js +19 -31
  46. package/lib/components/picker/components/panels/date-panel/date-head.js +8 -8
  47. package/lib/components/picker/components/panels/date-panel/index.js +1 -1
  48. package/lib/components/picker/components/panels/month-panel/index.css +0 -5
  49. package/lib/components/picker/components/panels/month-panel/index.js +4 -34
  50. package/lib/components/picker/components/panels/month-panel/month-body.js +5 -4
  51. package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
  52. package/lib/components/picker/components/panels/year-panel/index.css +0 -5
  53. package/lib/components/picker/components/panels/year-panel/index.js +3 -34
  54. package/lib/components/picker/components/panels/year-panel/year-body.js +3 -10
  55. package/lib/components/picker/components/picker-trigger/index.css +1 -6
  56. package/lib/components/picker/components/picker-trigger/index.js +11 -16
  57. package/lib/components/picker/context.js +2 -17
  58. package/lib/components/picker/index.css +1 -29
  59. package/lib/components/picker/index.js +0 -3
  60. package/lib/components/picker/picker-panels.js +61 -98
  61. package/lib/components/picker/picker.js +30 -44
  62. package/lib/components/picker/utils.js +11 -168
  63. package/lib/components/rich-editor/schemas/list.js +1 -0
  64. package/lib/components/search-input/index.js +0 -5
  65. package/lib/components/select-layer/index.js +22 -8
  66. package/lib/components/select-tags/index.js +1 -7
  67. package/lib/components/task-relation-modal/helper.js +1 -56
  68. package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
  69. package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
  70. package/lib/components/task-relation-modal/request-api.js +5 -2
  71. package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
  72. package/lib/components/task-relation-modal/tree/work-tree/search-form.js +22 -3
  73. package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
  74. package/lib/components/textarea/index.js +5 -7
  75. package/lib/components/tooltip/tooltip.js +9 -4
  76. package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
  77. package/lib/components/user-selector/export-modules/field-tree-selector/index.css +11 -1
  78. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +21 -3
  79. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
  80. package/lib/components/user-selector/request-apis.js +39 -9
  81. package/lib/components/user-selector/searched-panel/index.js +7 -1
  82. package/lib/index.js +0 -56
  83. package/lib/pages/aha2021/index.js +5 -5
  84. package/lib/pages/aha2021/new-menu-switcher/index.css +40 -0
  85. package/lib/{components/import-modal/radio.js → pages/aha2021/new-menu-switcher/index.js} +42 -23
  86. package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
  87. package/lib/pages/aha2021/request-api.js +15 -0
  88. package/lib/pages/okr-map/level2-search/user.js +1 -0
  89. package/lib/utils/bs-global.js +1 -1
  90. package/lib/utils/constant.js +2 -14
  91. package/lib/utils/helpers.js +11 -56
  92. package/package.json +1 -2
  93. package/lib/components/attachments-preview/index.css +0 -11
  94. package/lib/components/attachments-preview/index.js +0 -112
  95. package/lib/components/auto-save/img/failed.svg +0 -17
  96. package/lib/components/auto-save/img/success.svg +0 -16
  97. package/lib/components/auto-save/index.css +0 -39
  98. package/lib/components/auto-save/index.js +0 -78
  99. package/lib/components/auto-save/interface.js +0 -5
  100. package/lib/components/color-date-picker/index.css +0 -72
  101. package/lib/components/color-date-picker/index.js +0 -129
  102. package/lib/components/color-date-picker/interface.js +0 -14
  103. package/lib/components/dialog-upload/img/doc.svg +0 -1
  104. package/lib/components/dialog-upload/img/other.svg +0 -1
  105. package/lib/components/dialog-upload/img/pdf.svg +0 -1
  106. package/lib/components/dialog-upload/img/ppt.svg +0 -1
  107. package/lib/components/dialog-upload/img/radio.svg +0 -1
  108. package/lib/components/dialog-upload/img/video.svg +0 -1
  109. package/lib/components/dialog-upload/img/xls.svg +0 -1
  110. package/lib/components/dialog-upload/index.css +0 -77
  111. package/lib/components/dialog-upload/index.js +0 -330
  112. package/lib/components/dialog-upload/type.js +0 -35
  113. package/lib/components/dialog-upload/uploaded-preview.css +0 -77
  114. package/lib/components/dialog-upload/uploaded-preview.js +0 -132
  115. package/lib/components/dialog-upload/util.js +0 -131
  116. package/lib/components/dynamic/dynamic-item/components/comments-dialog/api.js +0 -27
  117. package/lib/components/dynamic/dynamic-item/components/comments-dialog/encourage.js +0 -119
  118. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/APP-shoucang-m.png +0 -0
  119. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/ascore.png +0 -0
  120. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curEfforts.png +0 -0
  121. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGood.png +0 -0
  122. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGreat.png +0 -0
  123. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/efforts.png +0 -0
  124. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/good.png +0 -0
  125. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/great.png +0 -0
  126. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/halfscore.png +0 -0
  127. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/loading.gif +0 -0
  128. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/score.png +0 -0
  129. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/top.svg +0 -14
  130. package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.css +0 -75
  131. package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +0 -195
  132. package/lib/components/dynamic/dynamic-item/components/comments-dialog/rate.js +0 -143
  133. package/lib/components/dynamic/dynamic-item/components/header/img/evalute.png +0 -0
  134. package/lib/components/dynamic/dynamic-item/components/header/img/fighting.png +0 -0
  135. package/lib/components/dynamic/dynamic-item/components/header/img/happy.png +0 -0
  136. package/lib/components/dynamic/dynamic-item/components/header/img/long-story.png +0 -0
  137. package/lib/components/dynamic/dynamic-item/components/header/img/pressure.png +0 -0
  138. package/lib/components/dynamic/dynamic-item/components/okr-progress/constant.js +0 -31
  139. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +0 -170
  140. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +0 -151
  141. package/lib/components/dynamic/dynamic-item/components/okr-progress/interface.js +0 -5
  142. package/lib/components/dynamic/dynamic-item/components/okr-progress/request-api.js +0 -10
  143. package/lib/components/dynamic/dynamic-item/components/okr-progress/utils.js +0 -10
  144. package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.css +0 -8
  145. package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.js +0 -26
  146. package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.css +0 -8
  147. package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.js +0 -26
  148. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.css +0 -197
  149. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +0 -220
  150. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/request-api.js +0 -20
  151. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/util.js +0 -134
  152. package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.css +0 -10
  153. package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.js +0 -60
  154. package/lib/components/dynamic/dynamic-item/components/progress/index.css +0 -25
  155. package/lib/components/dynamic/dynamic-item/components/progress/index.js +0 -71
  156. package/lib/components/dynamic/dynamic-item/components/progress/interface.js +0 -5
  157. package/lib/components/dynamic/dynamic-item/components/schedule/index.css +0 -31
  158. package/lib/components/dynamic/dynamic-item/components/schedule/index.js +0 -59
  159. package/lib/components/dynamic/dynamic-item/components/schedule/interface.js +0 -5
  160. package/lib/components/dynamic/dynamic-item/components/summary-header/constant.js +0 -45
  161. package/lib/components/dynamic/dynamic-item/components/summary-header/img/evalute.png +0 -0
  162. package/lib/components/dynamic/dynamic-item/components/summary-header/img/fighting.png +0 -0
  163. package/lib/components/dynamic/dynamic-item/components/summary-header/img/happy.png +0 -0
  164. package/lib/components/dynamic/dynamic-item/components/summary-header/img/long-story.png +0 -0
  165. package/lib/components/dynamic/dynamic-item/components/summary-header/img/pressure.png +0 -0
  166. package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +0 -166
  167. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +0 -360
  168. package/lib/components/dynamic/dynamic-item/components/summary-header/operate-record.js +0 -49
  169. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +0 -24
  170. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +0 -52
  171. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/interface.js +0 -5
  172. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +0 -50
  173. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +0 -65
  174. package/lib/components/dynamic/dynamic-item/components/table-row-okr/interface.js +0 -5
  175. package/lib/components/dynamic/dynamic-item/components/task-progress/constant.js +0 -16
  176. package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +0 -201
  177. package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +0 -169
  178. package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +0 -5
  179. package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +0 -27
  180. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-big.png +0 -0
  181. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-small.png +0 -0
  182. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/evaluate-big.png +0 -0
  183. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-big.png +0 -0
  184. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-small.png +0 -0
  185. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-big.png +0 -0
  186. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-small.png +0 -0
  187. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +0 -68
  188. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +0 -50
  189. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +0 -43
  190. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +0 -87
  191. package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +0 -45
  192. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/evalute.png +0 -0
  193. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/fighting.png +0 -0
  194. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/happy.png +0 -0
  195. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/long-story.png +0 -0
  196. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/pressure.png +0 -0
  197. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +0 -171
  198. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +0 -231
  199. package/lib/components/dynamic/dynamic-item/dynamic-new-report/util.js +0 -30
  200. package/lib/components/import-modal/helper.js +0 -179
  201. package/lib/components/import-modal/image/loading.gif +0 -0
  202. package/lib/components/import-modal/import-okr-modal/index.css +0 -18
  203. package/lib/components/import-modal/import-task-modal/index.css +0 -18
  204. package/lib/components/import-modal/import-task-modal/index.js +0 -241
  205. package/lib/components/import-modal/import-task-modal/search-form.js +0 -135
  206. package/lib/components/import-modal/index.css +0 -30
  207. package/lib/components/import-modal/index.js +0 -20
  208. package/lib/components/import-modal/request-api.js +0 -204
  209. package/lib/components/import-modal/search/category-select.js +0 -74
  210. package/lib/components/import-modal/search/okr-classify-select.js +0 -74
  211. package/lib/components/import-modal/search/okr-status-select.js +0 -74
  212. package/lib/components/import-modal/search/okr-type-select.js +0 -87
  213. package/lib/components/import-modal/search/principal.js +0 -135
  214. package/lib/components/import-modal/search/relation.js +0 -80
  215. package/lib/components/import-modal/search/search-dropdown/index.css +0 -50
  216. package/lib/components/import-modal/search/search-dropdown/index.js +0 -32
  217. package/lib/components/import-modal/search/task-relation.js +0 -83
  218. package/lib/components/import-modal/search/task-status-select.js +0 -87
  219. package/lib/components/import-modal/search/work-relation.js +0 -83
  220. package/lib/components/import-modal/search/work-status-select.js +0 -74
  221. package/lib/components/import-modal/tree/okr-tree/index.css +0 -61
  222. package/lib/components/import-modal/tree/okr-tree/index.js +0 -267
  223. package/lib/components/import-modal/tree/okr-tree/search-form.js +0 -169
  224. package/lib/components/import-modal/tree/task-work-tree/index.css +0 -123
  225. package/lib/components/import-modal/tree/task-work-tree/index.js +0 -187
  226. package/lib/components/import-modal/tree-node/index.css +0 -0
  227. package/lib/components/import-modal/tree-node/index.js +0 -51
  228. package/lib/components/import-modal/tree-node/kr-node/index.css +0 -58
  229. package/lib/components/import-modal/tree-node/kr-node/index.js +0 -108
  230. package/lib/components/import-modal/tree-node/milestone-node/index.css +0 -61
  231. package/lib/components/import-modal/tree-node/milestone-node/index.js +0 -118
  232. package/lib/components/import-modal/tree-node/o-node/index.css +0 -46
  233. package/lib/components/import-modal/tree-node/o-node/index.js +0 -138
  234. package/lib/components/import-modal/tree-node/work-node/index.css +0 -51
  235. package/lib/components/import-modal/tree-node/work-node/index.js +0 -108
  236. package/lib/components/menus/components/menu-tree/images/summary-menu/caidan-enjoy.svg +0 -14
  237. package/lib/components/menus/components/menu-tree/images/summary-menu/my-setup.svg +0 -18
  238. package/lib/components/menus/components/menu-tree/images/summary-menu/my-zongjie.svg +0 -15
  239. package/lib/components/menus/components/menu-tree/images/summary-menu/zongjie-s.svg +0 -15
  240. package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +0 -78
  241. package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +0 -78
  242. package/lib/components/menus/export-modules/summary-menus/depart-menus/helper.js +0 -56
  243. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.css +0 -32
  244. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +0 -231
  245. package/lib/components/menus/export-modules/summary-menus/index.css +0 -9
  246. package/lib/components/menus/export-modules/summary-menus/index.js +0 -134
  247. package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +0 -76
  248. package/lib/components/menus/export-modules/summary-menus/menus.js +0 -190
  249. package/lib/components/menus/export-modules/summary-menus/request-api.js +0 -17
  250. package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +0 -242
  251. package/lib/components/new-confidence/constant.js +0 -53
  252. package/lib/components/new-confidence/img/1.svg +0 -40
  253. package/lib/components/new-confidence/img/10.svg +0 -33
  254. package/lib/components/new-confidence/img/2.svg +0 -40
  255. package/lib/components/new-confidence/img/3.svg +0 -40
  256. package/lib/components/new-confidence/img/4.svg +0 -40
  257. package/lib/components/new-confidence/img/5.svg +0 -40
  258. package/lib/components/new-confidence/img/6.svg +0 -40
  259. package/lib/components/new-confidence/img/7.svg +0 -40
  260. package/lib/components/new-confidence/img/8.svg +0 -40
  261. package/lib/components/new-confidence/img/9.svg +0 -40
  262. package/lib/components/new-confidence/index.css +0 -62
  263. package/lib/components/new-confidence/index.js +0 -115
  264. package/lib/components/new-confidence/interface.js +0 -5
  265. package/lib/components/picker/components/cross.svg +0 -17
  266. package/lib/components/picker/components/panels/week-panel/index.css +0 -42
  267. package/lib/components/picker/components/panels/week-panel/index.js +0 -49
  268. package/lib/components/picker/components/panels/week-panel/utils.js +0 -124
  269. package/lib/components/picker/components/panels/week-panel/week-body.js +0 -71
  270. package/lib/components/picker/components/panels/week-panel/week-head.js +0 -80
  271. package/lib/components/picker/range-picker/components/picker-trigger/index.css +0 -97
  272. package/lib/components/picker/range-picker/components/picker-trigger/index.js +0 -109
  273. package/lib/components/picker/range-picker/components/placeholder/index.js +0 -91
  274. package/lib/components/picker/range-picker/components/select-input/index.js +0 -72
  275. package/lib/components/picker/range-picker/components/shortcuts/index.js +0 -45
  276. package/lib/components/picker/range-picker/index.css +0 -158
  277. package/lib/components/picker/range-picker/index.js +0 -263
  278. package/lib/components/promise-confirm/index.css +0 -0
  279. package/lib/components/promise-confirm/index.js +0 -117
  280. package/lib/components/promise-confirm/interface.js +0 -5
  281. package/lib/components/rate/index.css +0 -111
  282. package/lib/components/rate/index.js +0 -52
  283. package/lib/components/regulation-setting-item/index.css +0 -33
  284. package/lib/components/regulation-setting-item/index.js +0 -37
  285. package/lib/components/rich-editor-at/components/index.css +0 -66
  286. package/lib/components/rich-editor-at/components/index.js +0 -188
  287. package/lib/components/rich-editor-at/index.css +0 -40
  288. package/lib/components/rich-editor-at/index.js +0 -113
  289. package/lib/components/rich-editor-upload/index.css +0 -11
  290. package/lib/components/rich-editor-upload/index.js +0 -87
  291. package/lib/components/write-summary-modal/index.css +0 -79
  292. package/lib/components/write-summary-modal/index.js +0 -167
  293. package/lib/components/write-summary-modal/interface.js +0 -19
  294. package/lib/components/write-summary-modal/request-api.js +0 -18
  295. package/lib/components/write-summary-modal/utils.js +0 -31
  296. package/lib/utils/planDataJson.js +0 -11115
@@ -1,201 +0,0 @@
1
- .titaui-dynamic-summary-task-progress {
2
- margin-top: 16px;
3
- }
4
-
5
- .titaui-dynamic-summary-task-progress__title {
6
- font-size: 18px;
7
- font-weight: 600;
8
- color: #141c28;
9
- line-height: 26px;
10
- display: flex;
11
- justify-content: space-between;
12
- align-items: center;
13
- }
14
-
15
- .titaui-dynamic-summary-task-progress__title-update {
16
- font-size: 14px;
17
- font-weight: 400;
18
- color: #2879ff;
19
- line-height: 22px;
20
- display: inline-flex;
21
- align-items: center;
22
- }
23
-
24
- .titaui-dynamic-summary-task-progress__title-update-icon {
25
- margin-right: 4px;
26
- }
27
-
28
- .titaui-dynamic-summary-task-progress__title-update:hover {
29
- cursor: pointer;
30
- opacity: 0.8;
31
- }
32
-
33
- .titaui-dynamic-summary-task-progress__table {
34
- border: 1px solid #dfe3ea;
35
- border-radius: 12px;
36
- margin-top: 12px;
37
- }
38
-
39
- .titaui-dynamic-summary-task-progress__table table {
40
- width: 100%;
41
- }
42
-
43
- .titaui-dynamic-summary-task-progress__table table thead {
44
- width: 100%;
45
- }
46
-
47
- .titaui-dynamic-summary-task-progress__table table tbody {
48
- width: 100%;
49
- }
50
-
51
- .titaui-dynamic-summary-task-progress__table table tbody tr {
52
- border-bottom: 1px solid #dfe3ea;
53
- }
54
-
55
- .titaui-dynamic-summary-task-progress__table table tbody tr:last-child {
56
- border-bottom: unset;
57
- }
58
-
59
- .titaui-dynamic-summary-task-progress__table table tbody tr td {
60
- box-sizing: border-box;
61
- padding: 0 12px;
62
- border-right: 1px solid #dfe3ea;
63
- }
64
-
65
- .titaui-dynamic-summary-task-progress__table table tbody tr td:last-child {
66
- border-right: unset;
67
- }
68
-
69
- .titaui-dynamic-summary-task-progress__table table tbody tr td:nth-child(2) {
70
- padding: 0;
71
- }
72
-
73
- .titaui-dynamic-summary-task-progress__table-title {
74
- height: 40px;
75
- background: #f0f4fa;
76
- font-size: 13px;
77
- color: #89919f;
78
- line-height: 18px;
79
- }
80
-
81
- .titaui-dynamic-summary-task-progress__table-title td {
82
- text-align: center;
83
- padding: 0 12px;
84
- box-sizing: border-box;
85
- border-right: 1px solid #dfe3ea;
86
- }
87
-
88
- .titaui-dynamic-summary-task-progress__table-title td:last-child {
89
- border-right: none;
90
- }
91
-
92
- .titaui-dynamic-summary-task-progress__table-title-okrs {
93
- overflow: hidden;
94
- border-top-left-radius: 12px;
95
- width: 282px;
96
- }
97
-
98
- .titaui-dynamic-summary-task-progress__table-title-progress {
99
- width: 102px;
100
- }
101
-
102
- .titaui-dynamic-summary-task-progress__table-title-progress-desc {
103
- overflow: hidden;
104
- border-top-right-radius: 12px;
105
- }
106
-
107
- .titaui-dynamic-summary-task-progress__table-title-progress-desc-icon {
108
- font-size: 14px;
109
- margin-left: 4px;
110
- vertical-align: text-top;
111
- }
112
-
113
- .titaui-dynamic-summary-task-progress__statistic {
114
- display: flex;
115
- justify-content: space-between;
116
- margin-top: 12px;
117
- }
118
-
119
- .titaui-dynamic-summary-task-progress__statistic-item {
120
- flex: 1;
121
- height: 48px;
122
- border-radius: 12px;
123
- display: flex;
124
- align-items: center;
125
- justify-content: space-between;
126
- margin-right: 10px;
127
- padding: 0 16px;
128
- font-size: 14px;
129
- font-weight: 600;
130
- color: #141c28;
131
- line-height: 22px;
132
- position: relative;
133
- overflow: hidden;
134
- }
135
-
136
- .titaui-dynamic-summary-task-progress__statistic-item:last-child {
137
- margin-right: 0;
138
- }
139
-
140
- .titaui-dynamic-summary-task-progress__statistic-item--finished {
141
- background: rgba(0, 214, 133, 0.1);
142
- }
143
-
144
- .titaui-dynamic-summary-task-progress__statistic-item--finished::before {
145
- content: '';
146
- position: absolute;
147
- top: 0;
148
- left: 0;
149
- width: 4px;
150
- height: 48px;
151
- background: rgba(0, 214, 133, 0.3);
152
- border-radius: 12px 0 0 12px;
153
- }
154
-
155
- .titaui-dynamic-summary-task-progress__statistic-item--finished-text {
156
- color: #00D685;
157
- font-size: 16px;
158
- }
159
-
160
- .titaui-dynamic-summary-task-progress__statistic-item--processing {
161
- background: rgba(40, 121, 255, 0.1);
162
- }
163
-
164
- .titaui-dynamic-summary-task-progress__statistic-item--processing-text {
165
- color: #2879FF;
166
- font-size: 16px;
167
- }
168
-
169
- .titaui-dynamic-summary-task-progress__statistic-item--overdue {
170
- background: rgba(240, 94, 94, 0.1);
171
- }
172
-
173
- .titaui-dynamic-summary-task-progress__statistic-item--overdue-text {
174
- color: #F05E5E;
175
- font-size: 16px;
176
- }
177
-
178
- .titaui-dynamic-summary-task-progress__import {
179
- margin-top: 10px;
180
- width: 60px;
181
- height: 60px;
182
- border-radius: 8px;
183
- border: 1px solid #e9ecf0;
184
- display: flex;
185
- align-items: center;
186
- justify-content: center;
187
- }
188
-
189
- .titaui-dynamic-summary-task-progress__import-icon {
190
- font-size: 24px;
191
- color: #BFC7D5;
192
- }
193
-
194
- .titaui-dynamic-summary-task-progress__import:hover {
195
- cursor: pointer;
196
- border: 1px solid #2879ff;
197
- }
198
-
199
- .titaui-dynamic-summary-task-progress__import:hover .tu-icon-add1 {
200
- color: #2879ff;
201
- }
@@ -1,169 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireWildcard(require("react"));
9
-
10
- var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
11
-
12
- var _getLocale = require("../../../../../utils/getLocale");
13
-
14
- var _progress = _interopRequireDefault(require("../progress"));
15
-
16
- var _schedule = _interopRequireDefault(require("../schedule"));
17
-
18
- var _tableRowOProject = _interopRequireDefault(require("../table-row-o-project"));
19
-
20
- var _constant = require("./constant");
21
-
22
- var _utils = require("./utils");
23
-
24
- require("./index.css");
25
-
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
-
28
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
-
30
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
-
32
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
33
-
34
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
35
-
36
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
37
-
38
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
39
-
40
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
41
-
42
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
43
-
44
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
45
-
46
- var prefix = 'titaui-dynamic-summary-task-progress';
47
- var isImport = true;
48
-
49
- var TaskProgress = function TaskProgress(_ref) {
50
- var data = _ref.data,
51
- _ref$type = _ref.type,
52
- type = _ref$type === void 0 ? 'day' : _ref$type;
53
-
54
- var _useState = (0, _react.useState)(),
55
- _useState2 = _slicedToArray(_useState, 2),
56
- rowsData = _useState2[0],
57
- setRowsData = _useState2[1];
58
-
59
- var _useState3 = (0, _react.useState)((0, _utils.getStatusStatistic)([])),
60
- _useState4 = _slicedToArray(_useState3, 2),
61
- statusStatistic = _useState4[0],
62
- setStatusStatistic = _useState4[1];
63
-
64
- var handleShowTaskDetail = function handleShowTaskDetail(item) {
65
- // @ts-ignore
66
- window.Talent.app.vent.trigger("global-pull-screen", item.id, "task");
67
- };
68
-
69
- var renderTitle = (0, _react.useMemo)(function () {
70
- if (type === 'day') {
71
- return (0, _getLocale.getLocale)('Rep_NewS_Toworkasks');
72
- } else if (type === 'week') {
73
- return (0, _getLocale.getLocale)('Rep_NewS_Thisetasks');
74
- } else if (type === 'month') {
75
- return (0, _getLocale.getLocale)('Rep_NewS_Taskormonth');
76
- }
77
-
78
- return '';
79
- }, [type]);
80
- var renderTable = (0, _react.useMemo)(function () {
81
- return /*#__PURE__*/_react["default"].createElement("table", null, /*#__PURE__*/_react["default"].createElement("thead", null, /*#__PURE__*/_react["default"].createElement("tr", {
82
- className: "".concat(prefix, "__table-title")
83
- }, /*#__PURE__*/_react["default"].createElement("td", {
84
- className: "".concat(prefix, "__table-title-okrs")
85
- }, (0, _getLocale.getLocale)('OKR_MyO_Title_Taskname')), /*#__PURE__*/_react["default"].createElement("td", {
86
- className: "".concat(prefix, "__table-title-progress")
87
- }, (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Progresss1')), /*#__PURE__*/_react["default"].createElement("td", {
88
- className: "".concat(prefix, "__table-title-progress-desc")
89
- }, (0, _getLocale.getLocale)('Feed_Tab_Title_Progress'), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
90
- overlay: (0, _getLocale.getLocale)('Rep_Tab_Mys_FillOKRsync'),
91
- placement: "top",
92
- align: {
93
- offset: [0, 5]
94
- }
95
- }, /*#__PURE__*/_react["default"].createElement("i", {
96
- className: "tu-icon-wiki ".concat(prefix, "__table-title-progress-desc-icon")
97
- }))))), /*#__PURE__*/_react["default"].createElement("tbody", null, rowsData && rowsData.Rows.map(function (item) {
98
- if (isImport) {
99
- var _item$LastContent;
100
-
101
- return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement("div", {
102
- className: "".concat(prefix, "__table-row-title"),
103
- onClick: function onClick() {
104
- return handleShowTaskDetail(item);
105
- }
106
- }, /*#__PURE__*/_react["default"].createElement("i", {
107
- className: "".concat(prefix, "__table-row-title-icon ").concat(_constant.EStatusStatus2ClassType[item.Status])
108
- }), /*#__PURE__*/_react["default"].createElement("span", {
109
- className: "".concat(prefix, "__table-row-title-text")
110
- }, item.Name))), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
111
- id: "".concat(item.Id),
112
- type: "task",
113
- status: item.Status === 1 ? "normal" : "risk",
114
- value: item.Progress,
115
- editable: false,
116
- riskLevel: item.Status
117
- })), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
118
- value: (item === null || item === void 0 ? void 0 : (_item$LastContent = item.LastContent) === null || _item$LastContent === void 0 ? void 0 : _item$LastContent.trim()) || '',
119
- date: item.LastContentTime,
120
- editable: false,
121
- id: item.Id
122
- })));
123
- } else {
124
- return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", {
125
- colSpan: 4
126
- }, /*#__PURE__*/_react["default"].createElement(_tableRowOProject["default"], {
127
- id: item.Id // isO={item.Type === EObjType.O}
128
- ,
129
- extraClass: "".concat(prefix, "__table-obj"),
130
- text: item.Name
131
- })));
132
- }
133
- })));
134
- }, [rowsData]);
135
- (0, _react.useEffect)(function () {
136
- if (_typeof(data) !== 'object' && data !== '') {
137
- setRowsData(JSON.parse(data));
138
-
139
- if (JSON.parse(data).Rows.length !== 0) {
140
- setStatusStatistic((0, _utils.getStatusStatistic)(JSON.parse(data).Rows));
141
- }
142
- }
143
- }, [data]);
144
- if (!(rowsData !== null && rowsData !== void 0 && rowsData.Rows.length)) return null;
145
- return /*#__PURE__*/_react["default"].createElement("div", {
146
- className: prefix
147
- }, /*#__PURE__*/_react["default"].createElement("div", {
148
- className: "".concat(prefix, "__title")
149
- }, renderTitle), /*#__PURE__*/_react["default"].createElement("div", {
150
- className: "".concat(prefix, "__statistic")
151
- }, /*#__PURE__*/_react["default"].createElement("span", {
152
- className: "".concat(prefix, "__statistic-item ").concat(prefix, "__statistic-item--finished")
153
- }, (0, _getLocale.getLocale)('OKR_MyO_E_From_Completed'), ' ', /*#__PURE__*/_react["default"].createElement("span", {
154
- className: "".concat(prefix, "__statistic-item--finished-text")
155
- }, statusStatistic.doing)), /*#__PURE__*/_react["default"].createElement("span", {
156
- className: "".concat(prefix, "__statistic-item ").concat(prefix, "__statistic-item--processing")
157
- }, (0, _getLocale.getLocale)('OKR_MyO_Butt_Inprogress'), ' ', /*#__PURE__*/_react["default"].createElement("span", {
158
- className: "".concat(prefix, "__statistic-item--processing-text")
159
- }, statusStatistic.doing)), /*#__PURE__*/_react["default"].createElement("span", {
160
- className: "".concat(prefix, "__statistic-item ").concat(prefix, "__statistic-item--overdue")
161
- }, (0, _getLocale.getLocale)('OKR_MyO_E_Overdue'), ' ', /*#__PURE__*/_react["default"].createElement("span", {
162
- className: "".concat(prefix, "__statistic-item--overdue-text")
163
- }, statusStatistic.overDue))), /*#__PURE__*/_react["default"].createElement("div", {
164
- className: "".concat(prefix, "__table")
165
- }, renderTable));
166
- };
167
-
168
- var _default = TaskProgress;
169
- exports["default"] = _default;
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getStatusStatistic = void 0;
7
-
8
- var getStatusStatistic = function getStatusStatistic(data) {
9
- var result = {
10
- done: 0,
11
- doing: 0,
12
- overDue: 0
13
- };
14
- data.forEach(function (item) {
15
- // 1 进行中 2 已完成 3 已延期
16
- if (item.Status === 1) {
17
- result.doing = result.doing + 1;
18
- } else if (item.Status === 2) {
19
- result.done = result.done + 1;
20
- } else if (item.Status === 3) {
21
- result.overDue = result.overDue + 1;
22
- }
23
- });
24
- return result;
25
- };
26
-
27
- exports.getStatusStatistic = getStatusStatistic;
@@ -1,68 +0,0 @@
1
- .titaui-dynamic-summary__evalute-card {
2
- position: relative;
3
- width: 100%;
4
- background: rgba(240, 163, 38, 0.12);
5
- border-radius: 12px;
6
- margin-top: 20px;
7
- padding: 16px 8px 14px 16px;
8
- box-sizing: border-box;
9
- }
10
-
11
- .titaui-dynamic-summary__evalute-card__head {
12
- display: inline-flex;
13
- align-items: center;
14
- font-size: 14px;
15
- color: #3F4755;
16
- line-height: 22px;
17
- }
18
-
19
- .titaui-dynamic-summary__evalute-card__head-img {
20
- width: 24px;
21
- height: 24px;
22
- }
23
-
24
- .titaui-dynamic-summary__evalute-card__head-name {
25
- margin: 0 8px 0 6px;
26
- font-weight: 600;
27
- }
28
-
29
- .titaui-dynamic-summary__evalute-card__head-rate {
30
- margin-left: 4px;
31
- color: #F0A326;
32
- }
33
-
34
- .titaui-dynamic-summary__evalute-card__head-medal {
35
- position: relative;
36
- height: 18px;
37
- padding: 0 8px 0 16px;
38
- background: rgba(246, 189, 22, 0.16);
39
- border-radius: 0px 14px 14px 0px;
40
- font-size: 12px;
41
- font-family: OPPOSans-R, OPPOSans;
42
- font-weight: normal;
43
- color: #BD7500;
44
- line-height: 18px;
45
- margin-left: 20px;
46
- }
47
-
48
- .titaui-dynamic-summary__evalute-card__head-medal-img {
49
- position: absolute;
50
- left: -12px;
51
- top: -6px;
52
- width: 24px;
53
- height: 24px;
54
- }
55
-
56
- .titaui-dynamic-summary__evalute-card__bgc-img {
57
- position: absolute;
58
- width: 82px;
59
- height: 86px;
60
- right: 8px;
61
- top: 0;
62
- }
63
-
64
- .titaui-dynamic-summary__evalute-card__remark {
65
- font-size: 14px;
66
- color: #3F4755;
67
- line-height: 22px;
68
- }
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _getLocale = require("../../../../../../utils/getLocale");
11
-
12
- var _fighting = _interopRequireDefault(require("../../img/fighting.png"));
13
-
14
- var _veryGoodBig = _interopRequireDefault(require("./img/very-good-big.png"));
15
-
16
- var _veryGoodSmall = _interopRequireDefault(require("./img/very-good-small.png"));
17
-
18
- require("./index.css");
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
- var preCls = 'titaui-dynamic-summary__evalute-card';
23
-
24
- var EvaluteCard = function EvaluteCard(props) {
25
- // const { evaluation } = props
26
- // const { value, type, remark } = evaluation
27
- return /*#__PURE__*/_react["default"].createElement("div", {
28
- className: preCls
29
- }, /*#__PURE__*/_react["default"].createElement("div", {
30
- className: "".concat(preCls, "__head")
31
- }, /*#__PURE__*/_react["default"].createElement("img", {
32
- src: _fighting["default"],
33
- className: "".concat(preCls, "__head-img")
34
- }), /*#__PURE__*/_react["default"].createElement("span", {
35
- className: "".concat(preCls, "__head-name")
36
- }, "cnjsk"), (0, _getLocale.getLocale)('Rep_NewS_EvaluationOF'), /*#__PURE__*/_react["default"].createElement("div", {
37
- className: "".concat(preCls, "__head-medal")
38
- }, /*#__PURE__*/_react["default"].createElement("img", {
39
- src: _veryGoodSmall["default"],
40
- className: "".concat(preCls, "__head-medal-img")
41
- }), "\u592A\u68D2\u4E86")), /*#__PURE__*/_react["default"].createElement("div", {
42
- className: "".concat(preCls, "__remark")
43
- }, "mjncj"), /*#__PURE__*/_react["default"].createElement("img", {
44
- src: _veryGoodBig["default"],
45
- className: "".concat(preCls, "__bgc-img")
46
- }));
47
- };
48
-
49
- var _default = EvaluteCard;
50
- exports["default"] = _default;
@@ -1,43 +0,0 @@
1
- .titaui-dynamic-summary__remind-view {
2
- margin-top: 25px;
3
- }
4
-
5
- .titaui-dynamic-summary__remind-view .titaui-pc-avator-container {
6
- display: inline-flex;
7
- }
8
-
9
- .titaui-dynamic-summary__remind-view__title {
10
- font-size: 18px;
11
- font-weight: 600;
12
- color: #141c28;
13
- line-height: 26px;
14
- }
15
-
16
- .titaui-dynamic-summary__remind-view__list {
17
- margin-top: 16px;
18
- display: flex;
19
- flex-wrap: wrap;
20
- row-gap: 10px;
21
- column-gap: 10px;
22
- }
23
-
24
- .titaui-dynamic-summary__remind-view__user {
25
- display: inline-flex;
26
- align-items: center;
27
- height: 32px;
28
- background: #f0f4fa;
29
- border-radius: 16px;
30
- padding: 5px 8px 5px 4px;
31
- box-sizing: border-box;
32
- font-size: 14px;
33
- color: #3f4755;
34
- line-height: 22px;
35
- }
36
-
37
- .titaui-dynamic-summary__remind-view__user-avatar {
38
- border-radius: 15px;
39
- }
40
-
41
- .titaui-dynamic-summary__remind-view__user-name {
42
- margin-left: 6px;
43
- }
@@ -1,87 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _avatar = _interopRequireDefault(require("../../../../../../components/avatar"));
11
-
12
- var _getLocale = require("../../../../../../utils/getLocale");
13
-
14
- var _fighting = _interopRequireDefault(require("../../img/fighting.png"));
15
-
16
- require("./index.css");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- var preCls = 'titaui-dynamic-summary__remind-view';
21
- var userInfo = [{
22
- id: 0,
23
- name: 'cnehbvh',
24
- avatar: _fighting["default"]
25
- }, {
26
- id: 1,
27
- name: 'cnehbvhcnehbvh',
28
- avatar: _fighting["default"]
29
- }, {
30
- id: 2,
31
- name: 'cnehbvh',
32
- avatar: _fighting["default"]
33
- }, {
34
- id: 3,
35
- name: 'cnehbvh',
36
- avatar: _fighting["default"]
37
- }, {
38
- id: 4,
39
- name: 'cnehbvh',
40
- avatar: _fighting["default"]
41
- }, {
42
- id: 5,
43
- name: 'cnehbvhcnehbvh',
44
- avatar: _fighting["default"]
45
- }, {
46
- id: 6,
47
- name: 'cnehbvh',
48
- avatar: _fighting["default"]
49
- }, {
50
- id: 7,
51
- name: 'cnehbvhcnehbvh',
52
- avatar: _fighting["default"]
53
- }, {
54
- id: 8,
55
- name: 'cnehbvh',
56
- avatar: _fighting["default"]
57
- }, {
58
- id: 9,
59
- name: 'cnehbvhcnehbvh',
60
- avatar: _fighting["default"]
61
- }];
62
-
63
- var RemindUserView = function RemindUserView(props) {
64
- var data = props.data;
65
- if (!data || !data.length) return null;
66
- return /*#__PURE__*/_react["default"].createElement("div", {
67
- className: preCls
68
- }, /*#__PURE__*/_react["default"].createElement("div", {
69
- className: "".concat(preCls, "__title")
70
- }, (0, _getLocale.getLocale)('OKR_MyO_himher')), /*#__PURE__*/_react["default"].createElement("div", {
71
- className: "".concat(preCls, "__list")
72
- }, data.map(function (item) {
73
- return /*#__PURE__*/_react["default"].createElement("div", {
74
- className: "".concat(preCls, "__user")
75
- }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
76
- userId: item.userId,
77
- name: item.name,
78
- src: item.avatar.medium,
79
- color: item.avatar.color
80
- }), /*#__PURE__*/_react["default"].createElement("span", {
81
- className: "".concat(preCls, "__user-name")
82
- }, item.name));
83
- })));
84
- };
85
-
86
- var _default = RemindUserView;
87
- exports["default"] = _default;