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
package/lib/selector.js CHANGED
@@ -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 = 252);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 253);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3507,14 +3507,14 @@ module.exports = require("eoss/lib/input");
3507
3507
 
3508
3508
  /***/ }),
3509
3509
 
3510
- /***/ 147:
3510
+ /***/ 148:
3511
3511
  /***/ (function(module, exports) {
3512
3512
 
3513
3513
  module.exports = require("eoss/lib/autocomplete");
3514
3514
 
3515
3515
  /***/ }),
3516
3516
 
3517
- /***/ 148:
3517
+ /***/ 149:
3518
3518
  /***/ (function(module, exports) {
3519
3519
 
3520
3520
  module.exports = require("eoss/lib/selector-panel");
@@ -3767,7 +3767,7 @@ module.exports = require("fetch-request-source");
3767
3767
 
3768
3768
  /***/ }),
3769
3769
 
3770
- /***/ 252:
3770
+ /***/ 253:
3771
3771
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3772
3772
 
3773
3773
  "use strict";
@@ -4044,7 +4044,7 @@ var storage = __webpack_require__(0);
4044
4044
  var bar = __webpack_require__(57);
4045
4045
 
4046
4046
  // EXTERNAL MODULE: external "eoss/lib/autocomplete"
4047
- var autocomplete_ = __webpack_require__(147);
4047
+ var autocomplete_ = __webpack_require__(148);
4048
4048
  var autocomplete_default = /*#__PURE__*/__webpack_require__.n(autocomplete_);
4049
4049
 
4050
4050
  // EXTERNAL MODULE: external "eoss/lib/button"
@@ -4068,7 +4068,7 @@ var tag_ = __webpack_require__(67);
4068
4068
  var tag_default = /*#__PURE__*/__webpack_require__.n(tag_);
4069
4069
 
4070
4070
  // EXTERNAL MODULE: external "eoss/lib/selector-panel"
4071
- var selector_panel_ = __webpack_require__(148);
4071
+ var selector_panel_ = __webpack_require__(149);
4072
4072
  var selector_panel_default = /*#__PURE__*/__webpack_require__.n(selector_panel_);
4073
4073
 
4074
4074
  // EXTERNAL MODULE: ./src/utils/resize-event.js
@@ -4320,7 +4320,7 @@ var scrollbar = __webpack_require__(22);
4320
4320
  */
4321
4321
  action: {
4322
4322
  type: String,
4323
- default: api["X" /* getSelectorOrgDetail */]
4323
+ default: api["Z" /* getSelectorOrgDetail */]
4324
4324
  },
4325
4325
  /**
4326
4326
  * 主机地址
@@ -4809,7 +4809,7 @@ var scrollbar = __webpack_require__(22);
4809
4809
  return;
4810
4810
  }
4811
4811
  Object(ajax["a" /* ajax */])({
4812
- url: api["Z" /* getSysParam */],
4812
+ url: api["bb" /* getSysParam */],
4813
4813
  params: {
4814
4814
  paramCode: 'sysorgname,sysdepname'
4815
4815
  }
@@ -6281,146 +6281,146 @@ function renderThumbStyle(_ref3) {
6281
6281
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6282
6282
 
6283
6283
  "use strict";
6284
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCaLogin; });
6285
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doUserLogin; });
6286
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doQrLogin; });
6287
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return logout; });
6288
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initLogin; });
6289
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return switchUserTo; });
6284
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doCaLogin; });
6285
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doUserLogin; });
6286
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doQrLogin; });
6287
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return logout; });
6288
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return initLogin; });
6289
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return switchUserTo; });
6290
6290
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
6291
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getLoginCode; });
6292
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doCodeLogin; });
6291
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getLoginCode; });
6292
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCodeLogin; });
6293
6293
  /* unused harmony export updateCode */
6294
- /* unused harmony export getModifyPassCode */
6295
- /* unused harmony export codeModifyPass */
6296
- /* unused harmony export loginModifyPassword */
6294
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getModifyPassCode; });
6295
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
6296
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return loginModifyPassword; });
6297
6297
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
6298
- /* unused harmony export initModifyPassword */
6298
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return initModifyPassword; });
6299
6299
  /* unused harmony export doWechatQrLogin */
6300
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getTwoFactorLoginCode; });
6300
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getTwoFactorLoginCode; });
6301
6301
  /* unused harmony export doTwoFactorLogin */
6302
6302
  /* unused harmony export initRetrialAuth */
6303
6303
  /* unused harmony export getRetrialAuthCode */
6304
6304
  /* unused harmony export scanCodeRetrialAuth */
6305
6305
  /* unused harmony export codeRetrialAuth */
6306
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return doAssistanceQrLogin; });
6307
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return userOnline; });
6308
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserAppWithTag; });
6309
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return recordUserApp; });
6310
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getUserRecordApp; });
6311
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return mainConfig; });
6312
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return initUserSet; });
6313
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return updateUserInfo; });
6306
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doAssistanceQrLogin; });
6307
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return userOnline; });
6308
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getUserAppWithTag; });
6309
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return recordUserApp; });
6310
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUserRecordApp; });
6311
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return mainConfig; });
6312
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initUserSet; });
6313
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return updateUserInfo; });
6314
6314
  /* unused harmony export getUserImgUrl */
6315
6315
  /* unused harmony export getDoorIndex */
6316
6316
  /* unused harmony export refreshOnlineUsers */
6317
6317
  /* unused harmony export getQuickMenuIds */
6318
6318
  /* unused harmony export getApplicationIdArray */
6319
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getComplexApplications; });
6320
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getComplexApplicationsNew; });
6321
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getMainAppWithTag; });
6322
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getByType; });
6319
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getComplexApplications; });
6320
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplicationsNew; });
6321
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getMainAppWithTag; });
6322
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getByType; });
6323
6323
  /* unused harmony export getUserCustomInfo */
6324
6324
  /* unused harmony export updateUserCustomInfo */
6325
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return saveOrUpdate; });
6326
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return sysMsgPage; });
6327
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return ignoreSysMsg; });
6328
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreAllSysMsg; });
6329
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return searchType; });
6330
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParam; });
6331
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getAdjunctProperties; });
6332
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return uploads; });
6333
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploadOnlyOne; });
6334
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctFileInfos; });
6325
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return saveOrUpdate; });
6326
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sysMsgPage; });
6327
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return ignoreSysMsg; });
6328
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return ignoreAllSysMsg; });
6329
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return searchType; });
6330
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSysParam; });
6331
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctProperties; });
6332
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return uploads; });
6333
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return uploadOnlyOne; });
6334
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getAdjunctFileInfos; });
6335
6335
  /* unused harmony export uploadSort */
6336
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return downloadByAdjunctId; });
6337
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadDownloads; });
6338
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct; });
6339
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunct2; });
6340
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return previewAdjunctOffice; });
6341
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return delAdjunct; });
6336
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return downloadByAdjunctId; });
6337
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return uploadDownloads; });
6338
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return previewAdjunct; });
6339
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return previewAdjunct2; });
6340
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return previewAdjunctOffice; });
6341
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return delAdjunct; });
6342
6342
  /* unused harmony export upload_updateClassify */
6343
6343
  /* unused harmony export getDeleteAdjunctFileInfos */
6344
6344
  /* unused harmony export getPictureBase64 */
6345
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSelectorOrgTree; });
6346
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getSelectorOrgDetail; });
6347
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getOrgMainTree; });
6345
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getSelectorOrgTree; });
6346
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSelectorOrgDetail; });
6347
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getOrgMainTree; });
6348
6348
  /* unused harmony export getSelectOrgsubids */
6349
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCode; });
6349
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findSysCode; });
6350
6350
  /* unused harmony export getDictList */
6351
6351
  /* unused harmony export findUserBaseInfo */
6352
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return gethelpdoc; });
6352
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return gethelpdoc; });
6353
6353
  /* unused harmony export getCurrentuser */
6354
6354
  /* unused harmony export mainDetail */
6355
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartFlow; });
6356
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tempSave; });
6357
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return commonOpion; });
6355
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toStartFlow; });
6356
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return tempSave; });
6357
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return commonOpion; });
6358
6358
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
6359
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return editCommonOpion; });
6360
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveCommonOpinion; });
6361
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateCommonOpinion; });
6362
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteCommonOpion; });
6363
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getProcessDefList; });
6364
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfo; });
6365
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return findCodeValues; });
6366
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysParam; });
6367
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findSysCodes; });
6368
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getNotificationMsg; });
6369
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getHandleInfoHtml; });
6370
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskHandleHtml; });
6359
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return editCommonOpion; });
6360
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return saveCommonOpinion; });
6361
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return updateCommonOpinion; });
6362
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return deleteCommonOpion; });
6363
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getProcessDefList; });
6364
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getNodeInfo; });
6365
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findCodeValues; });
6366
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysParam; });
6367
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCodes; });
6368
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNotificationMsg; });
6369
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getHandleInfoHtml; });
6370
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskHandleHtml; });
6371
6371
  /* unused harmony export getView */
