@titaui/pc 1.5.82 → 1.5.83

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 (319) hide show
  1. package/lib/components/avatar/icon-avatar/index.css +15 -0
  2. package/lib/components/avatar/icon-avatar/index.js +50 -0
  3. package/lib/components/avatar/index.js +9 -1
  4. package/lib/components/avatar/num-avatar/index.css +12 -0
  5. package/lib/components/avatar/num-avatar/index.js +34 -0
  6. package/lib/components/button/admin-button/default.js +35 -0
  7. package/lib/components/button/admin-button/drop-down-arrow.js +93 -0
  8. package/lib/components/button/admin-button/index.css +86 -0
  9. package/lib/components/button/admin-button/index.js +40 -0
  10. package/lib/components/button/admin-button/primary.js +33 -0
  11. package/lib/components/button/admin-button/secondary.js +35 -0
  12. package/lib/components/button/default-button/index.css +49 -0
  13. package/lib/components/button/default-button/index.js +51 -0
  14. package/lib/components/button/export-button/index.css +51 -0
  15. package/lib/components/button/export-button/index.js +81 -0
  16. package/lib/components/button/images/daoru.svg +18 -0
  17. package/lib/components/button/index.js +23 -0
  18. package/lib/components/button/interface.js +5 -0
  19. package/lib/components/change-okr/Filter.js +133 -65
  20. package/lib/components/change-okr/Item.js +6 -0
  21. package/lib/components/change-okr/filterTab.js +2 -0
  22. package/lib/components/change-okr/index.js +2 -2
  23. package/lib/components/checkbox/index.js +4 -3
  24. package/lib/components/communication/CommunicationRecord.js +116 -161
  25. package/lib/components/communication/ConvertUserName.js +1 -1
  26. package/lib/components/communication/index.css +63 -0
  27. package/lib/components/communication/index.js +53 -28
  28. package/lib/components/communication/style.js +21 -25
  29. package/lib/components/create-okr/animation/check-animation.js +2746 -0
  30. package/lib/components/create-okr/constant.js +27 -0
  31. package/lib/components/create-okr/createCycle.js +193 -0
  32. package/lib/components/create-okr/createSuccessCmp.js +233 -0
  33. package/lib/components/create-okr/createSuccessCmpWrapper.js +20 -0
  34. package/lib/components/create-okr/fields/date-cycle.js +98 -0
  35. package/lib/components/create-okr/fields/index.css +346 -0
  36. package/lib/components/create-okr/fields/index.js +17 -0
  37. package/lib/components/create-okr/fields/input-with-err-popup.js +57 -0
  38. package/lib/components/create-okr/fields/o-new-name.js +197 -0
  39. package/lib/components/create-okr/fields/okr-case.js +98 -0
  40. package/lib/components/create-okr/fields/okr-classify.js +51 -0
  41. package/lib/components/create-okr/fields/okr-create-suggest.js +147 -0
  42. package/lib/components/create-okr/fields/okr-new-user-selector.js +106 -0
  43. package/lib/components/create-okr/fields/okr-parent.js +157 -0
  44. package/lib/components/create-okr/fields/okr-type-detail.js +196 -0
  45. package/lib/components/create-okr/fields/okr-type.js +131 -0
  46. package/lib/components/create-okr/fields/okr-visibility-detail.js +224 -0
  47. package/lib/components/create-okr/fields/okr-visibility.js +169 -0
  48. package/lib/components/create-okr/img/check-normal.svg +29 -0
  49. package/lib/components/create-okr/img/check-right.svg +16 -0
  50. package/lib/components/create-okr/img/check-wrong.svg +29 -0
  51. package/lib/components/create-okr/img/create-success-head.png +0 -0
  52. package/lib/components/create-okr/img/create-success-left-quotation.svg +14 -0
  53. package/lib/components/create-okr/img/create-success-message.svg +1 -0
  54. package/lib/components/create-okr/img/create-success-right-quotation.svg +14 -0
  55. package/lib/components/create-okr/img/create-success-shadow.svg +23 -0
  56. package/lib/components/create-okr/img/example.svg +11 -0
  57. package/lib/components/create-okr/img/hand.svg +12 -0
  58. package/lib/components/create-okr/img/kr-add.svg +12 -0
  59. package/lib/components/create-okr/img/left-quotation.svg +12 -0
  60. package/lib/components/create-okr/img/light.svg +1 -0
  61. package/lib/components/create-okr/img/pack-up.js +28 -0
  62. package/lib/components/create-okr/img/qr-code.png +0 -0
  63. package/lib/components/create-okr/img/right-quotation.svg +12 -0
  64. package/lib/components/create-okr/img/shower.png +0 -0
  65. package/lib/components/create-okr/img/target.svg +19 -0
  66. package/lib/components/create-okr/img/teach-okr.svg +17 -0
  67. package/lib/components/create-okr/img/wave.png +0 -0
  68. package/lib/components/create-okr/img/weight.svg +12 -0
  69. package/lib/components/create-okr/index.css +446 -0
  70. package/lib/components/create-okr/index.js +911 -0
  71. package/lib/components/create-okr/interface.js +5 -0
  72. package/lib/components/create-okr/kr-items/index.css +180 -0
  73. package/lib/components/create-okr/kr-items/kr-item-weight.js +194 -0
  74. package/lib/components/create-okr/kr-items/krDatas.js +299 -0
  75. package/lib/components/create-okr/kr-items/krItem.js +167 -0
  76. package/lib/components/create-okr/objectType.js +273 -0
  77. package/lib/components/create-okr/request-api.js +220 -0
  78. package/lib/components/create-okr/style.js +100 -0
  79. package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +124 -0
  80. package/lib/components/create-okr/utils/helper.js +99 -0
  81. package/lib/components/create-okr/utils/index.js +23 -0
  82. package/lib/components/dropdown-layer/icon-item.js +5 -3
  83. package/lib/components/dropdown-layer/index.css +16 -0
  84. package/lib/components/dropdown-layer/index.js +21 -14
  85. package/lib/components/dynamic/components/condition-render/index.js +20 -0
  86. package/lib/components/dynamic/components/dangerous-html/index.js +22 -0
  87. package/lib/components/dynamic/components/dynamic-search-input/index.css +78 -0
  88. package/lib/components/dynamic/components/dynamic-search-input/index.js +192 -0
  89. package/lib/components/dynamic/components/obj-status/index.css +22 -0
  90. package/lib/components/dynamic/components/obj-status/index.js +38 -0
  91. package/lib/components/dynamic/components/percent/index.css +21 -0
  92. package/lib/components/dynamic/components/percent/index.js +38 -0
  93. package/lib/components/dynamic/components/title/index.css +35 -0
  94. package/lib/components/dynamic/components/title/index.js +59 -0
  95. package/lib/components/dynamic/constant.js +97 -0
  96. package/lib/components/dynamic/context/index.js +13 -0
  97. package/lib/components/dynamic/dynamic-item/components/header/index.css +101 -0
  98. package/lib/components/dynamic/dynamic-item/components/header/index.js +299 -0
  99. package/lib/components/dynamic/dynamic-item/components/icon/index.css +10 -0
  100. package/lib/components/dynamic/dynamic-item/components/icon/index.js +35 -0
  101. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +22 -0
  102. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +22 -0
  103. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +95 -0
  104. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +173 -0
  105. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +59 -0
  106. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +107 -0
  107. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
  108. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +89 -0
  109. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +96 -0
  110. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +171 -0
  111. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +67 -0
  112. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +110 -0
  113. package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +16 -0
  114. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
  115. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +111 -0
  116. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +158 -0
  117. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
  118. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +215 -0
  119. package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +16 -0
  120. package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
  121. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +91 -0
  122. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +125 -0
  123. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +22 -0
  124. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +95 -0
  125. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +192 -0
  126. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +138 -0
  127. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +183 -0
  128. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +153 -0
  129. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +138 -0
  130. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
  131. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +207 -0
  132. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +59 -0
  133. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +107 -0
  134. package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +50 -0
  135. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
  136. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
  137. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
  138. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
  139. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
  140. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
  141. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
  142. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +111 -0
  143. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +164 -0
  144. package/lib/components/dynamic/dynamic-item/index.css +128 -0
  145. package/lib/components/dynamic/dynamic-item/index.js +352 -0
  146. package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
  147. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
  148. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
  149. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
  150. package/lib/components/dynamic/dynamic-like-ranking/index.css +126 -0
  151. package/lib/components/dynamic/dynamic-like-ranking/index.js +157 -0
  152. package/lib/components/dynamic/dynamic-like-ranking/item.js +107 -0
  153. package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
  154. package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
  155. package/lib/components/dynamic/dynamic-liking/index.css +81 -0
  156. package/lib/components/dynamic/dynamic-liking/index.js +76 -0
  157. package/lib/components/dynamic/dynamic-liking/item.js +91 -0
  158. package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
  159. package/lib/components/dynamic/dynamic-list/index.css +36 -0
  160. package/lib/components/dynamic/dynamic-list/index.js +61 -0
  161. package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +16 -0
  162. package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +30 -0
  163. package/lib/components/dynamic/dynamic-topping/index.css +148 -0
  164. package/lib/components/dynamic/dynamic-topping/index.js +80 -0
  165. package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
  166. package/lib/components/dynamic/dynamic-topping/item.js +140 -0
  167. package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
  168. package/lib/components/dynamic/dynamic.css +204 -0
  169. package/lib/components/dynamic/dynamic.js +391 -0
  170. package/lib/components/dynamic/export-module/index.js +33 -0
  171. package/lib/components/dynamic/img/dynamic-P1.svg +15 -0
  172. package/lib/components/dynamic/img/dynamic-P2.svg +15 -0
  173. package/lib/components/dynamic/img/dynamic-P3.svg +15 -0
  174. package/lib/components/dynamic/img/dynamic-P4.svg +15 -0
  175. package/lib/components/dynamic/img/dynamic-P5.svg +15 -0
  176. package/lib/components/dynamic/img/dynamic-delay.svg +17 -0
  177. package/lib/components/dynamic/img/dynamic-desire.svg +61 -0
  178. package/lib/components/dynamic/img/dynamic-empty.png +0 -0
  179. package/lib/components/dynamic/img/dynamic-end.svg +17 -0
  180. package/lib/components/dynamic/img/dynamic-left-quoto.svg +13 -0
  181. package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
  182. package/lib/components/dynamic/img/dynamic-normal.svg +17 -0
  183. package/lib/components/dynamic/img/dynamic-promise.svg +61 -0
  184. package/lib/components/dynamic/img/dynamic-reword.svg +24 -0
  185. package/lib/components/dynamic/img/dynamic-right-quoto.svg +13 -0
  186. package/lib/components/dynamic/img/dynamic-risk.svg +17 -0
  187. package/lib/components/dynamic/img/dynamic-submit-delay.svg +16 -0
  188. package/lib/components/dynamic/img/dynamic-submit-normal.svg +18 -0
  189. package/lib/components/dynamic/img/dynamic-top.svg +14 -0
  190. package/lib/components/dynamic/index.js +27 -0
  191. package/lib/components/dynamic/interface.js +5 -0
  192. package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
  193. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +37 -0
  194. package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
  195. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +37 -0
  196. package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
  197. package/lib/components/dynamic/quick-operation/components/create-share/index.js +37 -0
  198. package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
  199. package/lib/components/dynamic/quick-operation/components/create-task/index.js +42 -0
  200. package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
  201. package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
  202. package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
  203. package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
  204. package/lib/components/dynamic/quick-operation/index.css +51 -0
  205. package/lib/components/dynamic/quick-operation/index.js +112 -0
  206. package/lib/components/dynamic/request-api.js +92 -0
  207. package/lib/components/dynamic/util.js +140 -0
  208. package/lib/components/emotionsSelector/style.js +1 -1
  209. package/lib/components/file-list/components/single-file/index.css +84 -0
  210. package/lib/components/file-list/components/single-file/index.js +115 -0
  211. package/lib/components/file-list/img/new-file-list-doc.svg +1 -0
  212. package/lib/components/file-list/img/new-file-list-other.svg +1 -0
  213. package/lib/components/file-list/img/new-file-list-pdf.svg +1 -0
  214. package/lib/components/file-list/img/new-file-list-ppt.svg +1 -0
  215. package/lib/components/file-list/img/new-file-list-radio.svg +1 -0
  216. package/lib/components/file-list/img/new-file-list-video.svg +1 -0
  217. package/lib/components/file-list/img/new-file-list-xls.svg +1 -0
  218. package/lib/components/file-list/index.css +5 -0
  219. package/lib/components/file-list/index.js +61 -0
  220. package/lib/components/file-list/interface.js +5 -0
  221. package/lib/components/file-list/util.js +78 -0
  222. package/lib/components/form/form-fields/input/index.css +11 -0
  223. package/lib/components/form/form-fields/input/index.js +3 -1
  224. package/lib/components/grid-page/image/{Assistant.svg → assistant.svg} +0 -0
  225. package/lib/components/grid-page/image/{Boss.svg → boss.svg} +0 -0
  226. package/lib/components/grid-page/image/{Default-background.png → default-background.png} +0 -0
  227. package/lib/components/grid-page/image/{UserManager.svg → userManager.svg} +0 -0
  228. package/lib/components/grid-page/personal-info/index.js +5 -5
  229. package/lib/components/img-viewer/icon/enlarge.js +30 -0
  230. package/lib/components/img-viewer/icon/left-rotate.js +46 -0
  231. package/lib/components/img-viewer/icon/right-rotate.js +44 -0
  232. package/lib/components/img-viewer/icon/shrink.js +37 -0
  233. package/lib/components/img-viewer/image/loading.gif +0 -0
  234. package/lib/components/img-viewer/index.css +155 -0
  235. package/lib/components/img-viewer/index.js +228 -0
  236. package/lib/components/img-viewer/interface.js +5 -0
  237. package/lib/components/img-viewer/util.js +16 -0
  238. package/lib/components/mblog/components/MblogAction.js +10 -6
  239. package/lib/components/mblog/index.js +24 -11
  240. package/lib/components/mblog/style.js +8 -8
  241. package/lib/components/okr-detail/components/header/index.css +4 -0
  242. package/lib/components/okr-detail/components/header/o-cycle.js +2 -2
  243. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +15 -8
  244. package/lib/components/okr-flow/child-node/work-node.js +7 -1
  245. package/lib/components/okr-period-selector/select-cycle.js +139 -151
  246. package/lib/components/okr-progress-detail/index.css +1 -0
  247. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
  248. package/lib/components/okr-review/ReviewPop/index.js +4 -4
  249. package/lib/components/period-selector/common.js +168 -17
  250. package/lib/components/period-selector/components/selector/index.js +103 -38
  251. package/lib/components/period-selector/components/selector/style.js +23 -9
  252. package/lib/components/period-selector/index.js +29 -28
  253. package/lib/components/popup/index.js +3 -1
  254. package/lib/components/publish-dynamic-modal/index.js +13 -0
  255. package/lib/components/publish-dynamic-modal/interface.js +5 -0
  256. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +3 -0
  257. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +191 -0
  258. package/lib/components/publish-dynamic-modal/requist-api.js +48 -0
  259. package/lib/components/radio/index.css +5 -0
  260. package/lib/components/radio/radio.js +12 -4
  261. package/lib/components/search-key-handle/index.js +39 -0
  262. package/lib/components/table/index.css +0 -1
  263. package/lib/components/upload/components/uploadedPreview.js +62 -54
  264. package/lib/components/upload/img/doc.svg +1 -0
  265. package/lib/components/upload/img/other.svg +1 -0
  266. package/lib/components/upload/img/pdf.svg +1 -0
  267. package/lib/components/upload/img/ppt.svg +1 -0
  268. package/lib/components/upload/img/radio.svg +1 -0
  269. package/lib/components/upload/img/video.svg +1 -0
  270. package/lib/components/upload/img/xls.svg +1 -0
  271. package/lib/components/upload/index.css +26 -0
  272. package/lib/components/upload/index.js +89 -57
  273. package/lib/components/upload/style.js +7 -7
  274. package/lib/components/upload/type.js +15 -15
  275. package/lib/components/upload/util.js +102 -0
  276. package/lib/components/upvote/index.js +37 -14
  277. package/lib/components/user-selector/export-modules/field-tree-selector/index.css +4 -0
  278. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +50 -24
  279. package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +11 -2
  280. package/lib/components/user-selector/layout/index.css +1 -1
  281. package/lib/components-v1/buttonv2/ButtonLinked.js +35 -0
  282. package/lib/components-v1/buttonv2/ButtonOutlined.js +64 -0
  283. package/lib/components-v1/buttonv2/ButtonRounded.js +101 -0
  284. package/lib/components-v1/buttonv2/DefaultButton.js +86 -0
  285. package/lib/components-v1/buttonv2/index.js +37 -0
  286. package/lib/components-v1/buttonv2/style/style.js +53 -0
  287. package/lib/components-v1/buttonv2/style/theme.css +3 -0
  288. package/lib/components-v1/confirm/index.js +158 -0
  289. package/lib/index.js +49 -5
  290. package/lib/pages/dynamic/index.css +5 -0
  291. package/lib/pages/dynamic/index.js +25 -0
  292. package/lib/pages/home-page/components/data-list/nav-selector/index.js +18 -0
  293. package/lib/pages/home-page/components/data-list/table/utils-function.js +6 -3
  294. package/lib/pages/like-ranking/column.js +141 -0
  295. package/lib/pages/like-ranking/filter-buttons/department.js +44 -0
  296. package/lib/pages/like-ranking/filter-buttons/group.js +34 -0
  297. package/lib/pages/like-ranking/filter-buttons/index.css +19 -0
  298. package/lib/pages/like-ranking/filter-buttons/index.js +40 -0
  299. package/lib/pages/like-ranking/filter-buttons/modular.js +110 -0
  300. package/lib/pages/like-ranking/filter-buttons/name.js +73 -0
  301. package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +27 -0
  302. package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +38 -0
  303. package/lib/pages/like-ranking/filter-buttons/timer.js +56 -0
  304. package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
  305. package/lib/pages/like-ranking/image/loading.gif +0 -0
  306. package/lib/pages/like-ranking/image/ranking-1.png +0 -0
  307. package/lib/pages/like-ranking/image/ranking-2.png +0 -0
  308. package/lib/pages/like-ranking/image/ranking-3.png +0 -0
  309. package/lib/pages/like-ranking/index.css +185 -0
  310. package/lib/pages/like-ranking/index.js +252 -0
  311. package/lib/pages/like-ranking/mock.js +366 -0
  312. package/lib/pages/like-ranking/request-api.js +15 -0
  313. package/lib/utils/auth.js +46 -5
  314. package/lib/utils/bs-global.js +26 -2
  315. package/lib/utils/format-time.js +161 -0
  316. package/lib/utils/helpers.js +41 -0
  317. package/lib/utils/roundWeight.js +105 -0
  318. package/lib/utils/tools.js +140 -20
  319. package/package.json +2 -2
