eoss 0.1.0-alpha.34 → 0.1.0-alpha.35

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 (208) hide show
  1. package/lib/0.js +1 -1
  2. package/lib/1.js +1 -1
  3. package/lib/10.js +1 -1
  4. package/lib/11.js +1 -1
  5. package/lib/12.js +1 -1
  6. package/lib/13.js +1 -1
  7. package/lib/14.js +1 -1
  8. package/lib/15.js +1 -1
  9. package/lib/16.js +1 -1
  10. package/lib/17.js +1 -1
  11. package/lib/18.js +1 -1
  12. package/lib/19.js +1 -1
  13. package/lib/20.js +1 -1
  14. package/lib/21.js +1 -1
  15. package/lib/22.js +1 -1
  16. package/lib/23.js +1 -1
  17. package/lib/24.js +1 -1
  18. package/lib/25.js +1 -1
  19. package/lib/26.js +1 -1
  20. package/lib/27.js +1 -1
  21. package/lib/28.js +1 -1
  22. package/lib/29.js +1 -1
  23. package/lib/3.js +1 -1
  24. package/lib/30.js +1 -1
  25. package/lib/31.js +1 -1
  26. package/lib/32.js +1 -1
  27. package/lib/33.js +1 -1
  28. package/lib/34.js +1 -1
  29. package/lib/35.js +1 -1
  30. package/lib/36.js +1 -1
  31. package/lib/37.js +1 -1
  32. package/lib/38.js +1 -1
  33. package/lib/39.js +1 -1
  34. package/lib/4.js +1 -1
  35. package/lib/40.js +1 -1
  36. package/lib/41.js +1 -1
  37. package/lib/42.js +1 -1
  38. package/lib/43.js +1 -1
  39. package/lib/44.js +1 -1
  40. package/lib/45.js +1 -1
  41. package/lib/46.js +1 -1
  42. package/lib/47.js +1 -1
  43. package/lib/48.js +1 -1
  44. package/lib/49.js +1 -1
  45. package/lib/5.js +1 -1
  46. package/lib/50.js +1 -1
  47. package/lib/51.js +1 -1
  48. package/lib/52.js +1 -1
  49. package/lib/53.js +1 -1
  50. package/lib/54.js +1 -1
  51. package/lib/55.js +1 -1
  52. package/lib/56.js +1 -1
  53. package/lib/57.js +1 -1
  54. package/lib/58.js +1 -1
  55. package/lib/59.js +1 -1
  56. package/lib/6.js +1 -1
  57. package/lib/60.js +1 -1
  58. package/lib/61.js +1 -1
  59. package/lib/62.js +1 -1
  60. package/lib/63.js +1 -1
  61. package/lib/64.js +1 -1
  62. package/lib/65.js +1 -1
  63. package/lib/66.js +1 -1
  64. package/lib/67.js +1 -1
  65. package/lib/68.js +1 -1
  66. package/lib/69.js +1 -1
  67. package/lib/7.js +1 -1
  68. package/lib/70.js +1 -1
  69. package/lib/71.js +1 -1
  70. package/lib/72.js +1 -1
  71. package/lib/73.js +1 -1
  72. package/lib/74.js +1 -1
  73. package/lib/75.js +1 -1
  74. package/lib/76.js +1 -1
  75. package/lib/77.js +1 -1
  76. package/lib/78.js +1 -1
  77. package/lib/79.js +1 -1
  78. package/lib/8.js +1 -1
  79. package/lib/80.js +1 -1
  80. package/lib/81.js +1 -1
  81. package/lib/9.js +1 -1
  82. package/lib/account-login.js +985 -1010
  83. package/lib/alert.js +2 -2
  84. package/lib/aside.js +2 -2
  85. package/lib/audit-trajectory.js +145 -145
  86. package/lib/autocomplete.js +1778 -2002
  87. package/lib/avatar.js +2 -2
  88. package/lib/backtop.js +2 -2
  89. package/lib/badge.js +2 -2
  90. package/lib/breadcrumb-item.js +4 -4
  91. package/lib/breadcrumb.js +4 -4
  92. package/lib/button-group.js +2 -2
  93. package/lib/button.js +2 -2
  94. package/lib/ca-login.js +837 -862
  95. package/lib/calendar.js +837 -862
  96. package/lib/card.js +2 -2
  97. package/lib/carousel-item.js +839 -864
  98. package/lib/carousel.js +839 -864
  99. package/lib/cascader-panel.js +839 -864
  100. package/lib/cascader.js +1780 -2004
  101. package/lib/checkbox-button.js +2 -2
  102. package/lib/checkbox-group.js +987 -1012
  103. package/lib/checkbox.js +2 -2
  104. package/lib/col.js +2 -2
  105. package/lib/collapse-item.js +839 -864
  106. package/lib/collapse.js +839 -864
  107. package/lib/color-picker.js +942 -1141
  108. package/lib/container.js +2 -2
  109. package/lib/cron.js +2 -2
  110. package/lib/data-table.js +987 -1012
  111. package/lib/date-picker.js +1785 -2009
  112. package/lib/dialog.js +837 -862
  113. package/lib/divider.js +2 -2
  114. package/lib/drawer.js +2 -2
  115. package/lib/dropdown-item.js +4 -4
  116. package/lib/dropdown-menu.js +942 -1141
  117. package/lib/dropdown.js +837 -862
  118. package/lib/email-login.js +986 -1011
  119. package/lib/empty.js +2 -2
  120. package/lib/eoss.common.js +2935 -2523
  121. package/lib/flip.js +2 -2
  122. package/lib/flow-group.js +841 -866
  123. package/lib/flow.js +1073 -1098
  124. package/lib/flows.js +993 -1018
  125. package/lib/footer.js +2 -2
  126. package/lib/form-item.js +2275 -2300
  127. package/lib/form.js +1034 -1046
  128. package/lib/guide.js +2 -2
  129. package/lib/header.js +2 -2
  130. package/lib/icon.js +981 -1006
  131. package/lib/icons.js +2 -2
  132. package/lib/image-viewer.js +837 -862
  133. package/lib/image.js +4 -4
  134. package/lib/index.js +1 -1
  135. package/lib/infinite-scroll.js +2 -2
  136. package/lib/input-number.js +4 -4
  137. package/lib/input.js +837 -862
  138. package/lib/link.js +2 -2
  139. package/lib/loading.js +2 -2
  140. package/lib/login.js +1737 -1059
  141. package/lib/lowcode-view.js +991 -1016
  142. package/lib/lowcode.js +1088 -1113
  143. package/lib/main.js +1066 -1091
  144. package/lib/marquee.js +837 -862
  145. package/lib/menu-item-group.js +2 -2
  146. package/lib/menu-item.js +2 -2
  147. package/lib/menu.js +1779 -2003
  148. package/lib/message-box.js +837 -862
  149. package/lib/message.js +837 -862
  150. package/lib/notification.js +859 -884
  151. package/lib/option-group.js +4 -4
  152. package/lib/option.js +839 -864
  153. package/lib/page-header.js +2 -2
  154. package/lib/pagination.js +837 -862
  155. package/lib/phone-login.js +986 -1011
  156. package/lib/popconfirm.js +4 -4
  157. package/lib/popover.js +1779 -2003
  158. package/lib/process-config.js +995 -1020
  159. package/lib/process-module.js +1056 -1081
  160. package/lib/process-rule.js +999 -1024
  161. package/lib/progress.js +2 -2
  162. package/lib/qr-code.js +4 -4
  163. package/lib/qrcode-login.js +987 -1012
  164. package/lib/radio-button.js +2 -2
  165. package/lib/radio-group.js +987 -1012
  166. package/lib/radio.js +2 -2
  167. package/lib/rate.js +837 -862
  168. package/lib/row.js +2 -2
  169. package/lib/scrollbar.js +837 -862
  170. package/lib/select.js +1938 -2162
  171. package/lib/selector-panel.js +1014 -1039
  172. package/lib/selector.js +991 -1016
  173. package/lib/slider.js +2 -2
  174. package/lib/step.js +4 -4
  175. package/lib/steps.js +839 -864
  176. package/lib/submenu.js +944 -1143
  177. package/lib/switch.js +837 -862
  178. package/lib/tab-pane.js +4 -4
  179. package/lib/table-column.js +837 -862
  180. package/lib/table.js +1927 -2151
  181. package/lib/tabs.js +839 -864
  182. package/lib/tag.js +2 -2
  183. package/lib/theme-chalk/base.css +1 -1
  184. package/lib/theme-chalk/index.css +1 -1
  185. package/lib/theme-chalk/main.css +1 -1
  186. package/lib/time-picker.js +1786 -2010
  187. package/lib/time-select.js +1782 -2006
  188. package/lib/timeline-item.js +2 -2
  189. package/lib/timeline.js +2 -2
  190. package/lib/tips.js +986 -1011
  191. package/lib/toolbar.js +2 -2
  192. package/lib/tooltip.js +1778 -2002
  193. package/lib/transfer.js +837 -862
  194. package/lib/tree-group.js +982 -1007
  195. package/lib/tree.js +985 -1010
  196. package/lib/update-history.js +146 -146
  197. package/lib/upload.js +999 -1024
  198. package/lib/utils/helpers.js +52 -0
  199. package/lib/utils/popper.js +48 -97
  200. package/lib/wujie.js +841 -866
  201. package/package.json +1 -1
  202. package/packages/login/src/login.vue +24 -3
  203. package/packages/login/src/resetPassword.vue +19 -13
  204. package/packages/main/src/minxs.js +0 -1
  205. package/packages/theme-chalk/src/base.scss +1 -2
  206. package/src/index.js +327 -327
  207. package/src/utils/helpers.js +49 -0
  208. package/src/utils/popper.js +70 -109
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 172);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 173);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3285,7 +3285,7 @@ var warning = function warning(content, _callback3) {
3285
3285
 
3286
3286
  /***/ }),
3287
3287
 
3288
- /***/ 108:
3288
+ /***/ 109:
3289
3289
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3290
3290
 
3291
3291
  "use strict";
@@ -3996,12 +3996,12 @@ module.exports = require("lodash/get");
3996
3996
 
3997
3997
  /***/ }),
3998
3998
 
3999
- /***/ 172:
3999
+ /***/ 173:
4000
4000
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4001
4001
 
4002
4002
  "use strict";
4003
4003
  __webpack_require__.r(__webpack_exports__);
