@titaui/pc 1.11.27-beta.8 → 1.11.29

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 (270) hide show
  1. package/lib/components/avatar/name-avatar/index.css +0 -1
  2. package/lib/components/avatar/name-avatar/index.js +13 -22
  3. package/lib/components/avatar/text-avatar/index.css +7 -0
  4. package/lib/components/avatar/text-avatar/index.js +32 -7
  5. package/lib/components/button/icon-btn/index.js +17 -8
  6. package/lib/components/button/rect-btn/index.css +11 -45
  7. package/lib/components/button/rect-btn/index.js +13 -19
  8. package/lib/components/change-okr-modal/Item.js +14 -14
  9. package/lib/components/change-okr-modal/index.js +1 -2
  10. package/lib/components/create-okr-modal/index.js +1 -3
  11. package/lib/components/create-okr-modal/request-api.js +1 -1
  12. package/lib/components/dialog-confirm/index.css +2 -2
  13. package/lib/components/drawer/headerAction.js +1 -5
  14. package/lib/components/drawer/headerDrop.js +4 -42
  15. package/lib/components/drawer/index.css +0 -33
  16. package/lib/components/drawer/index.js +3 -26
  17. package/lib/components/drop-selector/index.js +25 -10
  18. package/lib/components/dynamic/advertise/components/next-btn/index.css +27 -0
  19. package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
  20. package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
  21. package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
  22. package/lib/components/dynamic/advertise/index.css +21 -0
  23. package/lib/components/dynamic/advertise/index.js +126 -0
  24. package/lib/components/dynamic/advertise/interface.js +5 -0
  25. package/lib/components/dynamic/advertise/util.js +28 -0
  26. package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
  27. package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
  28. package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
  29. package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
  30. package/lib/components/dynamic/constant.js +33 -32
  31. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +9 -9
  32. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
  33. package/lib/components/dynamic/dynamic-item/dynamic-interview/img/wifi.svg +24 -0
  34. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +51 -0
  35. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +50 -0
  36. package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +65 -0
  37. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
  38. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
  39. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.js +61 -0
  40. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
  41. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -5
  42. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +6 -6
  43. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +10 -10
  44. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +13 -13
  45. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +9 -9
  46. package/lib/components/dynamic/dynamic-item/index.js +50 -32
  47. package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
  48. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
  49. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
  50. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
  51. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
  52. package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
  53. package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
  54. package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
  55. package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
  56. package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
  57. package/lib/components/dynamic/dynamic-liking/index.css +81 -0
  58. package/lib/{pages/new-okr-list/header/operate-record.js → components/dynamic/dynamic-liking/index.js} +39 -91
  59. package/lib/components/dynamic/dynamic-liking/item.js +75 -0
  60. package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
  61. package/lib/components/dynamic/dynamic-list/index.js +7 -15
  62. package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
  63. package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
  64. package/lib/components/dynamic/dynamic-topping/index.css +141 -0
  65. package/lib/components/dynamic/dynamic-topping/index.js +82 -0
  66. package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
  67. package/lib/components/dynamic/dynamic-topping/item.js +153 -0
  68. package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
  69. package/lib/components/dynamic/dynamic.css +173 -0
  70. package/lib/components/dynamic/dynamic.js +428 -0
  71. package/lib/components/dynamic/export-module/index.js +37 -0
  72. package/lib/components/dynamic/img/dynamic-top.svg +14 -0
  73. package/lib/components/dynamic/index.js +12 -9
  74. package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
  75. package/lib/components/dynamic/my-team/img/line.png +0 -0
  76. package/lib/components/dynamic/my-team/img/team.png +0 -0
  77. package/lib/components/dynamic/my-team/index.css +184 -0
  78. package/lib/components/dynamic/my-team/index.js +263 -0
  79. package/lib/components/dynamic/my-team/request-api.js +52 -0
  80. package/lib/components/dynamic/my-team/util.js +20 -0
  81. package/lib/components/dynamic/new-ui.css +192 -0
  82. package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
  83. package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
  84. package/lib/components/dynamic/online-broadcast/data.js +77 -0
  85. package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
  86. package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
  87. package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
  88. package/lib/components/dynamic/online-broadcast/index.css +46 -0
  89. package/lib/components/dynamic/online-broadcast/index.js +61 -0
  90. package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
  91. package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
  92. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
  93. package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
  94. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
  95. package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
  96. package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
  97. package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
  98. package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
  99. package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
  100. package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
  101. package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
  102. package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
  103. package/lib/components/dynamic/quick-operation/index.css +51 -0
  104. package/lib/components/dynamic/quick-operation/index.js +120 -0
  105. package/lib/components/dynamic/request-api.js +68 -7
  106. package/lib/components/e-priority/index.js +8 -8
  107. package/lib/components/eReport/eReportShare/index.js +11 -11
  108. package/lib/components/form/form-fields/date/index.css +24 -0
  109. package/lib/components/form/form-fields/date/index.js +102 -0
  110. package/lib/components/form/form-fields/input/index.js +10 -10
  111. package/lib/components/form/form-fields/user/index.css +23 -3
  112. package/lib/components/form/form-fields/user/index.js +18 -8
  113. package/lib/components/form/form-fields/user/user-input.js +15 -6
  114. package/lib/components/form/index.js +10 -3
  115. package/lib/components/grid-layout/sub-employee-okr/person-okr.js +5 -5
  116. package/lib/components/icon-button-list/index.js +3 -3
  117. package/lib/components/img-viewer/index.css +3 -3
  118. package/lib/components/img-viewer/index.js +11 -11
  119. package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
  120. package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
  121. package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
  122. package/lib/components/menus/components/menu-tree/index.css +4 -2
  123. package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
  124. package/lib/components/menus/export-modules/interview-menus/constant.js +30 -0
  125. package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +63 -0
  126. package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
  127. package/lib/components/menus/export-modules/interview-menus/index.js +128 -0
  128. package/lib/components/menus/index.js +11 -5
  129. package/lib/components/nav-top/components/menu/index.js +14 -14
  130. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
  131. package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
  132. package/lib/components/nav-top/components/user-message/constant.js +1 -0
  133. package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
  134. package/lib/components/nav-top/components/user-message/index.js +23 -20
  135. package/lib/components/nav-top/index.js +4 -8
  136. package/lib/components/nav-top/request.apis.js +3 -1
  137. package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +4 -20
  138. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -9
  139. package/lib/components/okr-detail/components/header/index.js +3 -10
  140. package/lib/components/okr-detail/components/header/o-name.js +3 -10
  141. package/lib/components/okr-detail/components/o-classify.js +1 -5
  142. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
  143. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +10 -14
  144. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
  145. package/lib/components/okr-detail/detail-header/actions.js +23 -23
  146. package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +43 -98
  147. package/lib/components/okr-detail/detail-header/delete-confirm/style.js +38 -0
  148. package/lib/components/okr-detail/detail-header/index.css +0 -11
  149. package/lib/components/okr-detail/detail-header/index.js +234 -228
  150. package/lib/components/okr-detail/index.js +21 -40
  151. package/lib/components/okr-detail/okr-list/index.js +8 -11
  152. package/lib/components/okr-detail/request-apis.js +4 -10
  153. package/lib/components/okr-flow/child-node/index.css +6 -6
  154. package/lib/components/okr-flow/child-node/work-node.js +21 -21
  155. package/lib/components/okr-flow/export-modal/index.js +33 -19
  156. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +14 -14
  157. package/lib/components/okr-flow/okr-map/index.js +5 -5
  158. package/lib/components/okr-flow/request-apis.js +4 -4
  159. package/lib/components/okr-flow/root-node/index.js +25 -24
  160. package/lib/components/okr-flow/utils/index.js +5 -5
  161. package/lib/components/okr-flow/utils/tree-handler.js +17 -17
  162. package/lib/components/okr-period-selector/index.js +5 -9
  163. package/lib/components/okr-period-selector/select-cycle.js +19 -23
  164. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +30 -30
  165. package/lib/components/operation-records/index.js +1 -1
  166. package/lib/components/operation-records/style.js +1 -1
  167. package/lib/components/pagination/index.css +3 -3
  168. package/lib/components/pagination/select.css +58 -23
  169. package/lib/components/period-selector/index.css +3 -3
  170. package/lib/components/period-selector/index.js +11 -11
  171. package/lib/components/picker/components/panels/date-panel/date-body.js +118 -0
  172. package/lib/components/picker/components/panels/date-panel/date-head.js +87 -0
  173. package/lib/components/picker/components/panels/date-panel/index.css +14 -0
  174. package/lib/components/picker/components/panels/date-panel/index.js +49 -0
  175. package/lib/components/picker/components/panels/month-panel/index.css +27 -0
  176. package/lib/components/picker/components/panels/month-panel/index.js +63 -0
  177. package/lib/components/picker/components/panels/month-panel/month-body.js +89 -0
  178. package/lib/components/picker/components/panels/month-panel/month-head.js +47 -0
  179. package/lib/components/picker/components/panels/panel-body/index.js +53 -0
  180. package/lib/components/picker/components/panels/panel-head/index.js +48 -0
  181. package/lib/components/picker/components/panels/year-panel/index.css +23 -0
  182. package/lib/components/picker/components/panels/year-panel/index.js +65 -0
  183. package/lib/components/picker/components/panels/year-panel/year-body.js +92 -0
  184. package/lib/components/picker/components/panels/year-panel/year-head.js +35 -0
  185. package/lib/components/picker/components/picker-trigger/index.css +57 -0
  186. package/lib/components/picker/components/picker-trigger/index.js +94 -0
  187. package/lib/components/picker/context.js +15 -0
  188. package/lib/components/picker/index.css +121 -0
  189. package/lib/components/picker/index.js +13 -0
  190. package/lib/components/picker/picker-panels.js +182 -0
  191. package/lib/components/picker/picker.js +132 -0
  192. package/lib/components/picker/type.js +5 -0
  193. package/lib/components/picker/utils.js +28 -0
  194. package/lib/components/popup/index.js +4 -4
  195. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
  196. package/lib/components/radio/index.css +9 -9
  197. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  198. package/lib/components/superset-charts/utils/axios.js +5 -5
  199. package/lib/components/survey-model/index.css +18 -18
  200. package/lib/components/survey-model/instance.js +1 -1
  201. package/lib/components/task-relation-modal/request-api.js +1 -2
  202. package/lib/components/task-tree/helper.js +61 -0
  203. package/lib/components/task-tree/images/P1.svg +15 -0
  204. package/lib/components/task-tree/images/P2.svg +15 -0
  205. package/lib/components/task-tree/images/P3.svg +15 -0
  206. package/lib/components/task-tree/images/P4.svg +15 -0
  207. package/lib/components/task-tree/images/P5.svg +15 -0
  208. package/lib/components/task-tree/images/arrow.svg +9 -0
  209. package/lib/components/task-tree/images/empty-131.png +0 -0
  210. package/lib/components/task-tree/images/followed.svg +33 -0
  211. package/lib/components/task-tree/images/nice.svg +108 -0
  212. package/lib/components/task-tree/images/struc12.png +0 -0
  213. package/lib/components/task-tree/images/struc2.png +0 -0
  214. package/lib/components/task-tree/images/xialat-s.svg +13 -0
  215. package/lib/components/task-tree/index.js +22 -0
  216. package/lib/components/task-tree/mock.js +944 -0
  217. package/lib/components/task-tree/precls.js +8 -0
  218. package/lib/components/task-tree/request-apis.js +88 -0
  219. package/lib/components/task-tree/task-item-node/constant.js +45 -0
  220. package/lib/components/task-tree/task-item-node/e-empty.js +29 -0
  221. package/lib/components/task-tree/task-item-node/e-project.js +212 -0
  222. package/lib/components/task-tree/task-item-node/e-status-dropdown.js +94 -0
  223. package/lib/components/task-tree/task-item-node/e-task.js +426 -0
  224. package/lib/components/task-tree/task-item-node/get-process-color.js +62 -0
  225. package/lib/components/task-tree/task-item-node/index.css +289 -0
  226. package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
  227. package/lib/components/task-tree/task-tree.css +16 -0
  228. package/lib/components/task-tree/task-tree.js +49 -0
  229. package/lib/components/time-picker/index.css +123 -0
  230. package/lib/components/time-picker/index.js +13 -0
  231. package/lib/components/time-picker/time-picker-selector.js +138 -0
  232. package/lib/components/time-picker/time-picker.js +336 -0
  233. package/lib/components/time-picker/timer-picker-input.js +96 -0
  234. package/lib/components/time-picker/utils.js +52 -0
  235. package/lib/components/toast/index.js +3 -5
  236. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
  237. package/lib/components-v1/radio/radio.js +3 -3
  238. package/lib/components-v1/radio/style/index.css +8 -8
  239. package/lib/index.js +0 -40
  240. package/lib/pages/aha2021/index.js +5 -1
  241. package/lib/pages/new-okr-list/header/index.css +0 -45
  242. package/lib/pages/new-okr-list/header/index.js +16 -38
  243. package/lib/pages/new-okr-list/index.js +1 -3
  244. package/lib/pages/new-okr-list/list/index.js +2 -19
  245. package/lib/pages/new-okr-list/request-api.js +2 -8
  246. package/lib/pages/okr-map/export-modules/okr-map/header/index.js +24 -24
  247. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +31 -31
  248. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +2 -2
  249. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +11 -11
  250. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +8 -8
  251. package/lib/pages/okr-map/number-select/index.js +2 -2
  252. package/lib/pages/okr-map/unsupport-ie/index.js +5 -3
  253. package/lib/utils/auth.js +6 -6
  254. package/lib/utils/bs-global.js +12 -12
  255. package/lib/utils/format-time.js +1 -8
  256. package/lib/utils/hooks.js +72 -0
  257. package/lib/utils/open-data.js +27 -31
  258. package/package.json +6 -3
  259. package/.eslintignore +0 -3
  260. package/.eslintrc.js +0 -223
  261. package/.husky/pre-commit +0 -4
  262. package/.prettierignore +0 -31
  263. package/.prettierrc.js +0 -90
  264. package/.vscode/settings.json +0 -5
  265. package/lib/components/okr-detail/detail-header/constant.js +0 -53
  266. package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -55
  267. package/lib/components/okr-detail/helper.js +0 -108
  268. package/lib/components/textarea/index.css +0 -142
  269. package/lib/components/textarea/index.js +0 -259
  270. package/lib/pages/new-okr-list/header/common.js +0 -52