@@ -0,0 +1,366 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.userPariseinfos = exports.data = void 0;
7
+ var data = [{
8
+ "user": {
9
+ big: null,
10
+ color: "#b9cc4f",
11
+ hasAvatar: false,
12
+ large: null,
13
+ medium: null,
14
+ normal: null,
15
+ original: null,
16
+ small: null
17
+ },
18
+ "ranking": 1,
19
+ "name": '杨亮',
20
+ "departmentId": 0,
21
+ "departmentName": "默认部门",
22
+ "userId": 560000215,
23
+ "primaryDepartment": "默认部门",
24
+ "primaryDepartmentId": 0,
25
+ "likeNums": 1400
26
+ }, {
27
+ "user": {
28
+ big: null,
29
+ color: "#b9cc4f",
30
+ hasAvatar: false,
31
+ large: null,
32
+ medium: null,
33
+ normal: null,
34
+ original: null,
35
+ small: null
36
+ },
37
+ "ranking": 2,
38
+ "name": '杨亮',
39
+ "departmentId": 0,
40
+ "departmentName": "默认部门",
41
+ "userId": 560000215,
42
+ "primaryDepartment": "默认部门",
43
+ "primaryDepartmentId": 0,
44
+ "likeNums": 140
45
+ }, {
46
+ "user": {
47
+ big: null,
48
+ color: "#b9cc4f",
49
+ hasAvatar: false,
50
+ large: null,
51
+ medium: null,
52
+ normal: null,
53
+ original: null,
54
+ small: null
55
+ },
56
+ "ranking": 3,
57
+ "name": '杨亮',
58
+ "departmentId": 0,
59
+ "departmentName": "默认部门",
60
+ "userId": 560000215,
61
+ "primaryDepartment": "默认部门",
62
+ "primaryDepartmentId": 0,
63
+ "likeNums": 14000
64
+ }, {
65
+ "user": {
66
+ big: null,
67
+ color: "#b9cc4f",
68
+ hasAvatar: false,
69
+ large: null,
70
+ medium: null,
71
+ normal: null,
72
+ original: null,
73
+ small: null
74
+ },
75
+ "ranking": 4,
76
+ "name": '杨亮',
77
+ "departmentId": 0,
78
+ "departmentName": "默认部门",
79
+ "userId": 560000215,
80
+ "primaryDepartment": "默认部门",
81
+ "primaryDepartmentId": 0,
82
+ "likeNums": 14000000
83
+ }];
84
+ exports.data = data;
85
+ var userPariseinfos = [{
86
+ "user": {
87
+ "userId": 560000209,
88
+ "userType": 0,
89
+ "name": "张昊",
90
+ "email": "zhanghao@ceshi.com",
91
+ "managerId": 0,
92
+ "jobState": 1,
93
+ "departmentId": 1641,
94
+ "departmentName": "请问",
95
+ "postition": null,
96
+ "subType": 0,
97
+ "hasSubordinates": false,
98
+ "avatar": {
99
+ "original": null,
100
+ "small": null,
101
+ "medium": null,
102
+ "big": null,
103
+ "normal": null,
104
+ "large": null,
105
+ "hasAvatar": false,
106
+ "color": "#f5b168"
107
+ },
108
+ "staffCode": "111"
109
+ },
110
+ "ranking": 1,
111
+ "oneLevelDepName": "请问",
112
+ "pariseNums": 1
113
+ }, {
114
+ "user": {
115
+ "userId": 510000002,
116
+ "userType": 0,
117
+ "name": "yangliang",
118
+ "email": "b496a604-8645-45be-a1e0-bc3a0f0a88c3_210813_192219@virtual.account",
119
+ "managerId": 0,
120
+ "jobState": 1,
121
+ "departmentId": 0,
122
+ "departmentName": "默认部门",
123
+ "postition": "地方时有人天天味儿",
124
+ "subType": 0,
125
+ "hasSubordinates": false,
126
+ "avatar": {
127
+ "original": null,
128
+ "small": null,
129
+ "medium": null,
130
+ "big": null,
131
+ "normal": null,
132
+ "large": null,
133
+ "hasAvatar": false,
134
+ "color": "#7eb6e0"
135
+ },
136
+ "staffCode": null
137
+ },
138
+ "ranking": 2,
139
+ "oneLevelDepName": "默认部门",
140
+ "pariseNums": 0
141
+ }, {
142
+ "user": {
143
+ "userId": 510000003,
144
+ "userType": 0,
145
+ "name": "杨亮",
146
+ "email": "935d5dc8-941e-4864-86c7-3e51769ae4ef_210813_192356@virtual.account",
147
+ "managerId": 0,
148
+ "jobState": 1,
149
+ "departmentId": 0,
150
+ "departmentName": "默认部门",
151
+ "postition": "是大V服务认为",
152
+ "subType": 0,
153
+ "hasSubordinates": false,
154
+ "avatar": {
155
+ "original": null,
156
+ "small": null,
157
+ "medium": null,
158
+ "big": null,
159
+ "normal": null,
160
+ "large": null,
161
+ "hasAvatar": false,
162
+ "color": "#a1a5ee"
163
+ },
164
+ "staffCode": null
165
+ },
166
+ "ranking": 3,
167
+ "oneLevelDepName": "默认部门",
168
+ "pariseNums": 0
169
+ }, {
170
+ "user": {
171
+ "userId": 560000210,
172
+ "userType": 0,
173
+ "name": "张昊下属",
174
+ "email": "zhanghao@ceshi1.com",
175
+ "managerId": 560000209,
176
+ "jobState": 1,
177
+ "departmentId": 1642,
178
+ "departmentName": "不错吧",
179
+ "postition": null,
180
+ "subType": 0,
181
+ "hasSubordinates": false,
182
+ "avatar": {
183
+ "original": null,
184
+ "small": null,
185
+ "medium": null,
186
+ "big": null,
187
+ "normal": null,
188
+ "large": null,
189
+ "hasAvatar": false,
190
+ "color": "#f0c75a"
191
+ },
192
+ "staffCode": "9898976"
193
+ },
194
+ "ranking": 4,
195
+ "oneLevelDepName": "sfsdfsdf",
196
+ "pariseNums": 0
197
+ }, {
198
+ "user": {
199
+ "userId": 560000211,
200
+ "userType": 0,
201
+ "name": "sad发",
202
+ "email": "fcfb078f-3159-4d13-8da2-46ee4e60ccf1@titavirtual.tt",
203
+ "managerId": 0,
204
+ "jobState": 1,
205
+ "departmentId": 0,
206
+ "departmentName": "默认部门",
207
+ "postition": "海棠依旧苦于他",
208
+ "subType": 0,
209
+ "hasSubordinates": false,
210
+ "avatar": {
211
+ "original": null,
212
+ "small": null,
213
+ "medium": null,
214
+ "big": null,
215
+ "normal": null,
216
+ "large": null,
217
+ "hasAvatar": false,
218
+ "color": "#8dc8ea"
219
+ },
220
+ "staffCode": "333"
221
+ },
222
+ "ranking": 5,
223
+ "oneLevelDepName": "默认部门",
224
+ "pariseNums": 0
225
+ }, {
226
+ "user": {
227
+ "userId": 560000212,
228
+ "userType": 0,
229
+ "name": "QW",
230
+ "email": "65ddbb05-87e9-4413-9297-9c579bac6540@titavirtual.tt",
231
+ "managerId": 0,
232
+ "jobState": 1,
233
+ "departmentId": 1640,
234
+ "departmentName": "阿松大123",
235
+ "postition": null,
236
+ "subType": 0,
237
+ "hasSubordinates": false,
238
+ "avatar": {
239
+ "original": null,
240
+ "small": null,
241
+ "medium": null,
242
+ "big": null,
243
+ "normal": null,
244
+ "large": null,
245
+ "hasAvatar": false,
246
+ "color": "#7eb6e0"
247
+ },
248
+ "staffCode": "444"
249
+ },
250
+ "ranking": 6,
251
+ "oneLevelDepName": "访问v",
252
+ "pariseNums": 0
253
+ }, {
254
+ "user": {
255
+ "userId": 560000213,
256
+ "userType": 0,
257
+ "name": "测试1",
258
+ "email": "736059fd-9bb3-430d-84f4-d3f267e0f2ac@titavirtual.tt",
259
+ "managerId": 0,
260
+ "jobState": 1,
261
+ "departmentId": 0,
262
+ "departmentName": "默认部门",
263
+ "postition": null,
264
+ "subType": 0,
265
+ "hasSubordinates": false,
266
+ "avatar": {
267
+ "original": null,
268
+ "small": null,
269
+ "medium": null,
270
+ "big": null,
271
+ "normal": null,
272
+ "large": null,
273
+ "hasAvatar": false,
274
+ "color": "#a1a5ee"
275
+ },
276
+ "staffCode": "555"
277
+ },
278
+ "ranking": 7,
279
+ "oneLevelDepName": "默认部门",
280
+ "pariseNums": 0
281
+ }, {
282
+ "user": {
283
+ "userId": 560000214,
284
+ "userType": 0,
285
+ "name": "测试2",
286
+ "email": "534a2922-2e59-4998-a055-00a35a6a1a23@titavirtual.tt",
287
+ "managerId": 0,
288
+ "jobState": 1,
289
+ "departmentId": 1637,
290
+ "departmentName": "不错吧1111111111111",
291
+ "postition": null,
292
+ "subType": 0,
293
+ "hasSubordinates": false,
294
+ "avatar": {
295
+ "original": null,
296
+ "small": null,
297
+ "medium": null,
298
+ "big": null,
299
+ "normal": null,
300
+ "large": null,
301
+ "hasAvatar": false,
302
+ "color": "#c4a1ee"
303
+ },
304
+ "staffCode": "666"
305
+ },
306
+ "ranking": 8,
307
+ "oneLevelDepName": "sfsdfsdf",
308
+ "pariseNums": 0
309
+ }, {
310
+ "user": {
311
+ "userId": 560000215,
312
+ "userType": 0,
313
+ "name": "导入人",
314
+ "email": "b6057d12-4074-4b50-b799-880e94c34962@titavirtual.tt",
315
+ "managerId": 560000209,
316
+ "jobState": 1,
317
+ "departmentId": 0,
318
+ "departmentName": "默认部门",
319
+ "postition": null,
320
+ "subType": 0,
321
+ "hasSubordinates": false,
322
+ "avatar": {
323
+ "original": null,
324
+ "small": null,
325
+ "medium": null,
326
+ "big": null,
327
+ "normal": null,
328
+ "large": null,
329
+ "hasAvatar": false,
330
+ "color": "#b9cc4f"
331
+ },
332
+ "staffCode": "777"
333
+ },
334
+ "ranking": 9,
335
+ "oneLevelDepName": "默认部门",
336
+ "pariseNums": 0
337
+ }, {
338
+ "user": {
339
+ "userId": 560000217,
340
+ "userType": 0,
341
+ "name": "新家群",
342
+ "email": "29e1e1c5-41e8-4250-9f50-aa7fda56d8e4@titavirtual.tt",
343
+ "managerId": 0,
344
+ "jobState": 1,
345
+ "departmentId": 0,
346
+ "departmentName": "默认部门",
347
+ "postition": null,
348
+ "subType": 0,
349
+ "hasSubordinates": false,
350
+ "avatar": {
351
+ "original": null,
352
+ "small": null,
353
+ "medium": null,
354
+ "big": null,
355
+ "normal": null,
356
+ "large": null,
357
+ "hasAvatar": false,
358
+ "color": "#f79c6f"
359
+ },
360
+ "staffCode": "888"
361
+ },
362
+ "ranking": 10,
363
+ "oneLevelDepName": "默认部门",
364
+ "pariseNums": 0
365
+ }];
366
+ exports.userPariseinfos = userPariseinfos;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getRanking = void 0;
7
+
8
+ var _request = require("../../utils/request");
9
+
10
+ // /api/v1/{tenant_id}/{user_id}/praise/getRanking
11
+ var getRanking = function getRanking(data) {
12
+ return (0, _request.rpost)("v1")("praise/getRanking", data);
13
+ };
14
+
15
+ exports.getRanking = getRanking;
package/lib/utils/auth.js CHANGED
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.hasSuperior = exports.EAuth = exports.KRAuth = exports.OAuth = exports.BaseAuth = void 0;
8
+ exports.DynamicManagerAuth = exports.hasSuperior = exports.EAuth = exports.KRAuth = exports.OAuth = exports.BaseAuth = void 0;
9
9
 