4004
- /* harmony import */ var _radio_src_radio_group_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(108);
4004
+ /* harmony import */ var _radio_src_radio_group_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(109);
4005
4005
 
4006
4006
 
4007
4007
  /* istanbul ignore next */
@@ -4311,146 +4311,146 @@ module.exports = require("sm-crypto");
4311
4311
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4312
4312
 
4313
4313
  "use strict";
4314
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCaLogin; });
4315
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doUserLogin; });
4316
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doQrLogin; });
4317
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return logout; });
4318
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initLogin; });
4319
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return switchUserTo; });
4314
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doCaLogin; });
4315
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doUserLogin; });
4316
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doQrLogin; });
4317
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return logout; });
4318
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return initLogin; });
4319
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return switchUserTo; });
4320
4320
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
4321
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getLoginCode; });
4322
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doCodeLogin; });
4321
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getLoginCode; });
4322
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCodeLogin; });
4323
4323
  /* unused harmony export updateCode */
4324
- /* unused harmony export getModifyPassCode */
4325
- /* unused harmony export codeModifyPass */
4326
- /* unused harmony export loginModifyPassword */
4324
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getModifyPassCode; });
4325
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
4326
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return loginModifyPassword; });
4327
4327
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
4328
- /* unused harmony export initModifyPassword */
4328
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return initModifyPassword; });
4329
4329
  /* unused harmony export doWechatQrLogin */
4330
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getTwoFactorLoginCode; });
4330
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getTwoFactorLoginCode; });
4331
4331
  /* unused harmony export doTwoFactorLogin */
4332
4332
  /* unused harmony export initRetrialAuth */
4333
4333
  /* unused harmony export getRetrialAuthCode */
4334
4334
  /* unused harmony export scanCodeRetrialAuth */
4335
4335
  /* unused harmony export codeRetrialAuth */
4336
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return doAssistanceQrLogin; });
4337
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return userOnline; });
4338
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserAppWithTag; });
4339
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return recordUserApp; });
4340
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getUserRecordApp; });
4341
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return mainConfig; });
4342
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return initUserSet; });
4343
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return updateUserInfo; });
4336
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doAssistanceQrLogin; });
4337
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return userOnline; });
4338
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getUserAppWithTag; });
4339
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return recordUserApp; });
4340
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUserRecordApp; });
4341
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return mainConfig; });
4342
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initUserSet; });
4343
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return updateUserInfo; });
4344
4344
  /* unused harmony export getUserImgUrl */
4345
4345
  /* unused harmony export getDoorIndex */
4346
4346
  /* unused harmony export refreshOnlineUsers */
4347
4347
  /* unused harmony export getQuickMenuIds */
4348
4348
  /* unused harmony export getApplicationIdArray */
4349
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getComplexApplications; });
4350
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getComplexApplicationsNew; });
4351
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getMainAppWithTag; });
4352
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getByType; });
4349
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getComplexApplications; });
4350
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplicationsNew; });
4351
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getMainAppWithTag; });
4352
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getByType; });
4353
4353
  /* unused harmony export getUserCustomInfo */
4354
4354
  /* unused harmony export updateUserCustomInfo */
4355
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return saveOrUpdate; });
4356
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return sysMsgPage; });
4357
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return ignoreSysMsg; });
4358
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreAllSysMsg; });
4359
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return searchType; });
4360
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParam; });
4361
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getAdjunctProperties; });
4362
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return uploads; });
4363
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploadOnlyOne; });
4364
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctFileInfos; });
4355
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return saveOrUpdate; });
4356
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sysMsgPage; });
4357
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return ignoreSysMsg; });
4358
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return ignoreAllSysMsg; });
4359
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return searchType; });
4360
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSysParam; });
4361
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctProperties; });
4362
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return uploads; });
4363
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return uploadOnlyOne; });
4364
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getAdjunctFileInfos; });
4365
4365
  /* unused harmony export uploadSort */
4366
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return downloadByAdjunctId; });
4367
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadDownloads; });
4368
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct; });
4369
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunct2; });
4370
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return previewAdjunctOffice; });
4371
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return delAdjunct; });
4366
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return downloadByAdjunctId; });
4367
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return uploadDownloads; });
4368
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return previewAdjunct; });
4369
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return previewAdjunct2; });
4370
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return previewAdjunctOffice; });
4371
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return delAdjunct; });
4372
4372
  /* unused harmony export upload_updateClassify */
4373
4373
  /* unused harmony export getDeleteAdjunctFileInfos */
4374
4374
  /* unused harmony export getPictureBase64 */
4375
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSelectorOrgTree; });
4376
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getSelectorOrgDetail; });
4377
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getOrgMainTree; });
4375
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getSelectorOrgTree; });
4376
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSelectorOrgDetail; });
4377
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getOrgMainTree; });
4378
4378
  /* unused harmony export getSelectOrgsubids */
4379
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCode; });
4379
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findSysCode; });
4380
4380
  /* unused harmony export getDictList */
4381
4381
  /* unused harmony export findUserBaseInfo */
4382
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return gethelpdoc; });
4382
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return gethelpdoc; });
4383
4383
  /* unused harmony export getCurrentuser */
4384
4384
  /* unused harmony export mainDetail */
4385
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartFlow; });
4386
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tempSave; });
4387
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return commonOpion; });
4385
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toStartFlow; });
4386
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return tempSave; });
4387
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return commonOpion; });
4388
4388
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
4389
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return editCommonOpion; });
4390
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveCommonOpinion; });
4391
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateCommonOpinion; });
4392
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteCommonOpion; });
4393
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getProcessDefList; });
4394
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfo; });
4395
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return findCodeValues; });
4396
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysParam; });
4397
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findSysCodes; });
4398
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getNotificationMsg; });
4399
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getHandleInfoHtml; });
4400
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskHandleHtml; });
4389
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return editCommonOpion; });
4390
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return saveCommonOpinion; });
4391
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return updateCommonOpinion; });
4392
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return deleteCommonOpion; });
4393
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getProcessDefList; });
4394
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getNodeInfo; });
4395
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findCodeValues; });
4396
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysParam; });
4397
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCodes; });
4398
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNotificationMsg; });
4399
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getHandleInfoHtml; });
4400
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskHandleHtml; });
4401
4401
  /* unused harmony export getView */
4402
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return register; });
4403
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return pendedhistoryList; });
4404
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskRejectHtml; });
4405
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskRejectHtml; });
4406
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskRead; });
4407
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toStartTaskReadIndex; });
4408
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskReadHtml; });
4409
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return rejectAndEnd; });
4410
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toSendMsg; });
4411
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return sendMsg; });
4412
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return endFlowHtml; });
4413
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return handleInfo; });
4414
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return loginUserInfo; });
4415
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return wss; });
4416
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return topic; });
4417
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetCustomInfo; });
4418
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getPresetNodeInfo; });
4419
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskTransferIndex; });
4420
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskTransfer; });
4402
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return register; });
4403
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pendedhistoryList; });
4404
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskRejectHtml; });
4405
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskRejectHtml; });
4406
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toStartTaskRead; });
4407
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toStartTaskReadIndex; });
4408
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskReadHtml; });
4409
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return rejectAndEnd; });
4410
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toSendMsg; });
4411
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return sendMsg; });
4412
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowHtml; });
4413
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return handleInfo; });
4414
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return loginUserInfo; });
4415
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return wss; });
4416
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return topic; });
4417
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getPresetCustomInfo; });
4418
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetNodeInfo; });
4419
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskTransferIndex; });
4420
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskTransfer; });
4421
4421
  /* unused harmony export toPresetInfoListIndex */
4422
4422
  /* unused harmony export deletePresetInfo */
4423
4423
  /* unused harmony export historyListJson */
4424
4424
  /* unused harmony export pendedhistoryListJson */
4425
4425
  /* unused harmony export pressListJson */
4426
4426
  /* unused harmony export deleteFlow */
4427
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return isCanStartSubFlow; });
4428
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionExamine; });
4429
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionExamine; });
4430
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTakeAdvice; });
4431
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTakeAdvice; });
4432
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskStartDraft; });
4433
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSupervise; });
4434
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskSuperviseSub; });
4435
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskStartDraft; });
4436
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskReview; });
4437
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskReview; });
4438
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskUnionSeal; });
4439
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskUnionSeal; });
4440
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTwoOfficesDispatch; });
4441
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return twoOfficesDispatch; });
4442
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toResetProcessIndex; });
4443
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return resetProcess; });
4444
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskContinuationIndex; });
4445
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskContinuation; });
4446
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getFreeStartFlowParams; });
4447
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeStartFlowWithSubmitTask; });
4427
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return isCanStartSubFlow; });
4428
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskUnionExamine; });
4429
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskUnionExamine; });
4430
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskTakeAdvice; });
4431
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskTakeAdvice; });
4432
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskStartDraft; });
4433
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskSupervise; });
4434
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskSuperviseSub; });
4435
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskStartDraft; });
4436
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskReview; });
4437
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskReview; });
4438
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskUnionSeal; });
4439
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskUnionSeal; });
4440
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTwoOfficesDispatch; });
4441
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return twoOfficesDispatch; });
4442
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toResetProcessIndex; });
4443
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return resetProcess; });
4444
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskContinuationIndex; });
4445
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskContinuation; });
4446
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getFreeStartFlowParams; });
4447
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlowWithSubmitTask; });
4448
4448
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
4449
4449
  /* unused harmony export pendedhistoryListWithCircularReadJson */
4450
4450
  /* unused harmony export fyListJson */
4451
4451
  /* unused harmony export circularReadWithdraw */
4452
4452
  /* unused harmony export taskReadWithDraw */
4453
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
4453
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
4454
4454
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
4455
4455
  /* unused harmony export sendList */
4456
4456
  /* unused harmony export sendInfo */
@@ -4459,56 +4459,56 @@ module.exports = require("sm-crypto");
4459
4459
  /* unused harmony export sendDelete */
4460
4460
  /* unused harmony export sendBatch */
4461
4461
  /* unused harmony export formContents */
