@titaui/pc 1.15.89 → 1.15.90-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/lib/components/avatar/name-avatar/index.css +1 -1
  2. package/lib/components/avatar/text-avatar/index.css +1 -1
  3. package/lib/components/book-demo/components/pc/components/content/index.js +8 -6
  4. package/lib/components/book-demo/components/pc/index.js +22 -18
  5. package/lib/components/book-demo/constant.js +115 -0
  6. package/lib/components/book-demo/interface.js +1 -0
  7. package/lib/components/change-okr-modal/Filter.js +3 -1
  8. package/lib/components/change-okr-modal/Item.js +3 -1
  9. package/lib/components/common-share/publishMblog.js +3 -1
  10. package/lib/components/common-share/request-apis.js +4 -2
  11. package/lib/components/communication/style.js +1 -1
  12. package/lib/components/confidence/index.css +4 -4
  13. package/lib/components/create-okr-modal/fields/index.css +6 -6
  14. package/lib/components/create-okr-modal/fields/okr-classify.js +3 -1
  15. package/lib/components/create-okr-modal/fields/okr-new-user-selector.js +4 -1
  16. package/lib/components/create-okr-modal/fields/okr-type.js +3 -1
  17. package/lib/components/create-okr-modal/index.css +6 -6
  18. package/lib/components/create-okr-modal/index.js +3 -1
  19. package/lib/components/create-okr-modal/kr-items/index.css +3 -3
  20. package/lib/components/create-okr-modal/request-api.js +4 -2
  21. package/lib/components/create-okr-modal/utils/helper.js +3 -1
  22. package/lib/components/dialog/index.css +2 -2
  23. package/lib/components/dialog-confirm/index.css +5 -5
  24. package/lib/components/dialog-confirm/index.js +3 -1
  25. package/lib/components/dynamic/components/comments-dialog/api.js +4 -2
  26. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +11 -6
  27. package/lib/components/dynamic/dynamic-item/components/schedule/index.css +8 -0
  28. package/lib/components/dynamic/dynamic-item/components/schedule/index.js +34 -7
  29. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +0 -1
  30. package/lib/components/dynamic/dynamic-item/components/table-row-okr/utils.js +2 -0
  31. package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +3 -2
  32. package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +8 -2
  33. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +4 -2
  34. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +1 -1
  35. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
  36. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
  37. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +1 -1
  38. package/lib/components/dynamic/dynamic-item/dynamic-discovery/dynamic-footer.js +4 -2
  39. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.js +3 -1
  40. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +1 -1
  41. package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +3 -1
  42. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +1 -1
  43. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +1 -1
  44. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +3 -1
  45. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
  46. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
  47. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +1 -1
  48. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +1 -1
  49. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +1 -1
  50. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.css +1 -1
  51. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
  52. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +1 -1
  53. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +1 -1
  54. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +3 -1
  55. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +1 -1
  56. package/lib/components/dynamic/dynamic-item/index.css +2 -2
  57. package/lib/components/dynamic/dynamic-item/index.js +4 -2
  58. package/lib/components/dynamic/dynamic-list/index.css +1 -1
  59. package/lib/components/dynamic/request-api.js +3 -1
  60. package/lib/components/e-priority/index.css +4 -4
  61. package/lib/components/eReport/eReportListEmpty.js +1 -1
  62. package/lib/components/eReport/eReportLists/style.js +2 -2
  63. package/lib/components/eReport/eReportShare/index.js +3 -1
  64. package/lib/components/edit-kr-wight/style/index.js +5 -5
  65. package/lib/components/emotions-selector/style.js +1 -1
  66. package/lib/components/ereport-list/style.js +2 -2
  67. package/lib/components/file-list/index.css +1 -1
  68. package/lib/components/form/form-fields/cycle/index.css +1 -1
  69. package/lib/components/form/form-fields/department/index.css +2 -2
  70. package/lib/components/form/form-fields/dropdown/index.js +2 -2
  71. package/lib/components/form/form-fields/duties/index.css +2 -2
  72. package/lib/components/form/form-fields/input/index.css +6 -2
  73. package/lib/components/form/form-fields/input/index.js +9 -7
  74. package/lib/components/form/form-fields/input-verification-code/index.css +2 -2
  75. package/lib/components/form/form-fields/password/index.css +2 -2
  76. package/lib/components/form/form-fields/textarea/index.css +2 -2
  77. package/lib/components/form/form-fields/user/index.css +2 -2
  78. package/lib/components/grid-layout/commen-components/index.css +1 -1
  79. package/lib/components/grid-layout/personal-info/index.js +4 -4
  80. package/lib/components/grid-layout/sub-employee-okr/index.js +3 -1
  81. package/lib/components/grid-layout/util/network.js +4 -2
  82. package/lib/components/grid-page/personal-info/index.js +4 -4
  83. package/lib/components/guide-tip/index.js +4 -1
  84. package/lib/components/help-card/index.js +3 -1
  85. package/lib/components/help-card/request-api.js +4 -2
  86. package/lib/components/hr-header/index.js +4 -2
  87. package/lib/components/img-viewer/index.css +1 -1
  88. package/lib/components/import-modal/helper.js +1 -1
  89. package/lib/components/import-modal/request-api.js +6 -2
  90. package/lib/components/import-modal/search/search-dropdown/index.css +1 -1
  91. package/lib/components/import-modal/tree/okr-tree/search-form.js +2 -2
  92. package/lib/components/import-modal/tree/task-work-tree/index.js +3 -1
  93. package/lib/components/import-modal/tree-node/kr-node/index.css +1 -1
  94. package/lib/components/import-modal/tree-node/milestone-node/index.css +1 -1
  95. package/lib/components/import-modal/tree-node/work-node/index.js +3 -1
  96. package/lib/components/magnet/index.js +5 -0
  97. package/lib/components/mblog/index.js +3 -1
  98. package/lib/components/menus/components/menu-card/index.js +3 -1
  99. package/lib/components/menus/export-modules/appraisal-menus/menus.js +7 -5
  100. package/lib/components/menus/export-modules/okr-menus/menus.js +3 -1
  101. package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +3 -1
  102. package/lib/components/menus/export-modules/research-menu/index.css +9 -0
  103. package/lib/components/menus/export-modules/research-menu/index.js +120 -0
  104. package/lib/components/menus/export-modules/research-menu/menu-highlight.js +44 -0
  105. package/lib/components/menus/export-modules/research-menu/menus.js +78 -0
  106. package/lib/components/menus/export-modules/research-menu/research-front-menus.js +158 -0
  107. package/lib/components/menus/export-modules/skynet-dashboard-menu/index.css +9 -0
  108. package/lib/components/menus/export-modules/skynet-dashboard-menu/index.js +120 -0
  109. package/lib/components/menus/export-modules/skynet-dashboard-menu/menu-highlight.js +52 -0
  110. package/lib/components/menus/export-modules/skynet-dashboard-menu/menus.js +80 -0
  111. package/lib/components/menus/export-modules/skynet-dashboard-menu/request-api.js +5 -0
  112. package/lib/components/menus/export-modules/skynet-dashboard-menu/survey-front-menus.js +178 -0
  113. package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +8 -0
  114. package/lib/components/menus/export-modules/summary-menus/menus.js +13 -2
  115. package/lib/components/menus/export-modules/summary-menus/request-api.js +8 -2
  116. package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.js +3 -1
  117. package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +30 -8
  118. package/lib/components/menus/i18n.js +1 -0
  119. package/lib/components/menus/index.js +12 -0
  120. package/lib/components/menus/request-apis.js +4 -2
  121. package/lib/components/nav-top/components/app-center/images/research.png +0 -0
  122. package/lib/components/nav-top/components/app-center/index.css +11 -3
  123. package/lib/components/nav-top/components/app-center/index.js +13 -5
  124. package/lib/components/nav-top/components/menu/index.css +1 -1
  125. package/lib/components/nav-top/index.css +1 -1
  126. package/lib/components/nav-top/index.js +21 -11
  127. package/lib/components/nav-top/request.apis.js +6 -5
  128. package/lib/components/nav-top/utils.js +1 -1
  129. package/lib/components/okr-detail/base-info/base-info.css +1 -1
  130. package/lib/components/okr-detail/base-info/base-info.js +11 -15
  131. package/lib/components/okr-detail/base-info/other-infos/classify/index.css +1 -1
  132. package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.css +2 -2
  133. package/lib/components/okr-detail/base-info/other-infos/okr-type/index.css +1 -1
  134. package/lib/components/okr-detail/base-info/other-infos/principal/index.css +1 -1
  135. package/lib/components/okr-detail/base-info/other-infos/visibility/index.css +1 -1
  136. package/lib/components/okr-detail/components/ao-nice/index.css +1 -1
  137. package/lib/components/okr-detail/components/editable-input/index.css +1 -1
  138. package/lib/components/okr-detail/components/header/index.css +7 -7
  139. package/lib/components/okr-detail/components/icon-text/index.css +1 -1
  140. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +4 -4
  141. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +7 -7
  142. package/lib/components/okr-detail/components/okr-tree/tree-node/index.css +1 -1
  143. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +2 -2
  144. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +3 -1
  145. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +1 -1
  146. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.css +3 -3
  147. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +3 -1
  148. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.css +1 -1
  149. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.css +1 -1
  150. package/lib/components/okr-detail/components/score/index.css +1 -1
  151. package/lib/components/okr-detail/detail-footer/index.js +3 -1
  152. package/lib/components/okr-detail/detail-header/actions.js +3 -3
  153. package/lib/components/okr-detail/detail-header/index.js +3 -1
  154. package/lib/components/okr-detail/e-list/search-form/index.css +2 -2
  155. package/lib/components/okr-detail/index.js +6 -2
  156. package/lib/components/okr-detail/okr-list/empty/index.css +2 -2
  157. package/lib/components/okr-detail/okr-list/index.css +4 -4
  158. package/lib/components/okr-detail/request-apis.js +3 -1
  159. package/lib/components/okr-detail/schedule/components/detail-title/index.css +1 -1
  160. package/lib/components/okr-detail/schedule/components/kr-progress/index.css +2 -2
  161. package/lib/components/okr-detail/schedule/components/o-progress/index.css +7 -7
  162. package/lib/components/okr-detail/schedule/components/o-progress/index.js +6 -2
  163. package/lib/components/okr-detail/schedule/components/sub-o-progress/index.css +1 -1
  164. package/lib/components/okr-detail/schedule/components/title/index.css +1 -1
  165. package/lib/components/okr-detail/schedule/util.js +3 -1
  166. package/lib/components/okr-excel/setting.js +6 -4
  167. package/lib/components/okr-filter-drawer/filter-form.js +3 -1
  168. package/lib/components/okr-flow/child-node/index.css +2 -2
  169. package/lib/components/okr-flow/empty/index.css +1 -1
  170. package/lib/components/okr-flow/open-data/index.js +3 -1
  171. package/lib/components/okr-flow/request-apis.js +4 -2
  172. package/lib/components/okr-flow/utils/config.js +7 -3
  173. package/lib/components/okr-guide/index.css +15 -17
  174. package/lib/components/okr-guide/index.js +3 -1
  175. package/lib/components/okr-progress/components/detail-title/index.css +1 -1
  176. package/lib/components/okr-progress/components/kr-progress/index.css +2 -2
  177. package/lib/components/okr-progress/components/o-progress/index.css +7 -7
  178. package/lib/components/okr-progress/components/o-progress/index.js +6 -2
  179. package/lib/components/okr-progress/components/sub-o-progress/index.css +1 -1
  180. package/lib/components/okr-progress/components/title/index.css +1 -1
  181. package/lib/components/okr-progress/util.js +3 -1
  182. package/lib/components/okr-progress-detail/index.css +1 -1
  183. package/lib/components/okr-progress-modal/index.css +2 -2
  184. package/lib/components/okr-progress-modal/request-apis.js +4 -2
  185. package/lib/components/okr-review/common.js +1 -1
  186. package/lib/components/okr-share/publishMblog.js +3 -1
  187. package/lib/components/okr-share/request-apis.js +4 -2
  188. package/lib/components/okrcase-library/index.css +1 -1
  189. package/lib/components/okrcase-library/index.js +3 -1
  190. package/lib/components/operation-records/index.js +56 -8
  191. package/lib/components/order-have-award/index.js +6 -2
  192. package/lib/components/part-notice/index.js +5 -1
  193. package/lib/components/password-input/index.css +1 -1
  194. package/lib/components/period-selector/helper/index.js +3 -1
  195. package/lib/components/photo-card/components/card/index.css +3 -3
  196. package/lib/components/photo-card/index.css +1 -1
  197. package/lib/components/point-demo/index.js +9 -7
  198. package/lib/components/point-demo/point-demo.js +5 -3
  199. package/lib/components/promise-confirm/index.js +3 -2
  200. package/lib/components/search-dropdown/index.css +1 -1
  201. package/lib/components/select-layer/index.css +1 -1
  202. package/lib/components/select-tags/index.js +5 -3
  203. package/lib/components/status-time/index.css +1 -1
  204. package/lib/components/stop-taking-modal/index.js +3 -1
  205. package/lib/components/superset-charts/utils/axios.js +4 -2
  206. package/lib/components/survey-model/index.js +7 -7
  207. package/lib/components/survey-model/instance.js +4 -2
  208. package/lib/components/switch/index.css +1 -1
  209. package/lib/components/tabs/index.css +1 -1
  210. package/lib/components/task-relation-modal/helper.js +1 -1
  211. package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +2 -2
  212. package/lib/components/task-relation-modal/okr-relation/request-api.js +3 -1
  213. package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.js +3 -1
  214. package/lib/components/task-relation-modal/request-api.js +3 -1
  215. package/lib/components/task-relation-modal/search/search-dropdown/index.css +1 -1
  216. package/lib/components/task-relation-modal/tree/category-tree/index.css +3 -3
  217. package/lib/components/task-relation-modal/tree/okr-tree/index.css +2 -2
  218. package/lib/components/task-relation-modal/tree/okr-tree/index.js +3 -1
  219. package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +2 -2
  220. package/lib/components/task-relation-modal/tree/work-list/search-form.js +2 -2
  221. package/lib/components/task-relation-modal/tree/work-tree/index.css +2 -2
  222. package/lib/components/task-relation-modal/tree/work-tree/search-form.js +2 -2
  223. package/lib/components/task-relation-modal/tree-node/category-node/index.css +1 -1
  224. package/lib/components/task-relation-modal/tree-node/kr-node/index.css +1 -1
  225. package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +1 -1
  226. package/lib/components/task-relation-modal/tree-node/work-node/index.js +3 -1
  227. package/lib/components/task-tree/task-item-node/index.css +5 -5
  228. package/lib/components/textarea/index.js +4 -2
  229. package/lib/components/tooltip/index.css +1 -1
  230. package/lib/components/upload/index.js +4 -2
  231. package/lib/components/upvote/request-apis.js +4 -2
  232. package/lib/components/user-selector/empty/group.js +4 -2
  233. package/lib/components/user-selector/request-apis.js +4 -2
  234. package/lib/components/version-change-modal/index.css +2 -2
  235. package/lib/components/version-change-modal/index.js +6 -2
  236. package/lib/components/video-modal/index.js +3 -1
  237. package/lib/components/weekly-report/card.js +9 -9
  238. package/lib/components/word-cloud/request-apis.js +4 -2
  239. package/lib/index.js +8 -0
  240. package/lib/pages/aha2021/index.js +9 -9
  241. package/lib/pages/appointment-demo/drop-down-box/index.css +1 -1
  242. package/lib/pages/appointment-demo/input/index.css +1 -1
  243. package/lib/pages/group-management/components/input-form/index.css +1 -1
  244. package/lib/pages/group-management/components/openData/index.js +9 -3
  245. package/lib/pages/group-management/groupInterface.js +10 -4
  246. package/lib/pages/group-management/page-view/importGroupStaff/index.js +5 -3
  247. package/lib/pages/group-management/page-view/index.css +1 -1
  248. package/lib/pages/like-ranking/index.js +3 -1
  249. package/lib/pages/new-okr-list/header/index.js +10 -4
  250. package/lib/pages/new-okr-list/index.js +2 -41
  251. package/lib/pages/okr-map/export-modules/okr-map/header/index.css +3 -3
  252. package/lib/pages/okr-map/export-modules/okr-map/index.css +1 -1
  253. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +2 -2
  254. package/lib/pages/okr-map/export-modules/share-okr-page/index.css +1 -1
  255. package/lib/pages/okr-map/hooks/useStorage.js +3 -1
  256. package/lib/pages/okr-map/level2-search/index.css +1 -1
  257. package/lib/pages/okr-map/no-okr/index.css +1 -1
  258. package/lib/pages/okr-map/number-select/index.css +1 -1
  259. package/lib/pages/okr-map/open-data/index.js +3 -1
  260. package/lib/pages/okr-map/request-apis.js +4 -2
  261. package/lib/pages/okr-map/share-dialog/index.css +3 -3
  262. package/lib/pages/okr-map/unsupport-ie/index.css +1 -1
  263. package/lib/pages/okr-map/utils.js +10 -7
  264. package/lib/pages/personal-info/components/base-info/index.css +1 -1
  265. package/lib/pages/personal-info/components/person-photo/index.css +1 -1
  266. package/lib/utils/auth.js +22 -14
  267. package/lib/utils/bs-global.js +21 -8
  268. package/lib/utils/helpers.js +15 -5
  269. package/lib/utils/open-data.js +14 -6
  270. package/lib/utils/platform.js +15 -5
  271. package/lib/utils/request-v1.js +9 -3
  272. package/lib/utils/request.js +3 -3
  273. package/package.json +2 -3