10
10
  var _bsGlobal = require("./bs-global");
11
11
 
@@ -192,12 +192,53 @@ var EAuth = /*#__PURE__*/function (_BaseAuth3) {
192
192
  }]);
193
193
 
194
194
  return EAuth;
195
- }(BaseAuth);
195
+ }(BaseAuth); // 是否有上级
196
+
196
197
 
197
198
  exports.EAuth = EAuth;
198
199
 
199
200
  var hasSuperior = function hasSuperior() {
200
- return !!(0, _bsGlobal.getBSGlobal)('loginUserInfo').ManagerId;
201
- };
201
+ return !!(0, _bsGlobal.getBSGlobal)("loginUserInfo").ManagerId;
202
+ }; // 动态和项目文件管理权限
203
+
204
+
205
+ exports.hasSuperior = hasSuperior;
206
+
207
+ var DynamicManagerAuth = /*#__PURE__*/function (_BaseAuth4) {
208
+ _inherits(DynamicManagerAuth, _BaseAuth4);
209
+
210
+ var _super4 = _createSuper(DynamicManagerAuth);
211
+
212
+ function DynamicManagerAuth(props) {
213
+ var _this4;
214
+
215
+ _classCallCheck(this, DynamicManagerAuth);
216
+
217
+ _this4 = _super4.call(this, props);
218
+ _this4.isDynamicManager = (0, _bsGlobal.getBSGlobal)("loginUserInfo").IsFeedAndFileManager;
219
+ _this4.isLeader = (0, _bsGlobal.getBSGlobal)("loginUserInfo").IsLeader;
220
+ return _this4;
221
+ }
222
+
223
+ _createClass(DynamicManagerAuth, [{
224
+ key: "hasAuth",
225
+ value: function hasAuth() {
226
+ return this.isBoss() || this.isManager() || this.isDynamicManager;
227
+ } // 部门负责人、超管、助理、老板及动态管理员:有进入详情页的入口
228
+
229
+ }, {
230
+ key: "hasPraiseAuth",
231
+ value: function hasPraiseAuth() {
232
+ return this.isBoss() || this.isManager() || this.isDynamicManager || this.isLeader;
233
+ }
234
+ }, {
235
+ key: "isOnlyLeader",
236
+ value: function isOnlyLeader() {
237
+ return !this.isBoss() && !this.isManager() && !this.isDynamicManager && this.isLeader;
238
+ }
239
+ }]);
240
+
241
+ return DynamicManagerAuth;
242
+ }(BaseAuth);
202
243
 