4462
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return directStartTaskCircularRead; });
4463
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowAndStartTaskCircularRead; });
4464
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNodeInfoForStart; });
4465
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlow; });
4466
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUrgencyLevelChangedNotificationType; });
4467
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toFreeTaskCircularRead; });
4468
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeTaskCircularRead; });
4469
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageLists; });
4462
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return directStartTaskCircularRead; });
4463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return endFlowAndStartTaskCircularRead; });
4464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfoForStart; });
4465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeStartFlow; });
4466
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getUrgencyLevelChangedNotificationType; });
4467
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toFreeTaskCircularRead; });
4468
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeTaskCircularRead; });
4469
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return pageLists; });
4470
4470
  /* unused harmony export publishedLists */
4471
4471
  /* unused harmony export pageInfo */
4472
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageGroup; });
4473
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageSave; });
4474
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pageUpdate; });
4475
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageDelete; });
4472
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return pageGroup; });
4473
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageSave; });
4474
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageUpdate; });
4475
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pageDelete; });
4476
4476
  /* unused harmony export pageTargetDelete */
4477
4477
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
4478
4478
  /* unused harmony export batchUpdate */
4479
4479
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
4480
4480
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
4481
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processListJson; });
4482
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processInfo; });
4483
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processDeleteJson; });
4484
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processSave; });
4485
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return processUpdate; });
4486
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeListJson; });
4487
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return nodeDeleteJson; });
4488
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return nodeSave; });
4489
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return nodeUpdate; });
4490
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeInfo; });
4491
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleListJson; });
4492
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return moduleInfo; });
4493
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return moduleDelete; });
4494
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleSave; });
4495
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return moduleUpdate; });
4496
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleListJson; });
4497
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleEdit; });
4498
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleRead; });
4499
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleSave; });
4481
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return processListJson; });
4482
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return processInfo; });
4483
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return processDeleteJson; });
4484
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processSave; });
4485
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processUpdate; });
4486
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return nodeListJson; });
4487
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return nodeDeleteJson; });
4488
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeSave; });
4489
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeUpdate; });
4490
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return nodeInfo; });
4491
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return moduleListJson; });
4492
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return moduleInfo; });
4493
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return moduleDelete; });
4494
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleSave; });
4495
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleUpdate; });
4496
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return ruleListJson; });
4497
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return ruleEdit; });
4498
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleRead; });
4499
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleSave; });
4500
4500
  /* unused harmony export ruleSupplement */
4501
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return ruleUndore; });
4502
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleAdd; });
4503
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyDetail; });
4501
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleUndore; });
4502
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleAdd; });
4503
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return companyDetail; });
4504
4504
  /* unused harmony export issueDetailList */
4505
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return deleteRule; });
4506
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getSysParamV1; });
4507
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return companyList; });
4508
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return supplement; });
4509
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isAddSource; });
4510
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return tiggerInTime; });
4511
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateHistory; });
4505
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteRule; });
4506
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSysParamV1; });
4507
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyList; });
4508
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return supplement; });
4509
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return isAddSource; });
4510
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return tiggerInTime; });
4511
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return updateHistory; });
4512
4512
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
4513
4513
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
4514
4514
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
@@ -4930,759 +4930,736 @@ var changeInTime = '/baseIssueRules/changeInTime';
4930
4930
  /* unused harmony export getSecond */
4931
4931
  /* unused harmony export getWeekday */