6372
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return register; });
6373
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return pendedhistoryList; });
6374
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskRejectHtml; });
6375
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskRejectHtml; });
6376
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskRead; });
6377
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toStartTaskReadIndex; });
6378
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskReadHtml; });
6379
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return rejectAndEnd; });
6380
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toSendMsg; });
6381
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return sendMsg; });
6382
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return endFlowHtml; });
6383
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return handleInfo; });
6384
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return loginUserInfo; });
6385
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return wss; });
6386
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return topic; });
6387
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetCustomInfo; });
6388
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getPresetNodeInfo; });
6389
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskTransferIndex; });
6390
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskTransfer; });
6372
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return register; });
6373
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pendedhistoryList; });
6374
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskRejectHtml; });
6375
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskRejectHtml; });
6376
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toStartTaskRead; });
6377
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toStartTaskReadIndex; });
6378
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskReadHtml; });
6379
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return rejectAndEnd; });
6380
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toSendMsg; });
6381
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return sendMsg; });
6382
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowHtml; });
6383
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return handleInfo; });
6384
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return loginUserInfo; });
6385
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return wss; });
6386
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return topic; });
6387
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getPresetCustomInfo; });
6388
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetNodeInfo; });
6389
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskTransferIndex; });
6390
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskTransfer; });
6391
6391
  /* unused harmony export toPresetInfoListIndex */
6392
6392
  /* unused harmony export deletePresetInfo */
6393
6393
  /* unused harmony export historyListJson */
6394
6394
  /* unused harmony export pendedhistoryListJson */
6395
6395
  /* unused harmony export pressListJson */
6396
6396
  /* unused harmony export deleteFlow */
6397
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return isCanStartSubFlow; });
6398
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionExamine; });
6399
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionExamine; });
6400
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTakeAdvice; });
6401
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTakeAdvice; });
6402
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskStartDraft; });
6403
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSupervise; });
6404
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskSuperviseSub; });
6405
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskStartDraft; });
6406
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskReview; });
6407
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskReview; });
6408
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskUnionSeal; });
6409
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskUnionSeal; });
6410
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTwoOfficesDispatch; });
6411
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return twoOfficesDispatch; });
6412
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toResetProcessIndex; });
6413
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return resetProcess; });
6414
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskContinuationIndex; });
6415
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskContinuation; });
6416
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getFreeStartFlowParams; });
6417
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeStartFlowWithSubmitTask; });
6397
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return isCanStartSubFlow; });
6398
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskUnionExamine; });
6399
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskUnionExamine; });
6400
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskTakeAdvice; });
6401
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskTakeAdvice; });
6402
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskStartDraft; });
6403
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskSupervise; });
6404
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskSuperviseSub; });
6405
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskStartDraft; });
6406
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskReview; });
6407
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskReview; });
6408
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskUnionSeal; });
6409
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskUnionSeal; });
6410
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTwoOfficesDispatch; });
6411
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return twoOfficesDispatch; });
6412
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toResetProcessIndex; });
6413
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return resetProcess; });
6414
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskContinuationIndex; });
6415
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskContinuation; });
6416
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getFreeStartFlowParams; });
6417
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlowWithSubmitTask; });
6418
6418
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
6419
6419
  /* unused harmony export pendedhistoryListWithCircularReadJson */
6420
6420
  /* unused harmony export fyListJson */
6421
6421
  /* unused harmony export circularReadWithdraw */
6422
6422
  /* unused harmony export taskReadWithDraw */
6423
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
6423
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
6424
6424
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
6425
6425
  /* unused harmony export sendList */
6426
6426
  /* unused harmony export sendInfo */
@@ -6429,56 +6429,56 @@ function renderThumbStyle(_ref3) {
6429
6429
  /* unused harmony export sendDelete */
6430
6430
  /* unused harmony export sendBatch */
6431
6431
  /* unused harmony export formContents */
6432
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return directStartTaskCircularRead; });
6433
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowAndStartTaskCircularRead; });
6434
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNodeInfoForStart; });
6435
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlow; });
6436
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUrgencyLevelChangedNotificationType; });
6437
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toFreeTaskCircularRead; });
6438
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeTaskCircularRead; });
6439
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageLists; });
6432
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return directStartTaskCircularRead; });
6433
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return endFlowAndStartTaskCircularRead; });
6434
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfoForStart; });
6435
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeStartFlow; });
6436
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getUrgencyLevelChangedNotificationType; });
6437
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toFreeTaskCircularRead; });
6438
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeTaskCircularRead; });
6439
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return pageLists; });
6440
6440
  /* unused harmony export publishedLists */
6441
6441
  /* unused harmony export pageInfo */
6442
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageGroup; });
6443
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageSave; });
6444
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pageUpdate; });
6445
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageDelete; });
6442
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return pageGroup; });
6443
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageSave; });
6444
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageUpdate; });
6445
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pageDelete; });
6446
6446
  /* unused harmony export pageTargetDelete */
6447
6447
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
6448
6448
  /* unused harmony export batchUpdate */
6449
6449
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
6450
6450
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
6451
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processListJson; });
6452
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processInfo; });
6453
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processDeleteJson; });
6454
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processSave; });
6455
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return processUpdate; });
6456
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeListJson; });
6457
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return nodeDeleteJson; });
6458
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return nodeSave; });
6459
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return nodeUpdate; });
6460
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeInfo; });
6461
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleListJson; });
6462
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return moduleInfo; });
6463
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return moduleDelete; });
6464
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleSave; });
6465
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return moduleUpdate; });
6466
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleListJson; });
6467
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleEdit; });
6468
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleRead; });
6469
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleSave; });
6451
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return processListJson; });
6452
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return processInfo; });
6453
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return processDeleteJson; });
6454
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processSave; });
6455
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processUpdate; });
6456
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return nodeListJson; });
6457
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return nodeDeleteJson; });
6458
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeSave; });
6459
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeUpdate; });
6460
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return nodeInfo; });
6461
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return moduleListJson; });
6462
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return moduleInfo; });
6463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return moduleDelete; });
6464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleSave; });
6465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleUpdate; });
6466
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return ruleListJson; });
6467
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return ruleEdit; });
6468
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleRead; });
6469
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleSave; });
6470
6470
  /* unused harmony export ruleSupplement */
6471
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return ruleUndore; });
6472
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleAdd; });
6473
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyDetail; });
6471
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleUndore; });
6472
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleAdd; });
6473
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return companyDetail; });
6474
6474
  /* unused harmony export issueDetailList */
6475
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return deleteRule; });
6476
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getSysParamV1; });
6477
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return companyList; });
6478
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return supplement; });
6479
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isAddSource; });
6480
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return tiggerInTime; });
6481
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateHistory; });
6475
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteRule; });
6476
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSysParamV1; });
6477
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyList; });
6478
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return supplement; });
6479
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return isAddSource; });
6480
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return tiggerInTime; });
6481
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return updateHistory; });
6482
6482
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
6483
6483
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
6484
6484
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
@@ -6907,759 +6907,736 @@ module.exports = require("eoss/lib/tag");
6907
6907
  /* unused harmony export getSecond */
6908
6908
  /* unused harmony export getWeekday */