203
- exports.hasSuperior = hasSuperior;
244
+ exports.DynamicManagerAuth = DynamicManagerAuth;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.isWx = isWx;
7
- exports.getAppHead = exports.getUploadMaxSize = exports.getOkrAdvancedSetting = exports.getBSGlobal = exports.getTenantInfo = exports.getUserInfo = void 0;
7
+ exports.hasWebHead = exports.formatNum = exports.getAppHead = exports.getUploadMaxSize = exports.getOkrAdvancedSetting = exports.getBSGlobal = exports.getTenantInfo = exports.getUserInfo = void 0;
8
8
 
9
9
  var _mockBsglobal = require("./mock-bsglobal");
10
10
 
@@ -64,6 +64,30 @@ var getAppHead = function getAppHead(appId) {
64
64
  return item.AppId == appId;
65
65
  });
66
66
  return appItem;
67
+ }; // number初始化成k、w
68
+
69
+
70
+ exports.getAppHead = getAppHead;
71
+
72
+ var formatNum = function formatNum(num) {
73
+ return num >= 1e3 && num < 1e4 ? (num / 1e3).toFixed(1) + 'k' : num >= 1e4 ? (num / 1e4).toFixed(1) + 'w' : num;
74
+ }; // 看是否有okr 任务 项目等等等东西
75
+
76
+
77
+ exports.formatNum = formatNum;
78
+
79
+ var hasWebHead = function hasWebHead(webHeadName) {
80
+ var webHeadMap = {
81
+ 'task': 1,
82
+ 'okr': 113,
83
+ 'project': 112,
84
+ 'apply': 907,
85
+ 'kaohe': 403
86
+ };
87
+ var webHead = window.BSGlobal.WebHead.AppHead;
88
+ return webHead.findIndex(function (v) {
89
+ return v.AppId == webHeadMap[webHeadName];
90
+ }) != -1;
67
91
  };