@@ -8,6 +8,8 @@ exports.setToken = setToken;
8
8
 
9
9
  var _axios = _interopRequireDefault(require("axios"));
10
10
 
11
+ var _window$BSGlobal$tena, _window$BSGlobal$logi;
12
+
11
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
14
 
13
15
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -21,8 +23,8 @@ var requestDomain = function requestDomain() {
21
23
  return "".concat(window.location.protocol, "//www.tita.gift");
22
24
  };
23
25
 
24
- var tenantId = window.BSGlobal && window.BSGlobal.tenantInfo.Id || 0;
25
- var userId = window.BSGlobal && window.BSGlobal.loginUserInfo.Id || 0;
26
+ var tenantId = window.BSGlobal && ((_window$BSGlobal$tena = window.BSGlobal.tenantInfo) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Id) || 0;
27
+ var userId = window.BSGlobal && ((_window$BSGlobal$logi = window.BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi === void 0 ? void 0 : _window$BSGlobal$logi.Id) || 0;
26
28
 
27
29
  function getToken() {
28
30
  return sessionStorage.getItem('DEMOFREE_TOKEN') || '';
@@ -101,7 +101,7 @@ var SurveyModel = function SurveyModel(_ref) {
101
101
 
102
102
  var handleCloseSurvey = function handleCloseSurvey() {
103
103
  setDialogVisible(false);
104
- localStorage.setItem("survey_model_date__".concat(loginUserInfo.Id), (0, _dayjs["default"])().toString());
104
+ localStorage.setItem("survey_model_date__".concat(loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.Id), (0, _dayjs["default"])().toString());
105
105
  };
106
106
 
107
107
  (0, _react.useEffect)(function () {
@@ -109,7 +109,7 @@ var SurveyModel = function SurveyModel(_ref) {
109
109
  if ((0, _helpers.isDingDing)()) return;
110
110
  if (!!window.location.hostname.match(/.work/)) return;
111
111
  var newDate = (0, _dayjs["default"])();
112
- var oldDate = localStorage.getItem("survey_model_date__".concat(loginUserInfo.Id));
112
+ var oldDate = localStorage.getItem("survey_model_date__".concat(loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.Id));
113
113
 
114
114
  if (endTime) {
115
115
  if ((0, _dayjs["default"])(endTime).valueOf() < (0, _dayjs["default"])().valueOf()) {
@@ -175,13 +175,13 @@ var SurveyModel = function SurveyModel(_ref) {
175
175
  nps_score: score,
176
176
  nps_advice: (0, _tools.htmlEncodeByRegExp)(advice),
177
177
  nps_score_reason: reason,
178
- user_id: loginUserInfo.Id,
179
- user_name: loginUserInfo.Name,
178
+ user_id: loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.Id,
179
+ user_name: loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.Name,
180
180
  user_contact: (0, _tools.htmlEncodeByRegExp)(contact),
181
181
  user_role_name: Role.getRole(),
182
- tenant_id: tenantInfo.Id,
183
- tenant_name: tenantInfo.Name,
184
- tenant_source_name: tenantInfo.Source.toString(),
182
+ tenant_id: tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.Id,
183
+ tenant_name: tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.Name,
184
+ tenant_source_name: tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.Source.toString(),
185
185
  tenant_version_name: _bsGlobal.VERSION_MAP[Version]
186
186
  }
187
187
  };
@@ -8,10 +8,12 @@ exports.setToken = setToken;
8
8
 
9
9
  var _axios = _interopRequireDefault(require("axios"));
10
10
 
11
+ var _window$BSGlobal$tena, _window$BSGlobal$logi;
12
+
11
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
14
 
13
- var tenantId = window.BSGlobal.tenantInfo.Id;
14
- var userId = window.BSGlobal.loginUserInfo.Id;
15
+ var tenantId = (_window$BSGlobal$tena = window.BSGlobal.tenantInfo) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Id;
16
+ var userId = (_window$BSGlobal$logi = window.BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi === void 0 ? void 0 : _window$BSGlobal$logi.Id;
15
17
 
16
18
  var requestDomain = function requestDomain() {
17
19
  if (!window.location.hostname.match(/.work/)) return '';
@@ -1,5 +1,5 @@
1
1
  .titaui-switch {
2
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
2
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
3
3
  }
4
4
 
5
5
  .titaui-switch-label {
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .titaui-tabs--big div.rc-tabs-tab-btn {
6
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
6
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
7
7
  font-weight: 600;
8
8
  color: #89919f;
9
9
  margin-bottom: 8px;
@@ -20,7 +20,7 @@ var isOpenWorkManage = (0, _bsGlobal.getAppHead)('112'); // 开通项目
20
20
 
21
21
  exports.isOpenWorkManage = isOpenWorkManage;
22
22
  var TaskAdvancedSetting = (0, _bsGlobal.getBSGlobal)('TaskAdvancedSetting');
23
- var isOpenLabel = TaskAdvancedSetting.TaskPlanSetting.TaskLabel; // 开启分类
23
+ var isOpenLabel = TaskAdvancedSetting === null || TaskAdvancedSetting === void 0 ? void 0 : TaskAdvancedSetting.TaskPlanSetting.TaskLabel; // 开启分类
24
24
 
25
25
  exports.isOpenLabel = isOpenLabel;
26
26
  var lableTypeMap = {
@@ -59,8 +59,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
59
59
 
60
60
  var loginUser = (0, _helpers.getLoginUserInfo)();
61
61
  var user = {
62
- userId: loginUser.Id,
63
- name: loginUser.Name,
62
+ userId: loginUser === null || loginUser === void 0 ? void 0 : loginUser.Id,
63
+ name: loginUser === null || loginUser === void 0 ? void 0 : loginUser.Name,
64
64
  avatar: {
65
65
  original: loginUser === null || loginUser === void 0 ? void 0 : (_loginUser$UserAvatar = loginUser.UserAvatar) === null || _loginUser$UserAvatar === void 0 ? void 0 : _loginUser$UserAvatar.Original,
66
66
  color: '#bc97eb'
@@ -9,6 +9,8 @@ var _request = require("@titaui/request");
9
9
 
10
10
  var _helpers = require("../../../utils/helpers");
11
11
 
12
+ var _getLoginUserInfo;
13
+
12
14
  var dealMessage = function dealMessage(res) {
13
15
  var Code = res.Code,
14
16
  Data = res.Data;
@@ -20,7 +22,7 @@ var dealMessage = function dealMessage(res) {
20
22
  }
21
23
  };
22
24
 
23
- var id = (0, _helpers.getLoginUserInfo)().Id;
25
+ var id = (_getLoginUserInfo = (0, _helpers.getLoginUserInfo)()) === null || _getLoginUserInfo === void 0 ? void 0 : _getLoginUserInfo.Id;
24
26
 
25
27
  var planTableTask = function planTableTask(params, pageNum, pageSize) {
26
28
  var url = "task/search";
@@ -59,7 +59,9 @@ var TaskTree = function TaskTree(_ref) {
59
59
 
60
60
  var handleName = function handleName(id) {
61
61
  if (isWork) {
62
- window.open("#work?work_id=".concat(id, "&to_user_id=").concat((0, _helpers.getLoginUserInfo)().Id, "&status=1"));
62
+ var _getLoginUserInfo;
63
+
64
+ window.open("#work?work_id=".concat(id, "&to_user_id=").concat((_getLoginUserInfo = (0, _helpers.getLoginUserInfo)()) === null || _getLoginUserInfo === void 0 ? void 0 : _getLoginUserInfo.Id, "&status=1"));
63
65
  } else {
64
66
  if (noScreen) {
65
67
  window.open("https://".concat(location.host).concat(location.pathname, "#more/taskinfo?id=").concat(id));
@@ -92,6 +92,8 @@ var getKrIds = function getKrIds(workId) {
92
92
  exports.getKrIds = getKrIds;
93
93
 
94
94
  var workData = function workData(params, pageNum, pageSize) {
95
+ var _getLoginUserInfo;
96
+
95
97
  var _params$keyWords2 = params.keyWords,
96
98
  keyWords = _params$keyWords2 === void 0 ? '' : _params$keyWords2,
97
99
  _params$status = params.status,
@@ -101,7 +103,7 @@ var workData = function workData(params, pageNum, pageSize) {
101
103
  userIds = params.userIds,
102
104
  _params$isGetMileston = params.isGetMilestone,
103
105
  isGetMilestone = _params$isGetMileston === void 0 ? false : _params$isGetMileston;
104
- var url = "work/list?toUserId=".concat(userIds || (0, _helpers.getLoginUserInfo)().Id);
106
+ var url = "work/list?toUserId=".concat(userIds || ((_getLoginUserInfo = (0, _helpers.getLoginUserInfo)()) === null || _getLoginUserInfo === void 0 ? void 0 : _getLoginUserInfo.Id));
105
107
  return (0, _request.rpost)('v1')(url, {
106
108
  keyWords: keyWords,
107
109
  orderType: 1,
@@ -22,7 +22,7 @@
22
22
 
23
23
  .titaui-search-dropdown__text {
24
24
  display: inline-block;
25
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
25
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
26
26
  font-size: 14px;
27
27
  line-height: 16px;
28
28
  color: #3f4755;
@@ -1,7 +1,7 @@
1
1
  .rel-category-tree__empty {
2
2
  color: #a4acb9;
3
3
  font-size: 16px;
4
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
4
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
5
5
  width: 100%;
6
6
  height: 400px;
7
7
  display: flex;
@@ -16,7 +16,7 @@
16
16
  width: 90px;
17
17
  height: 36px;
18
18
  font-size: 14px;
19
- font-family: PingFangSC-Regular, PingFang SC;
19
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
20
20
  font-weight: 400;
21
21
  color: #ffffff;
22
22
  line-height: 36px;
@@ -53,7 +53,7 @@
53
53
  margin-bottom: 15px;
54
54
  color: #a4acb9;
55
55
  font-size: 12px;
56
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
56
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
57
57
  line-height: 18px;
58
58
  display: flex;
59
59
  border-bottom: 1px solid #e9ecf0;
@@ -1,7 +1,7 @@
1
1
  .rel-okr-tree__empty {
2
2
  color: #a4acb9;
3
3
  font-size: 16px;
4
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
4
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
5
5
  width: 100%;
6
6
  height: 400px;
7
7
  line-height: 400px;
@@ -33,7 +33,7 @@
33
33
  margin-bottom: 15px;
34
34
  color: #a4acb9;
35
35
  font-size: 12px;
36
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
36
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
37
37
  line-height: 18px;
38
38
  display: flex;
39
39
  border-bottom: 1px solid #e9ecf0;
@@ -98,7 +98,9 @@ function OkrTree() {
98
98
  setQuery = _useState12[1];
99
99
 
100
100
  var _useState13 = (0, _react.useState)(function () {
101
- return (0, _bsGlobal.getBSGlobal)("loginUserInfo").Id;
101
+ var _getBSGlobal;
102
+
103
+ return (_getBSGlobal = (0, _bsGlobal.getBSGlobal)("loginUserInfo")) === null || _getBSGlobal === void 0 ? void 0 : _getBSGlobal.Id;
102
104
  }),
103
105
  _useState14 = _slicedToArray(_useState13, 1),
104
106
  toUserId = _useState14[0];
@@ -58,8 +58,8 @@ function SearchForm(props) {
58
58
 
59
59
  var loginUser = (0, _helpers.getLoginUserInfo)();
60
60
  var user = {
61
- userId: loginUser.Id,
62
- name: loginUser.Name,
61
+ userId: loginUser === null || loginUser === void 0 ? void 0 : loginUser.Id,
62
+ name: loginUser === null || loginUser === void 0 ? void 0 : loginUser.Name,
63
63
  avatar: {
64
64
  original: loginUser === null || loginUser === void 0 ? void 0 : (_loginUser$UserAvatar = loginUser.UserAvatar) === null || _loginUser$UserAvatar === void 0 ? void 0 : _loginUser$UserAvatar.Original,
65
65
  color: loginUser === null || loginUser === void 0 ? void 0 : (_loginUser$UserAvatar2 = loginUser.UserAvatar) === null || _loginUser$UserAvatar2 === void 0 ? void 0 : _loginUser$UserAvatar2.Color,
@@ -46,8 +46,8 @@ function SearchForm(props) {
46
46
 
47
47
  var loginUser = (0, _helpers.getLoginUserInfo)();
48
48
  var user = {
49
- userId: loginUser.Id,
50
- name: loginUser.Name,
49
+ userId: loginUser === null || loginUser === void 0 ? void 0 : loginUser.Id,
50
+ name: loginUser === null || loginUser === void 0 ? void 0 : loginUser.Name,
51
51
  avatar: {
52
52
  original: loginUser === null || loginUser === void 0 ? void 0 : (_loginUser$UserAvatar = loginUser.UserAvatar) === null || _loginUser$UserAvatar === void 0 ? void 0 : _loginUser$UserAvatar.Original,
53
53
  color: '#bc97eb'
@@ -1,7 +1,7 @@
1
1
  .rel-work-tree__empty {
2
2
  color: #a4acb9;
3
3
  font-size: 16px;
4
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
4
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
5
5
  width: 100%;
6
6
  height: 400px;
7
7
  line-height: 400px;
@@ -33,7 +33,7 @@
33
33
  margin-bottom: 15px;
34
34
  color: #a4acb9;
35
35
  font-size: 12px;
36
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
36
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
37
37
  line-height: 18px;
38
38
  display: flex;
39
39
  border-bottom: 1px solid #e9ecf0;
@@ -45,8 +45,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
45
45
 
46
46
  var loginUser = (0, _helpers.getLoginUserInfo)();
47
47
  var user = {
48
- userId: loginUser.Id,
49
- name: loginUser.Name,
48
+ userId: loginUser === null || loginUser === void 0 ? void 0 : loginUser.Id,
49
+ name: loginUser === null || loginUser === void 0 ? void 0 : loginUser.Name,
50
50
  avatar: {
51
51
  original: loginUser === null || loginUser === void 0 ? void 0 : (_loginUser$UserAvatar = loginUser.UserAvatar) === null || _loginUser$UserAvatar === void 0 ? void 0 : _loginUser$UserAvatar.Original,
52
52
  color: '#bc97eb'
@@ -2,7 +2,7 @@
2
2
  color: #6f7886;
3
3
  font-size: 13px;
4
4
  line-height: 18px;
5
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
5
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
6
6
  display: flex;
7
7
  position: relative;
8
8
  }
@@ -2,7 +2,7 @@
2
2
  color: #6f7886;
3
3
  font-size: 13px;
4
4
  line-height: 18px;
5
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
5
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
6
6
  display: flex;
7
7
  position: relative;
8
8
  }
@@ -2,7 +2,7 @@
2
2
  color: #6f7886;
3
3
  font-size: 13px;
4
4
  line-height: 18px;
5
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
5
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
6
6
  display: flex;
7
7
  position: relative;
8
8
  }
@@ -51,7 +51,9 @@ function WorkNode(props) {
51
51
  removeSelected = _useContext.removeSelected;
52
52
 
53
53
  var gotoWorkDetail = function gotoWorkDetail() {
54
- window.open("#work?work_id=".concat(data.WorkId, "&to_user_id=").concat((0, _helpers.getLoginUserInfo)().Id, "&status=1"));
54
+ var _getLoginUserInfo;
55
+
56
+ window.open("#work?work_id=".concat(data.WorkId, "&to_user_id=").concat((_getLoginUserInfo = (0, _helpers.getLoginUserInfo)()) === null || _getLoginUserInfo === void 0 ? void 0 : _getLoginUserInfo.Id, "&status=1"));
55
57
  };
56
58
 
57
59
  var onCheckHandler = function onCheckHandler(checked) {
@@ -19,7 +19,7 @@
19
19
  .titaui-task-tree__e-task-node-title {
20
20
  height: 22px;
21
21
  font-size: 14px;
22
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
22
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
23
23
  color: #3f4755;
24
24
  line-height: 22px;
25
25
  overflow: hidden;
@@ -78,7 +78,7 @@
78
78
 
79
79
  .titaui-task-tree__e-task-node-actions-date {
80
80
  font-size: 12px;
81
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
81
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
82
82
  color: #89919f;
83
83
  line-height: 18px;
84
84
  display: inline-flex;
@@ -153,7 +153,7 @@
153
153
  .titaui-task-tree__e-project-node-title {
154
154
  display: inline-flex;
155
155
  font-size: 14px;
156
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
156
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
157
157
  color: #3f4755;
158
158
  line-height: 22px;
159
159
  overflow: hidden;
@@ -234,7 +234,7 @@
234
234
 
235
235
  .titaui-task-tree__e-project-node-actions-date {
236
236
  font-size: 12px;
237
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
237
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
238
238
  color: #89919f;
239
239
  line-height: 18px;
240
240
  display: inline-flex;
@@ -284,7 +284,7 @@
284
284
 
285
285
  .titaui-task-tree__e-empty-node {
286
286
  font-size: 12px;
287
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
287
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
288
288
  color: #a4acb9;
289
289
  line-height: 18px;
290
290
  padding-left: 12px;
@@ -13,7 +13,7 @@ var _classnames2 = _interopRequireDefault(require("classnames"));
13
13
 
14
14
  require("./index.css");
15
15
 
16
- var _excluded = ["disabled", "onFocus", "onBlur", "inputRef", "onChange", "className", "value", "placeholder", "maxLine", "line", "changeEditStatus", "maxLength", "initValue", "onErrorChange", "validator", "onKeyDown"];
16
+ var _excluded = ["disabled", "onFocus", "onBlur", "inputRef", "onChange", "className", "value", "placeholder", "maxLine", "line", "changeEditStatus", "maxLength", "initValue", "onErrorChange", "validator", "onKeyDown", "disabledEnter"];
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
19
 
@@ -61,6 +61,8 @@ var Textarea = function Textarea(p) {
61
61
  onErrorChange = p.onErrorChange,
62
62
  validator = p.validator,
63
63
  _onKeyDown = p.onKeyDown,
64
+ _p$disabledEnter = p.disabledEnter,
65
+ disabledEnter = _p$disabledEnter === void 0 ? true : _p$disabledEnter,
64
66
  others = _objectWithoutProperties(p, _excluded);
65
67
 
66
68
  var prefixCls = "titaui-pc-textArea";
@@ -247,7 +249,7 @@ var Textarea = function Textarea(p) {
247
249
  _onKeyDown(e);
248
250
  }
249
251
 
250
- if (e.keyCode === 13) {
252
+ if (e.keyCode === 13 && disabledEnter) {
251
253
  e.preventDefault();
252
254
  }
253
255
  },
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .rc-tooltip-inner {
7
- font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
7
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
8
8
  font-size: 12px;
9
9
  line-height: 18px;
10
10
  padding: 6px 12px;
@@ -41,6 +41,8 @@ var _utils = require("../dialog-qq-docs/utils");
41
41
 
42
42
  var _tools = require("../../utils/tools");
43
43
 
44
+ var _window$BSGlobal, _window$BSGlobal$Tena, _window$BSGlobal$Tena2;
45
+
44
46
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
45
47
 
46
48
  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); }
@@ -91,8 +93,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
91
93
 
92
94
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
93
95
 
94
- var openTencentDocFile = window.BSGlobal && window.BSGlobal.TenantAdvancedSetting.TenantFunAdvancedSetting.TencentDocFile && // 默认在钉钉环境下禁用
95
- !(0, _platform.isDD)(true);
96
+ // 默认在钉钉环境下禁用
97
+ var openTencentDocFile = ((_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$Tena = _window$BSGlobal.TenantAdvancedSetting) === null || _window$BSGlobal$Tena === void 0 ? void 0 : (_window$BSGlobal$Tena2 = _window$BSGlobal$Tena.TenantFunAdvancedSetting) === null || _window$BSGlobal$Tena2 === void 0 ? void 0 : _window$BSGlobal$Tena2.TencentDocFile) && !(0, _platform.isDD)(true);
96
98
 
97
99
  var Upload = /*#__PURE__*/function (_PureComponent) {
98
100
  _inherits(Upload, _PureComponent);
@@ -7,10 +7,12 @@ exports.praise = exports.getPriseList = exports.cancelPraise = void 0;
7
7
 
8
8
  var _axios = _interopRequireDefault(require("axios"));
9
9
 
10
+ var _BSGlobal$tenantInfo, _BSGlobal$loginUserIn;
11
+
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
13
 
12
- var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
13
- var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
14
+ var tenantId = BSGlobal && ((_BSGlobal$tenantInfo = BSGlobal.tenantInfo) === null || _BSGlobal$tenantInfo === void 0 ? void 0 : _BSGlobal$tenantInfo.Id) || 0;
15
+ var userId = BSGlobal && ((_BSGlobal$loginUserIn = BSGlobal.loginUserInfo) === null || _BSGlobal$loginUserIn === void 0 ? void 0 : _BSGlobal$loginUserIn.Id) || 0;
14
16
 
15
17
  var requestDomain = function requestDomain() {
16
18
  if (!window.location.hostname.match(/dev/)) return "";
@@ -16,11 +16,13 @@ require("./index.css");
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
17
 
18
18
  function _default() {
19
- var role = window.BSGlobal.loginUserInfo.Role;
19
+ var _window$BSGlobal$logi, _window$BSGlobal$logi2, _window$BSGlobal$logi3;
20
+
21
+ var role = (_window$BSGlobal$logi = window.BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi === void 0 ? void 0 : _window$BSGlobal$logi.Role;
20
22
  var isManager = role == 4 || role == 2;
21
23
  var webPath = window.BSGlobal.webPath;
22
24
  var domain = (0, _openData.isWechat)() ? "work-weixin" : "admin";
23
- var url = "//".concat(domain, ".").concat(webPath, "/").concat(window.BSGlobal.loginUserInfo.Id, "/TmHome#?iTalentFrameType=iframe&iTalentNavId=44281&iTalentFrame=https://").concat(domain, ".").concat(webPath, "/").concat(window.BSGlobal.loginUserInfo.Id, "/indexV2#/groupManage&");
25
+ var url = "//".concat(domain, ".").concat(webPath, "/").concat((_window$BSGlobal$logi2 = window.BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi2 === void 0 ? void 0 : _window$BSGlobal$logi2.Id, "/TmHome#?iTalentFrameType=iframe&iTalentNavId=44281&iTalentFrame=https://").concat(domain, ".").concat(webPath, "/").concat((_window$BSGlobal$logi3 = window.BSGlobal.loginUserInfo) === null || _window$BSGlobal$logi3 === void 0 ? void 0 : _window$BSGlobal$logi3.Id, "/indexV2#/groupManage&");
24
26
 
25
27
  if (isManager) {
26
28
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -11,6 +11,8 @@ var _utils = require("./utils");
11
11
 
12
12
  var _openData = require("../../utils/open-data");
13
13
 
14
+ var _BSGlobal, _BSGlobal$tenantInfo, _BSGlobal2, _BSGlobal2$loginUserI;
15
+
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
17
 
16
18
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -25,8 +27,8 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
25
27
 
26
28
  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; }
27
29
 
28
- var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
29
- var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
30
+ var tenantId = ((_BSGlobal = BSGlobal) === null || _BSGlobal === void 0 ? void 0 : (_BSGlobal$tenantInfo = _BSGlobal.tenantInfo) === null || _BSGlobal$tenantInfo === void 0 ? void 0 : _BSGlobal$tenantInfo.Id) || 0;
31
+ var userId = ((_BSGlobal2 = BSGlobal) === null || _BSGlobal2 === void 0 ? void 0 : (_BSGlobal2$loginUserI = _BSGlobal2.loginUserInfo) === null || _BSGlobal2$loginUserI === void 0 ? void 0 : _BSGlobal2$loginUserI.Id) || 0;
30
32
 
31
33
  var requestDomain = function requestDomain() {
32
34
  var modulePath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
@@ -165,7 +165,7 @@
165
165
  height: 72px;
166
166
  text-align: center;
167
167
  font-size: 13px;
168
- font-family: PingFangSC-Regular, PingFang SC;
168
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
169
169
  font-weight: 400;
170
170
  color: #3F4755;
171
171
  line-height: 24px;
@@ -178,7 +178,7 @@
178
178
  width: 180px;
179
179
  height: 24px;
180
180
  font-size: 13px;
181
- font-family: PingFangSC-Regular, PingFang SC;
181
+ font-family: OPPOSans, Arial, Verdana, Helvetica Neue, Helvetica, PingFang SC, Microsoft YaHei, sans-serif;
182
182
  font-weight: 400;
183
183
  color: #2879FF;
184
184
  line-height: 24px;
@@ -53,6 +53,8 @@ function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("
53
53
 
54
54
  var prefix = "titaui-version-change-modal";
55
55
  var VersionChangeModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
56
+ var _getBSGlobal, _getBSGlobal2;
57
+
56
58
  _objectDestructuringEmpty(_ref);
57
59
 
58
60
  var _useState = (0, _react.useState)(false),
@@ -60,7 +62,7 @@ var VersionChangeModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
60
62
  pending = _useState2[0],
61
63
  setPending = _useState2[1];
62
64
 
63
- var _useState3 = (0, _react.useState)((0, _bsGlobal.getBSGlobal)("tenantAuthentication").MenuVersion && (0, _bsGlobal.getBSGlobal)("tenantAuthentication").MenuVersion !== 0 || _constant.Versions.Flagship),
65
+ var _useState3 = (0, _react.useState)(((_getBSGlobal = (0, _bsGlobal.getBSGlobal)("tenantAuthentication")) === null || _getBSGlobal === void 0 ? void 0 : _getBSGlobal.MenuVersion) && ((_getBSGlobal2 = (0, _bsGlobal.getBSGlobal)("tenantAuthentication")) === null || _getBSGlobal2 === void 0 ? void 0 : _getBSGlobal2.MenuVersion) !== 0 || _constant.Versions.Flagship),
64
66
  _useState4 = _slicedToArray(_useState3, 2),
65
67
  active = _useState4[0],
66
68
  setActive = _useState4[1];
@@ -130,7 +132,9 @@ var VersionChangeModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
130
132
  }();
131
133
 
132
134
  var getBookDemoVersion = function getBookDemoVersion() {
133
- var menuVersion = window.BSGlobal.tenantAuthentication.MenuVersion;
135
+ var _window$BSGlobal$tena;
136
+
137
+ var menuVersion = (_window$BSGlobal$tena = window.BSGlobal.tenantAuthentication) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.MenuVersion;
134
138
 
135
139
  if (menuVersion === _interface.ETrialVersion.OKR) {
136
140
  return _bookDemo["default"].DemoType.TryOKR;
@@ -25,6 +25,8 @@ var _close = _interopRequireDefault(require("./img/close.png"));
25
25
 
26
26
  require("./index.css");
27
27
 
28
+ var _getBSGlobal;
29
+
28
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
31
 
30
32
  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); }
@@ -44,7 +46,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
44
46
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
45
47
 
46
48
  var preCls = "titaui-pc-video-modal";
47
- var userId = (0, _bsGlobal.getBSGlobal)("loginUserInfo").Id;
49
+ var userId = (_getBSGlobal = (0, _bsGlobal.getBSGlobal)("loginUserInfo")) === null || _getBSGlobal === void 0 ? void 0 : _getBSGlobal.Id;
48
50
  var VideoModal = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
49
51
  var videoSrc = props.videoSrc,
50
52
  title = props.title,
@@ -139,23 +139,23 @@ function Card(_ref, ref) {
139
139
  window.WWOpenData && window.WWOpenData.enableCanvasSharing && window.WWOpenData.enableCanvasSharing();
140
140
  }
141
141
 
142
- if (loginUserInfo.UserAvatar.HasAvatar) {
143
- getImageBase64ByUrl(loginUserInfo.Id).then(function (data) {
142
+ if (loginUserInfo !== null && loginUserInfo !== void 0 && loginUserInfo.UserAvatar.HasAvatar) {
143
+ getImageBase64ByUrl(loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.Id).then(function (data) {
144
144
  return (0, _darwAvatar.drawAvatar)({
145
- name: loginUserInfo.Name,
146
- userId: loginUserInfo.Id,
147
- color: loginUserInfo.UserAvatar.Color
145
+ name: loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.Name,
146
+ userId: loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.Id,
147
+ color: loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.UserAvatar.Color
148
148
  }, "data:image/jpeg;base64,".concat(data.obj));
149
149
  }).then(setAvatarSrc);
150
150
  } else {
151
151
  (0, _darwAvatar.drawAvatar)({
152
- name: loginUserInfo.Name,
153
- userId: loginUserInfo.Id,
154
- color: loginUserInfo.UserAvatar.Color
152
+ name: loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.Name,
153
+ userId: loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.Id,
154
+ color: loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.UserAvatar.Color
155
155
  }, "").then(setAvatarSrc);
156
156
  }
157
157
 
158
- (0, _drawName["default"])(loginUserInfo.Name, loginUserInfo.Id).then(setNameSrc);
158
+ (0, _drawName["default"])(loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.Name, loginUserInfo === null || loginUserInfo === void 0 ? void 0 : loginUserInfo.Id).then(setNameSrc);
159
159
  return function () {
160
160
  if ((0, _bsGlobal.isWx)()) {
161
161
  window.WWOpenData && window.WWOpenData.disableCanvasSharing && window.WWOpenData.disableCanvasSharing();
@@ -7,10 +7,12 @@ exports.getWords = void 0;
7
7
 
8
8
  var _axios = _interopRequireDefault(require("axios"));
9
9
 
10
+ var _BSGlobal$tenantInfo, _BSGlobal$loginUserIn;
11
+
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
13
 
12
- var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
13
- var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
14
+ var tenantId = BSGlobal && ((_BSGlobal$tenantInfo = BSGlobal.tenantInfo) === null || _BSGlobal$tenantInfo === void 0 ? void 0 : _BSGlobal$tenantInfo.Id) || 0;
15
+ var userId = BSGlobal && ((_BSGlobal$loginUserIn = BSGlobal.loginUserInfo) === null || _BSGlobal$loginUserIn === void 0 ? void 0 : _BSGlobal$loginUserIn.Id) || 0;
14
16
 
15
17
  var requestDomain = function requestDomain() {
16
18
  if (!window.location.hostname.match(/dev/)) return "";
package/lib/index.js CHANGED
@@ -615,6 +615,12 @@ Object.defineProperty(exports, "Textarea", {
615
615
  return _textarea["default"];
616
616
  }
617
617
  });
618
+ Object.defineProperty(exports, "TimePicker", {
619
+ enumerable: true,
620
+ get: function get() {
621
+ return _timePicker["default"];
622
+ }
623
+ });
618
624
  Object.defineProperty(exports, "TitaChart", {
619
625
  enumerable: true,
620
626
  get: function get() {
@@ -938,6 +944,8 @@ var _tabs = _interopRequireDefault(require("./components/tabs"));
938
944
 
939
945
  var _titaChart = _interopRequireDefault(require("./components/tita-chart"));
940
946
 
947
+ var _timePicker = _interopRequireDefault(require("./components/time-picker"));
948
+
941
949
  var _tooltip = _interopRequireDefault(require("./components/tooltip"));
942
950
 
943
951
  var _textarea = _interopRequireDefault(require("./components/textarea"));