@@ -72,7 +72,7 @@ function OkrSearchPanel(props, ref) {
72
72
  _props$rootId = props.rootId,
73
73
  rootId = _props$rootId === void 0 ? 0 : _props$rootId,
74
74
  _props$rootName = props.rootName,
75
- rootName = _props$rootName === void 0 ? "" : _props$rootName,
75
+ rootName = _props$rootName === void 0 ? '' : _props$rootName,
76
76
  _props$avatar = props.avatar,
77
77
  avatar = _props$avatar === void 0 ? {} : _props$avatar,
78
78
  direction = props.direction,
@@ -80,7 +80,7 @@ function OkrSearchPanel(props, ref) {
80
80
  yqmNum = props.yqmNum,
81
81
  annualNum = props.annualNum,
82
82
  _props$okrType = props.okrType,
83
- okrType = _props$okrType === void 0 ? "" : _props$okrType,
83
+ okrType = _props$okrType === void 0 ? '' : _props$okrType,
84
84
  _props$openLevel = props.openLevel,
85
85
  openLevel = _props$openLevel === void 0 ? 2 : _props$openLevel,
86
86
  _props$showkr = props.showkr,
@@ -127,12 +127,12 @@ function OkrSearchPanel(props, ref) {
127
127
  cycleType: cycleType,
128
128
  yqmNum: yqmNum,
129
129
  annualNum: annualNum,
130
- userIds: searchType == "user" ? rootId : "",
131
- departmentIds: searchType == "depart" ? rootId : "",
132
- groupIds: searchType == "group" ? rootId : "",
130
+ userIds: searchType == 'user' ? rootId : '',
131
+ departmentIds: searchType == 'depart' ? rootId : '',
132
+ groupIds: searchType == 'group' ? rootId : '',
133
133
  orderType: 2,
134
134
  // 排序
135
- okrType: _config.OkrTypeSetting ? searchType == "user" ? "" : okrType : "",
135
+ okrType: _config.OkrTypeSetting ? searchType == 'user' ? '' : okrType : '',
136
136
  status: 0
137
137
  });
138
138
 
@@ -168,7 +168,7 @@ function OkrSearchPanel(props, ref) {
168
168
  subTreeNodes = (0, _treeHandler.buildTreeNodes)(allNodes, openLevel, showkr);
169
169
  setTreeNodes({
170
170
  id: 0,
171
- modelType: "root",
171
+ modelType: 'root',
172
172
  data: _defineProperty({
173
173
  searchType: searchType,
174
174
  rootName: rootName,
@@ -217,9 +217,9 @@ function OkrSearchPanel(props, ref) {
217
217
  id = node.id, modelType = node.modelType, data = node.data;
218
218
  _context2.next = 3;
219
219
  return (0, _requestApis.expandNode)({
220
- krId: modelType == "kr" ? id : 0,
221
- okrId: modelType == "kr" ? data.workId : id,
222
- okrIdParent: modelType == "work" ? data.parentId : data.workId,
220
+ krId: modelType == 'kr' ? id : 0,
221
+ okrId: modelType == 'kr' ? data.workId : id,
222
+ okrIdParent: modelType == 'work' ? data.parentId : data.workId,
223
223
  childRoot: false,
224
224
  showCardKr: showCardKr ? 1 : 0
225
225
  });
@@ -269,12 +269,12 @@ function OkrSearchPanel(props, ref) {
269
269
  id = node.id, modelType = node.modelType, data = node.data;
270
270
  _context3.next = 3;
271
271
  return (0, _requestApis.expandNode)({
272
- krId: modelType == "kr" ? id : 0,
273
- okrId: modelType == "work" ? id : data.workId,
272
+ krId: modelType == 'kr' ? id : 0,
273
+ okrId: modelType == 'work' ? id : data.workId,
274
274
  okrIdParent: 0,
275
275
  childRoot: true,
276
276
  showCardKr: showCardKr ? 1 : 0,
277
- currentOkrRole: modelType == "kr" ? data.mapkrVisible : data.MapOkrVisible
277
+ currentOkrRole: modelType == 'kr' ? data.mapkrVisible : data.MapOkrVisible
278
278
  });
279
279
 
280
280
  case 3:
@@ -325,7 +325,7 @@ function OkrSearchPanel(props, ref) {
325
325
  break;
326
326
  }
327
327
 
328
- _toast["default"].Warning("暂无OKR");
328
+ _toast["default"].Warning('暂无OKR');
329
329
 
330
330
  return _context4.abrupt("return");
331
331
 
@@ -63,7 +63,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
63
63
 
64
64
  var OkrMap = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
65
65
  var _props$direction = props.direction,
66
- direction = _props$direction === void 0 ? "horizontal" : _props$direction,
66
+ direction = _props$direction === void 0 ? 'horizontal' : _props$direction,
67
67
  _props$darkTheme = props.darkTheme,
68
68
  darkTheme = _props$darkTheme === void 0 ? false : _props$darkTheme,
69
69
  _props$showkr = props.showkr,
@@ -91,7 +91,7 @@ var OkrMap = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
91
91
  var _element$data = element.data,
92
92
  data = _element$data === void 0 ? {} : _element$data,
93
93
  type = element.type;
94
- if (type == "default" || type == "RootNode" || (data === null || data === void 0 ? void 0 : data.modelType) == "work") return;
94
+ if (type == 'default' || type == 'RootNode' || (data === null || data === void 0 ? void 0 : data.modelType) == 'work') return;
95
95
  onNodeClick & onNodeClick(data);
96
96
  };
97
97
 
@@ -100,7 +100,7 @@ var OkrMap = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
100
100
  var containerWidth = document.body.clientWidth - 180 - 320;
101
101
  var rootNode = virtualElements[0];
102
102
 
103
- if (direction == "horizontal") {
103
+ if (direction == 'horizontal') {
104
104
  var targetY = containerHeight / 2;
105
105
  return [-160, targetY - rootNode.position.y];
106
106
  }
@@ -173,8 +173,8 @@ var OkrMap = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
173
173
  };
174
174
 
175
175
  var closeOkrDrawer = function closeOkrDrawer() {
176
- var mousedown = document.createEvent("MouseEvents");
177
- mousedown.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
176
+ var mousedown = document.createEvent('MouseEvents');
177
+ mousedown.initMouseEvent('mousedown', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
178
178
  window.parent.document.body.dispatchEvent(mousedown); // drawerWrapper.close()
179
179
  };
180
180
 
@@ -27,8 +27,8 @@ var userId = window.BSGlobal && window.BSGlobal.loginUserInfo.Id || 0;
27
27
  exports.userId = userId;
28
28
 
29
29
  var requestDomain = function requestDomain() {
30
- if (!window.location.hostname.match(/dev/)) return "";
31
- return "https://www.tita.gift";
30
+ if (!window.location.hostname.match(/dev/)) return '';
31
+ return 'https://www.tita.gift';
32
32
  };
33
33
 
34
34
  var checkTenantOkrExist = /*#__PURE__*/function () {
@@ -70,9 +70,9 @@ exports.searchOkrs = searchOkrs;
70
70
 
71
71
  var expandNode = function expandNode(params) {
72
72
  var _params$okrId = params.okrId,
73
- okrId = _params$okrId === void 0 ? "" : _params$okrId,
73
+ okrId = _params$okrId === void 0 ? '' : _params$okrId,
74
74
  _params$krId = params.krId,
75
- krId = _params$krId === void 0 ? "" : _params$krId,
75
+ krId = _params$krId === void 0 ? '' : _params$krId,
76
76
  _params$childRoot = params.childRoot,
77
77
  childRoot = _params$childRoot === void 0 ? true : _params$childRoot,
78
78
  _params$okrIdParent = params.okrIdParent,
@@ -50,19 +50,19 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
50
50
  function RootNode(props) {
51
51
  var _props$data = props.data,
52
52
  _props$data$rootName = _props$data.rootName,
53
- rootName = _props$data$rootName === void 0 ? "" : _props$data$rootName,
53
+ rootName = _props$data$rootName === void 0 ? '' : _props$data$rootName,
54
54
  _props$data$rootId = _props$data.rootId,
55
55
  rootId = _props$data$rootId === void 0 ? 0 : _props$data$rootId,
56
56
  _props$data$avatar = _props$data.avatar,
57
57
  avatar = _props$data$avatar === void 0 ? {} : _props$data$avatar,
58
58
  searchType = _props$data.searchType;
59
59
 
60
- var _useState = (0, _react.useState)(""),
60
+ var _useState = (0, _react.useState)(''),
61
61
  _useState2 = _slicedToArray(_useState, 2),
62
62
  normalRootImg = _useState2[0],
63
63
  setNormalRootImg = _useState2[1];
64
64
 
65
- var _useState3 = (0, _react.useState)(""),
65
+ var _useState3 = (0, _react.useState)(''),
66
66
  _useState4 = _slicedToArray(_useState3, 2),
67
67
  whiteRootImg = _useState4[0],
68
68
  setWhiteImg = _useState4[1];
@@ -80,19 +80,19 @@ function RootNode(props) {
80
80
  darkTheme = context.darkTheme;
81
81
 
82
82
  var getRootIcon = function getRootIcon() {
83
- if (searchType == "company") {
83
+ if (searchType == 'company') {
84
84
  return /*#__PURE__*/_react["default"].createElement("span", {
85
85
  className: (0, _classnames["default"])("".concat(_precls["default"], "--root-node-icon__company"))
86
86
  });
87
87
  }
88
88
 
89
- if (searchType == "user") {
89
+ if (searchType == 'user') {
90
90
  if (hasAvatar) {
91
91
  return /*#__PURE__*/_react["default"].createElement("img", {
92
92
  src: avatar.big ? avatar.big : avatar.small,
93
93
  width: 24,
94
94
  style: {
95
- borderRadius: "50%"
95
+ borderRadius: '50%'
96
96
  }
97
97
  });
98
98
  }
@@ -118,7 +118,7 @@ function RootNode(props) {
118
118
  })));
119
119
  }
120
120
 
121
- if (searchType == "depart") {
121
+ if (searchType == 'depart') {
122
122
  return /*#__PURE__*/_react["default"].createElement("span", {
123
123
  className: (0, _classnames["default"])("".concat(_precls["default"], "--root-node-icon__normal"))
124
124
  }, rootName[0]);
@@ -147,15 +147,15 @@ function RootNode(props) {
147
147
  return (0, _openDataPainter.getOpenData)({
148
148
  id: rootId,
149
149
  name: rootName,
150
- type: searchType == "user" ? "userName" : "departmentName"
150
+ type: searchType == 'user' ? 'userName' : 'departmentName'
151
151
  });
152
152
 
153
153
  case 4:
154
154
  wxRootName = _context.sent;
155
155
 
156
156
  case 5:
157
- generalCanvas("normal", wxRootName);
158
- generalCanvas("white", wxRootName);
157
+ generalCanvas('normal', wxRootName);
158
+ generalCanvas('white', wxRootName);
159
159
 
160
160
  case 7:
161
161
  case "end":
@@ -171,11 +171,11 @@ function RootNode(props) {
171
171
  }();
172
172
 
173
173
  var generalCanvas = function generalCanvas() {
174
- var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "normal";
174
+ var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
175
175
  var rootName = arguments.length > 1 ? arguments[1] : undefined;
176
- var canvas = document.createElement("canvas");
177
- var font = "normal 14px/24px Arial,Verdana,Helvetica Neue,Helvetica,sans-serif,PingFang SC,Microsoft YaHei";
178
- var ctx = canvas.getContext("2d");
176
+ var canvas = document.createElement('canvas');
177
+ var font = 'normal 14px/24px Arial,Verdana,Helvetica Neue,Helvetica,sans-serif,PingFang SC,Microsoft YaHei';
178
+ var ctx = canvas.getContext('2d');
179
179
  ctx.font = font; // const fitStr = fittingString(ctx, rootName, 268);
180
180
 
181
181
  var _ctx$measureText = ctx.measureText(rootName),
@@ -185,41 +185,42 @@ function RootNode(props) {
185
185
  (0, _openDataPainter.setSize)(canvas, ctx, actualWidth, 24); // 设置画布尺寸
186
186
 
187
187
  setImgWidth(actualWidth);
188
- ctx.textBaseline = "middle";
188
+ ctx.textBaseline = 'middle';
189
189
  ctx.font = font;
190
- ctx.fillStyle = type == "normal" ? "#6f7886" : "#FFFFFF";
190
+ ctx.fillStyle = type == 'normal' ? '#6f7886' : '#FFFFFF';
191
191
  ctx.fillText(rootName, 0, 12);
192
- type == "normal" ? setNormalRootImg(canvas.toDataURL()) : setWhiteImg(canvas.toDataURL());
192
+ type == 'normal' ? setNormalRootImg(canvas.toDataURL()) : setWhiteImg(canvas.toDataURL());
193
193
  };
194
194
 
195
195
  (0, _react.useEffect)(function () {
196
- (searchType == "user" || searchType == "depart") && rootName.length && getRootName();
196
+ ;
197
+ (searchType == 'user' || searchType == 'depart') && rootName.length && getRootName();
197
198
  }, [rootName, rootId]);
198
199
  return /*#__PURE__*/_react["default"].createElement("div", {
199
200
  className: (0, _classnames["default"])("".concat(_precls["default"], "--root-node-wrapper"), "".concat(_precls["default"], "--root-node-wrapper__").concat(direction))
200
201
  }, /*#__PURE__*/_react["default"].createElement("div", {
201
202
  className: (0, _classnames["default"])("".concat(_precls["default"], "--root-node"))
202
- }, getRootIcon(), searchType !== "user" && searchType !== "depart" && /*#__PURE__*/_react["default"].createElement("span", {
203
+ }, getRootIcon(), searchType !== 'user' && searchType !== 'depart' && /*#__PURE__*/_react["default"].createElement("span", {
203
204
  className: (0, _classnames["default"])("".concat(_precls["default"], "--root-node-text"))
204
- }, rootName), (searchType == "user" || searchType == "depart") && /*#__PURE__*/_react["default"].createElement("img", {
205
+ }, rootName), (searchType == 'user' || searchType == 'depart') && /*#__PURE__*/_react["default"].createElement("img", {
205
206
  src: darkTheme ? whiteRootImg : normalRootImg,
206
207
  style: {
207
208
  maxWidth: 268,
208
209
  marginLeft: 4
209
210
  },
210
211
  width: imgWidth
211
- })), direction === "horizontal" && /*#__PURE__*/_react["default"].createElement(_reactFlowRenderer.Handle, {
212
+ })), direction === 'horizontal' && /*#__PURE__*/_react["default"].createElement(_reactFlowRenderer.Handle, {
212
213
  type: "source",
213
214
  position: "right",
214
215
  style: {
215
- visibility: "hidden",
216
+ visibility: 'hidden',
216
217
  right: 0
217
218
  }
218
- }), direction === "vertical" && /*#__PURE__*/_react["default"].createElement(_reactFlowRenderer.Handle, {
219
+ }), direction === 'vertical' && /*#__PURE__*/_react["default"].createElement(_reactFlowRenderer.Handle, {
219
220
  type: "source",
220
221
  position: "bottom",
221
222
  style: {
222
- visibility: "hidden",
223
+ visibility: 'hidden',
223
224
  bottom: 0
224
225
  }
225
226
  }));
@@ -28,12 +28,12 @@ var nodeTypes = {
28
28
  exports.nodeTypes = nodeTypes;
29
29
 
30
30
  var getLayoutedElements = function getLayoutedElements(elements) {
31
- var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "horizontal";
32
- var isHorizontal = direction === "horizontal"; // const g = new dagre.graphlib.Graph({compound: true });
31
+ var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'horizontal';
32
+ var isHorizontal = direction === 'horizontal'; // const g = new dagre.graphlib.Graph({compound: true });
33
33
 
34
34
  var g = new _dagre["default"].graphlib.Graph();
35
35
  g.setGraph({
36
- rankdir: isHorizontal ? "LR" : "TB",
36
+ rankdir: isHorizontal ? 'LR' : 'TB',
37
37
  nodesep: 12,
38
38
  ranksep: 80
39
39
  });
@@ -66,8 +66,8 @@ var getLayoutedElements = function getLayoutedElements(elements) {
66
66
  if ((0, _reactFlowRenderer.isNode)(element)) {
67
67
  var node = g.node(element.id);
68
68
  return _objectSpread(_objectSpread({}, element), {}, {
69
- targetPosition: isHorizontal ? "left" : "top",
70
- sourcePosition: isHorizontal ? "right" : "bottom",
69
+ targetPosition: isHorizontal ? 'left' : 'top',
70
+ sourcePosition: isHorizontal ? 'right' : 'bottom',
71
71
  position: {
72
72
  x: node ? (node === null || node === void 0 ? void 0 : node.x) - (node === null || node === void 0 ? void 0 : node.width) / 2 : 0,
73
73
  y: node ? (node === null || node === void 0 ? void 0 : node.y) - (node === null || node === void 0 ? void 0 : node.height) / 2 : 0
@@ -28,9 +28,9 @@ var insertSort = function insertSort(arr, item) {
28
28
  var modelType = item.modelType;
29
29
  var index = arr.length;
30
30
 
31
- if (modelType == "kr") {
31
+ if (modelType == 'kr') {
32
32
  index = arr.findIndex(function (item) {
33
- return item.modelType == "work";
33
+ return item.modelType == 'work';
34
34
  });
35
35
  }
36
36
 
@@ -50,11 +50,11 @@ var toTree = function toTree(data, showkr) {
50
50
  data = item.data;
51
51
  var parent;
52
52
 
53
- if (modelType == "work") {
53
+ if (modelType == 'work') {
54
54
  parent = showkr ? map[data.parentKrId || data.parentId] : map[data.parentId];
55
55
  }
56
56
 
57
- if (modelType == "kr") {
57
+ if (modelType == 'kr') {
58
58
  parent = map[data.workId];
59
59
  }
60
60
 
@@ -108,19 +108,19 @@ var formatNodes = function formatNodes(res, showkr) {
108
108
  OkrModel = _res$OkrModel === void 0 ? [] : _res$OkrModel,
109
109
  _res$KrModel = res.KrModel,
110
110
  KrModel = _res$KrModel === void 0 ? [] : _res$KrModel;
111
- OkrModel && uniqueArray(OkrModel, "workId").forEach(function (item) {
111
+ OkrModel && uniqueArray(OkrModel, 'workId').forEach(function (item) {
112
112
  nodes.push({
113
113
  id: item.workId,
114
114
  data: item,
115
- modelType: "work",
115
+ modelType: 'work',
116
116
  isSearchRes: searchIds.includes(item.workId)
117
117
  });
118
118
  });
119
- showkr && KrModel && uniqueArray(KrModel, "mileStoneId").forEach(function (item) {
119
+ showkr && KrModel && uniqueArray(KrModel, 'mileStoneId').forEach(function (item) {
120
120
  nodes.push({
121
121
  id: item.mileStoneId,
122
122
  data: item,
123
- modelType: "kr"
123
+ modelType: 'kr'
124
124
  });
125
125
  });
126
126
  return nodes;
@@ -139,10 +139,10 @@ var flatTree = function flatTree(current, elements, showkr) {
139
139
  children = _current$children === void 0 ? [] : _current$children,
140
140
  isSearchRes = current.isSearchRes;
141
141
 
142
- if (modelType == "root") {
142
+ if (modelType == 'root') {
143
143
  elements.push({
144
144
  id: "".concat(id),
145
- type: "RootNode",
145
+ type: 'RootNode',
146
146
  data: data,
147
147
  isParent: true,
148
148
  position: {
@@ -157,10 +157,10 @@ var flatTree = function flatTree(current, elements, showkr) {
157
157
  isChildExpand = children.length > 0;
158
158
  } else {
159
159
  var childTotal = children.filter(function (item) {
160
- return item.modelType == "work";
160
+ return item.modelType == 'work';
161
161
  }).length;
162
162
  var krChildTotal = children.filter(function (item) {
163
- return item.modelType == "kr";
163
+ return item.modelType == 'kr';
164
164
  }).reduce(function (count, current) {
165
165
  return count += (current.children || []).length;
166
166
  }, 0);
@@ -169,7 +169,7 @@ var flatTree = function flatTree(current, elements, showkr) {
169
169
 
170
170
  elements.push({
171
171
  id: "".concat(id),
172
- type: "ChildNode",
172
+ type: 'ChildNode',
173
173
  position: {
174
174
  x: 0,
175
175
  y: 0
@@ -193,7 +193,7 @@ var flatTree = function flatTree(current, elements, showkr) {
193
193
  _child$children = child.children,
194
194
  children = _child$children === void 0 ? [] : _child$children;
195
195
 
196
- if (!showkr && modelType == "kr") {
196
+ if (!showkr && modelType == 'kr') {
197
197
  if (children.length > 0) {
198
198
  children.forEach(function (sub) {
199
199
  if (!sub) return;
@@ -202,7 +202,7 @@ var flatTree = function flatTree(current, elements, showkr) {
202
202
  source: "".concat(id),
203
203
  target: "".concat(sub.id)
204
204
  });
205
- flatTree(sub, elements, showkr, current.modelType != "root", id);
205
+ flatTree(sub, elements, showkr, current.modelType != 'root', id);
206
206
  });
207
207
  }
208
208
  } else {
@@ -211,7 +211,7 @@ var flatTree = function flatTree(current, elements, showkr) {
211
211
  source: "".concat(id),
212
212
  target: "".concat(child.id)
213
213
  });
214
- flatTree(child, elements, showkr, current.modelType != "root", id);
214
+ flatTree(child, elements, showkr, current.modelType != 'root', id);
215
215
  }
216
216
  });
217
217
  }
@@ -325,7 +325,7 @@ exports.deleteKrById = deleteKrById;
325
325
  var uniqueArray = function uniqueArray(arr, id) {
326
326
  var obj = {};
327
327
  arr = arr.reduce(function (item, next) {
328
- obj[next[id]] ? "" : obj[next[id]] = true && item.push(next);
328
+ obj[next[id]] ? '' : obj[next[id]] = true && item.push(next);
329
329
  return item;
330
330
  }, []);
331
331
  return arr;
@@ -17,8 +17,6 @@ var _selectCycle = _interopRequireDefault(require("./select-cycle"));
17
17
 
18
18
  var _requestApis = require("./request-apis");
19
19
 
20
- var _getLocale = require("../../utils/getLocale");
21
-
22
20
  require("./index.css");
23
21
 
24
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -70,14 +68,12 @@ function _default(props) {
70
68
  }, []);
71
69
 
72
70
  var handleChangeCyecle = function handleChangeCyecle(data) {
73
- (0, _requestApis.updateOCyecle)(okrId, data).then(function (resp) {
74
- if (resp.Code === 1) {
75
- _toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
71
+ (0, _requestApis.updateOCyecle)(okrId, data).then(function () {
72
+ _toast["default"].Success("修改成功", {
73
+ canClose: false
74
+ });
76
75
 
77
- setCycle(data);
78
- } else {
79
- _toast["default"].Error(resp.Message);
80
- }
76
+ setCycle(data);
81
77
  });
82
78
  };
83
79
 
@@ -49,7 +49,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
49
49
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
50
50
 
51
51
  function _formatCycleData(periodParams, getCycleRange) {
52
- if (!periodParams) return '';
52
+ if (!periodParams) return "";
53
53
  var startDate = periodParams.startDate;
54
54
  var endDate = periodParams.endDate;
55
55
 
@@ -58,7 +58,7 @@ function _formatCycleData(periodParams, getCycleRange) {
58
58
  endDate = periodParams.endDate.slice(5);
59
59
  }
60
60
 
61
- return "".concat(_periodSelector["default"].formatPeriod(periodParams)).concat(getCycleRange ? ",".concat(startDate, "~").concat(endDate) : '');
61
+ return "".concat(_periodSelector["default"].formatPeriod(periodParams)).concat(getCycleRange ? ",".concat(startDate, "~").concat(endDate) : "");
62
62
  }
63
63
 
64
64
  function CreateCycle(_ref) {
@@ -94,21 +94,21 @@ function CreateCycle(_ref) {
94
94
  setCycleSetting = _useState4[1];
95
95
 
96
96
  (0, _react.useEffect)(function () {
97
- var settings = localStorage.getItem('OKR_CYCLE_SETTING');
97
+ var settings = localStorage.getItem("OKR_CYCLE_SETTING");
98
98
 
99
99
  if (settings) {
100
100
  setCycleSetting(JSON.parse(settings));
101
101
  return;
102
102
  }
103
103
 
104
- var url = (0, _helper.getApiUrl)('okr/cycleSetting');
105
- (0, _helper.taker)(url, 'GET').then(function (res) {
104
+ var url = (0, _helper.getApiUrl)("okr/cycleSetting");
105
+ (0, _helper.taker)(url, "GET").then(function (res) {
106
106
  if (res.Code == 1) {
107
107
  setCycleSetting(res.Data);
108
108
  }
109
109
  });
110
110
  }, []);
111
- var cycleWrapperRef = (0, _react.useRef)(document.createElement('div'));
111
+ var cycleWrapperRef = (0, _react.useRef)(document.createElement("div"));
112
112
 
113
113
  var onPeriodSelectorChangeHandler = function onPeriodSelectorChangeHandler(c) {
114
114
  setSelfCycle(_objectSpread(_objectSpread({}, selfCycle), c));
@@ -148,13 +148,13 @@ function CreateCycle(_ref) {
148
148
  },
149
149
  ref: cycleWrapperRef,
150
150
  style: {
151
- backgroundColor: 'white',
152
- boxShadow: '0px 4px 12px 0px rgb(127 145 180 / 20%)',
151
+ backgroundColor: "white",
152
+ boxShadow: "0px 4px 12px 0px rgb(127 145 180 / 20%)",
153
153
  borderRadius: 4
154
154
  }
155
155
  }, /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
156
156
  style: {
157
- width: '100%'
157
+ width: "100%"
158
158
  },
159
159
  selected: selfCycle,
160
160
  showFullCycle: false,
@@ -176,9 +176,9 @@ function CreateCycle(_ref) {
176
176
  }))), /*#__PURE__*/_react["default"].createElement("div", {
177
177
  className: "okr-detail-date-cycle__date-line",
178
178
  style: {
179
- borderBottom: '1px solid #F0F2F5'
179
+ borderBottom: "1px solid #F0F2F5"
180
180
  }
181
- }, (0, _getLocale.getLocale)('Mod_StartDate'), "\uFF1A", /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
181
+ }, (0, _getLocale.getLocale)("Mod_StartDate"), "\uFF1A", /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
182
182
  format: "YYYY/MM/DD",
183
183
  controlled: true,
184
184
  onConfirm: onStartDateConfirmHandler,
@@ -193,7 +193,7 @@ function CreateCycle(_ref) {
193
193
  className: "tu-icon-arrow-down okr-detail-date-cycle__select-time-down-icon"
194
194
  })))), /*#__PURE__*/_react["default"].createElement("div", {
195
195
  className: "okr-detail-date-cycle__date-line"
196
- }, (0, _getLocale.getLocale)('Mod_EndDate'), "\uFF1A", /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
196
+ }, (0, _getLocale.getLocale)("Mod_EndDate"), "\uFF1A", /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
197
197
  format: "YYYY/MM/DD",
198
198
  controlled: true,
199
199
  onConfirm: onEndDateCOnfirmHandler,
@@ -208,8 +208,8 @@ function CreateCycle(_ref) {
208
208
  className: "tu-icon-arrow-down okr-detail-date-cycle__select-time-down-icon"
209
209
  })))), /*#__PURE__*/_react["default"].createElement("div", {
210
210
  style: {
211
- display: 'flex',
212
- justifyContent: 'flex-end'
211
+ display: "flex",
212
+ justifyContent: "flex-end"
213
213
  }
214
214
  }, /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
215
215
  size: "s",
@@ -217,15 +217,15 @@ function CreateCycle(_ref) {
217
217
  marginRight: 12
218
218
  },
219
219
  onClick: onCancelClickHandler
220
- }, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
220
+ }, (0, _getLocale.getLocale)("Mod_Cancel")), /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
221
221
  size: "s",
222
222
  type: "primary",
223
223
  onClick: onSureClickHandler
224
- }, (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine'))));
224
+ }, (0, _getLocale.getLocale)("OKR_MyO_Butt_Determine"))));
225
225
  } else {
226
- return canEdit ? /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
226
+ return /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
227
227
  style: {
228
- width: '100%'
228
+ width: "100%"
229
229
  },
230
230
  selected: cycle,
231
231
  showFullCycle: false,
@@ -245,11 +245,7 @@ function CreateCycle(_ref) {
245
245
  btnRef: btnRef,
246
246
  clickCallback: function clickCallback() {},
247
247
  text: _formatCycleData(cycle, getCycleRange)
248
- })) : renderInnerContent({
249
- btnRef: btnRef,
250
- clickCallback: function clickCallback() {},
251
- text: _formatCycleData(cycle, getCycleRange)
252
- });
248
+ }));
253
249
  }
254
250
  }
255
251