6909
6909
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
6910
- /* Modified from https://github.com/taylorhakes/fecha
6911
- *
6912
- * The MIT License (MIT)
6913
- *
6914
- * Copyright (c) 2015 Taylor Hakes
6915
- *
6916
- * Permission is hereby granted, free of charge, to any person obtaining a copy
6917
- * of this software and associated documentation files (the "Software"), to deal
6918
- * in the Software without restriction, including without limitation the rights
6919
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6920
- * copies of the Software, and to permit persons to whom the Software is
6921
- * furnished to do so, subject to the following conditions:
6922
- *
6923
- * The above copyright notice and this permission notice shall be included in all
6924
- * copies or substantial portions of the Software.
6925
- *
6926
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6927
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6928
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6929
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6930
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
6931
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6932
- * SOFTWARE.
6933
- */
6934
-
6935
- /*eslint-disable*/
6936
- // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
6937
-
6938
-
6910
+
6911
+
6939
6912
  /**
6940
6913
  * Parse or format dates
6941
6914
  * @class fecha
6942
- */
6943
- const fecha = {};
6944
- const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6945
- const twoDigits = '\\d\\d?';
6946
- const threeDigits = '\\d{3}';
6947
- const fourDigits = '\\d{4}';
6948
- const word = '[^\\s]+';
6949
- const literal = /\[([^]*?)\]/gm;
6950
- const noop = function () {};
6951
-
6952
- function regexEscape(str) {
6953
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6954
- }
6955
-
6956
- function shorten(arr, sLen) {
6957
- const newArr = [];
6958
- for (let i = 0, len = arr.length; i < len; i++) {
6959
- newArr.push(arr[i].substr(0, sLen));
6960
- }
6961
- return newArr;
6962
- }
6963
-
6964
- function monthUpdate() {
6965
- return function (d, v) {
6966
- const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6967
- if (~index) {
6968
- d.month = index;
6969
- }
6970
- };
6971
- }
6972
-
6973
- function pad(val, len) {
6974
- val = String(val);
6975
- len = len || 2;
6976
- while (val.length < len) {
6977
- val = '0' + val;
6978
- }
6979
- return val;
6980
- }
6981
-
6982
- // 直接使用中文日期名称常量
6983
- const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6984
- const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6985
- const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6986
- const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6987
- const amPm = ['上午', '下午'];
6988
- const DoFn = function DoFn(D) {
6989
- return D + '日';
6990
- };
6991
-
6992
- const formatFlags = {
6993
- D: function(dateObj) {
6994
- return dateObj.getDay();
6995
- },
6996
- DD: function(dateObj) {
6997
- return pad(dateObj.getDay());
6998
- },
6999
- Do: function(dateObj) {
7000
- return DoFn(dateObj.getDate());
7001
- },
7002
- d: function(dateObj) {
7003
- return dateObj.getDate();
7004
- },
7005
- dd: function(dateObj) {
7006
- return pad(dateObj.getDate());
7007
- },
7008
- ddd: function(dateObj) {
7009
- return dayNamesShort[dateObj.getDay()];
7010
- },
7011
- dddd: function(dateObj) {
7012
- return dayNames[dateObj.getDay()];
7013
- },
7014
- M: function(dateObj) {
7015
- return dateObj.getMonth() + 1;
7016
- },
7017
- MM: function(dateObj) {
7018
- return pad(dateObj.getMonth() + 1);
7019
- },
7020
- MMM: function(dateObj) {
7021
- return monthNamesShort[dateObj.getMonth()];
7022
- },
7023
- MMMM: function(dateObj) {
7024
- return monthNames[dateObj.getMonth()];
7025
- },
7026
- yy: function(dateObj) {
7027
- return pad(String(dateObj.getFullYear()), 4).substr(2);
7028
- },
7029
- yyyy: function(dateObj) {
7030
- return pad(dateObj.getFullYear(), 4);
7031
- },
7032
- h: function(dateObj) {
7033
- return dateObj.getHours() % 12 || 12;
7034
- },
7035
- hh: function(dateObj) {
7036
- return pad(dateObj.getHours() % 12 || 12);
7037
- },
7038
- H: function(dateObj) {
7039
- return dateObj.getHours();
7040
- },
7041
- HH: function(dateObj) {
7042
- return pad(dateObj.getHours());
7043
- },
7044
- m: function(dateObj) {
7045
- return dateObj.getMinutes();
7046
- },
7047
- mm: function(dateObj) {
7048
- return pad(dateObj.getMinutes());
7049
- },
7050
- s: function(dateObj) {
7051
- return dateObj.getSeconds();
7052
- },
7053
- ss: function(dateObj) {
7054
- return pad(dateObj.getSeconds());
7055
- },
7056
- S: function(dateObj) {
7057
- return Math.round(dateObj.getMilliseconds() / 100);
7058
- },
7059
- SS: function(dateObj) {
7060
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
7061
- },
7062
- SSS: function(dateObj) {
7063
- return pad(dateObj.getMilliseconds(), 3);
7064
- },
7065
- a: function(dateObj) {
7066
- return dateObj.getHours() < 12 ? '上午' : '下午';
7067
- },
7068
- A: function(dateObj) {
7069
- return dateObj.getHours() < 12 ? '上午' : '下午';
7070
- },
7071
- ZZ: function(dateObj) {
7072
- const o = dateObj.getTimezoneOffset();
7073
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
7074
- }
7075
- };
7076
-
7077
- const parseFlags = {
7078
- d: [twoDigits, function (d, v) {
7079
- d.day = v;
7080
- }],
7081
- Do: [twoDigits + word, function (d, v) {
7082
- d.day = parseInt(v, 10);
7083
- }],
7084
- M: [twoDigits, function (d, v) {
7085
- d.month = v - 1;
7086
- }],
7087
- yy: [twoDigits, function (d, v) {
7088
- const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
7089
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
7090
- }],
7091
- h: [twoDigits, function (d, v) {
7092
- d.hour = v;
7093
- }],
7094
- m: [twoDigits, function (d, v) {
7095
- d.minute = v;
7096
- }],
7097
- s: [twoDigits, function (d, v) {
7098
- d.second = v;
7099
- }],
7100
- yyyy: [fourDigits, function (d, v) {
7101
- d.year = v;
7102
- }],
7103
- S: ['\\d', function (d, v) {
7104
- d.millisecond = v * 100;
7105
- }],
7106
- SS: ['\\d{2}', function (d, v) {
7107
- d.millisecond = v * 10;
7108
- }],
7109
- SSS: [threeDigits, function (d, v) {
7110
- d.millisecond = v;
7111
- }],
7112
- D: [twoDigits, noop],
7113
- ddd: [word, noop],
7114
- MMM: [word, monthUpdate('monthNamesShort')],
7115
- MMMM: [word, monthUpdate('monthNames')],
7116
- a: [word, function (d, v) {
7117
- const val = v.toLowerCase();
7118
- if (val === '上午') {
7119
- d.isPm = false;
7120
- } else if (val === '下午') {
7121
- d.isPm = true;
7122
- }
7123
- }],
7124
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
7125
- let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
7126
-
7127
- if (parts) {
7128
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
7129
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
7130
- }
7131
- }]
7132
- };
7133
- parseFlags.dd = parseFlags.d;
7134
- parseFlags.dddd = parseFlags.ddd;
7135
- parseFlags.DD = parseFlags.D;
7136
- parseFlags.mm = parseFlags.m;
7137
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
7138
- parseFlags.MM = parseFlags.M;
7139
- parseFlags.ss = parseFlags.s;
7140
- parseFlags.A = parseFlags.a;
7141
-
7142
-
7143
- // Some common format strings
7144
- fecha.masks = {
7145
- default: 'ddd MMM dd yyyy HH:mm:ss',
7146
- shortDate: 'M/D/yy',
7147
- mediumDate: 'MMM d, yyyy',
7148
- longDate: 'MMMM d, yyyy',
7149
- fullDate: 'dddd, MMMM d, yyyy',
7150
- shortTime: 'HH:mm',
7151
- mediumTime: 'HH:mm:ss',
7152
- longTime: 'HH:mm:ss.SSS'
7153
- };
7154
-
6915
+ */
6916
+ var fecha = {};
6917
+ var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6918
+ var twoDigits = '\\d\\d?';
6919
+ var threeDigits = '\\d{3}';
6920
+ var fourDigits = '\\d{4}';
6921
+ var word = '[^\\s]+';
6922
+ var literal = /\[([^]*?)\]/gm;
6923
+ var noop = function noop() {};
6924
+
6925
+ function regexEscape(str) {
6926
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6927
+ }
6928
+
6929
+ function shorten(arr, sLen) {
6930
+ var newArr = [];
6931
+ for (var i = 0, len = arr.length; i < len; i++) {
6932
+ newArr.push(arr[i].substr(0, sLen));
6933
+ }
6934
+ return newArr;
6935
+ }
6936
+
6937
+ function monthUpdate() {
6938
+ return function (d, v) {
6939
+ var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6940
+ if (~index) {
6941
+ d.month = index;
6942
+ }
6943
+ };
6944
+ }
6945
+
6946
+ function pad(val, len) {
6947
+ val = String(val);
6948
+ len = len || 2;
6949
+ while (val.length < len) {
6950
+ val = '0' + val;
6951
+ }
6952
+ return val;
6953
+ }
6954
+
6955
+ // 直接使用中文日期名称常量
6956
+ var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6957
+ var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6958
+ var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6959
+ var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6960
+ var amPm = ['上午', '下午'];
6961
+ var DoFn = function DoFn(D) {
6962
+ return D + '日';
6963
+ };
6964
+
6965
+ var formatFlags = {
6966
+ D: function D(dateObj) {
6967
+ return dateObj.getDay();
6968
+ },
6969
+ DD: function DD(dateObj) {
6970
+ return pad(dateObj.getDay());
6971
+ },
6972
+ Do: function Do(dateObj) {
6973
+ return DoFn(dateObj.getDate());
6974
+ },
6975
+ d: function d(dateObj) {
6976
+ return dateObj.getDate();
6977
+ },
6978
+ dd: function dd(dateObj) {
6979
+ return pad(dateObj.getDate());
6980
+ },
6981
+ ddd: function ddd(dateObj) {
6982
+ return dayNamesShort[dateObj.getDay()];
6983
+ },
6984
+ dddd: function dddd(dateObj) {
6985
+ return dayNames[dateObj.getDay()];
6986
+ },
6987
+ M: function M(dateObj) {
6988
+ return dateObj.getMonth() + 1;
6989
+ },
6990
+ MM: function MM(dateObj) {
6991
+ return pad(dateObj.getMonth() + 1);
6992
+ },
6993
+ MMM: function MMM(dateObj) {
6994
+ return monthNamesShort[dateObj.getMonth()];
6995
+ },
6996
+ MMMM: function MMMM(dateObj) {
6997
+ return monthNames[dateObj.getMonth()];
6998
+ },
6999
+ yy: function yy(dateObj) {
7000
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
7001
+ },
7002
+ yyyy: function yyyy(dateObj) {
7003
+ return pad(dateObj.getFullYear(), 4);
7004
+ },
7005
+ h: function h(dateObj) {
7006
+ return dateObj.getHours() % 12 || 12;
7007
+ },
7008
+ hh: function hh(dateObj) {
7009
+ return pad(dateObj.getHours() % 12 || 12);
7010
+ },
7011
+ H: function H(dateObj) {
7012
+ return dateObj.getHours();
7013
+ },
7014
+ HH: function HH(dateObj) {
7015
+ return pad(dateObj.getHours());
7016
+ },
7017
+ m: function m(dateObj) {
7018
+ return dateObj.getMinutes();
7019
+ },
7020
+ mm: function mm(dateObj) {
7021
+ return pad(dateObj.getMinutes());
7022
+ },
7023
+ s: function s(dateObj) {
7024
+ return dateObj.getSeconds();
7025
+ },
7026
+ ss: function ss(dateObj) {
7027
+ return pad(dateObj.getSeconds());
7028
+ },
7029
+ S: function S(dateObj) {
7030
+ return Math.round(dateObj.getMilliseconds() / 100);
7031
+ },
7032
+ SS: function SS(dateObj) {
7033
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
7034
+ },
7035
+ SSS: function SSS(dateObj) {
7036
+ return pad(dateObj.getMilliseconds(), 3);
7037
+ },
7038
+ a: function a(dateObj) {
7039
+ return dateObj.getHours() < 12 ? '上午' : '下午';
7040
+ },
7041
+ A: function A(dateObj) {
7042
+ return dateObj.getHours() < 12 ? '上午' : '下午';
7043
+ },
7044
+ ZZ: function ZZ(dateObj) {
7045
+ var o = dateObj.getTimezoneOffset();
7046
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
7047
+ }
7048
+ };
7049
+
7050
+ var parseFlags = {
7051
+ d: [twoDigits, function (d, v) {
7052
+ d.day = v;
7053
+ }],
7054
+ Do: [twoDigits + word, function (d, v) {
7055
+ d.day = parseInt(v, 10);
7056
+ }],
7057
+ M: [twoDigits, function (d, v) {
7058
+ d.month = v - 1;
7059
+ }],
7060
+ yy: [twoDigits, function (d, v) {
7061
+ var da = new Date(),
7062
+ cent = +('' + da.getFullYear()).substr(0, 2);
7063
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
7064
+ }],
7065
+ h: [twoDigits, function (d, v) {
7066
+ d.hour = v;
7067
+ }],
7068
+ m: [twoDigits, function (d, v) {
7069
+ d.minute = v;
7070
+ }],
7071
+ s: [twoDigits, function (d, v) {
7072
+ d.second = v;
7073
+ }],
7074
+ yyyy: [fourDigits, function (d, v) {
7075
+ d.year = v;
7076
+ }],
7077
+ S: ['\\d', function (d, v) {
7078
+ d.millisecond = v * 100;
7079
+ }],
7080
+ SS: ['\\d{2}', function (d, v) {
7081
+ d.millisecond = v * 10;
7082
+ }],
7083
+ SSS: [threeDigits, function (d, v) {
7084
+ d.millisecond = v;
7085
+ }],
7086
+ D: [twoDigits, noop],
7087
+ ddd: [word, noop],
7088
+ MMM: [word, monthUpdate('monthNamesShort')],
7089
+ MMMM: [word, monthUpdate('monthNames')],
7090
+ a: [word, function (d, v) {
7091
+ var val = v.toLowerCase();
7092
+ if (val === '上午') {
7093
+ d.isPm = false;
7094
+ } else if (val === '下午') {
7095
+ d.isPm = true;
7096
+ }
7097
+ }],
7098
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
7099
+ var parts = (v + '').match(/([+-]|\d\d)/gi),
7100
+ minutes = void 0;
7101
+
7102
+ if (parts) {
7103
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
7104
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
7105
+ }
7106
+ }]
7107
+ };
7108
+ parseFlags.dd = parseFlags.d;
7109
+ parseFlags.dddd = parseFlags.ddd;
7110
+ parseFlags.DD = parseFlags.D;
7111
+ parseFlags.mm = parseFlags.m;
7112
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
7113
+ parseFlags.MM = parseFlags.M;
7114
+ parseFlags.ss = parseFlags.s;
7115
+ parseFlags.A = parseFlags.a;
7116
+
7117
+ // Some common format strings
7118
+ fecha.masks = {
7119
+ default: 'ddd MMM dd yyyy HH:mm:ss',
7120
+ shortDate: 'M/D/yy',
7121
+ mediumDate: 'MMM d, yyyy',
7122
+ longDate: 'MMMM d, yyyy',
7123
+ fullDate: 'dddd, MMMM d, yyyy',
7124
+ shortTime: 'HH:mm',
7125
+ mediumTime: 'HH:mm:ss',
7126
+ longTime: 'HH:mm:ss.SSS'
7127
+ };
7128
+
7155
7129
  /***
7156
7130
  * Format a date
7157
7131
  * @method format
7158
7132
  * @param {Date|number} dateObj
7159
7133
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
7160
- */
7161
- fecha.format = function (dateObj, mask) {
7162
- if (typeof dateObj === 'number') {
7163
- dateObj = new Date(dateObj);
7164
- }
7165
-
7166
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
7167
- throw new Error('Invalid Date in fecha.format');
7168
- }
7169
-
7170
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
7171
-
7172
- const literals = [];
7173
-
7174
- // Make literals inactive by replacing them with ??
7175
- mask = mask.replace(literal, function($0, $1) {
7176
- literals.push($1);
7177
- return '@@@';
7178
- });
7179
- // Apply formatting rules
7180
- mask = mask.replace(token, function ($0) {
7181
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
7182
- });
7183
- // Inline literal values back into the formatted value
7184
- return mask.replace(/@@@/g, function() {
7185
- return literals.shift();
7186
- });
7187
- };
7188
-
7134
+ */
7135
+ fecha.format = function (dateObj, mask) {
7136
+ if (typeof dateObj === 'number') {
7137
+ dateObj = new Date(dateObj);
7138
+ }
7139
+
7140
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
7141
+ throw new Error('Invalid Date in fecha.format');
7142
+ }
7143
+
7144
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
7145
+
7146
+ var literals = [];
7147
+
7148
+ // Make literals inactive by replacing them with ??
7149
+ mask = mask.replace(literal, function ($0, $1) {
7150
+ literals.push($1);
7151
+ return '@@@';
7152
+ });
7153
+ // Apply formatting rules
7154
+ mask = mask.replace(token, function ($0) {
7155
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
7156
+ });
7157
+ // Inline literal values back into the formatted value
7158
+ return mask.replace(/@@@/g, function () {
7159
+ return literals.shift();
7160
+ });
7161
+ };
7162
+
7189
7163
  /**
7190
7164
  * Parse a date string into an object, changes - into /
7191
7165
  * @method parse
7192
7166
  * @param {string} dateStr Date string
7193
7167
  * @param {string} format Date parse format
7194
7168
  * @returns {Date|boolean}
7195
- */
7196
- fecha.parse = function (dateStr, format) {
7197
- if (typeof format !== 'string') {
7198
- throw new Error('Invalid format in fecha.parse');
7199
- }
7200
-
7201
- format = fecha.masks[format] || format;
7202
-
7203
- // Avoid regular expression denial of service, fail early for really long strings
7204
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
7205
- if (dateStr.length > 1000) {
7206
- return null;
7207
- }
7208
-
7209
- const dateInfo = {};
7210
- const parseInfo = [];
7211
- const literals = [];
7212
- format = format.replace(literal, function($0, $1) {
7213
- literals.push($1);
7214
- return '@@@';
7215
- });
7216
- let newFormat = regexEscape(format).replace(token, function ($0) {
7217
- if (parseFlags[$0]) {
7218
- const info = parseFlags[$0];
7219
- parseInfo.push(info[1]);
7220
- return '(' + info[0] + ')';
7221
- }
7222
-
7223
- return $0;
7224
- });
7225
- newFormat = newFormat.replace(/@@@/g, function() {
7226
- return literals.shift();
7227
- });
7228
- const matches = dateStr.match(new RegExp(newFormat, 'i'));
7229
- if (!matches) {
7230
- return null;
7231
- }
7232
-
7233
- for (let i = 1; i < matches.length; i++) {
7234
- parseInfo[i - 1](dateInfo, matches[i]);
7235
- }
7236
-
7237
- const today = new Date();
7238
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
7239
- dateInfo.hour = +dateInfo.hour + 12;
7240
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
7241
- dateInfo.hour = 0;
7242
- }
7243
-
7244
- let date;
7245
- if (dateInfo.timezoneOffset != null) {
7246
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
7247
- date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
7248
- dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
7249
- } else {
7250
- date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
7251
- dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
7252
- }
7253
- return date;
7254
- };
7255
-
7256
- // 导出fecha对象
7257
-
7258
-
7259
- // 以下是从date-util.js合并的函数
7260
- const newArray = function(start, end) {
7261
- let result = [];
7262
- for (let i = start; i <= end; i++) {
7263
- result.push(i);
7264
- }
7265
- return result;
7266
- };
7267
-
7268
- const getSettings = () => {
7269
- return {
7270
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
7271
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
7272
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
7273
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
7274
- amPm: ['上午', '下午']
7275
- };
7276
- };
7277
-
7278
- const toDate = function(date) {
7279
- return isDate(date) ? new Date(date) : null;
7280
- };
7281
-
7282
- const isDate = function(date) {
7283
- if (date === null || date === undefined) return false;
7284
- if (isNaN(new Date(date).getTime())) return false;
7285
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
7286
- return true;
7287
- };
7288
-
7289
- const isDateObject = function(val) {
7290
- return val instanceof Date;
7291
- };
7292
-
7293
- const formatDate = function (date, format = 'yyyy-MM-dd') {
7294
- // 处理多种输入类型
7295
- if (!date) return '';
7296
-
7297
- // 如果是时间戳,转成日期对象
7298
- if (typeof date === 'number') {
7299
- date = new Date(date);
7300
- }
7301
- // 如果是字符串,转成日期对象
7302
- if (typeof date === 'string') {
7303
- date = new Date(date);
7304
- }
7305
-
7306
- // 调用toDate进一步验证和转换
7307
- date = toDate(date);
7308
- if (!date) return '';
7309
-
7310
- // 兼容大写和小写的格式标记
7311
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
7312
- const lowercaseFormat = format
7313
- .replace(/YYYY/g, 'yyyy')
7314
- .replace(/D/g, 'd')
7315
-
7316
- // 使用fecha库进行格式化,支持中文配置
7317
- const str = fecha.format(date, lowercaseFormat, getSettings());
7318
- return str;
7319
- };
7320
-
7321
- const parseDate = function(string, format) {
7322
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
7323
- };
7324
-
7325
- const getDayCountOfMonth = function(year, month) {
7326
- if (month === 3 || month === 5 || month === 8 || month === 10) {
7327
- return 30;
7328
- }
7329
-
7330
- if (month === 1) {
7331
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
7332
- return 29;
7333
- } else {
7334
- return 28;
7335
- }
7336
- }
7337
-
7338
- return 31;
7339
- };
7340
-
7341
- const getDayCountOfYear = function(year) {
7342
- const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
7343
- return isLeapYear ? 366 : 365;
7344
- };
7345
-
7346
- const getFirstDayOfMonth = function(date) {
7347
- const temp = new Date(date.getTime());
7348
- temp.setDate(1);
7349
- return temp.getDay();
7350
- };
7351
-
7352
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
7353
- // {prev, next} Date should work for Daylight Saving Time
7354
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
7355
- const prevDate = function(date, amount = 1) {
7356
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
7357
- };
7358
-
7359
- const nextDate = function(date, amount = 1) {
7360
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
7361
- };
7362
-
7363
- const getStartDateOfMonth = function(year, month) {
7364
- const result = new Date(year, month, 1);
7365
- const day = result.getDay();
7366
-
7367
- if (day === 0) {
7368
- return prevDate(result, 7);
7369
- } else {
7370
- return prevDate(result, day);
7371
- }
7372
- };
7373
-
7374
- const getWeekNumber = function(date) {
7375
- // 支持多种输入类型
7376
- if (!date||!isDate(date)) {
7377
- date = new Date();
7378
- }
7379
- if (typeof date === 'string') {
7380
- date = new Date(date);
7381
- }
7382
-
7383
- // 验证日期有效性
7384
- if (!isDate(date)) return null;
7385
-
7386
- const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
7387
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
7388
- // 将星期日的星期数设为7
7389
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
7390
- // 获取当年的第一天
7391
- const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
7392
- // 计算到最近的星期四的完整周数
7393
- const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
7394
- // 返回周数
7395
- return weekNo;
7396
- };
7397
-
7398
- const getRangeHours = function(ranges) {
7399
- const hours = [];
7400
- let disabledHours = [];
7401
-
7402
- (ranges || []).forEach(range => {
7403
- const value = range.map(date => date.getHours());
7404
-
7405
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
7406
- });
7407
-
7408
- if (disabledHours.length) {
7409
- for (let i = 0; i < 24; i++) {
7410
- hours[i] = disabledHours.indexOf(i) === -1;
7411
- }
7412
- } else {
7413
- for (let i = 0; i < 24; i++) {
7414
- hours[i] = false;
7415
- }
7416
- }
7417
-
7418
- return hours;
7419
- };
7420
-
7421
- const getPrevMonthLastDays = (date, amount) => {
7422
- if (amount <= 0) return [];
7423
- const temp = new Date(date.getTime());
7424
- temp.setDate(0);
7425
- const lastDay = temp.getDate();
7426
- return range(amount).map((_, index) => lastDay - (amount - index - 1));
7427
- };
7428
-
7429
- const getMonthDays = (date) => {
7430
- const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
7431
- const days = temp.getDate();
7432
- return range(days).map((_, index) => index + 1);
7433
- };
7434
-
7435
- function setRangeData(arr, start, end, value) {
7436
- for (let i = start; i < end; i++) {
7437
- arr[i] = value;
7438
- }
7439
- }
7440
-
7441
- const getRangeMinutes = function(ranges, hour) {
7442
- const minutes = new Array(60);
7443
-
7444
- if (ranges.length > 0) {
7445
- ranges.forEach(range => {
7446
- const start = range[0];
7447
- const end = range[1];
7448
- const startHour = start.getHours();
7449
- const startMinute = start.getMinutes();
7450
- const endHour = end.getHours();
7451
- const endMinute = end.getMinutes();
7452
- if (startHour === hour && endHour !== hour) {
7453
- setRangeData(minutes, startMinute, 60, true);
7454
- } else if (startHour === hour && endHour === hour) {
7455
- setRangeData(minutes, startMinute, endMinute + 1, true);
7456
- } else if (startHour !== hour && endHour === hour) {
7457
- setRangeData(minutes, 0, endMinute + 1, true);
7458
- } else if (startHour < hour && endHour > hour) {
7459
- setRangeData(minutes, 0, 60, true);
7460
- }
7461
- });
7462
- } else {
7463
- setRangeData(minutes, 0, 60, true);
7464
- }
7465
- return minutes;
7466
- };
7467
-
7468
- const range = function(n) {
7469
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
7470
- return Array.apply(null, {length: n}).map((_, n) => n);
7471
- };
7472
-
7473
- const modifyDate = function(date, y, m, d) {
7474
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
7475
- };
7476
-
7477
- const modifyTime = function(date, h, m, s) {
7478
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
7479
- };
7480
-
7481
- const modifyWithTimeString = (date, time) => {
7482
- if (date == null || !time) {
7483
- return date;
7484
- }
7485
- time = parseDate(time, 'HH:mm:ss');
7486
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
7487
- };
7488
-
7489
- const clearTime = function(date) {
7490
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
7491
- };
7492
-
7493
- const clearMilliseconds = function(date) {
7494
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
7495
- };
7496
-
7497
- const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
7498
- // TODO: refactory a more elegant solution
7499
- if (ranges.length === 0) return date;
7500
- const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
7501
- const ndate = normalizeDate(date);
7502
- const nranges = ranges.map(range => range.map(normalizeDate));
7503
- if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
7504
-
7505
- let minDate = nranges[0][0];
7506
- let maxDate = nranges[0][0];
7507
-
7508
- nranges.forEach(nrange => {
7509
- minDate = new Date(Math.min(nrange[0], minDate));
7510
- maxDate = new Date(Math.max(nrange[1], minDate));
7511
- });
7512
-
7513
- const ret = ndate < minDate ? minDate : maxDate;
7514
- // preserve Year/Month/Date
7515
- return modifyDate(
7516
- ret,
7517
- date.getFullYear(),
7518
- date.getMonth(),
7519
- date.getDate()
7520
- );
7521
- };
7522
-
7523
- const timeWithinRange = function(date, selectableRange, format) {
7524
- const limitedDate = limitTimeRange(date, selectableRange, format);
7525
- return limitedDate.getTime() === date.getTime();
7526
- };
7527
-
7528
- const changeYearMonthAndClampDate = function(date, year, month) {
7529
- // clamp date to the number of days in `year`, `month`
7530
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
7531
- const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
7532
- return modifyDate(date, year, month, monthDate);
7533
- };
7534
-
7535
- const prevMonth = function(date) {
7536
- const year = date.getFullYear();
7537
- const month = date.getMonth();
7538
- return month === 0
7539
- ? changeYearMonthAndClampDate(date, year - 1, 11)
7540
- : changeYearMonthAndClampDate(date, year, month - 1);
7541
- };
7542
-
7543
- const nextMonth = function(date) {
7544
- const year = date.getFullYear();
7545
- const month = date.getMonth();
7546
- return month === 11
7547
- ? changeYearMonthAndClampDate(date, year + 1, 0)
7548
- : changeYearMonthAndClampDate(date, year, month + 1);
7549
- };
7550
-
7551
- const prevYear = function(date, amount = 1) {
7552
- const year = date.getFullYear();
7553
- const month = date.getMonth();
7554
- return changeYearMonthAndClampDate(date, year - amount, month);
7555
- };
7556
-
7557
- const nextYear = function(date, amount = 1) {
7558
- const year = date.getFullYear();
7559
- const month = date.getMonth();
7560
- return changeYearMonthAndClampDate(date, year + amount, month);
7561
- };
7562
-
7563
- const extractDateFormat = function(format) {
7564
- return format
7565
- .replace(/\W?m{1,2}|\W?ZZ/g, '')
7566
- .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
7567
- .trim();
7568
- };
7569
-
7570
- const extractTimeFormat = function(format) {
7571
- return format
7572
- .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
7573
- .trim();
7574
- };
7575
-
7576
- const validateRangeInOneMonth = function(start, end) {
7577
- return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
7578
- };
7579
-
7169
+ */
7170
+ fecha.parse = function (dateStr, format) {
7171
+ if (typeof format !== 'string') {
7172
+ throw new Error('Invalid format in fecha.parse');
7173
+ }
7174
+
7175
+ format = fecha.masks[format] || format;
7176
+
7177
+ // Avoid regular expression denial of service, fail early for really long strings
7178
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
7179
+ if (dateStr.length > 1000) {
7180
+ return null;
7181
+ }
7182
+
7183
+ var dateInfo = {};
7184
+ var parseInfo = [];
7185
+ var literals = [];
7186
+ format = format.replace(literal, function ($0, $1) {
7187
+ literals.push($1);
7188
+ return '@@@';
7189
+ });
7190
+ var newFormat = regexEscape(format).replace(token, function ($0) {
7191
+ if (parseFlags[$0]) {
7192
+ var info = parseFlags[$0];
7193
+ parseInfo.push(info[1]);
7194
+ return '(' + info[0] + ')';
7195
+ }
7196
+
7197
+ return $0;
7198
+ });
7199
+ newFormat = newFormat.replace(/@@@/g, function () {
7200
+ return literals.shift();
7201
+ });
7202
+ var matches = dateStr.match(new RegExp(newFormat, 'i'));
7203
+ if (!matches) {
7204
+ return null;
7205
+ }
7206
+
7207
+ for (var i = 1; i < matches.length; i++) {
7208
+ parseInfo[i - 1](dateInfo, matches[i]);
7209
+ }
7210
+
7211
+ var today = new Date();
7212
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
7213
+ dateInfo.hour = +dateInfo.hour + 12;
7214
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
7215
+ dateInfo.hour = 0;
7216
+ }
7217
+
7218
+ var date = void 0;
7219
+ if (dateInfo.timezoneOffset != null) {
7220
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
7221
+ 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));
7222
+ } else {
7223
+ 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);
7224
+ }
7225
+ return date;
7226
+ };
7227
+
7228
+ // 导出fecha对象
7229
+
7230
+
7231
+ // 以下是从date-util.js合并的函数
7232
+ var newArray = function newArray(start, end) {
7233
+ var result = [];
7234
+ for (var i = start; i <= end; i++) {
7235
+ result.push(i);
7236
+ }
7237
+ return result;
7238
+ };
7239
+
7240
+ var getSettings = function getSettings() {
7241
+ return {
7242
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
7243
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
7244
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
7245
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
7246
+ amPm: ['上午', '下午']
7247
+ };
7248
+ };
7249
+
7250
+ var toDate = function toDate(date) {
7251
+ return isDate(date) ? new Date(date) : null;
7252
+ };
7253
+
7254
+ var isDate = function isDate(date) {
7255
+ if (date === null || date === undefined) return false;
7256
+ if (isNaN(new Date(date).getTime())) return false;
7257
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
7258
+ return true;
7259
+ };
7260
+
7261
+ var isDateObject = function isDateObject(val) {
7262
+ return val instanceof Date;
7263
+ };
7264
+
7265
+ var formatDate = function formatDate(date) {
7266
+ var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
7267
+
7268
+ // 处理多种输入类型
7269
+ if (!date) return '';
7270
+
7271
+ // 如果是时间戳,转成日期对象
7272
+ if (typeof date === 'number') {
7273
+ date = new Date(date);
7274
+ }
7275
+ // 如果是字符串,转成日期对象
7276
+ if (typeof date === 'string') {
7277
+ date = new Date(date);
7278
+ }
7279
+
7280
+ // 调用toDate进一步验证和转换
7281
+ date = toDate(date);
7282
+ if (!date) return '';
7283
+
7284
+ // 兼容大写和小写的格式标记
7285
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
7286
+ var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
7287
+
7288
+ // 使用fecha库进行格式化,支持中文配置
7289
+ var str = fecha.format(date, lowercaseFormat, getSettings());
7290
+ return str;
7291
+ };
7292
+
7293
+ var parseDate = function parseDate(string, format) {
7294
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
7295
+ };
7296
+
7297
+ var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
7298
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
7299
+ return 30;
7300
+ }
7301
+
7302
+ if (month === 1) {
7303
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
7304
+ return 29;
7305
+ } else {
7306
+ return 28;
7307
+ }
7308
+ }
7309
+
7310
+ return 31;
7311
+ };
7312
+
7313
+ var getDayCountOfYear = function getDayCountOfYear(year) {
7314
+ var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
7315
+ return isLeapYear ? 366 : 365;
7316
+ };
7317
+
7318
+ var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
7319
+ var temp = new Date(date.getTime());
7320
+ temp.setDate(1);
7321
+ return temp.getDay();
7322
+ };
7323
+
7324
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
7325
+ // {prev, next} Date should work for Daylight Saving Time
7326
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
7327
+ var prevDate = function prevDate(date) {
7328
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7329
+
7330
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
7331
+ };
7332
+
7333
+ var nextDate = function nextDate(date) {
7334
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7335
+
7336
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
7337
+ };
7338
+
7339
+ var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
7340
+ var result = new Date(year, month, 1);
7341
+ var day = result.getDay();
7342
+
7343
+ if (day === 0) {
7344
+ return prevDate(result, 7);
7345
+ } else {
7346
+ return prevDate(result, day);
7347
+ }
7348
+ };
7349
+
7350
+ var getWeekNumber = function getWeekNumber(date) {
7351
+ // 支持多种输入类型
7352
+ if (!date || !isDate(date)) {
7353
+ date = new Date();
7354
+ }
7355
+ if (typeof date === 'string') {
7356
+ date = new Date(date);
7357
+ }
7358
+
7359
+ // 验证日期有效性
7360
+ if (!isDate(date)) return null;
7361
+
7362
+ var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
7363
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
7364
+ // 将星期日的星期数设为7
7365
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
7366
+ // 获取当年的第一天
7367
+ var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
7368
+ // 计算到最近的星期四的完整周数
7369
+ var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
7370
+ // 返回周数
7371
+ return weekNo;
7372
+ };
7373
+
7374
+ var getRangeHours = function getRangeHours(ranges) {
7375
+ var hours = [];
7376
+ var disabledHours = [];
7377
+
7378
+ (ranges || []).forEach(function (range) {
7379
+ var value = range.map(function (date) {
7380
+ return date.getHours();
7381
+ });
7382
+
7383
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
7384
+ });
7385
+
7386
+ if (disabledHours.length) {
7387
+ for (var i = 0; i < 24; i++) {
7388
+ hours[i] = disabledHours.indexOf(i) === -1;
7389
+ }
7390
+ } else {
7391
+ for (var _i = 0; _i < 24; _i++) {
7392
+ hours[_i] = false;
7393
+ }
7394
+ }
7395
+
7396
+ return hours;
7397
+ };
7398
+
7399
+ var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
7400
+ if (amount <= 0) return [];
7401
+ var temp = new Date(date.getTime());
7402
+ temp.setDate(0);
7403
+ var lastDay = temp.getDate();
7404
+ return range(amount).map(function (_, index) {
7405
+ return lastDay - (amount - index - 1);
7406
+ });
7407
+ };
7408
+
7409
+ var getMonthDays = function getMonthDays(date) {
7410
+ var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
7411
+ var days = temp.getDate();
7412
+ return range(days).map(function (_, index) {
7413
+ return index + 1;
7414
+ });
7415
+ };
7416
+
7417
+ function setRangeData(arr, start, end, value) {
7418
+ for (var i = start; i < end; i++) {
7419
+ arr[i] = value;
7420
+ }
7421
+ }
7422
+
7423
+ var getRangeMinutes = function getRangeMinutes(ranges, hour) {
7424
+ var minutes = new Array(60);
7425
+
7426
+ if (ranges.length > 0) {
7427
+ ranges.forEach(function (range) {
7428
+ var start = range[0];
7429
+ var end = range[1];
7430
+ var startHour = start.getHours();
7431
+ var startMinute = start.getMinutes();
7432
+ var endHour = end.getHours();
7433
+ var endMinute = end.getMinutes();
7434
+ if (startHour === hour && endHour !== hour) {
7435
+ setRangeData(minutes, startMinute, 60, true);
7436
+ } else if (startHour === hour && endHour === hour) {
7437
+ setRangeData(minutes, startMinute, endMinute + 1, true);
7438
+ } else if (startHour !== hour && endHour === hour) {
7439
+ setRangeData(minutes, 0, endMinute + 1, true);
7440
+ } else if (startHour < hour && endHour > hour) {
7441
+ setRangeData(minutes, 0, 60, true);
7442
+ }
7443
+ });
7444
+ } else {
7445
+ setRangeData(minutes, 0, 60, true);
7446
+ }
7447
+ return minutes;
7448
+ };
7449
+
7450
+ var range = function range(n) {
7451
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
7452
+ return Array.apply(null, { length: n }).map(function (_, n) {
7453
+ return n;
7454
+ });
7455
+ };
7456
+
7457
+ var modifyDate = function modifyDate(date, y, m, d) {
7458
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
7459
+ };
7460
+
7461
+ var modifyTime = function modifyTime(date, h, m, s) {
7462
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
7463
+ };
7464
+
7465
+ var modifyWithTimeString = function modifyWithTimeString(date, time) {
7466
+ if (date == null || !time) {
7467
+ return date;
7468
+ }
7469
+ time = parseDate(time, 'HH:mm:ss');
7470
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
7471
+ };
7472
+
7473
+ var clearTime = function clearTime(date) {
7474
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
7475
+ };
7476
+
7477
+ var clearMilliseconds = function clearMilliseconds(date) {
7478
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
7479
+ };
7480
+
7481
+ var limitTimeRange = function limitTimeRange(date, ranges) {
7482
+ var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
7483
+
7484
+ // TODO: refactory a more elegant solution
7485
+ if (ranges.length === 0) return date;
7486
+ var normalizeDate = function normalizeDate(date) {
7487
+ return fecha.parse(fecha.format(date, format), format);
7488
+ };
7489
+ var ndate = normalizeDate(date);
7490
+ var nranges = ranges.map(function (range) {
7491
+ return range.map(normalizeDate);
7492
+ });
7493
+ if (nranges.some(function (nrange) {
7494
+ return ndate >= nrange[0] && ndate <= nrange[1];
7495
+ })) return date;
7496
+
7497
+ var minDate = nranges[0][0];
7498
+ var maxDate = nranges[0][0];
7499
+
7500
+ nranges.forEach(function (nrange) {
7501
+ minDate = new Date(Math.min(nrange[0], minDate));
7502
+ maxDate = new Date(Math.max(nrange[1], minDate));
7503
+ });
7504
+
7505
+ var ret = ndate < minDate ? minDate : maxDate;
7506
+ // preserve Year/Month/Date
7507
+ return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
7508
+ };
7509
+
7510
+ var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
7511
+ var limitedDate = limitTimeRange(date, selectableRange, format);
7512
+ return limitedDate.getTime() === date.getTime();
7513
+ };
7514
+
7515
+ var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
7516
+ // clamp date to the number of days in `year`, `month`
7517
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
7518
+ var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
7519
+ return modifyDate(date, year, month, monthDate);
7520
+ };
7521
+
7522
+ var prevMonth = function prevMonth(date) {
7523
+ var year = date.getFullYear();
7524
+ var month = date.getMonth();
7525
+ return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
7526
+ };
7527
+
7528
+ var nextMonth = function nextMonth(date) {
7529
+ var year = date.getFullYear();
7530
+ var month = date.getMonth();
7531
+ return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
7532
+ };
7533
+
7534
+ var prevYear = function prevYear(date) {
7535
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7536
+
7537
+ var year = date.getFullYear();
7538
+ var month = date.getMonth();
7539
+ return changeYearMonthAndClampDate(date, year - amount, month);
7540
+ };
7541
+
7542
+ var nextYear = function nextYear(date) {
7543
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7544
+
7545
+ var year = date.getFullYear();
7546
+ var month = date.getMonth();
7547
+ return changeYearMonthAndClampDate(date, year + amount, month);
7548
+ };
7549
+
7550
+ var extractDateFormat = function extractDateFormat(format) {
7551
+ return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
7552
+ };
7553
+
7554
+ var extractTimeFormat = function extractTimeFormat(format) {
7555
+ return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
7556
+ };
7557
+
7558
+ var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
7559
+ return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
7560
+ };
7561
+
7580
7562
  /**
7581
7563
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
7582
7564
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
7583
7565
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
7584
7566
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
7585
7567
  * @returns {number} 工作日数量
7586
- */
7587
- const calculateNetworkDays = function (start_date, end_date, holidays = []) {
7588
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
7589
- throw new Error(
7590
- "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
7591
- );
7592
- }
7593
-
7594
- const startDateObj = new Date(start_date);
7595
- const endDateObj = new Date(end_date);
7596
-
7597
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
7598
- throw new Error(
7599
- "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
7600
- );
7601
- }
7602
-
7603
- if (startDateObj > endDateObj) {
7604
- throw new Error('Start date should be earlier than or equal to end date.');
7605
- }
7606
-
7607
- let workdays = 0;
7608
-
7609
- // Iterate through each day in the date range
7610
- for (
7611
- let currentDate = new Date(startDateObj);
7612
- currentDate <= endDateObj;
7613
- currentDate.setDate(currentDate.getDate() + 1)
7614
- ) {
7615
- // Check if the current day is a weekend (Saturday or Sunday)
7616
- const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
7617
-
7618
- // Check if the current day is a holiday
7619
- const isHoliday = holidays.some((holiday) => {
7620
- const holidayDate = new Date(holiday);
7621
- return currentDate.toDateString() === holidayDate.toDateString();
7622
- });
7623
-
7624
- // If it's a workday (not a weekend or holiday), increment the workdays count
7625
- if (!isWeekend && !isHoliday) {
7626
- workdays++;
7627
- }
7628
- }
7629
-
7630
- return workdays;
7631
- };
7632
-
7568
+ */
7569
+ var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
7570
+ var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
7571
+
7572
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
7573
+ throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
7574
+ }
7575
+
7576
+ var startDateObj = new Date(start_date);
7577
+ var endDateObj = new Date(end_date);
7578
+
7579
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
7580
+ throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
7581
+ }
7582
+
7583
+ if (startDateObj > endDateObj) {
7584
+ throw new Error('Start date should be earlier than or equal to end date.');
7585
+ }
7586
+
7587
+ var workdays = 0;
7588
+
7589
+ // Iterate through each day in the date range
7590
+
7591
+ var _loop = function _loop(currentDate) {
7592
+ // Check if the current day is a weekend (Saturday or Sunday)
7593
+ var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
7594
+
7595
+ // Check if the current day is a holiday
7596
+ var isHoliday = holidays.some(function (holiday) {
7597
+ var holidayDate = new Date(holiday);
7598
+ return currentDate.toDateString() === holidayDate.toDateString();
7599
+ });
7600
+
7601
+ // If it's a workday (not a weekend or holiday), increment the workdays count
7602
+ if (!isWeekend && !isHoliday) {
7603
+ workdays++;
7604
+ }
7605
+ };
7606
+
7607
+ for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
7608
+ _loop(currentDate);
7609
+ }
7610
+
7611
+ return workdays;
7612
+ };
7613
+
7633
7614
  /**
7634
7615
  * 日期加减天数
7635
7616
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
7636
7617
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
7637
7618
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
7638
- */
7639
- const dateAddDays = function (start_date, days) {
7640
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
7641
- throw new Error(
7642
- "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
7643
- );
7644
- }
7645
-
7646
- const startDateObj = new Date(start_date);
7647
- if (isNaN(startDateObj.getTime())) {
7648
- throw new Error(
7649
- "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
7650
- );
7651
- }
7652
-
7653
- const resultDateObj = new Date(startDateObj);
7654
- resultDateObj.setDate(resultDateObj.getDate() + days);
7655
-
7656
- const resultYear = resultDateObj.getFullYear();
7657
- const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
7658
- const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
7659
-
7660
- return `${resultYear}-${resultMonth}-${resultDay}`;
7661
- };
7662
-
7619
+ */
7620
+ var dateAddDays = function dateAddDays(start_date, days) {
7621
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
7622
+ 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.");
7623
+ }
7624
+
7625
+ var startDateObj = new Date(start_date);
7626
+ if (isNaN(startDateObj.getTime())) {
7627
+ throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
7628
+ }
7629
+
7630
+ var resultDateObj = new Date(startDateObj);
7631
+ resultDateObj.setDate(resultDateObj.getDate() + days);
7632
+
7633
+ var resultYear = resultDateObj.getFullYear();
7634
+ var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
7635
+ var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
7636
+
7637
+ return resultYear + '-' + resultMonth + '-' + resultDay;
7638
+ };
7639
+
7663
7640
  /**
7664
7641
  * 计算两个日期之间的差值
7665
7642
  * @date 2023年12月14日
@@ -7667,182 +7644,180 @@ const dateAddDays = function (start_date, days) {
7667
7644
  * @param {String} end_date - 结束日期字符串
7668
7645
  * @param {String} unit - 单位:year/month/day
7669
7646
  * @returns {Number} 差值
7670
- */
7671
- const dateDiff = function (start_date, end_date, unit = 'day') {
7672
- // Assuming date strings are in "YYYY-MM-DD" format
7673
- var startDate = new Date(start_date);
7674
- var endDate = new Date(end_date);
7675
-
7676
- // If the date is invalid, return 0
7677
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
7678
- return 0;
7679
- }
7680
-
7681
- if (unit === 'year') {
7682
- return endDate.getFullYear() - startDate.getFullYear();
7683
- } else if (unit === 'month') {
7684
- return (
7685
- (endDate.getFullYear() - startDate.getFullYear()) * 12 +
7686
- (endDate.getMonth() - startDate.getMonth())
7687
- );
7688
- } else {
7689
- // Default to day
7690
- var timeDifference = endDate - startDate;
7691
- // Calculate days (86400000 milliseconds per day)
7692
- return Math.floor(timeDifference / 86400000);
7693
- }
7694
- };
7695
-
7647
+ */
7648
+ var dateDiff = function dateDiff(start_date, end_date) {
7649
+ var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
7650
+
7651
+ // Assuming date strings are in "YYYY-MM-DD" format
7652
+ var startDate = new Date(start_date);
7653
+ var endDate = new Date(end_date);
7654
+
7655
+ // If the date is invalid, return 0
7656
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
7657
+ return 0;
7658
+ }
7659
+
7660
+ if (unit === 'year') {
7661
+ return endDate.getFullYear() - startDate.getFullYear();
7662
+ } else if (unit === 'month') {
7663
+ return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
7664
+ } else {
7665
+ // Default to day
7666
+ var timeDifference = endDate - startDate;
7667
+ // Calculate days (86400000 milliseconds per day)
7668
+ return Math.floor(timeDifference / 86400000);
7669
+ }
7670
+ };
7671
+
7696
7672
  /**
7697
7673
  * 获取月份中的日期
7698
7674
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
7699
7675
  * @returns {number} 月份中的日期(1-31)
7700
- */
7701
- const dayOfMonth = function (date) {
7702
- if (typeof date !== 'string') {
7703
- throw new Error(
7704
- "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
7705
- );
7706
- }
7707
-
7708
- const dateObj = new Date(date);
7709
- if (isNaN(dateObj.getTime())) {
7710
- throw new Error(
7711
- "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
7712
- );
7713
- }
7714
-
7715
- return dateObj.getDate();
7716
- };
7717
-
7676
+ */
7677
+ var dayOfMonth = function dayOfMonth(date) {
7678
+ if (typeof date !== 'string') {
7679
+ throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
7680
+ }
7681
+
7682
+ var dateObj = new Date(date);
7683
+ if (isNaN(dateObj.getTime())) {
7684
+ throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
7685
+ }
7686
+
7687
+ return dateObj.getDate();
7688
+ };
7689
+
7718
7690
  /**
7719
7691
  * 获取当前日期
7720
7692
  * @date 2022年5月7日
7721
7693
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
7722
7694
  * @returns {string} 当前日期的格式化字符串
7723
- */
7724
- const getCurrentDate = function (format = 'YYYY-MM-DD') {
7725
- return formatDate(new Date(), format);
7726
- };
7727
-
7695
+ */
7696
+ var getCurrentDate = function getCurrentDate() {
7697
+ var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
7698
+
7699
+ return formatDate(new Date(), format);
7700
+ };
7701
+
7728
7702
  /**
7729
7703
  * 获取当前日期时间
7730
7704
  * @date 2022年5月7日
7731
7705
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
7732
7706
  * @returns {string} 当前日期时间的格式化字符串
7733
- */
7734
- const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
7735
- return formatDate(new Date(), format);
7736
- };
7737
-
7707
+ */
7708
+ var getCurrentDateTime = function getCurrentDateTime() {
7709
+ var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
7710
+
7711
+ return formatDate(new Date(), format);
7712
+ };
7713
+
7738
7714
  /**
7739
7715
  * 获取小时
7740
7716
  * @date 2022年5月7日
7741
7717
  * @param {Date|string} [date] - 日期对象或日期字符串
7742
7718
  * @returns {number} 小时数(0-23)
7743
- */
7744
- const getHour = function (date) {
7745
- if (!date) {
7746
- return new Date().getHours();
7747
- }
7748
- if (typeof date === 'string') {
7749
- date = new Date(date);
7750
- }
7751
- return date.getHours();
7752
- };
7753
-
7719
+ */
7720
+ var getHour = function getHour(date) {
7721
+ if (!date) {
7722
+ return new Date().getHours();
7723
+ }
7724
+ if (typeof date === 'string') {
7725
+ date = new Date(date);
7726
+ }
7727
+ return date.getHours();
7728
+ };
7729
+
7754
7730
  /**
7755
7731
  * 获取分钟
7756
7732
  * @date 2022年5月7日
7757
7733
  * @param {Date|string} [date] - 日期对象或日期字符串
7758
7734
  * @returns {number} 分钟数(0-59)
7759
- */
7760
- const getMinute = function (date) {
7761
- if (!date) {
7762
- return new Date().getMinutes();
7763
- }
7764
- if (typeof date === 'string') {
7765
- date = new Date(date);
7766
- }
7767
- return date.getMinutes();
7768
- };
7769
-
7735
+ */
7736
+ var getMinute = function getMinute(date) {
7737
+ if (!date) {
7738
+ return new Date().getMinutes();
7739
+ }
7740
+ if (typeof date === 'string') {
7741
+ date = new Date(date);
7742
+ }
7743
+ return date.getMinutes();
7744
+ };
7745
+
7770
7746
  /**
7771
7747
  * 获取月份
7772
7748
  * @date 2022年5月7日
7773
7749
  * @param {Date|string} [date] - 日期对象或日期字符串
7774
7750
  * @returns {number} 月份数(1-12)
7775
- */
7776
- const getMonth = function (date) {
7777
- if (!date) {
7778
- return new Date().getMonth() + 1;
7779
- }
7780
- if (typeof date === 'string') {
7781
- date = new Date(date);
7782
- }
7783
- return date.getMonth() + 1;
7784
- };
7785
-
7751
+ */
7752
+ var getMonth = function getMonth(date) {
7753
+ if (!date) {
7754
+ return new Date().getMonth() + 1;
7755
+ }
7756
+ if (typeof date === 'string') {
7757
+ date = new Date(date);
7758
+ }
7759
+ return date.getMonth() + 1;
7760
+ };
7761
+
7786
7762
  /**
7787
7763
  * 获取秒
7788
7764
  * @date 2022年5月7日
7789
7765
  * @param {Date|string} [date] - 日期对象或日期字符串
7790
7766
  * @returns {number} 秒数(0-59)
7791
- */
7792
- const getSecond = function (date) {
7793
- if (!date) {
7794
- return new Date().getSeconds();
7795
- }
7796
- if (typeof date === 'string') {
7797
- date = new Date(date);
7798
- }
7799
- return date.getSeconds();
7800
- };
7801
-
7767
+ */
7768
+ var getSecond = function getSecond(date) {
7769
+ if (!date) {
7770
+ return new Date().getSeconds();
7771
+ }
7772
+ if (typeof date === 'string') {
7773
+ date = new Date(date);
7774
+ }
7775
+ return date.getSeconds();
7776
+ };
7777
+
7802
7778
  /**
7803
7779
  * 获取星期几
7804
7780
  * @date 2022年5月7日
7805
7781
  * @param {Date|string} [date] - 日期对象或日期字符串
7806
7782
  * @returns {number} 星期几(0-6,0表示星期日)
7807
- */
7808
- const getWeekday = function (date) {
7809
- if (!date) {
7810
- return new Date().getDay();
7811
- }
7812
- if (typeof date === 'string') {
7813
- date = new Date(date);
7814
- }
7815
- return date.getDay();
7816
- };
7817
-
7818
-
7783
+ */
7784
+ var getWeekday = function getWeekday(date) {
7785
+ if (!date) {
7786
+ return new Date().getDay();
7787
+ }
7788
+ if (typeof date === 'string') {
7789
+ date = new Date(date);
7790
+ }
7791
+ return date.getDay();
7792
+ };
7793
+
7819
7794
  /**
7820
7795
  * @desc 获取上午/下午/晚上
7821
7796
  * @author huangbo
7822
7797
  * @date 2022年5月7日
7823
7798
  * @param {String} [time] - 时间
7824
- **/
7825
- const timeCycle = function (time) {
7826
- let hour = 0;
7827
- if (!time) {
7828
- hour = new Date().getHours();
7829
- } else if (typeof time === 'string') {
7830
- // 从时间字符串中提取小时
7831
- const match = time.match(/^(\d{1,2})/);
7832
- if (match) {
7833
- hour = parseInt(match[1], 10);
7834
- }
7835
- } else if (typeof time === 'number') {
7836
- hour = time;
7837
- }
7838
- // 判断时间段
7839
- if (hour >= 5 && hour < 12) {
7840
- return '上午';
7841
- } else if (hour >= 12 && hour < 18) {
7842
- return '下午';
7843
- } else {
7844
- return '晚上';
7845
- }
7799
+ **/
7800
+ var timeCycle = function timeCycle(time) {
7801
+ var hour = 0;
7802
+ if (!time) {
7803
+ hour = new Date().getHours();
7804
+ } else if (typeof time === 'string') {
7805
+ // 从时间字符串中提取小时
7806
+ var match = time.match(/^(\d{1,2})/);
7807
+ if (match) {
7808
+ hour = parseInt(match[1], 10);
7809
+ }
7810
+ } else if (typeof time === 'number') {
7811
+ hour = time;
7812
+ }
7813
+ // 判断时间段
7814
+ if (hour >= 5 && hour < 12) {
7815
+ return '上午';
7816
+ } else if (hour >= 12 && hour < 18) {
7817
+ return '下午';
7818
+ } else {
7819
+ return '晚上';
7820
+ }
7846
7821
  };
7847
7822
 
7848
7823
  /***/ }),