4932
4932
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
4933
- /* Modified from https://github.com/taylorhakes/fecha
4934
- *
4935
- * The MIT License (MIT)
4936
- *
4937
- * Copyright (c) 2015 Taylor Hakes
4938
- *
4939
- * Permission is hereby granted, free of charge, to any person obtaining a copy
4940
- * of this software and associated documentation files (the "Software"), to deal
4941
- * in the Software without restriction, including without limitation the rights
4942
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4943
- * copies of the Software, and to permit persons to whom the Software is
4944
- * furnished to do so, subject to the following conditions:
4945
- *
4946
- * The above copyright notice and this permission notice shall be included in all
4947
- * copies or substantial portions of the Software.
4948
- *
4949
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4950
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4951
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4952
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4953
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4954
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4955
- * SOFTWARE.
4956
- */
4957
-
4958
- /*eslint-disable*/
4959
- // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
4960
-
4961
-
4933
+
4934
+
4962
4935
  /**
4963
4936
  * Parse or format dates
4964
4937
  * @class fecha
4965
- */
4966
- const fecha = {};
4967
- const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
4968
- const twoDigits = '\\d\\d?';
4969
- const threeDigits = '\\d{3}';
4970
- const fourDigits = '\\d{4}';
4971
- const word = '[^\\s]+';
4972
- const literal = /\[([^]*?)\]/gm;
4973
- const noop = function () {};
4974
-
4975
- function regexEscape(str) {
4976
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
4977
- }
4978
-
4979
- function shorten(arr, sLen) {
4980
- const newArr = [];
4981
- for (let i = 0, len = arr.length; i < len; i++) {
4982
- newArr.push(arr[i].substr(0, sLen));
4983
- }
4984
- return newArr;
4985
- }
4986
-
4987
- function monthUpdate() {
4988
- return function (d, v) {
4989
- const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
4990
- if (~index) {
4991
- d.month = index;
4992
- }
4993
- };
4994
- }
4995
-
4996
- function pad(val, len) {
4997
- val = String(val);
4998
- len = len || 2;
4999
- while (val.length < len) {
5000
- val = '0' + val;
5001
- }
5002
- return val;
5003
- }
5004
-
5005
- // 直接使用中文日期名称常量
5006
- const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
5007
- const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
5008
- const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
5009
- const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
5010
- const amPm = ['上午', '下午'];
5011
- const DoFn = function DoFn(D) {
5012
- return D + '日';
5013
- };
5014
-
5015
- const formatFlags = {
5016
- D: function(dateObj) {
5017
- return dateObj.getDay();
5018
- },
5019
- DD: function(dateObj) {
5020
- return pad(dateObj.getDay());
5021
- },
5022
- Do: function(dateObj) {
5023
- return DoFn(dateObj.getDate());
5024
- },
5025
- d: function(dateObj) {
5026
- return dateObj.getDate();
5027
- },
5028
- dd: function(dateObj) {
5029
- return pad(dateObj.getDate());
5030
- },
5031
- ddd: function(dateObj) {
5032
- return dayNamesShort[dateObj.getDay()];
5033
- },
5034
- dddd: function(dateObj) {
5035
- return dayNames[dateObj.getDay()];
5036
- },
5037
- M: function(dateObj) {
5038
- return dateObj.getMonth() + 1;
5039
- },
5040
- MM: function(dateObj) {
5041
- return pad(dateObj.getMonth() + 1);
5042
- },
5043
- MMM: function(dateObj) {
5044
- return monthNamesShort[dateObj.getMonth()];
5045
- },
5046
- MMMM: function(dateObj) {
5047
- return monthNames[dateObj.getMonth()];
5048
- },
5049
- yy: function(dateObj) {
5050
- return pad(String(dateObj.getFullYear()), 4).substr(2);
5051
- },
5052
- yyyy: function(dateObj) {
5053
- return pad(dateObj.getFullYear(), 4);
5054
- },
5055
- h: function(dateObj) {
5056
- return dateObj.getHours() % 12 || 12;
5057
- },
5058
- hh: function(dateObj) {
5059
- return pad(dateObj.getHours() % 12 || 12);
5060
- },
5061
- H: function(dateObj) {
5062
- return dateObj.getHours();
5063
- },
5064
- HH: function(dateObj) {
5065
- return pad(dateObj.getHours());
5066
- },
5067
- m: function(dateObj) {
5068
- return dateObj.getMinutes();
5069
- },
5070
- mm: function(dateObj) {
5071
- return pad(dateObj.getMinutes());
5072
- },
5073
- s: function(dateObj) {
5074
- return dateObj.getSeconds();
5075
- },
5076
- ss: function(dateObj) {
5077
- return pad(dateObj.getSeconds());
5078
- },
5079
- S: function(dateObj) {
5080
- return Math.round(dateObj.getMilliseconds() / 100);
5081
- },
5082
- SS: function(dateObj) {
5083
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5084
- },
5085
- SSS: function(dateObj) {
5086
- return pad(dateObj.getMilliseconds(), 3);
5087
- },
5088
- a: function(dateObj) {
5089
- return dateObj.getHours() < 12 ? '上午' : '下午';
5090
- },
5091
- A: function(dateObj) {
5092
- return dateObj.getHours() < 12 ? '上午' : '下午';
5093
- },
5094
- ZZ: function(dateObj) {
5095
- const o = dateObj.getTimezoneOffset();
5096
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5097
- }
5098
- };
5099
-
5100
- const parseFlags = {
5101
- d: [twoDigits, function (d, v) {
5102
- d.day = v;
5103
- }],
5104
- Do: [twoDigits + word, function (d, v) {
5105
- d.day = parseInt(v, 10);
5106
- }],
5107
- M: [twoDigits, function (d, v) {
5108
- d.month = v - 1;
5109
- }],
5110
- yy: [twoDigits, function (d, v) {
5111
- const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
5112
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5113
- }],
5114
- h: [twoDigits, function (d, v) {
5115
- d.hour = v;
5116
- }],
5117
- m: [twoDigits, function (d, v) {
5118
- d.minute = v;
5119
- }],
5120
- s: [twoDigits, function (d, v) {
5121
- d.second = v;
5122
- }],
5123
- yyyy: [fourDigits, function (d, v) {
5124
- d.year = v;
5125
- }],
5126
- S: ['\\d', function (d, v) {
5127
- d.millisecond = v * 100;
5128
- }],
5129
- SS: ['\\d{2}', function (d, v) {
5130
- d.millisecond = v * 10;
5131
- }],
5132
- SSS: [threeDigits, function (d, v) {
5133
- d.millisecond = v;
5134
- }],
5135
- D: [twoDigits, noop],
5136
- ddd: [word, noop],
5137
- MMM: [word, monthUpdate('monthNamesShort')],
5138
- MMMM: [word, monthUpdate('monthNames')],
5139
- a: [word, function (d, v) {
5140
- const val = v.toLowerCase();
5141
- if (val === '上午') {
5142
- d.isPm = false;
5143
- } else if (val === '下午') {
5144
- d.isPm = true;
5145
- }
5146
- }],
5147
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5148
- let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
5149
-
5150
- if (parts) {
5151
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5152
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5153
- }
5154
- }]
5155
- };
5156
- parseFlags.dd = parseFlags.d;
5157
- parseFlags.dddd = parseFlags.ddd;
5158
- parseFlags.DD = parseFlags.D;
5159
- parseFlags.mm = parseFlags.m;
5160
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5161
- parseFlags.MM = parseFlags.M;
5162
- parseFlags.ss = parseFlags.s;
5163
- parseFlags.A = parseFlags.a;
5164
-
5165
-
5166
- // Some common format strings
5167
- fecha.masks = {
5168
- default: 'ddd MMM dd yyyy HH:mm:ss',
5169
- shortDate: 'M/D/yy',
5170
- mediumDate: 'MMM d, yyyy',
5171
- longDate: 'MMMM d, yyyy',
5172
- fullDate: 'dddd, MMMM d, yyyy',
5173
- shortTime: 'HH:mm',
5174
- mediumTime: 'HH:mm:ss',
5175
- longTime: 'HH:mm:ss.SSS'
5176
- };
5177
-
4938
+ */
4939
+ var fecha = {};
4940
+ var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
4941
+ var twoDigits = '\\d\\d?';
4942
+ var threeDigits = '\\d{3}';
4943
+ var fourDigits = '\\d{4}';
4944
+ var word = '[^\\s]+';
4945
+ var literal = /\[([^]*?)\]/gm;
4946
+ var noop = function noop() {};
4947
+
4948
+ function regexEscape(str) {
4949
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
4950
+ }
4951
+
4952
+ function shorten(arr, sLen) {
4953
+ var newArr = [];
4954
+ for (var i = 0, len = arr.length; i < len; i++) {
4955
+ newArr.push(arr[i].substr(0, sLen));
4956
+ }
4957
+ return newArr;
4958
+ }
4959
+
4960
+ function monthUpdate() {
4961
+ return function (d, v) {
4962
+ var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
4963
+ if (~index) {
4964
+ d.month = index;
4965
+ }
4966
+ };
4967
+ }
4968
+
4969
+ function pad(val, len) {
4970
+ val = String(val);
4971
+ len = len || 2;
4972
+ while (val.length < len) {
4973
+ val = '0' + val;
4974
+ }
4975
+ return val;
4976
+ }
4977
+
4978
+ // 直接使用中文日期名称常量
4979
+ var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
4980
+ var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
4981
+ var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
4982
+ var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
4983
+ var amPm = ['上午', '下午'];
4984
+ var DoFn = function DoFn(D) {
4985
+ return D + '日';
4986
+ };
4987
+
4988
+ var formatFlags = {
4989
+ D: function D(dateObj) {
4990
+ return dateObj.getDay();
4991
+ },
4992
+ DD: function DD(dateObj) {
4993
+ return pad(dateObj.getDay());
4994
+ },
4995
+ Do: function Do(dateObj) {
4996
+ return DoFn(dateObj.getDate());
4997
+ },
4998
+ d: function d(dateObj) {
4999
+ return dateObj.getDate();
5000
+ },
5001
+ dd: function dd(dateObj) {
5002
+ return pad(dateObj.getDate());
5003
+ },
5004
+ ddd: function ddd(dateObj) {
5005
+ return dayNamesShort[dateObj.getDay()];
5006
+ },
5007
+ dddd: function dddd(dateObj) {
5008
+ return dayNames[dateObj.getDay()];
5009
+ },
5010
+ M: function M(dateObj) {
5011
+ return dateObj.getMonth() + 1;
5012
+ },
5013
+ MM: function MM(dateObj) {
5014
+ return pad(dateObj.getMonth() + 1);
5015
+ },
5016
+ MMM: function MMM(dateObj) {
5017
+ return monthNamesShort[dateObj.getMonth()];
5018
+ },
5019
+ MMMM: function MMMM(dateObj) {
5020
+ return monthNames[dateObj.getMonth()];
5021
+ },
5022
+ yy: function yy(dateObj) {
5023
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
5024
+ },
5025
+ yyyy: function yyyy(dateObj) {
5026
+ return pad(dateObj.getFullYear(), 4);
5027
+ },
5028
+ h: function h(dateObj) {
5029
+ return dateObj.getHours() % 12 || 12;
5030
+ },
5031
+ hh: function hh(dateObj) {
5032
+ return pad(dateObj.getHours() % 12 || 12);
5033
+ },
5034
+ H: function H(dateObj) {
5035
+ return dateObj.getHours();
5036
+ },
5037
+ HH: function HH(dateObj) {
5038
+ return pad(dateObj.getHours());
5039
+ },
5040
+ m: function m(dateObj) {
5041
+ return dateObj.getMinutes();
5042
+ },
5043
+ mm: function mm(dateObj) {
5044
+ return pad(dateObj.getMinutes());
5045
+ },
5046
+ s: function s(dateObj) {
5047
+ return dateObj.getSeconds();
5048
+ },
5049
+ ss: function ss(dateObj) {
5050
+ return pad(dateObj.getSeconds());
5051
+ },
5052
+ S: function S(dateObj) {
5053
+ return Math.round(dateObj.getMilliseconds() / 100);
5054
+ },
5055
+ SS: function SS(dateObj) {
5056
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5057
+ },
5058
+ SSS: function SSS(dateObj) {
5059
+ return pad(dateObj.getMilliseconds(), 3);
5060
+ },
5061
+ a: function a(dateObj) {
5062
+ return dateObj.getHours() < 12 ? '上午' : '下午';
5063
+ },
5064
+ A: function A(dateObj) {
5065
+ return dateObj.getHours() < 12 ? '上午' : '下午';
5066
+ },
5067
+ ZZ: function ZZ(dateObj) {
5068
+ var o = dateObj.getTimezoneOffset();
5069
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5070
+ }
5071
+ };
5072
+
5073
+ var parseFlags = {
5074
+ d: [twoDigits, function (d, v) {
5075
+ d.day = v;
5076
+ }],
5077
+ Do: [twoDigits + word, function (d, v) {
5078
+ d.day = parseInt(v, 10);
5079
+ }],
5080
+ M: [twoDigits, function (d, v) {
5081
+ d.month = v - 1;
5082
+ }],
5083
+ yy: [twoDigits, function (d, v) {
5084
+ var da = new Date(),
5085
+ cent = +('' + da.getFullYear()).substr(0, 2);
5086
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5087
+ }],
5088
+ h: [twoDigits, function (d, v) {
5089
+ d.hour = v;
5090
+ }],
5091
+ m: [twoDigits, function (d, v) {
5092
+ d.minute = v;
5093
+ }],
5094
+ s: [twoDigits, function (d, v) {
5095
+ d.second = v;
5096
+ }],
5097
+ yyyy: [fourDigits, function (d, v) {
5098
+ d.year = v;
5099
+ }],
5100
+ S: ['\\d', function (d, v) {
5101
+ d.millisecond = v * 100;
5102
+ }],
5103
+ SS: ['\\d{2}', function (d, v) {
5104
+ d.millisecond = v * 10;
5105
+ }],
5106
+ SSS: [threeDigits, function (d, v) {
5107
+ d.millisecond = v;
5108
+ }],
5109
+ D: [twoDigits, noop],
5110
+ ddd: [word, noop],
5111
+ MMM: [word, monthUpdate('monthNamesShort')],
5112
+ MMMM: [word, monthUpdate('monthNames')],
5113
+ a: [word, function (d, v) {
5114
+ var val = v.toLowerCase();
5115
+ if (val === '上午') {
5116
+ d.isPm = false;
5117
+ } else if (val === '下午') {
5118
+ d.isPm = true;
5119
+ }
5120
+ }],
5121
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5122
+ var parts = (v + '').match(/([+-]|\d\d)/gi),
5123
+ minutes = void 0;
5124
+
5125
+ if (parts) {
5126
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5127
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5128
+ }
5129
+ }]
5130
+ };
5131
+ parseFlags.dd = parseFlags.d;
5132
+ parseFlags.dddd = parseFlags.ddd;
5133
+ parseFlags.DD = parseFlags.D;
5134
+ parseFlags.mm = parseFlags.m;
5135
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5136
+ parseFlags.MM = parseFlags.M;
5137
+ parseFlags.ss = parseFlags.s;
5138
+ parseFlags.A = parseFlags.a;
5139
+
5140
+ // Some common format strings
5141
+ fecha.masks = {
5142
+ default: 'ddd MMM dd yyyy HH:mm:ss',
5143
+ shortDate: 'M/D/yy',
5144
+ mediumDate: 'MMM d, yyyy',
5145
+ longDate: 'MMMM d, yyyy',
5146
+ fullDate: 'dddd, MMMM d, yyyy',
5147
+ shortTime: 'HH:mm',
5148
+ mediumTime: 'HH:mm:ss',
5149
+ longTime: 'HH:mm:ss.SSS'
5150
+ };
5151
+
5178
5152
  /***
5179
5153
  * Format a date
5180
5154
  * @method format
5181
5155
  * @param {Date|number} dateObj
5182
5156
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
5183
- */
5184
- fecha.format = function (dateObj, mask) {
5185
- if (typeof dateObj === 'number') {
5186
- dateObj = new Date(dateObj);
5187
- }
5188
-
5189
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5190
- throw new Error('Invalid Date in fecha.format');
5191
- }
5192
-
5193
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
5194
-
5195
- const literals = [];
5196
-
5197
- // Make literals inactive by replacing them with ??
5198
- mask = mask.replace(literal, function($0, $1) {
5199
- literals.push($1);
5200
- return '@@@';
5201
- });
5202
- // Apply formatting rules
5203
- mask = mask.replace(token, function ($0) {
5204
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
5205
- });
5206
- // Inline literal values back into the formatted value
5207
- return mask.replace(/@@@/g, function() {
5208
- return literals.shift();
5209
- });
5210
- };
5211
-
5157
+ */
5158
+ fecha.format = function (dateObj, mask) {
5159
+ if (typeof dateObj === 'number') {
5160
+ dateObj = new Date(dateObj);
5161
+ }
5162
+
5163
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5164
+ throw new Error('Invalid Date in fecha.format');
5165
+ }
5166
+
5167
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
5168
+
5169
+ var literals = [];
5170
+
5171
+ // Make literals inactive by replacing them with ??
5172
+ mask = mask.replace(literal, function ($0, $1) {
5173
+ literals.push($1);
5174
+ return '@@@';
5175
+ });
5176
+ // Apply formatting rules
5177
+ mask = mask.replace(token, function ($0) {
5178
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
5179
+ });
5180
+ // Inline literal values back into the formatted value
5181
+ return mask.replace(/@@@/g, function () {
5182
+ return literals.shift();
5183
+ });
5184
+ };
5185
+
5212
5186
  /**
5213
5187
  * Parse a date string into an object, changes - into /
5214
5188
  * @method parse
5215
5189
  * @param {string} dateStr Date string
5216
5190
  * @param {string} format Date parse format
5217
5191
  * @returns {Date|boolean}
5218
- */
5219
- fecha.parse = function (dateStr, format) {
5220
- if (typeof format !== 'string') {
5221
- throw new Error('Invalid format in fecha.parse');
5222
- }
5223
-
5224
- format = fecha.masks[format] || format;
5225
-
5226
- // Avoid regular expression denial of service, fail early for really long strings
5227
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5228
- if (dateStr.length > 1000) {
5229
- return null;
5230
- }
5231
-
5232
- const dateInfo = {};
5233
- const parseInfo = [];
5234
- const literals = [];
5235
- format = format.replace(literal, function($0, $1) {
5236
- literals.push($1);
5237
- return '@@@';
5238
- });
5239
- let newFormat = regexEscape(format).replace(token, function ($0) {
5240
- if (parseFlags[$0]) {
5241
- const info = parseFlags[$0];
5242
- parseInfo.push(info[1]);
5243
- return '(' + info[0] + ')';
5244
- }
5245
-
5246
- return $0;
5247
- });
5248
- newFormat = newFormat.replace(/@@@/g, function() {
5249
- return literals.shift();
5250
- });
5251
- const matches = dateStr.match(new RegExp(newFormat, 'i'));
5252
- if (!matches) {
5253
- return null;
5254
- }
5255
-
5256
- for (let i = 1; i < matches.length; i++) {
5257
- parseInfo[i - 1](dateInfo, matches[i]);
5258
- }
5259
-
5260
- const today = new Date();
5261
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5262
- dateInfo.hour = +dateInfo.hour + 12;
5263
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5264
- dateInfo.hour = 0;
5265
- }
5266
-
5267
- let date;
5268
- if (dateInfo.timezoneOffset != null) {
5269
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5270
- date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
5271
- dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
5272
- } else {
5273
- date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
5274
- dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
5275
- }
5276
- return date;
5277
- };
5278
-
5279
- // 导出fecha对象
5280
-
5281
-
5282
- // 以下是从date-util.js合并的函数
5283
- const newArray = function(start, end) {
5284
- let result = [];
5285
- for (let i = start; i <= end; i++) {
5286
- result.push(i);
5287
- }
5288
- return result;
5289
- };
5290
-
5291
- const getSettings = () => {
5292
- return {
5293
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
5294
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
5295
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
5296
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
5297
- amPm: ['上午', '下午']
5298
- };
5299
- };
5300
-
5301
- const toDate = function(date) {
5302
- return isDate(date) ? new Date(date) : null;
5303
- };
5304
-
5305
- const isDate = function(date) {
5306
- if (date === null || date === undefined) return false;
5307
- if (isNaN(new Date(date).getTime())) return false;
5308
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
5309
- return true;
5310
- };
5311
-
5312
- const isDateObject = function(val) {
5313
- return val instanceof Date;
5314
- };
5315
-
5316
- const formatDate = function (date, format = 'yyyy-MM-dd') {
5317
- // 处理多种输入类型
5318
- if (!date) return '';
5319
-
5320
- // 如果是时间戳,转成日期对象
5321
- if (typeof date === 'number') {
5322
- date = new Date(date);
5323
- }
5324
- // 如果是字符串,转成日期对象
5325
- if (typeof date === 'string') {
5326
- date = new Date(date);
5327
- }
5328
-
5329
- // 调用toDate进一步验证和转换
5330
- date = toDate(date);
5331
- if (!date) return '';
5332
-
5333
- // 兼容大写和小写的格式标记
5334
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
5335
- const lowercaseFormat = format
5336
- .replace(/YYYY/g, 'yyyy')
5337
- .replace(/D/g, 'd')
5338
-
5339
- // 使用fecha库进行格式化,支持中文配置
5340
- const str = fecha.format(date, lowercaseFormat, getSettings());
5341
- return str;
5342
- };
5343
-
5344
- const parseDate = function(string, format) {
5345
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
5346
- };
5347
-
5348
- const getDayCountOfMonth = function(year, month) {
5349
- if (month === 3 || month === 5 || month === 8 || month === 10) {
5350
- return 30;
5351
- }
5352
-
5353
- if (month === 1) {
5354
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
5355
- return 29;
5356
- } else {
5357
- return 28;
5358
- }
5359
- }
5360
-
5361
- return 31;
5362
- };
5363
-
5364
- const getDayCountOfYear = function(year) {
5365
- const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
5366
- return isLeapYear ? 366 : 365;
5367
- };
5368
-
5369
- const getFirstDayOfMonth = function(date) {
5370
- const temp = new Date(date.getTime());
5371
- temp.setDate(1);
5372
- return temp.getDay();
5373
- };
5374
-
5375
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
5376
- // {prev, next} Date should work for Daylight Saving Time
5377
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
5378
- const prevDate = function(date, amount = 1) {
5379
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
5380
- };
5381
-
5382
- const nextDate = function(date, amount = 1) {
5383
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
5384
- };
5385
-
5386
- const getStartDateOfMonth = function(year, month) {
5387
- const result = new Date(year, month, 1);
5388
- const day = result.getDay();
5389
-
5390
- if (day === 0) {
5391
- return prevDate(result, 7);
5392
- } else {
5393
- return prevDate(result, day);
5394
- }
5395
- };
5396
-
5397
- const getWeekNumber = function(date) {
5398
- // 支持多种输入类型
5399
- if (!date||!isDate(date)) {
5400
- date = new Date();
5401
- }
5402
- if (typeof date === 'string') {
5403
- date = new Date(date);
5404
- }
5405
-
5406
- // 验证日期有效性
5407
- if (!isDate(date)) return null;
5408
-
5409
- const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
5410
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
5411
- // 将星期日的星期数设为7
5412
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
5413
- // 获取当年的第一天
5414
- const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
5415
- // 计算到最近的星期四的完整周数
5416
- const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
5417
- // 返回周数
5418
- return weekNo;
5419
- };
5420
-
5421
- const getRangeHours = function(ranges) {
5422
- const hours = [];
5423
- let disabledHours = [];
5424
-
5425
- (ranges || []).forEach(range => {
5426
- const value = range.map(date => date.getHours());
5427
-
5428
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
5429
- });
5430
-
5431
- if (disabledHours.length) {
5432
- for (let i = 0; i < 24; i++) {
5433
- hours[i] = disabledHours.indexOf(i) === -1;
5434
- }
5435
- } else {
5436
- for (let i = 0; i < 24; i++) {
5437
- hours[i] = false;
5438
- }
5439
- }
5440
-
5441
- return hours;
5442
- };
5443
-
5444
- const getPrevMonthLastDays = (date, amount) => {
5445
- if (amount <= 0) return [];
5446
- const temp = new Date(date.getTime());
5447
- temp.setDate(0);
5448
- const lastDay = temp.getDate();
5449
- return range(amount).map((_, index) => lastDay - (amount - index - 1));
5450
- };
5451
-
5452
- const getMonthDays = (date) => {
5453
- const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
5454
- const days = temp.getDate();
5455
- return range(days).map((_, index) => index + 1);
5456
- };
5457
-
5458
- function setRangeData(arr, start, end, value) {
5459
- for (let i = start; i < end; i++) {
5460
- arr[i] = value;
5461
- }
5462
- }
5463
-
5464
- const getRangeMinutes = function(ranges, hour) {
5465
- const minutes = new Array(60);
5466
-
5467
- if (ranges.length > 0) {
5468
- ranges.forEach(range => {
5469
- const start = range[0];
5470
- const end = range[1];
5471
- const startHour = start.getHours();
5472
- const startMinute = start.getMinutes();
5473
- const endHour = end.getHours();
5474
- const endMinute = end.getMinutes();
5475
- if (startHour === hour && endHour !== hour) {
5476
- setRangeData(minutes, startMinute, 60, true);
5477
- } else if (startHour === hour && endHour === hour) {
5478
- setRangeData(minutes, startMinute, endMinute + 1, true);
5479
- } else if (startHour !== hour && endHour === hour) {
5480
- setRangeData(minutes, 0, endMinute + 1, true);
5481
- } else if (startHour < hour && endHour > hour) {
5482
- setRangeData(minutes, 0, 60, true);
5483
- }
5484
- });
5485
- } else {
5486
- setRangeData(minutes, 0, 60, true);
5487
- }
5488
- return minutes;
5489
- };
5490
-
5491
- const range = function(n) {
5492
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
5493
- return Array.apply(null, {length: n}).map((_, n) => n);
5494
- };
5495
-
5496
- const modifyDate = function(date, y, m, d) {
5497
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
5498
- };
5499
-
5500
- const modifyTime = function(date, h, m, s) {
5501
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
5502
- };
5503
-
5504
- const modifyWithTimeString = (date, time) => {
5505
- if (date == null || !time) {
5506
- return date;
5507
- }
5508
- time = parseDate(time, 'HH:mm:ss');
5509
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
5510
- };
5511
-
5512
- const clearTime = function(date) {
5513
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
5514
- };
5515
-
5516
- const clearMilliseconds = function(date) {
5517
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
5518
- };
5519
-
5520
- const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
5521
- // TODO: refactory a more elegant solution
5522
- if (ranges.length === 0) return date;
5523
- const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
5524
- const ndate = normalizeDate(date);
5525
- const nranges = ranges.map(range => range.map(normalizeDate));
5526
- if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
5527
-
5528
- let minDate = nranges[0][0];
5529
- let maxDate = nranges[0][0];
5530
-
5531
- nranges.forEach(nrange => {
5532
- minDate = new Date(Math.min(nrange[0], minDate));
5533
- maxDate = new Date(Math.max(nrange[1], minDate));
5534
- });
5535
-
5536
- const ret = ndate < minDate ? minDate : maxDate;
5537
- // preserve Year/Month/Date
5538
- return modifyDate(
5539
- ret,
5540
- date.getFullYear(),
5541
- date.getMonth(),
5542
- date.getDate()
5543
- );
5544
- };
5545
-
5546
- const timeWithinRange = function(date, selectableRange, format) {
5547
- const limitedDate = limitTimeRange(date, selectableRange, format);
5548
- return limitedDate.getTime() === date.getTime();
5549
- };
5550
-
5551
- const changeYearMonthAndClampDate = function(date, year, month) {
5552
- // clamp date to the number of days in `year`, `month`
5553
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
5554
- const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
5555
- return modifyDate(date, year, month, monthDate);
5556
- };
5557
-
5558
- const prevMonth = function(date) {
5559
- const year = date.getFullYear();
5560
- const month = date.getMonth();
5561
- return month === 0
5562
- ? changeYearMonthAndClampDate(date, year - 1, 11)
5563
- : changeYearMonthAndClampDate(date, year, month - 1);
5564
- };
5565
-
5566
- const nextMonth = function(date) {
5567
- const year = date.getFullYear();
5568
- const month = date.getMonth();
5569
- return month === 11
5570
- ? changeYearMonthAndClampDate(date, year + 1, 0)
5571
- : changeYearMonthAndClampDate(date, year, month + 1);
5572
- };
5573
-
5574
- const prevYear = function(date, amount = 1) {
5575
- const year = date.getFullYear();
5576
- const month = date.getMonth();
5577
- return changeYearMonthAndClampDate(date, year - amount, month);
5578
- };
5579
-
5580
- const nextYear = function(date, amount = 1) {
5581
- const year = date.getFullYear();
5582
- const month = date.getMonth();
5583
- return changeYearMonthAndClampDate(date, year + amount, month);
5584
- };
5585
-
5586
- const extractDateFormat = function(format) {
5587
- return format
5588
- .replace(/\W?m{1,2}|\W?ZZ/g, '')
5589
- .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
5590
- .trim();
5591
- };
5592
-
5593
- const extractTimeFormat = function(format) {
5594
- return format
5595
- .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
5596
- .trim();
5597
- };
5598
-
5599
- const validateRangeInOneMonth = function(start, end) {
5600
- return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
5601
- };
5602
-
5192
+ */
5193
+ fecha.parse = function (dateStr, format) {
5194
+ if (typeof format !== 'string') {
5195
+ throw new Error('Invalid format in fecha.parse');
5196
+ }
5197
+
5198
+ format = fecha.masks[format] || format;
5199
+
5200
+ // Avoid regular expression denial of service, fail early for really long strings
5201
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5202
+ if (dateStr.length > 1000) {
5203
+ return null;
5204
+ }
5205
+
5206
+ var dateInfo = {};
5207
+ var parseInfo = [];
5208
+ var literals = [];
5209
+ format = format.replace(literal, function ($0, $1) {
5210
+ literals.push($1);
5211
+ return '@@@';
5212
+ });
5213
+ var newFormat = regexEscape(format).replace(token, function ($0) {
5214
+ if (parseFlags[$0]) {
5215
+ var info = parseFlags[$0];
5216
+ parseInfo.push(info[1]);
5217
+ return '(' + info[0] + ')';
5218
+ }
5219
+
5220
+ return $0;
5221
+ });
5222
+ newFormat = newFormat.replace(/@@@/g, function () {
5223
+ return literals.shift();
5224
+ });
5225
+ var matches = dateStr.match(new RegExp(newFormat, 'i'));
5226
+ if (!matches) {
5227
+ return null;
5228
+ }
5229
+
5230
+ for (var i = 1; i < matches.length; i++) {
5231
+ parseInfo[i - 1](dateInfo, matches[i]);
5232
+ }
5233
+
5234
+ var today = new Date();
5235
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5236
+ dateInfo.hour = +dateInfo.hour + 12;
5237
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5238
+ dateInfo.hour = 0;
5239
+ }
5240
+
5241
+ var date = void 0;
5242
+ if (dateInfo.timezoneOffset != null) {
5243
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5244
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
5245
+ } else {
5246
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
5247
+ }
5248
+ return date;
5249
+ };
5250
+
5251
+ // 导出fecha对象
5252
+
5253
+
5254
+ // 以下是从date-util.js合并的函数
5255
+ var newArray = function newArray(start, end) {
5256
+ var result = [];
5257
+ for (var i = start; i <= end; i++) {
5258
+ result.push(i);
5259
+ }
5260
+ return result;
5261
+ };
5262
+
5263
+ var getSettings = function getSettings() {
5264
+ return {
5265
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
5266
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
5267
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
5268
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
5269
+ amPm: ['上午', '下午']
5270
+ };
5271
+ };
5272
+
5273
+ var toDate = function toDate(date) {
5274
+ return isDate(date) ? new Date(date) : null;
5275
+ };
5276
+
5277
+ var isDate = function isDate(date) {
5278
+ if (date === null || date === undefined) return false;
5279
+ if (isNaN(new Date(date).getTime())) return false;
5280
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
5281
+ return true;
5282
+ };
5283
+
5284
+ var isDateObject = function isDateObject(val) {
5285
+ return val instanceof Date;
5286
+ };
5287
+
5288
+ var formatDate = function formatDate(date) {
5289
+ var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
5290
+
5291
+ // 处理多种输入类型
5292
+ if (!date) return '';
5293
+
5294
+ // 如果是时间戳,转成日期对象
5295
+ if (typeof date === 'number') {
5296
+ date = new Date(date);
5297
+ }
5298
+ // 如果是字符串,转成日期对象
5299
+ if (typeof date === 'string') {
5300
+ date = new Date(date);
5301
+ }
5302
+
5303
+ // 调用toDate进一步验证和转换
5304
+ date = toDate(date);
5305
+ if (!date) return '';
5306
+
5307
+ // 兼容大写和小写的格式标记
5308
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
5309
+ var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
5310
+
5311
+ // 使用fecha库进行格式化,支持中文配置
5312
+ var str = fecha.format(date, lowercaseFormat, getSettings());
5313
+ return str;
5314
+ };
5315
+
5316
+ var parseDate = function parseDate(string, format) {
5317
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
5318
+ };
5319
+
5320
+ var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
5321
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
5322
+ return 30;
5323
+ }
5324
+
5325
+ if (month === 1) {
5326
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
5327
+ return 29;
5328
+ } else {
5329
+ return 28;
5330
+ }
5331
+ }
5332
+
5333
+ return 31;
5334
+ };
5335
+
5336
+ var getDayCountOfYear = function getDayCountOfYear(year) {
5337
+ var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
5338
+ return isLeapYear ? 366 : 365;
5339
+ };
5340
+
5341
+ var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
5342
+ var temp = new Date(date.getTime());
5343
+ temp.setDate(1);
5344
+ return temp.getDay();
5345
+ };
5346
+
5347
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
5348
+ // {prev, next} Date should work for Daylight Saving Time
5349
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
5350
+ var prevDate = function prevDate(date) {
5351
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5352
+
5353
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
5354
+ };
5355
+
5356
+ var nextDate = function nextDate(date) {
5357
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5358
+
5359
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
5360
+ };
5361
+
5362
+ var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
5363
+ var result = new Date(year, month, 1);
5364
+ var day = result.getDay();
5365
+
5366
+ if (day === 0) {
5367
+ return prevDate(result, 7);
5368
+ } else {
5369
+ return prevDate(result, day);
5370
+ }
5371
+ };
5372
+
5373
+ var getWeekNumber = function getWeekNumber(date) {
5374
+ // 支持多种输入类型
5375
+ if (!date || !isDate(date)) {
5376
+ date = new Date();
5377
+ }
5378
+ if (typeof date === 'string') {
5379
+ date = new Date(date);
5380
+ }
5381
+
5382
+ // 验证日期有效性
5383
+ if (!isDate(date)) return null;
5384
+
5385
+ var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
5386
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
5387
+ // 将星期日的星期数设为7
5388
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
5389
+ // 获取当年的第一天
5390
+ var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
5391
+ // 计算到最近的星期四的完整周数
5392
+ var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
5393
+ // 返回周数
5394
+ return weekNo;
5395
+ };
5396
+
5397
+ var getRangeHours = function getRangeHours(ranges) {
5398
+ var hours = [];
5399
+ var disabledHours = [];
5400
+
5401
+ (ranges || []).forEach(function (range) {
5402
+ var value = range.map(function (date) {
5403
+ return date.getHours();
5404
+ });
5405
+
5406
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
5407
+ });
5408
+
5409
+ if (disabledHours.length) {
5410
+ for (var i = 0; i < 24; i++) {
5411
+ hours[i] = disabledHours.indexOf(i) === -1;
5412
+ }
5413
+ } else {
5414
+ for (var _i = 0; _i < 24; _i++) {
5415
+ hours[_i] = false;
5416
+ }
5417
+ }
5418
+
5419
+ return hours;
5420
+ };
5421
+
5422
+ var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
5423
+ if (amount <= 0) return [];
5424
+ var temp = new Date(date.getTime());
5425
+ temp.setDate(0);
5426
+ var lastDay = temp.getDate();
5427
+ return range(amount).map(function (_, index) {
5428
+ return lastDay - (amount - index - 1);
5429
+ });
5430
+ };
5431
+
5432
+ var getMonthDays = function getMonthDays(date) {
5433
+ var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
5434
+ var days = temp.getDate();
5435
+ return range(days).map(function (_, index) {
5436
+ return index + 1;
5437
+ });
5438
+ };
5439
+
5440
+ function setRangeData(arr, start, end, value) {
5441
+ for (var i = start; i < end; i++) {
5442
+ arr[i] = value;
5443
+ }
5444
+ }
5445
+
5446
+ var getRangeMinutes = function getRangeMinutes(ranges, hour) {
5447
+ var minutes = new Array(60);
5448
+
5449
+ if (ranges.length > 0) {
5450
+ ranges.forEach(function (range) {
5451
+ var start = range[0];
5452
+ var end = range[1];
5453
+ var startHour = start.getHours();
5454
+ var startMinute = start.getMinutes();
5455
+ var endHour = end.getHours();
5456
+ var endMinute = end.getMinutes();
5457
+ if (startHour === hour && endHour !== hour) {
5458
+ setRangeData(minutes, startMinute, 60, true);
5459
+ } else if (startHour === hour && endHour === hour) {
5460
+ setRangeData(minutes, startMinute, endMinute + 1, true);
5461
+ } else if (startHour !== hour && endHour === hour) {
5462
+ setRangeData(minutes, 0, endMinute + 1, true);
5463
+ } else if (startHour < hour && endHour > hour) {
5464
+ setRangeData(minutes, 0, 60, true);
5465
+ }
5466
+ });
5467
+ } else {
5468
+ setRangeData(minutes, 0, 60, true);
5469
+ }
5470
+ return minutes;
5471
+ };
5472
+
5473
+ var range = function range(n) {
5474
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
5475
+ return Array.apply(null, { length: n }).map(function (_, n) {
5476
+ return n;
5477
+ });
5478
+ };
5479
+
5480
+ var modifyDate = function modifyDate(date, y, m, d) {
5481
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
5482
+ };
5483
+
5484
+ var modifyTime = function modifyTime(date, h, m, s) {
5485
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
5486
+ };
5487
+
5488
+ var modifyWithTimeString = function modifyWithTimeString(date, time) {
5489
+ if (date == null || !time) {
5490
+ return date;
5491
+ }
5492
+ time = parseDate(time, 'HH:mm:ss');
5493
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
5494
+ };
5495
+
5496
+ var clearTime = function clearTime(date) {
5497
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
5498
+ };
5499
+
5500
+ var clearMilliseconds = function clearMilliseconds(date) {
5501
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
5502
+ };
5503
+
5504
+ var limitTimeRange = function limitTimeRange(date, ranges) {
5505
+ var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
5506
+
5507
+ // TODO: refactory a more elegant solution
5508
+ if (ranges.length === 0) return date;
5509
+ var normalizeDate = function normalizeDate(date) {
5510
+ return fecha.parse(fecha.format(date, format), format);
5511
+ };
5512
+ var ndate = normalizeDate(date);
5513
+ var nranges = ranges.map(function (range) {
5514
+ return range.map(normalizeDate);
5515
+ });
5516
+ if (nranges.some(function (nrange) {
5517
+ return ndate >= nrange[0] && ndate <= nrange[1];
5518
+ })) return date;
5519
+
5520
+ var minDate = nranges[0][0];
5521
+ var maxDate = nranges[0][0];
5522
+
5523
+ nranges.forEach(function (nrange) {
5524
+ minDate = new Date(Math.min(nrange[0], minDate));
5525
+ maxDate = new Date(Math.max(nrange[1], minDate));
5526
+ });
5527
+
5528
+ var ret = ndate < minDate ? minDate : maxDate;
5529
+ // preserve Year/Month/Date
5530
+ return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
5531
+ };
5532
+
5533
+ var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
5534
+ var limitedDate = limitTimeRange(date, selectableRange, format);
5535
+ return limitedDate.getTime() === date.getTime();
5536
+ };
5537
+
5538
+ var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
5539
+ // clamp date to the number of days in `year`, `month`
5540
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
5541
+ var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
5542
+ return modifyDate(date, year, month, monthDate);
5543
+ };
5544
+
5545
+ var prevMonth = function prevMonth(date) {
5546
+ var year = date.getFullYear();
5547
+ var month = date.getMonth();
5548
+ return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
5549
+ };
5550
+
5551
+ var nextMonth = function nextMonth(date) {
5552
+ var year = date.getFullYear();
5553
+ var month = date.getMonth();
5554
+ return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
5555
+ };
5556
+
5557
+ var prevYear = function prevYear(date) {
5558
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5559
+
5560
+ var year = date.getFullYear();
5561
+ var month = date.getMonth();
5562
+ return changeYearMonthAndClampDate(date, year - amount, month);
5563
+ };
5564
+
5565
+ var nextYear = function nextYear(date) {
5566
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5567
+
5568
+ var year = date.getFullYear();
5569
+ var month = date.getMonth();
5570
+ return changeYearMonthAndClampDate(date, year + amount, month);
5571
+ };
5572
+
5573
+ var extractDateFormat = function extractDateFormat(format) {
5574
+ return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
5575
+ };
5576
+
5577
+ var extractTimeFormat = function extractTimeFormat(format) {
5578
+ return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
5579
+ };
5580
+
5581
+ var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
5582
+ return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
5583
+ };
5584
+
5603
5585
  /**
5604
5586
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
5605
5587
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
5606
5588
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
5607
5589
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
5608
5590
  * @returns {number} 工作日数量
5609
- */
5610
- const calculateNetworkDays = function (start_date, end_date, holidays = []) {
5611
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
5612
- throw new Error(
5613
- "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
5614
- );
5615
- }
5616
-
5617
- const startDateObj = new Date(start_date);
5618
- const endDateObj = new Date(end_date);
5619
-
5620
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
5621
- throw new Error(
5622
- "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
5623
- );
5624
- }
5625
-
5626
- if (startDateObj > endDateObj) {
5627
- throw new Error('Start date should be earlier than or equal to end date.');
5628
- }
5629
-
5630
- let workdays = 0;
5631
-
5632
- // Iterate through each day in the date range
5633
- for (
5634
- let currentDate = new Date(startDateObj);
5635
- currentDate <= endDateObj;
5636
- currentDate.setDate(currentDate.getDate() + 1)
5637
- ) {
5638
- // Check if the current day is a weekend (Saturday or Sunday)
5639
- const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
5640
-
5641
- // Check if the current day is a holiday
5642
- const isHoliday = holidays.some((holiday) => {
5643
- const holidayDate = new Date(holiday);
5644
- return currentDate.toDateString() === holidayDate.toDateString();
5645
- });
5646
-
5647
- // If it's a workday (not a weekend or holiday), increment the workdays count
5648
- if (!isWeekend && !isHoliday) {
5649
- workdays++;
5650
- }
5651
- }
5652
-
5653
- return workdays;
5654
- };
5655
-
5591
+ */
5592
+ var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
5593
+ var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
5594
+
5595
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
5596
+ throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
5597
+ }
5598
+
5599
+ var startDateObj = new Date(start_date);
5600
+ var endDateObj = new Date(end_date);
5601
+
5602
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
5603
+ throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
5604
+ }
5605
+
5606
+ if (startDateObj > endDateObj) {
5607
+ throw new Error('Start date should be earlier than or equal to end date.');
5608
+ }
5609
+
5610
+ var workdays = 0;
5611
+
5612
+ // Iterate through each day in the date range
5613
+
5614
+ var _loop = function _loop(currentDate) {
5615
+ // Check if the current day is a weekend (Saturday or Sunday)
5616
+ var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
5617
+
5618
+ // Check if the current day is a holiday
5619
+ var isHoliday = holidays.some(function (holiday) {
5620
+ var holidayDate = new Date(holiday);
5621
+ return currentDate.toDateString() === holidayDate.toDateString();
5622
+ });
5623
+
5624
+ // If it's a workday (not a weekend or holiday), increment the workdays count
5625
+ if (!isWeekend && !isHoliday) {
5626
+ workdays++;
5627
+ }
5628
+ };
5629
+
5630
+ for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
5631
+ _loop(currentDate);
5632
+ }
5633
+
5634
+ return workdays;
5635
+ };
5636
+
5656
5637
  /**
5657
5638
  * 日期加减天数
5658
5639
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
5659
5640
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
5660
5641
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
5661
- */
5662
- const dateAddDays = function (start_date, days) {
5663
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
5664
- throw new Error(
5665
- "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
5666
- );
5667
- }
5668
-
5669
- const startDateObj = new Date(start_date);
5670
- if (isNaN(startDateObj.getTime())) {
5671
- throw new Error(
5672
- "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
5673
- );
5674
- }
5675
-
5676
- const resultDateObj = new Date(startDateObj);
5677
- resultDateObj.setDate(resultDateObj.getDate() + days);
5678
-
5679
- const resultYear = resultDateObj.getFullYear();
5680
- const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
5681
- const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
5682
-
5683
- return `${resultYear}-${resultMonth}-${resultDay}`;
5684
- };
5685
-
5642
+ */
5643
+ var dateAddDays = function dateAddDays(start_date, days) {
5644
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
5645
+ throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days.");
5646
+ }
5647
+
5648
+ var startDateObj = new Date(start_date);
5649
+ if (isNaN(startDateObj.getTime())) {
5650
+ throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
5651
+ }
5652
+
5653
+ var resultDateObj = new Date(startDateObj);
5654
+ resultDateObj.setDate(resultDateObj.getDate() + days);
5655
+
5656
+ var resultYear = resultDateObj.getFullYear();
5657
+ var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
5658
+ var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
5659
+
5660
+ return resultYear + '-' + resultMonth + '-' + resultDay;
5661
+ };
5662
+
5686
5663
  /**
5687
5664
  * 计算两个日期之间的差值
5688
5665
  * @date 2023年12月14日
@@ -5690,182 +5667,180 @@ const dateAddDays = function (start_date, days) {
5690
5667
  * @param {String} end_date - 结束日期字符串
5691
5668
  * @param {String} unit - 单位:year/month/day
5692
5669
  * @returns {Number} 差值
5693
- */
5694
- const dateDiff = function (start_date, end_date, unit = 'day') {
5695
- // Assuming date strings are in "YYYY-MM-DD" format
5696
- var startDate = new Date(start_date);
5697
- var endDate = new Date(end_date);
5698
-
5699
- // If the date is invalid, return 0
5700
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
5701
- return 0;
5702
- }
5703
-
5704
- if (unit === 'year') {
5705
- return endDate.getFullYear() - startDate.getFullYear();
5706
- } else if (unit === 'month') {
5707
- return (
5708
- (endDate.getFullYear() - startDate.getFullYear()) * 12 +
5709
- (endDate.getMonth() - startDate.getMonth())
5710
- );
5711
- } else {
5712
- // Default to day
5713
- var timeDifference = endDate - startDate;
5714
- // Calculate days (86400000 milliseconds per day)
5715
- return Math.floor(timeDifference / 86400000);
5716
- }
5717
- };
5718
-
5670
+ */
5671
+ var dateDiff = function dateDiff(start_date, end_date) {
5672
+ var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
5673
+
5674
+ // Assuming date strings are in "YYYY-MM-DD" format
5675
+ var startDate = new Date(start_date);
5676
+ var endDate = new Date(end_date);
5677
+
5678
+ // If the date is invalid, return 0
5679
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
5680
+ return 0;
5681
+ }
5682
+
5683
+ if (unit === 'year') {
5684
+ return endDate.getFullYear() - startDate.getFullYear();
5685
+ } else if (unit === 'month') {
5686
+ return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
5687
+ } else {
5688
+ // Default to day
5689
+ var timeDifference = endDate - startDate;
5690
+ // Calculate days (86400000 milliseconds per day)
5691
+ return Math.floor(timeDifference / 86400000);
5692
+ }
5693
+ };
5694
+
5719
5695
  /**
5720
5696
  * 获取月份中的日期
5721
5697
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
5722
5698
  * @returns {number} 月份中的日期(1-31)
5723
- */
5724
- const dayOfMonth = function (date) {
5725
- if (typeof date !== 'string') {
5726
- throw new Error(
5727
- "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
5728
- );
5729
- }
5730
-
5731
- const dateObj = new Date(date);
5732
- if (isNaN(dateObj.getTime())) {
5733
- throw new Error(
5734
- "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
5735
- );
5736
- }
5737
-
5738
- return dateObj.getDate();
5739
- };
5740
-
5699
+ */
5700
+ var dayOfMonth = function dayOfMonth(date) {
5701
+ if (typeof date !== 'string') {
5702
+ throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
5703
+ }
5704
+
5705
+ var dateObj = new Date(date);
5706
+ if (isNaN(dateObj.getTime())) {
5707
+ throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
5708
+ }
5709
+
5710
+ return dateObj.getDate();
5711
+ };
5712
+
5741
5713
  /**
5742
5714
  * 获取当前日期
5743
5715
  * @date 2022年5月7日
5744
5716
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
5745
5717
  * @returns {string} 当前日期的格式化字符串
5746
- */
5747
- const getCurrentDate = function (format = 'YYYY-MM-DD') {
5748
- return formatDate(new Date(), format);
5749
- };
5750
-
5718
+ */
5719
+ var getCurrentDate = function getCurrentDate() {
5720
+ var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
5721
+
5722
+ return formatDate(new Date(), format);
5723
+ };
5724
+
5751
5725
  /**
5752
5726
  * 获取当前日期时间
5753
5727
  * @date 2022年5月7日
5754
5728
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
5755
5729
  * @returns {string} 当前日期时间的格式化字符串
5756
- */
5757
- const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
5758
- return formatDate(new Date(), format);
5759
- };
5760
-
5730
+ */
5731
+ var getCurrentDateTime = function getCurrentDateTime() {
5732
+ var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
5733
+
5734
+ return formatDate(new Date(), format);
5735
+ };
5736
+
5761
5737
  /**
5762
5738
  * 获取小时
5763
5739
  * @date 2022年5月7日
5764
5740
  * @param {Date|string} [date] - 日期对象或日期字符串
5765
5741
  * @returns {number} 小时数(0-23)
5766
- */
5767
- const getHour = function (date) {
5768
- if (!date) {
5769
- return new Date().getHours();
5770
- }
5771
- if (typeof date === 'string') {
5772
- date = new Date(date);
5773
- }
5774
- return date.getHours();
5775
- };
5776
-
5742
+ */
5743
+ var getHour = function getHour(date) {
5744
+ if (!date) {
5745
+ return new Date().getHours();
5746
+ }
5747
+ if (typeof date === 'string') {
5748
+ date = new Date(date);
5749
+ }
5750
+ return date.getHours();
5751
+ };
5752
+
5777
5753
  /**
5778
5754
  * 获取分钟
5779
5755
  * @date 2022年5月7日
5780
5756
  * @param {Date|string} [date] - 日期对象或日期字符串
5781
5757
  * @returns {number} 分钟数(0-59)
5782
- */
5783
- const getMinute = function (date) {
5784
- if (!date) {
5785
- return new Date().getMinutes();
5786
- }
5787
- if (typeof date === 'string') {
5788
- date = new Date(date);
5789
- }
5790
- return date.getMinutes();
5791
- };
5792
-
5758
+ */
5759
+ var getMinute = function getMinute(date) {
5760
+ if (!date) {
5761
+ return new Date().getMinutes();
5762
+ }
5763
+ if (typeof date === 'string') {
5764
+ date = new Date(date);
5765
+ }
5766
+ return date.getMinutes();
5767
+ };
5768
+
5793
5769
  /**
5794
5770
  * 获取月份
5795
5771
  * @date 2022年5月7日
5796
5772
  * @param {Date|string} [date] - 日期对象或日期字符串
5797
5773
  * @returns {number} 月份数(1-12)
5798
- */
5799
- const getMonth = function (date) {
5800
- if (!date) {
5801
- return new Date().getMonth() + 1;
5802
- }
5803
- if (typeof date === 'string') {
5804
- date = new Date(date);
5805
- }
5806
- return date.getMonth() + 1;
5807
- };
5808
-
5774
+ */
5775
+ var getMonth = function getMonth(date) {
5776
+ if (!date) {
5777
+ return new Date().getMonth() + 1;
5778
+ }
5779
+ if (typeof date === 'string') {
5780
+ date = new Date(date);
5781
+ }
5782
+ return date.getMonth() + 1;
5783
+ };
5784
+
5809
5785
  /**
5810
5786
  * 获取秒
5811
5787
  * @date 2022年5月7日
5812
5788
  * @param {Date|string} [date] - 日期对象或日期字符串
5813
5789
  * @returns {number} 秒数(0-59)
5814
- */
5815
- const getSecond = function (date) {
5816
- if (!date) {
5817
- return new Date().getSeconds();
5818
- }
5819
- if (typeof date === 'string') {
5820
- date = new Date(date);
5821
- }
5822
- return date.getSeconds();
5823
- };
5824
-
5790
+ */
5791
+ var getSecond = function getSecond(date) {
5792
+ if (!date) {
5793
+ return new Date().getSeconds();
5794
+ }
5795
+ if (typeof date === 'string') {
5796
+ date = new Date(date);
5797
+ }
5798
+ return date.getSeconds();
5799
+ };
5800
+
5825
5801
  /**
5826
5802
  * 获取星期几
5827
5803
  * @date 2022年5月7日
5828
5804
  * @param {Date|string} [date] - 日期对象或日期字符串
5829
5805
  * @returns {number} 星期几(0-6,0表示星期日)
5830
- */
5831
- const getWeekday = function (date) {
5832
- if (!date) {
5833
- return new Date().getDay();
5834
- }
5835
- if (typeof date === 'string') {
5836
- date = new Date(date);
5837
- }
5838
- return date.getDay();
5839
- };
5840
-
5841
-
5806
+ */
5807
+ var getWeekday = function getWeekday(date) {
5808
+ if (!date) {
5809
+ return new Date().getDay();
5810
+ }
5811
+ if (typeof date === 'string') {
5812
+ date = new Date(date);
5813
+ }
5814
+ return date.getDay();
5815
+ };
5816
+
5842
5817
  /**
5843
5818
  * @desc 获取上午/下午/晚上
5844
5819
  * @author huangbo
5845
5820
  * @date 2022年5月7日
5846
5821
  * @param {String} [time] - 时间
5847
- **/
5848
- const timeCycle = function (time) {
5849
- let hour = 0;
5850
- if (!time) {
5851
- hour = new Date().getHours();
5852
- } else if (typeof time === 'string') {
5853
- // 从时间字符串中提取小时
5854
- const match = time.match(/^(\d{1,2})/);
5855
- if (match) {
5856
- hour = parseInt(match[1], 10);
5857
- }
5858
- } else if (typeof time === 'number') {
5859
- hour = time;
5860
- }
5861
- // 判断时间段
5862
- if (hour >= 5 && hour < 12) {
5863
- return '上午';
5864
- } else if (hour >= 12 && hour < 18) {
5865
- return '下午';
5866
- } else {
5867
- return '晚上';
5868
- }
5822
+ **/
5823
+ var timeCycle = function timeCycle(time) {
5824
+ var hour = 0;
5825
+ if (!time) {
5826
+ hour = new Date().getHours();
5827
+ } else if (typeof time === 'string') {
5828
+ // 从时间字符串中提取小时
5829
+ var match = time.match(/^(\d{1,2})/);
5830
+ if (match) {
5831
+ hour = parseInt(match[1], 10);
5832
+ }
5833
+ } else if (typeof time === 'number') {
5834
+ hour = time;
5835
+ }
5836
+ // 判断时间段
5837
+ if (hour >= 5 && hour < 12) {
5838
+ return '上午';
5839
+ } else if (hour >= 12 && hour < 18) {
5840
+ return '下午';
5841
+ } else {
5842
+ return '晚上';
5843
+ }
5869
5844
  };
5870
5845
 
5871
5846
  /***/ }),