68
92
 
69
- exports.getAppHead = getAppHead;
93
+ exports.hasWebHead = hasWebHead;
@@ -0,0 +1,161 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.showNextMonthFirstDay = exports.showMonthLastDay = exports.showMonthFirstDay = exports.showNextWeekFirstDay = exports.showWeekLastDay = exports.showWeekFirstDay = exports.getNextDayOfYear = exports.getFirstDayOfYear = exports.timeFormat = exports.getTimeString = void 0;
7
+
8
+ var getTimeString = function getTimeString(time, nowTime) {
9
+ if (!time) {
10
+ return "暂未更新";
11
+ }
12
+
13
+ var timeDateObj = new Date(time);
14
+ var timeMilliSecond = timeDateObj.getTime();
15
+ var timeYear = timeDateObj.getFullYear();
16
+ var timeMonth = timeDateObj.getMonth() + 1;
17
+ var timeDate = timeDateObj.getDate();
18
+ var timeHours = timeDateObj.getHours();
19
+ var timeMinutes = timeDateObj.getMinutes();
20
+ var nowMilliSecond = nowTime.getTime();
21
+ var nowYear = nowTime.getFullYear();
22
+ var nowDate = nowTime.getDate();
23
+ var secondDiff = Math.floor((nowMilliSecond - timeMilliSecond) / 1000);
24
+
25
+ if (secondDiff <= 3) {
26
+ return "刚刚";
27
+ }
28
+
29
+ if (secondDiff < 60) {
30
+ return "".concat(secondDiff, "\u79D2\u524D");
31
+ }
32
+
33
+ if (secondDiff < 60 * 60) {
34
+ return "".concat(Math.floor(secondDiff / 60), "\u5206\u949F\u524D");
35
+ }
36
+
37
+ if (secondDiff < 60 * 60 * 24) {
38
+ return "".concat(Math.floor(secondDiff / (60 * 60)), "\u5C0F\u65F6\u524D");
39
+ }
40
+
41
+ if (secondDiff < 60 * 60 * 24 * 2 && nowDate - 1 === timeDate) {
42
+ return "\u6628\u5929 ".concat(timeHours + ":" + timeMinutes);
43
+ }
44
+
45
+ if (secondDiff < 60 * 60 * 24 * 3 && nowDate - 2 === timeDate) {
46
+ return "\u524D\u5929 ".concat(timeHours + ":" + timeMinutes);
47
+ }
48
+
49
+ if (timeYear === nowYear) {
50
+ return "".concat(timeMonth, "\u6708").concat(timeDate, "\u65E5 ").concat(timeHours < 10 ? "0" + timeHours : timeHours, ":").concat(timeMinutes < 10 ? "0" + timeMinutes : timeMinutes);
51
+ }
52
+
53
+ return "".concat(timeYear, "\u5E74").concat(timeMonth, "\u6708").concat(timeDate, "\u65E5 ").concat(timeHours < 10 ? "0" + timeHours : timeHours, ":").concat(timeMinutes < 10 ? "0" + timeMinutes : timeMinutes);
54
+ }; // 日期格式化,返回值形式为yy-mm-dd
55
+
56
+
57
+ exports.getTimeString = getTimeString;
58
+
59
+ var timeFormat = function timeFormat(NowDate) {
60
+ var date = new Date(NowDate);
61
+ var y = date.getFullYear(); //年
62
+
63
+ var m = date.getMonth() + 1; //月
64
+
65
+ var d = date.getDate(); //日
66
+
67
+ return y + "-" + m + "-" + d;
68
+ }; // 获取当年第一天
69
+
70
+
71
+ exports.timeFormat = timeFormat;
72
+
73
+ var getFirstDayOfYear = function getFirstDayOfYear() {
74
+ var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
75
+ date.setDate(1);
76
+ date.setMonth(0);
77
+ return timeFormat(date);
78
+ }; // 获取明年第一天
79
+
80
+
81
+ exports.getFirstDayOfYear = getFirstDayOfYear;
82
+
83
+ var getNextDayOfYear = function getNextDayOfYear() {
84
+ var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
85
+ date.setFullYear(date.getFullYear() + 1);
86
+ return getFirstDayOfYear(date);
87
+ }; // 本周第一天
88
+
89
+
90
+ exports.getNextDayOfYear = getNextDayOfYear;
91
+
92
+ var showWeekFirstDay = function showWeekFirstDay() {
93
+ var Nowdate = new Date();
94
+ var weekDay = Nowdate.getDay() || 7; // @ts-ignore
95
+
96
+ var WeekFirstDay = new Date(Nowdate - (weekDay - 1) * 86400000);
97
+ var M = Number(WeekFirstDay.getMonth()) + 1;
98
+ return WeekFirstDay.getFullYear() + "-" + M + "-" + WeekFirstDay.getDate();
99
+ }; // 本周最后一天
100
+
101
+
102
+ exports.showWeekFirstDay = showWeekFirstDay;
103
+
104
+ var showWeekLastDay = function showWeekLastDay() {
105
+ var Nowdate = new Date();
106
+ var weekDay = Nowdate.getDay() || 7; // @ts-ignore
107
+
108
+ var WeekFirstDay = new Date(Nowdate - (weekDay - 1) * 86400000); // @ts-ignore
109
+
110
+ var WeekLastDay = new Date((WeekFirstDay / 1000 + 6 * 86400) * 1000);
111
+ var M = Number(WeekLastDay.getMonth()) + 1;
112
+ return WeekLastDay.getFullYear() + "-" + M + "-" + WeekLastDay.getDate();
113
+ }; // 下周第一天
114
+
115
+
116
+ exports.showWeekLastDay = showWeekLastDay;
117
+
118
+ var showNextWeekFirstDay = function showNextWeekFirstDay() {
119
+ var Nowdate = new Date();
120
+ var weekDay = Nowdate.getDay() || 7; // @ts-ignore
121
+
122
+ var WeekFirstDay = new Date(Nowdate - (weekDay - 1) * 86400000); // @ts-ignore
123
+
124
+ var WeekLastDay = new Date((WeekFirstDay / 1000 + 7 * 86400) * 1000);
125
+ var M = Number(WeekLastDay.getMonth()) + 1;
126
+ return WeekLastDay.getFullYear() + "-" + M + "-" + WeekLastDay.getDate();
127
+ }; // 本月第一天
128
+
129
+
130
+ exports.showNextWeekFirstDay = showNextWeekFirstDay;
131
+
132
+ var showMonthFirstDay = function showMonthFirstDay() {
133
+ var Nowdate = new Date();
134
+ var MonthFirstDay = new Date(Nowdate.getFullYear(), Nowdate.getMonth(), 1);
135
+ var M = Number(MonthFirstDay.getMonth()) + 1;
136
+ return MonthFirstDay.getFullYear() + "-" + M + "-" + MonthFirstDay.getDate();
137
+ }; // 本月最后一天
138
+
139
+
140
+ exports.showMonthFirstDay = showMonthFirstDay;
141
+
142
+ var showMonthLastDay = function showMonthLastDay() {
143
+ var Nowdate = new Date();
144
+ var MonthNextFirstDay = new Date(Nowdate.getFullYear(), Nowdate.getMonth() + 1, 1); // @ts-ignore
145
+
146
+ var MonthLastDay = new Date(MonthNextFirstDay - 86400000);
147
+ var M = Number(MonthLastDay.getMonth()) + 1;
148
+ return MonthLastDay.getFullYear() + "-" + M + "-" + MonthLastDay.getDate();
149
+ }; // 下个月第一天
150
+
151
+
152
+ exports.showMonthLastDay = showMonthLastDay;
153
+
154
+ var showNextMonthFirstDay = function showNextMonthFirstDay() {
155
+ var Nowdate = new Date();
156
+ var MonthFirstDay = new Date(Nowdate.getFullYear(), Nowdate.getMonth() + 1, 1);
157
+ var M = Number(MonthFirstDay.getMonth()) + 1;
158
+ return MonthFirstDay.getFullYear() + "-" + M + "-" + MonthFirstDay.getDate();
159
+ };
160
+
161
+ exports.showNextMonthFirstDay = showNextMonthFirstDay;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.cssSupport = cssSupport;
7
+ exports.getUploadMaxSize = getUploadMaxSize;
8
+ exports.getTenantInfo = getTenantInfo;
9
+ exports.isDingDing = void 0;
10
+
11
+ var _bsGlobal = require("./bs-global");
12
+
13
+ function cssSupport(attr, value) {
14
+ var element = document.createElement('div');
15
+
16
+ if (attr in element.style) {
17
+ element.style[attr] = value;
18
+ return element.style[attr] === value;
19
+ } else {
20
+ return false;
21
+ }
22
+ }
23
+
24
+ function getUploadMaxSize() {
25
+ var info = (0, _bsGlobal.getBSGlobal)('tenantInfo');
26
+ var isDingDing = info.Source == 861;
27
+ var isDingZhi = window['dingZhiSize'] && window['dingZhiSize'].indexOf(info.Id) != -1;
28
+ if (isDingDing) return 20;
29
+ if (isDingZhi) return 100;
30
+ return 50;
31
+ }
32
+
33
+ function getTenantInfo() {
34
+ return (0, _bsGlobal.getBSGlobal)('tenantInfo');
35
+ }
36
+
37
+ var isDingDing = function isDingDing() {
38
+ return getTenantInfo().Source == 861;
39
+ };
40
+
41
+ exports.isDingDing = isDingDing;