@@ -8686,7 +8661,7 @@ function redirectToLoginPage(loginPage, next) {
8686
8661
  * @param {function} callback - 回调函数
8687
8662
  **/
8688
8663
  var getMainConfig = function getMainConfig(callback) {
8689
- ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "pb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
8664
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "tb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
8690
8665
  if (res && res.rCode === 0) {
8691
8666
  callback(res.results);
8692
8667
  }
@@ -8709,7 +8684,7 @@ var getSysCodeList = function getSysCodeList(_ref4) {
8709
8684
  method = _ref4$method === undefined ? 'POST' : _ref4$method,
8710
8685
  service = _ref4.service,
8711
8686
  _ref4$url = _ref4.url,
8712
- url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "B"] : _ref4$url,
8687
+ url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "C"] : _ref4$url,
8713
8688
  sysCode = _ref4.sysCode,
8714
8689
  _ref4$param = _ref4.param,
8715
8690
  param = _ref4$param === undefined ? {} : _ref4$param,
@@ -8819,7 +8794,7 @@ var downloadFile = function downloadFile(_ref6) {
8819
8794
  file = _ref6.file,
8820
8795
  withToken = _ref6.withToken;
8821
8796
 
8822
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "w"] };
8797
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "x"] };
8823
8798
 
8824
8799
  var downloadUrl = '';
8825
8800
  if (file.adjunctId || file.response && file.response.adjunctId) {
@@ -8882,7 +8857,7 @@ var downloadZip = function downloadZip(_ref7) {
8882
8857
  code = _ref7.code,
8883
8858
  option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
8884
8859
 
8885
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Oc"] };
8860
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Sc"] };
8886
8861
 
8887
8862
  // 处理URL和参数
8888
8863
  var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
@@ -8934,7 +8909,7 @@ var deleteFile = function deleteFile(_ref8) {
8934
8909
  onSuccess = _ref8.onSuccess,
8935
8910
  onError = _ref8.onError;
8936
8911
 
8937
- var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "n"] + '\' }');
8912
+ var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "o"] + '\' }');
8938
8913
 
8939
8914
  // 处理URL和参数
8940
8915
  var deleteUrl = url ? url : dochubConfig.deleteDocumentUrl;