@@ -7241,7 +7216,7 @@ function redirectToLoginPage(loginPage, next) {
7241
7216
  * @param {function} callback - 回调函数
7242
7217
  **/
7243
7218
  var getMainConfig = function getMainConfig(callback) {
7244
- ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "pb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
7219
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "tb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
7245
7220
  if (res && res.rCode === 0) {
7246
7221
  callback(res.results);
7247
7222
  }
@@ -7264,7 +7239,7 @@ var getSysCodeList = function getSysCodeList(_ref4) {
7264
7239
  method = _ref4$method === undefined ? 'POST' : _ref4$method,
7265
7240
  service = _ref4.service,
7266
7241
  _ref4$url = _ref4.url,
7267
- url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "B"] : _ref4$url,
7242
+ url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "C"] : _ref4$url,
7268
7243
  sysCode = _ref4.sysCode,
7269
7244
  _ref4$param = _ref4.param,
7270
7245
  param = _ref4$param === undefined ? {} : _ref4$param,
@@ -7374,7 +7349,7 @@ var downloadFile = function downloadFile(_ref6) {
7374
7349
  file = _ref6.file,
7375
7350
  withToken = _ref6.withToken;
7376
7351
 
7377
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "w"] };
7352
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "x"] };
7378
7353
 
7379
7354
  var downloadUrl = '';
7380
7355
  if (file.adjunctId || file.response && file.response.adjunctId) {
@@ -7437,7 +7412,7 @@ var downloadZip = function downloadZip(_ref7) {
7437
7412
  code = _ref7.code,
7438
7413
  option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
7439
7414
 
7440
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Oc"] };
7415
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Sc"] };
7441
7416
 
7442
7417
  // 处理URL和参数
7443
7418
  var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
@@ -7489,7 +7464,7 @@ var deleteFile = function deleteFile(_ref8) {
7489
7464
  onSuccess = _ref8.onSuccess,
7490
7465
  onError = _ref8.onError;
7491
7466
 
7492
- var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "n"] + '\' }');
7467
+ var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "o"] + '\' }');
7493
7468
 
7494
7469
  // 处理URL和参数
7495
7470
  var deleteUrl = url ? url : dochubConfig.deleteDocumentUrl;