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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/lib/0.js +1 -1
  2. package/lib/1.js +1 -1
  3. package/lib/10.js +1 -1
  4. package/lib/11.js +1 -1
  5. package/lib/12.js +1 -1
  6. package/lib/13.js +1 -1
  7. package/lib/14.js +1 -1
  8. package/lib/15.js +1 -1
  9. package/lib/16.js +1 -1
  10. package/lib/17.js +1 -1
  11. package/lib/18.js +1 -1
  12. package/lib/19.js +1 -1
  13. package/lib/20.js +1 -1
  14. package/lib/21.js +1 -1
  15. package/lib/22.js +1 -1
  16. package/lib/23.js +1 -1
  17. package/lib/24.js +1 -1
  18. package/lib/25.js +1 -1
  19. package/lib/26.js +1 -1
  20. package/lib/27.js +1 -1
  21. package/lib/28.js +1 -1
  22. package/lib/29.js +1 -1
  23. package/lib/3.js +1 -1
  24. package/lib/30.js +1 -1
  25. package/lib/31.js +1 -1
  26. package/lib/32.js +1 -1
  27. package/lib/33.js +1 -1
  28. package/lib/34.js +1 -1
  29. package/lib/35.js +1 -1
  30. package/lib/36.js +1 -1
  31. package/lib/37.js +1 -1
  32. package/lib/38.js +1 -1
  33. package/lib/39.js +1 -1
  34. package/lib/4.js +1 -1
  35. package/lib/40.js +1 -1
  36. package/lib/41.js +1 -1
  37. package/lib/42.js +1 -1
  38. package/lib/43.js +1 -1
  39. package/lib/44.js +1 -1
  40. package/lib/45.js +1 -1
  41. package/lib/46.js +1 -1
  42. package/lib/47.js +1 -1
  43. package/lib/48.js +1 -1
  44. package/lib/49.js +1 -1
  45. package/lib/5.js +1 -1
  46. package/lib/50.js +1 -1
  47. package/lib/51.js +1 -1
  48. package/lib/52.js +1 -1
  49. package/lib/53.js +1 -1
  50. package/lib/54.js +1 -1
  51. package/lib/55.js +1 -1
  52. package/lib/56.js +1 -1
  53. package/lib/57.js +1 -1
  54. package/lib/58.js +1 -1
  55. package/lib/59.js +1 -1
  56. package/lib/6.js +1 -1
  57. package/lib/60.js +1 -1
  58. package/lib/61.js +1 -1
  59. package/lib/62.js +1 -1
  60. package/lib/63.js +1 -1
  61. package/lib/64.js +1 -1
  62. package/lib/65.js +1 -1
  63. package/lib/66.js +1 -1
  64. package/lib/67.js +1 -1
  65. package/lib/68.js +1 -1
  66. package/lib/69.js +1 -1
  67. package/lib/7.js +1 -1
  68. package/lib/70.js +1 -1
  69. package/lib/71.js +1 -1
  70. package/lib/72.js +1 -1
  71. package/lib/73.js +1 -1
  72. package/lib/74.js +1 -1
  73. package/lib/75.js +1 -1
  74. package/lib/76.js +1 -1
  75. package/lib/77.js +1 -1
  76. package/lib/78.js +1 -1
  77. package/lib/79.js +1 -1
  78. package/lib/8.js +1 -1
  79. package/lib/80.js +1 -1
  80. package/lib/81.js +1 -1
  81. package/lib/9.js +1 -1
  82. package/lib/account-login.js +985 -1010
  83. package/lib/alert.js +2 -2
  84. package/lib/aside.js +2 -2
  85. package/lib/audit-trajectory.js +145 -145
  86. package/lib/autocomplete.js +1778 -2002
  87. package/lib/avatar.js +2 -2
  88. package/lib/backtop.js +2 -2
  89. package/lib/badge.js +2 -2
  90. package/lib/breadcrumb-item.js +4 -4
  91. package/lib/breadcrumb.js +4 -4
  92. package/lib/button-group.js +2 -2
  93. package/lib/button.js +2 -2
  94. package/lib/ca-login.js +837 -862
  95. package/lib/calendar.js +837 -862
  96. package/lib/card.js +2 -2
  97. package/lib/carousel-item.js +839 -864
  98. package/lib/carousel.js +839 -864
  99. package/lib/cascader-panel.js +839 -864
  100. package/lib/cascader.js +1780 -2004
  101. package/lib/checkbox-button.js +2 -2
  102. package/lib/checkbox-group.js +987 -1012
  103. package/lib/checkbox.js +2 -2
  104. package/lib/col.js +2 -2
  105. package/lib/collapse-item.js +839 -864
  106. package/lib/collapse.js +839 -864
  107. package/lib/color-picker.js +942 -1141
  108. package/lib/container.js +2 -2
  109. package/lib/cron.js +2 -2
  110. package/lib/data-table.js +987 -1012
  111. package/lib/date-picker.js +1785 -2009
  112. package/lib/dialog.js +837 -862
  113. package/lib/divider.js +2 -2
  114. package/lib/drawer.js +2 -2
  115. package/lib/dropdown-item.js +4 -4
  116. package/lib/dropdown-menu.js +942 -1141
  117. package/lib/dropdown.js +837 -862
  118. package/lib/email-login.js +986 -1011
  119. package/lib/empty.js +2 -2
  120. package/lib/eoss.common.js +2935 -2523
  121. package/lib/flip.js +2 -2
  122. package/lib/flow-group.js +841 -866
  123. package/lib/flow.js +1073 -1098
  124. package/lib/flows.js +993 -1018
  125. package/lib/footer.js +2 -2
  126. package/lib/form-item.js +2275 -2300
  127. package/lib/form.js +1034 -1046
  128. package/lib/guide.js +2 -2
  129. package/lib/header.js +2 -2
  130. package/lib/icon.js +981 -1006
  131. package/lib/icons.js +2 -2
  132. package/lib/image-viewer.js +837 -862
  133. package/lib/image.js +4 -4
  134. package/lib/index.js +1 -1
  135. package/lib/infinite-scroll.js +2 -2
  136. package/lib/input-number.js +4 -4
  137. package/lib/input.js +837 -862
  138. package/lib/link.js +2 -2
  139. package/lib/loading.js +2 -2
  140. package/lib/login.js +1737 -1059
  141. package/lib/lowcode-view.js +991 -1016
  142. package/lib/lowcode.js +1088 -1113
  143. package/lib/main.js +1066 -1091
  144. package/lib/marquee.js +837 -862
  145. package/lib/menu-item-group.js +2 -2
  146. package/lib/menu-item.js +2 -2
  147. package/lib/menu.js +1779 -2003
  148. package/lib/message-box.js +837 -862
  149. package/lib/message.js +837 -862
  150. package/lib/notification.js +859 -884
  151. package/lib/option-group.js +4 -4
  152. package/lib/option.js +839 -864
  153. package/lib/page-header.js +2 -2
  154. package/lib/pagination.js +837 -862
  155. package/lib/phone-login.js +986 -1011
  156. package/lib/popconfirm.js +4 -4
  157. package/lib/popover.js +1779 -2003
  158. package/lib/process-config.js +995 -1020
  159. package/lib/process-module.js +1056 -1081
  160. package/lib/process-rule.js +999 -1024
  161. package/lib/progress.js +2 -2
  162. package/lib/qr-code.js +4 -4
  163. package/lib/qrcode-login.js +987 -1012
  164. package/lib/radio-button.js +2 -2
  165. package/lib/radio-group.js +987 -1012
  166. package/lib/radio.js +2 -2
  167. package/lib/rate.js +837 -862
  168. package/lib/row.js +2 -2
  169. package/lib/scrollbar.js +837 -862
  170. package/lib/select.js +1938 -2162
  171. package/lib/selector-panel.js +1014 -1039
  172. package/lib/selector.js +991 -1016
  173. package/lib/slider.js +2 -2
  174. package/lib/step.js +4 -4
  175. package/lib/steps.js +839 -864
  176. package/lib/submenu.js +944 -1143
  177. package/lib/switch.js +837 -862
  178. package/lib/tab-pane.js +4 -4
  179. package/lib/table-column.js +837 -862
  180. package/lib/table.js +1927 -2151
  181. package/lib/tabs.js +839 -864
  182. package/lib/tag.js +2 -2
  183. package/lib/theme-chalk/base.css +1 -1
  184. package/lib/theme-chalk/index.css +1 -1
  185. package/lib/theme-chalk/main.css +1 -1
  186. package/lib/time-picker.js +1786 -2010
  187. package/lib/time-select.js +1782 -2006
  188. package/lib/timeline-item.js +2 -2
  189. package/lib/timeline.js +2 -2
  190. package/lib/tips.js +986 -1011
  191. package/lib/toolbar.js +2 -2
  192. package/lib/tooltip.js +1778 -2002
  193. package/lib/transfer.js +837 -862
  194. package/lib/tree-group.js +982 -1007
  195. package/lib/tree.js +985 -1010
  196. package/lib/update-history.js +146 -146
  197. package/lib/upload.js +999 -1024
  198. package/lib/utils/helpers.js +52 -0
  199. package/lib/utils/popper.js +48 -97
  200. package/lib/wujie.js +841 -866
  201. package/package.json +1 -1
  202. package/packages/login/src/login.vue +24 -3
  203. package/packages/login/src/resetPassword.vue +19 -13
  204. package/packages/main/src/minxs.js +0 -1
  205. package/packages/theme-chalk/src/base.scss +1 -2
  206. package/src/index.js +327 -327
  207. package/src/utils/helpers.js +49 -0
  208. package/src/utils/popper.js +70 -109
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 199);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 200);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3521,7 +3521,73 @@ module.exports = require("lodash/cloneDeep");
3521
3521
 
3522
3522
  /***/ }),
3523
3523
 
3524
- /***/ 199:
3524
+ /***/ 2:
3525
+ /***/ (function(module, exports) {
3526
+
3527
+ module.exports = require("vue");
3528
+
3529
+ /***/ }),
3530
+
3531
+ /***/ 20:
3532
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3533
+
3534
+ "use strict";
3535
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
3536
+ /* unused harmony export doDecrypt */
3537
+ /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
3538
+ var sm2 = __webpack_require__(41).sm2;
3539
+
3540
+
3541
+ /**
3542
+ * doEncrypt
3543
+ * @desc:sm2加密
3544
+ * @author huangbo
3545
+ * @date 2022年5月7日
3546
+ * @param {string} [data] - 被加密的字符串
3547
+ * @param {string} [key] - 公钥
3548
+ **/
3549
+ var doEncrypt = function doEncrypt(_ref) {
3550
+ var data = _ref.data,
3551
+ key = _ref.key,
3552
+ mode = _ref.mode;
3553
+
3554
+ if (!key) {
3555
+ key = Object(_storage__WEBPACK_IMPORTED_MODULE_0__[/* getStorage */ "a"])('secretKey');
3556
+ }
3557
+ if (!mode) {
3558
+ mode = 1;
3559
+ }
3560
+ if (!new RegExp('^04').test(key)) {
3561
+ key = '04' + key;
3562
+ }
3563
+ var result = sm2.doEncrypt(data, key, mode);
3564
+ return result;
3565
+ };
3566
+
3567
+ /**
3568
+ * doDecrypt
3569
+ * @desc:sm2解密
3570
+ * @author huangbo
3571
+ * @date 2022年5月7日
3572
+ * @param {string} [data] - 被解密的加密字符串
3573
+ * @param {string} [key] - 私钥
3574
+ **/
3575
+ var doDecrypt = function doDecrypt(_ref2) {
3576
+ var data = _ref2.data,
3577
+ key = _ref2.key,
3578
+ mode = _ref2.mode;
3579
+
3580
+ var cipherMode = mode ? mode : 1;
3581
+ if (new RegExp('^04').test(key)) {
3582
+ key = key.slice(2);
3583
+ }
3584
+ var result = sm2.doDecrypt(data, key, cipherMode);
3585
+ return result;
3586
+ };
3587
+
3588
+ /***/ }),
3589
+
3590
+ /***/ 200:
3525
3591
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3526
3592
 
3527
3593
  "use strict";
@@ -3935,10 +4001,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3935
4001
 
3936
4002
  computed: {
3937
4003
  url: function url() {
3938
- return '/' + this.bootName + api["sb" /* moduleListJson */];
4004
+ return '/' + this.bootName + api["wb" /* moduleListJson */];
3939
4005
  },
3940
4006
  info: function info() {
3941
- return '/' + this.bootName + api["rb" /* moduleInfo */];
4007
+ return '/' + this.bootName + api["vb" /* moduleInfo */];
3942
4008
  },
3943
4009
  computedParam: function computedParam() {
3944
4010
  return _extends({}, this.param);
@@ -3979,7 +4045,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3979
4045
  }, data);
3980
4046
  Object(ajax["a" /* ajax */])({
3981
4047
  method: 'post',
3982
- url: '/' + this.bootName + api["tb" /* moduleSave */],
4048
+ url: '/' + this.bootName + api["xb" /* moduleSave */],
3983
4049
  data: postData
3984
4050
 
3985
4051
  // headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
@@ -4002,7 +4068,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4002
4068
  delete data.updateTime;
4003
4069
  Object(ajax["a" /* ajax */])({
4004
4070
  method: 'post',
4005
- url: '/' + this.bootName + api["ub" /* moduleUpdate */],
4071
+ url: '/' + this.bootName + api["yb" /* moduleUpdate */],
4006
4072
  data: data
4007
4073
  }).then(function (res) {
4008
4074
  loadingInstance.close();
@@ -4026,7 +4092,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4026
4092
  var loadingInstance = Object(util["K" /* loading */])('删除中...');
4027
4093
  Object(ajax["a" /* ajax */])({
4028
4094
  method: 'post',
4029
- url: '/' + this.bootName + api["qb" /* moduleDelete */],
4095
+ url: '/' + this.bootName + api["ub" /* moduleDelete */],
4030
4096
  data: { id: id }
4031
4097
  }).then(function (res) {
4032
4098
  loadingInstance.close();
@@ -4083,72 +4149,6 @@ main.install = function (Vue) {
4083
4149
 
4084
4150
  /***/ }),
4085
4151
 
4086
- /***/ 2:
4087
- /***/ (function(module, exports) {
4088
-
4089
- module.exports = require("vue");
4090
-
4091
- /***/ }),
4092
-
4093
- /***/ 20:
4094
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4095
-
4096
- "use strict";
4097
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
4098
- /* unused harmony export doDecrypt */
4099
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
4100
- var sm2 = __webpack_require__(41).sm2;
4101
-
4102
-
4103
- /**
4104
- * doEncrypt
4105
- * @desc:sm2加密
4106
- * @author huangbo
4107
- * @date 2022年5月7日
4108
- * @param {string} [data] - 被加密的字符串
4109
- * @param {string} [key] - 公钥
4110
- **/
4111
- var doEncrypt = function doEncrypt(_ref) {
4112
- var data = _ref.data,
4113
- key = _ref.key,
4114
- mode = _ref.mode;
4115
-
4116
- if (!key) {
4117
- key = Object(_storage__WEBPACK_IMPORTED_MODULE_0__[/* getStorage */ "a"])('secretKey');
4118
- }
4119
- if (!mode) {
4120
- mode = 1;
4121
- }
4122
- if (!new RegExp('^04').test(key)) {
4123
- key = '04' + key;
4124
- }
4125
- var result = sm2.doEncrypt(data, key, mode);
4126
- return result;
4127
- };
4128
-
4129
- /**
4130
- * doDecrypt
4131
- * @desc:sm2解密
4132
- * @author huangbo
4133
- * @date 2022年5月7日
4134
- * @param {string} [data] - 被解密的加密字符串
4135
- * @param {string} [key] - 私钥
4136
- **/
4137
- var doDecrypt = function doDecrypt(_ref2) {
4138
- var data = _ref2.data,
4139
- key = _ref2.key,
4140
- mode = _ref2.mode;
4141
-
4142
- var cipherMode = mode ? mode : 1;
4143
- if (new RegExp('^04').test(key)) {
4144
- key = key.slice(2);
4145
- }
4146
- var result = sm2.doDecrypt(data, key, cipherMode);
4147
- return result;
4148
- };
4149
-
4150
- /***/ }),
4151
-
4152
4152
  /***/ 23:
4153
4153
  /***/ (function(module, exports) {
4154
4154
 
@@ -4381,146 +4381,146 @@ module.exports = require("eoss/lib/data-table");
4381
4381
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4382
4382
 
4383
4383
  "use strict";
4384
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCaLogin; });
4385
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doUserLogin; });
4386
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doQrLogin; });
4387
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return logout; });
4388
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initLogin; });
4389
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return switchUserTo; });
4384
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doCaLogin; });
4385
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doUserLogin; });
4386
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doQrLogin; });
4387
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return logout; });
4388
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return initLogin; });
4389
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return switchUserTo; });
4390
4390
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
4391
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getLoginCode; });
4392
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doCodeLogin; });
4391
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getLoginCode; });
4392
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCodeLogin; });
4393
4393
  /* unused harmony export updateCode */
4394
- /* unused harmony export getModifyPassCode */
4395
- /* unused harmony export codeModifyPass */
4396
- /* unused harmony export loginModifyPassword */
4394
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getModifyPassCode; });
4395
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
4396
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return loginModifyPassword; });
4397
4397
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
4398
- /* unused harmony export initModifyPassword */
4398
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return initModifyPassword; });
4399
4399
  /* unused harmony export doWechatQrLogin */
4400
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getTwoFactorLoginCode; });
4400
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getTwoFactorLoginCode; });
4401
4401
  /* unused harmony export doTwoFactorLogin */
4402
4402
  /* unused harmony export initRetrialAuth */
4403
4403
  /* unused harmony export getRetrialAuthCode */
4404
4404
  /* unused harmony export scanCodeRetrialAuth */
4405
4405
  /* unused harmony export codeRetrialAuth */
4406
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return doAssistanceQrLogin; });
4407
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return userOnline; });
4408
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserAppWithTag; });
4409
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return recordUserApp; });
4410
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getUserRecordApp; });
4411
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return mainConfig; });
4412
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return initUserSet; });
4413
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return updateUserInfo; });
4406
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doAssistanceQrLogin; });
4407
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return userOnline; });
4408
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getUserAppWithTag; });
4409
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return recordUserApp; });
4410
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUserRecordApp; });
4411
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return mainConfig; });
4412
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initUserSet; });
4413
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return updateUserInfo; });
4414
4414
  /* unused harmony export getUserImgUrl */
4415
4415
  /* unused harmony export getDoorIndex */
4416
4416
  /* unused harmony export refreshOnlineUsers */
4417
4417
  /* unused harmony export getQuickMenuIds */
4418
4418
  /* unused harmony export getApplicationIdArray */
4419
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getComplexApplications; });
4420
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getComplexApplicationsNew; });
4421
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getMainAppWithTag; });
4422
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getByType; });
4419
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getComplexApplications; });
4420
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplicationsNew; });
4421
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getMainAppWithTag; });
4422
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getByType; });
4423
4423
  /* unused harmony export getUserCustomInfo */
4424
4424
  /* unused harmony export updateUserCustomInfo */
4425
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return saveOrUpdate; });
4426
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return sysMsgPage; });
4427
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return ignoreSysMsg; });
4428
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreAllSysMsg; });
4429
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return searchType; });
4430
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParam; });
4431
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getAdjunctProperties; });
4432
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return uploads; });
4433
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploadOnlyOne; });
4434
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctFileInfos; });
4425
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return saveOrUpdate; });
4426
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sysMsgPage; });
4427
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return ignoreSysMsg; });
4428
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return ignoreAllSysMsg; });
4429
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return searchType; });
4430
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSysParam; });
4431
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctProperties; });
4432
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return uploads; });
4433
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return uploadOnlyOne; });
4434
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getAdjunctFileInfos; });
4435
4435
  /* unused harmony export uploadSort */
4436
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return downloadByAdjunctId; });
4437
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadDownloads; });
4438
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct; });
4439
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunct2; });
4440
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return previewAdjunctOffice; });
4441
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return delAdjunct; });
4436
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return downloadByAdjunctId; });
4437
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return uploadDownloads; });
4438
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return previewAdjunct; });
4439
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return previewAdjunct2; });
4440
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return previewAdjunctOffice; });
4441
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return delAdjunct; });
4442
4442
  /* unused harmony export upload_updateClassify */
4443
4443
  /* unused harmony export getDeleteAdjunctFileInfos */
4444
4444
  /* unused harmony export getPictureBase64 */
4445
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSelectorOrgTree; });
4446
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getSelectorOrgDetail; });
4447
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getOrgMainTree; });
4445
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getSelectorOrgTree; });
4446
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSelectorOrgDetail; });
4447
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getOrgMainTree; });
4448
4448
  /* unused harmony export getSelectOrgsubids */
4449
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCode; });
4449
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findSysCode; });
4450
4450
  /* unused harmony export getDictList */
4451
4451
  /* unused harmony export findUserBaseInfo */
4452
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return gethelpdoc; });
4452
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return gethelpdoc; });
4453
4453
  /* unused harmony export getCurrentuser */
4454
4454
  /* unused harmony export mainDetail */
4455
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartFlow; });
4456
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tempSave; });
4457
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return commonOpion; });
4455
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toStartFlow; });
4456
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return tempSave; });
4457
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return commonOpion; });
4458
4458
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
4459
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return editCommonOpion; });
4460
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveCommonOpinion; });
4461
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateCommonOpinion; });
4462
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteCommonOpion; });
4463
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getProcessDefList; });
4464
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfo; });
4465
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return findCodeValues; });
4466
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysParam; });
4467
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findSysCodes; });
4468
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getNotificationMsg; });
4469
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getHandleInfoHtml; });
4470
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskHandleHtml; });
4459
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return editCommonOpion; });
4460
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return saveCommonOpinion; });
4461
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return updateCommonOpinion; });
4462
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return deleteCommonOpion; });
4463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getProcessDefList; });
4464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getNodeInfo; });
4465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findCodeValues; });
4466
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysParam; });
4467
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCodes; });
4468
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNotificationMsg; });
4469
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getHandleInfoHtml; });
4470
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskHandleHtml; });
4471
4471
  /* unused harmony export getView */
4472
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return register; });
4473
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return pendedhistoryList; });
4474
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskRejectHtml; });
4475
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskRejectHtml; });
4476
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskRead; });
4477
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toStartTaskReadIndex; });
4478
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskReadHtml; });
4479
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return rejectAndEnd; });
4480
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toSendMsg; });
4481
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return sendMsg; });
4482
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return endFlowHtml; });
4483
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return handleInfo; });
4484
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return loginUserInfo; });
4485
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return wss; });
4486
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return topic; });
4487
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetCustomInfo; });
4488
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getPresetNodeInfo; });
4489
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskTransferIndex; });
4490
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskTransfer; });
4472
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return register; });
4473
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pendedhistoryList; });
4474
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskRejectHtml; });
4475
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskRejectHtml; });
4476
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toStartTaskRead; });
4477
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toStartTaskReadIndex; });
4478
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskReadHtml; });
4479
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return rejectAndEnd; });
4480
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toSendMsg; });
4481
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return sendMsg; });
4482
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowHtml; });
4483
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return handleInfo; });
4484
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return loginUserInfo; });
4485
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return wss; });
4486
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return topic; });
4487
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getPresetCustomInfo; });
4488
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetNodeInfo; });
4489
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskTransferIndex; });
4490
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskTransfer; });
4491
4491
  /* unused harmony export toPresetInfoListIndex */
4492
4492
  /* unused harmony export deletePresetInfo */
4493
4493
  /* unused harmony export historyListJson */
4494
4494
  /* unused harmony export pendedhistoryListJson */
4495
4495
  /* unused harmony export pressListJson */
4496
4496
  /* unused harmony export deleteFlow */
4497
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return isCanStartSubFlow; });
4498
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionExamine; });
4499
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionExamine; });
4500
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTakeAdvice; });
4501
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTakeAdvice; });
4502
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskStartDraft; });
4503
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSupervise; });
4504
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskSuperviseSub; });
4505
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskStartDraft; });
4506
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskReview; });
4507
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskReview; });
4508
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskUnionSeal; });
4509
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskUnionSeal; });
4510
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTwoOfficesDispatch; });
4511
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return twoOfficesDispatch; });
4512
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toResetProcessIndex; });
4513
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return resetProcess; });
4514
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskContinuationIndex; });
4515
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskContinuation; });
4516
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getFreeStartFlowParams; });
4517
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeStartFlowWithSubmitTask; });
4497
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return isCanStartSubFlow; });
4498
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskUnionExamine; });
4499
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskUnionExamine; });
4500
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskTakeAdvice; });
4501
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskTakeAdvice; });
4502
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskStartDraft; });
4503
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskSupervise; });
4504
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskSuperviseSub; });
4505
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskStartDraft; });
4506
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskReview; });
4507
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskReview; });
4508
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskUnionSeal; });
4509
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskUnionSeal; });
4510
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTwoOfficesDispatch; });
4511
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return twoOfficesDispatch; });
4512
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toResetProcessIndex; });
4513
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return resetProcess; });
4514
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskContinuationIndex; });
4515
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskContinuation; });
4516
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getFreeStartFlowParams; });
4517
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlowWithSubmitTask; });
4518
4518
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
4519
4519
  /* unused harmony export pendedhistoryListWithCircularReadJson */
4520
4520
  /* unused harmony export fyListJson */
4521
4521
  /* unused harmony export circularReadWithdraw */
4522
4522
  /* unused harmony export taskReadWithDraw */
4523
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
4523
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
4524
4524
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
4525
4525
  /* unused harmony export sendList */
4526
4526
  /* unused harmony export sendInfo */
@@ -4529,56 +4529,56 @@ module.exports = require("eoss/lib/data-table");
4529
4529
  /* unused harmony export sendDelete */
4530
4530
  /* unused harmony export sendBatch */
4531
4531
  /* unused harmony export formContents */
4532
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return directStartTaskCircularRead; });
4533
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowAndStartTaskCircularRead; });
4534
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNodeInfoForStart; });
4535
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlow; });
4536
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUrgencyLevelChangedNotificationType; });
4537
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toFreeTaskCircularRead; });
4538
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeTaskCircularRead; });
4539
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageLists; });
4532
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return directStartTaskCircularRead; });
4533
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return endFlowAndStartTaskCircularRead; });
4534
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfoForStart; });
4535
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeStartFlow; });
4536
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getUrgencyLevelChangedNotificationType; });
4537
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toFreeTaskCircularRead; });
4538
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeTaskCircularRead; });
4539
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return pageLists; });
4540
4540
  /* unused harmony export publishedLists */
4541
4541
  /* unused harmony export pageInfo */
4542
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageGroup; });
4543
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageSave; });
4544
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pageUpdate; });
4545
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageDelete; });
4542
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return pageGroup; });
4543
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageSave; });
4544
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageUpdate; });
4545
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pageDelete; });
4546
4546
  /* unused harmony export pageTargetDelete */
4547
4547
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
4548
4548
  /* unused harmony export batchUpdate */
4549
4549
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
4550
4550
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
4551
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processListJson; });
4552
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processInfo; });
4553
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processDeleteJson; });
4554
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processSave; });
4555
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return processUpdate; });
4556
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeListJson; });
4557
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return nodeDeleteJson; });
4558
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return nodeSave; });
4559
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return nodeUpdate; });
4560
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeInfo; });
4561
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleListJson; });
4562
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return moduleInfo; });
4563
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return moduleDelete; });
4564
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleSave; });
4565
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return moduleUpdate; });
4566
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleListJson; });
4567
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleEdit; });
4568
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleRead; });
4569
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleSave; });
4551
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return processListJson; });
4552
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return processInfo; });
4553
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return processDeleteJson; });
4554
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processSave; });
4555
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processUpdate; });
4556
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return nodeListJson; });
4557
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return nodeDeleteJson; });
4558
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeSave; });
4559
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeUpdate; });
4560
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return nodeInfo; });
4561
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return moduleListJson; });
4562
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return moduleInfo; });
4563
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return moduleDelete; });
4564
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleSave; });
4565
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleUpdate; });
4566
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return ruleListJson; });
4567
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return ruleEdit; });
4568
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleRead; });
4569
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleSave; });
4570
4570
  /* unused harmony export ruleSupplement */
4571
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return ruleUndore; });
4572
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleAdd; });
4573
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyDetail; });
4571
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleUndore; });
4572
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleAdd; });
4573
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return companyDetail; });
4574
4574
  /* unused harmony export issueDetailList */
4575
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return deleteRule; });
4576
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getSysParamV1; });
4577
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return companyList; });
4578
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return supplement; });
4579
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isAddSource; });
4580
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return tiggerInTime; });
4581
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateHistory; });
4575
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteRule; });
4576
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSysParamV1; });
4577
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyList; });
4578
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return supplement; });
4579
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return isAddSource; });
4580
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return tiggerInTime; });
4581
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return updateHistory; });
4582
4582
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
4583
4583
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
4584
4584
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
@@ -5000,759 +5000,736 @@ var changeInTime = '/baseIssueRules/changeInTime';
5000
5000
  /* unused harmony export getSecond */
5001
5001
  /* unused harmony export getWeekday */
5002
5002
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
5003
- /* Modified from https://github.com/taylorhakes/fecha
5004
- *
5005
- * The MIT License (MIT)
5006
- *
5007
- * Copyright (c) 2015 Taylor Hakes
5008
- *
5009
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5010
- * of this software and associated documentation files (the "Software"), to deal
5011
- * in the Software without restriction, including without limitation the rights
5012
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5013
- * copies of the Software, and to permit persons to whom the Software is
5014
- * furnished to do so, subject to the following conditions:
5015
- *
5016
- * The above copyright notice and this permission notice shall be included in all
5017
- * copies or substantial portions of the Software.
5018
- *
5019
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5020
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5021
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5022
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5023
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5024
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5025
- * SOFTWARE.
5026
- */
5027
-
5028
- /*eslint-disable*/
5029
- // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
5030
-
5031
-
5003
+
5004
+
5032
5005
  /**
5033
5006
  * Parse or format dates
5034
5007
  * @class fecha
5035
- */
5036
- const fecha = {};
5037
- const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
5038
- const twoDigits = '\\d\\d?';
5039
- const threeDigits = '\\d{3}';
5040
- const fourDigits = '\\d{4}';
5041
- const word = '[^\\s]+';
5042
- const literal = /\[([^]*?)\]/gm;
5043
- const noop = function () {};
5044
-
5045
- function regexEscape(str) {
5046
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
5047
- }
5048
-
5049
- function shorten(arr, sLen) {
5050
- const newArr = [];
5051
- for (let i = 0, len = arr.length; i < len; i++) {
5052
- newArr.push(arr[i].substr(0, sLen));
5053
- }
5054
- return newArr;
5055
- }
5056
-
5057
- function monthUpdate() {
5058
- return function (d, v) {
5059
- const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
5060
- if (~index) {
5061
- d.month = index;
5062
- }
5063
- };
5064
- }
5065
-
5066
- function pad(val, len) {
5067
- val = String(val);
5068
- len = len || 2;
5069
- while (val.length < len) {
5070
- val = '0' + val;
5071
- }
5072
- return val;
5073
- }
5074
-
5075
- // 直接使用中文日期名称常量
5076
- const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
5077
- const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
5078
- const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
5079
- const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
5080
- const amPm = ['上午', '下午'];
5081
- const DoFn = function DoFn(D) {
5082
- return D + '日';
5083
- };
5084
-
5085
- const formatFlags = {
5086
- D: function(dateObj) {
5087
- return dateObj.getDay();
5088
- },
5089
- DD: function(dateObj) {
5090
- return pad(dateObj.getDay());
5091
- },
5092
- Do: function(dateObj) {
5093
- return DoFn(dateObj.getDate());
5094
- },
5095
- d: function(dateObj) {
5096
- return dateObj.getDate();
5097
- },
5098
- dd: function(dateObj) {
5099
- return pad(dateObj.getDate());
5100
- },
5101
- ddd: function(dateObj) {
5102
- return dayNamesShort[dateObj.getDay()];
5103
- },
5104
- dddd: function(dateObj) {
5105
- return dayNames[dateObj.getDay()];
5106
- },
5107
- M: function(dateObj) {
5108
- return dateObj.getMonth() + 1;
5109
- },
5110
- MM: function(dateObj) {
5111
- return pad(dateObj.getMonth() + 1);
5112
- },
5113
- MMM: function(dateObj) {
5114
- return monthNamesShort[dateObj.getMonth()];
5115
- },
5116
- MMMM: function(dateObj) {
5117
- return monthNames[dateObj.getMonth()];
5118
- },
5119
- yy: function(dateObj) {
5120
- return pad(String(dateObj.getFullYear()), 4).substr(2);
5121
- },
5122
- yyyy: function(dateObj) {
5123
- return pad(dateObj.getFullYear(), 4);
5124
- },
5125
- h: function(dateObj) {
5126
- return dateObj.getHours() % 12 || 12;
5127
- },
5128
- hh: function(dateObj) {
5129
- return pad(dateObj.getHours() % 12 || 12);
5130
- },
5131
- H: function(dateObj) {
5132
- return dateObj.getHours();
5133
- },
5134
- HH: function(dateObj) {
5135
- return pad(dateObj.getHours());
5136
- },
5137
- m: function(dateObj) {
5138
- return dateObj.getMinutes();
5139
- },
5140
- mm: function(dateObj) {
5141
- return pad(dateObj.getMinutes());
5142
- },
5143
- s: function(dateObj) {
5144
- return dateObj.getSeconds();
5145
- },
5146
- ss: function(dateObj) {
5147
- return pad(dateObj.getSeconds());
5148
- },
5149
- S: function(dateObj) {
5150
- return Math.round(dateObj.getMilliseconds() / 100);
5151
- },
5152
- SS: function(dateObj) {
5153
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5154
- },
5155
- SSS: function(dateObj) {
5156
- return pad(dateObj.getMilliseconds(), 3);
5157
- },
5158
- a: function(dateObj) {
5159
- return dateObj.getHours() < 12 ? '上午' : '下午';
5160
- },
5161
- A: function(dateObj) {
5162
- return dateObj.getHours() < 12 ? '上午' : '下午';
5163
- },
5164
- ZZ: function(dateObj) {
5165
- const o = dateObj.getTimezoneOffset();
5166
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5167
- }
5168
- };
5169
-
5170
- const parseFlags = {
5171
- d: [twoDigits, function (d, v) {
5172
- d.day = v;
5173
- }],
5174
- Do: [twoDigits + word, function (d, v) {
5175
- d.day = parseInt(v, 10);
5176
- }],
5177
- M: [twoDigits, function (d, v) {
5178
- d.month = v - 1;
5179
- }],
5180
- yy: [twoDigits, function (d, v) {
5181
- const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
5182
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5183
- }],
5184
- h: [twoDigits, function (d, v) {
5185
- d.hour = v;
5186
- }],
5187
- m: [twoDigits, function (d, v) {
5188
- d.minute = v;
5189
- }],
5190
- s: [twoDigits, function (d, v) {
5191
- d.second = v;
5192
- }],
5193
- yyyy: [fourDigits, function (d, v) {
5194
- d.year = v;
5195
- }],
5196
- S: ['\\d', function (d, v) {
5197
- d.millisecond = v * 100;
5198
- }],
5199
- SS: ['\\d{2}', function (d, v) {
5200
- d.millisecond = v * 10;
5201
- }],
5202
- SSS: [threeDigits, function (d, v) {
5203
- d.millisecond = v;
5204
- }],
5205
- D: [twoDigits, noop],
5206
- ddd: [word, noop],
5207
- MMM: [word, monthUpdate('monthNamesShort')],
5208
- MMMM: [word, monthUpdate('monthNames')],
5209
- a: [word, function (d, v) {
5210
- const val = v.toLowerCase();
5211
- if (val === '上午') {
5212
- d.isPm = false;
5213
- } else if (val === '下午') {
5214
- d.isPm = true;
5215
- }
5216
- }],
5217
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5218
- let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
5219
-
5220
- if (parts) {
5221
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5222
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5223
- }
5224
- }]
5225
- };
5226
- parseFlags.dd = parseFlags.d;
5227
- parseFlags.dddd = parseFlags.ddd;
5228
- parseFlags.DD = parseFlags.D;
5229
- parseFlags.mm = parseFlags.m;
5230
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5231
- parseFlags.MM = parseFlags.M;
5232
- parseFlags.ss = parseFlags.s;
5233
- parseFlags.A = parseFlags.a;
5234
-
5235
-
5236
- // Some common format strings
5237
- fecha.masks = {
5238
- default: 'ddd MMM dd yyyy HH:mm:ss',
5239
- shortDate: 'M/D/yy',
5240
- mediumDate: 'MMM d, yyyy',
5241
- longDate: 'MMMM d, yyyy',
5242
- fullDate: 'dddd, MMMM d, yyyy',
5243
- shortTime: 'HH:mm',
5244
- mediumTime: 'HH:mm:ss',
5245
- longTime: 'HH:mm:ss.SSS'
5246
- };
5247
-
5008
+ */
5009
+ var fecha = {};
5010
+ var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
5011
+ var twoDigits = '\\d\\d?';
5012
+ var threeDigits = '\\d{3}';
5013
+ var fourDigits = '\\d{4}';
5014
+ var word = '[^\\s]+';
5015
+ var literal = /\[([^]*?)\]/gm;
5016
+ var noop = function noop() {};
5017
+
5018
+ function regexEscape(str) {
5019
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
5020
+ }
5021
+
5022
+ function shorten(arr, sLen) {
5023
+ var newArr = [];
5024
+ for (var i = 0, len = arr.length; i < len; i++) {
5025
+ newArr.push(arr[i].substr(0, sLen));
5026
+ }
5027
+ return newArr;
5028
+ }
5029
+
5030
+ function monthUpdate() {
5031
+ return function (d, v) {
5032
+ var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
5033
+ if (~index) {
5034
+ d.month = index;
5035
+ }
5036
+ };
5037
+ }
5038
+
5039
+ function pad(val, len) {
5040
+ val = String(val);
5041
+ len = len || 2;
5042
+ while (val.length < len) {
5043
+ val = '0' + val;
5044
+ }
5045
+ return val;
5046
+ }
5047
+
5048
+ // 直接使用中文日期名称常量
5049
+ var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
5050
+ var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
5051
+ var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
5052
+ var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
5053
+ var amPm = ['上午', '下午'];
5054
+ var DoFn = function DoFn(D) {
5055
+ return D + '日';
5056
+ };
5057
+
5058
+ var formatFlags = {
5059
+ D: function D(dateObj) {
5060
+ return dateObj.getDay();
5061
+ },
5062
+ DD: function DD(dateObj) {
5063
+ return pad(dateObj.getDay());
5064
+ },
5065
+ Do: function Do(dateObj) {
5066
+ return DoFn(dateObj.getDate());
5067
+ },
5068
+ d: function d(dateObj) {
5069
+ return dateObj.getDate();
5070
+ },
5071
+ dd: function dd(dateObj) {
5072
+ return pad(dateObj.getDate());
5073
+ },
5074
+ ddd: function ddd(dateObj) {
5075
+ return dayNamesShort[dateObj.getDay()];
5076
+ },
5077
+ dddd: function dddd(dateObj) {
5078
+ return dayNames[dateObj.getDay()];
5079
+ },
5080
+ M: function M(dateObj) {
5081
+ return dateObj.getMonth() + 1;
5082
+ },
5083
+ MM: function MM(dateObj) {
5084
+ return pad(dateObj.getMonth() + 1);
5085
+ },
5086
+ MMM: function MMM(dateObj) {
5087
+ return monthNamesShort[dateObj.getMonth()];
5088
+ },
5089
+ MMMM: function MMMM(dateObj) {
5090
+ return monthNames[dateObj.getMonth()];
5091
+ },
5092
+ yy: function yy(dateObj) {
5093
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
5094
+ },
5095
+ yyyy: function yyyy(dateObj) {
5096
+ return pad(dateObj.getFullYear(), 4);
5097
+ },
5098
+ h: function h(dateObj) {
5099
+ return dateObj.getHours() % 12 || 12;
5100
+ },
5101
+ hh: function hh(dateObj) {
5102
+ return pad(dateObj.getHours() % 12 || 12);
5103
+ },
5104
+ H: function H(dateObj) {
5105
+ return dateObj.getHours();
5106
+ },
5107
+ HH: function HH(dateObj) {
5108
+ return pad(dateObj.getHours());
5109
+ },
5110
+ m: function m(dateObj) {
5111
+ return dateObj.getMinutes();
5112
+ },
5113
+ mm: function mm(dateObj) {
5114
+ return pad(dateObj.getMinutes());
5115
+ },
5116
+ s: function s(dateObj) {
5117
+ return dateObj.getSeconds();
5118
+ },
5119
+ ss: function ss(dateObj) {
5120
+ return pad(dateObj.getSeconds());
5121
+ },
5122
+ S: function S(dateObj) {
5123
+ return Math.round(dateObj.getMilliseconds() / 100);
5124
+ },
5125
+ SS: function SS(dateObj) {
5126
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5127
+ },
5128
+ SSS: function SSS(dateObj) {
5129
+ return pad(dateObj.getMilliseconds(), 3);
5130
+ },
5131
+ a: function a(dateObj) {
5132
+ return dateObj.getHours() < 12 ? '上午' : '下午';
5133
+ },
5134
+ A: function A(dateObj) {
5135
+ return dateObj.getHours() < 12 ? '上午' : '下午';
5136
+ },
5137
+ ZZ: function ZZ(dateObj) {
5138
+ var o = dateObj.getTimezoneOffset();
5139
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5140
+ }
5141
+ };
5142
+
5143
+ var parseFlags = {
5144
+ d: [twoDigits, function (d, v) {
5145
+ d.day = v;
5146
+ }],
5147
+ Do: [twoDigits + word, function (d, v) {
5148
+ d.day = parseInt(v, 10);
5149
+ }],
5150
+ M: [twoDigits, function (d, v) {
5151
+ d.month = v - 1;
5152
+ }],
5153
+ yy: [twoDigits, function (d, v) {
5154
+ var da = new Date(),
5155
+ cent = +('' + da.getFullYear()).substr(0, 2);
5156
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5157
+ }],
5158
+ h: [twoDigits, function (d, v) {
5159
+ d.hour = v;
5160
+ }],
5161
+ m: [twoDigits, function (d, v) {
5162
+ d.minute = v;
5163
+ }],
5164
+ s: [twoDigits, function (d, v) {
5165
+ d.second = v;
5166
+ }],
5167
+ yyyy: [fourDigits, function (d, v) {
5168
+ d.year = v;
5169
+ }],
5170
+ S: ['\\d', function (d, v) {
5171
+ d.millisecond = v * 100;
5172
+ }],
5173
+ SS: ['\\d{2}', function (d, v) {
5174
+ d.millisecond = v * 10;
5175
+ }],
5176
+ SSS: [threeDigits, function (d, v) {
5177
+ d.millisecond = v;
5178
+ }],
5179
+ D: [twoDigits, noop],
5180
+ ddd: [word, noop],
5181
+ MMM: [word, monthUpdate('monthNamesShort')],
5182
+ MMMM: [word, monthUpdate('monthNames')],
5183
+ a: [word, function (d, v) {
5184
+ var val = v.toLowerCase();
5185
+ if (val === '上午') {
5186
+ d.isPm = false;
5187
+ } else if (val === '下午') {
5188
+ d.isPm = true;
5189
+ }
5190
+ }],
5191
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5192
+ var parts = (v + '').match(/([+-]|\d\d)/gi),
5193
+ minutes = void 0;
5194
+
5195
+ if (parts) {
5196
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5197
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5198
+ }
5199
+ }]
5200
+ };
5201
+ parseFlags.dd = parseFlags.d;
5202
+ parseFlags.dddd = parseFlags.ddd;
5203
+ parseFlags.DD = parseFlags.D;
5204
+ parseFlags.mm = parseFlags.m;
5205
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5206
+ parseFlags.MM = parseFlags.M;
5207
+ parseFlags.ss = parseFlags.s;
5208
+ parseFlags.A = parseFlags.a;
5209
+
5210
+ // Some common format strings
5211
+ fecha.masks = {
5212
+ default: 'ddd MMM dd yyyy HH:mm:ss',
5213
+ shortDate: 'M/D/yy',
5214
+ mediumDate: 'MMM d, yyyy',
5215
+ longDate: 'MMMM d, yyyy',
5216
+ fullDate: 'dddd, MMMM d, yyyy',
5217
+ shortTime: 'HH:mm',
5218
+ mediumTime: 'HH:mm:ss',
5219
+ longTime: 'HH:mm:ss.SSS'
5220
+ };
5221
+
5248
5222
  /***
5249
5223
  * Format a date
5250
5224
  * @method format
5251
5225
  * @param {Date|number} dateObj
5252
5226
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
5253
- */
5254
- fecha.format = function (dateObj, mask) {
5255
- if (typeof dateObj === 'number') {
5256
- dateObj = new Date(dateObj);
5257
- }
5258
-
5259
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5260
- throw new Error('Invalid Date in fecha.format');
5261
- }
5262
-
5263
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
5264
-
5265
- const literals = [];
5266
-
5267
- // Make literals inactive by replacing them with ??
5268
- mask = mask.replace(literal, function($0, $1) {
5269
- literals.push($1);
5270
- return '@@@';
5271
- });
5272
- // Apply formatting rules
5273
- mask = mask.replace(token, function ($0) {
5274
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
5275
- });
5276
- // Inline literal values back into the formatted value
5277
- return mask.replace(/@@@/g, function() {
5278
- return literals.shift();
5279
- });
5280
- };
5281
-
5227
+ */
5228
+ fecha.format = function (dateObj, mask) {
5229
+ if (typeof dateObj === 'number') {
5230
+ dateObj = new Date(dateObj);
5231
+ }
5232
+
5233
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5234
+ throw new Error('Invalid Date in fecha.format');
5235
+ }
5236
+
5237
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
5238
+
5239
+ var literals = [];
5240
+
5241
+ // Make literals inactive by replacing them with ??
5242
+ mask = mask.replace(literal, function ($0, $1) {
5243
+ literals.push($1);
5244
+ return '@@@';
5245
+ });
5246
+ // Apply formatting rules
5247
+ mask = mask.replace(token, function ($0) {
5248
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
5249
+ });
5250
+ // Inline literal values back into the formatted value
5251
+ return mask.replace(/@@@/g, function () {
5252
+ return literals.shift();
5253
+ });
5254
+ };
5255
+
5282
5256
  /**
5283
5257
  * Parse a date string into an object, changes - into /
5284
5258
  * @method parse
5285
5259
  * @param {string} dateStr Date string
5286
5260
  * @param {string} format Date parse format
5287
5261
  * @returns {Date|boolean}
5288
- */
5289
- fecha.parse = function (dateStr, format) {
5290
- if (typeof format !== 'string') {
5291
- throw new Error('Invalid format in fecha.parse');
5292
- }
5293
-
5294
- format = fecha.masks[format] || format;
5295
-
5296
- // Avoid regular expression denial of service, fail early for really long strings
5297
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5298
- if (dateStr.length > 1000) {
5299
- return null;
5300
- }
5301
-
5302
- const dateInfo = {};
5303
- const parseInfo = [];
5304
- const literals = [];
5305
- format = format.replace(literal, function($0, $1) {
5306
- literals.push($1);
5307
- return '@@@';
5308
- });
5309
- let newFormat = regexEscape(format).replace(token, function ($0) {
5310
- if (parseFlags[$0]) {
5311
- const info = parseFlags[$0];
5312
- parseInfo.push(info[1]);
5313
- return '(' + info[0] + ')';
5314
- }
5315
-
5316
- return $0;
5317
- });
5318
- newFormat = newFormat.replace(/@@@/g, function() {
5319
- return literals.shift();
5320
- });
5321
- const matches = dateStr.match(new RegExp(newFormat, 'i'));
5322
- if (!matches) {
5323
- return null;
5324
- }
5325
-
5326
- for (let i = 1; i < matches.length; i++) {
5327
- parseInfo[i - 1](dateInfo, matches[i]);
5328
- }
5329
-
5330
- const today = new Date();
5331
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5332
- dateInfo.hour = +dateInfo.hour + 12;
5333
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5334
- dateInfo.hour = 0;
5335
- }
5336
-
5337
- let date;
5338
- if (dateInfo.timezoneOffset != null) {
5339
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5340
- date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
5341
- dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
5342
- } else {
5343
- date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
5344
- dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
5345
- }
5346
- return date;
5347
- };
5348
-
5349
- // 导出fecha对象
5350
-
5351
-
5352
- // 以下是从date-util.js合并的函数
5353
- const newArray = function(start, end) {
5354
- let result = [];
5355
- for (let i = start; i <= end; i++) {
5356
- result.push(i);
5357
- }
5358
- return result;
5359
- };
5360
-
5361
- const getSettings = () => {
5362
- return {
5363
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
5364
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
5365
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
5366
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
5367
- amPm: ['上午', '下午']
5368
- };
5369
- };
5370
-
5371
- const toDate = function(date) {
5372
- return isDate(date) ? new Date(date) : null;
5373
- };
5374
-
5375
- const isDate = function(date) {
5376
- if (date === null || date === undefined) return false;
5377
- if (isNaN(new Date(date).getTime())) return false;
5378
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
5379
- return true;
5380
- };
5381
-
5382
- const isDateObject = function(val) {
5383
- return val instanceof Date;
5384
- };
5385
-
5386
- const formatDate = function (date, format = 'yyyy-MM-dd') {
5387
- // 处理多种输入类型
5388
- if (!date) return '';
5389
-
5390
- // 如果是时间戳,转成日期对象
5391
- if (typeof date === 'number') {
5392
- date = new Date(date);
5393
- }
5394
- // 如果是字符串,转成日期对象
5395
- if (typeof date === 'string') {
5396
- date = new Date(date);
5397
- }
5398
-
5399
- // 调用toDate进一步验证和转换
5400
- date = toDate(date);
5401
- if (!date) return '';
5402
-
5403
- // 兼容大写和小写的格式标记
5404
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
5405
- const lowercaseFormat = format
5406
- .replace(/YYYY/g, 'yyyy')
5407
- .replace(/D/g, 'd')
5408
-
5409
- // 使用fecha库进行格式化,支持中文配置
5410
- const str = fecha.format(date, lowercaseFormat, getSettings());
5411
- return str;
5412
- };
5413
-
5414
- const parseDate = function(string, format) {
5415
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
5416
- };
5417
-
5418
- const getDayCountOfMonth = function(year, month) {
5419
- if (month === 3 || month === 5 || month === 8 || month === 10) {
5420
- return 30;
5421
- }
5422
-
5423
- if (month === 1) {
5424
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
5425
- return 29;
5426
- } else {
5427
- return 28;
5428
- }
5429
- }
5430
-
5431
- return 31;
5432
- };
5433
-
5434
- const getDayCountOfYear = function(year) {
5435
- const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
5436
- return isLeapYear ? 366 : 365;
5437
- };
5438
-
5439
- const getFirstDayOfMonth = function(date) {
5440
- const temp = new Date(date.getTime());
5441
- temp.setDate(1);
5442
- return temp.getDay();
5443
- };
5444
-
5445
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
5446
- // {prev, next} Date should work for Daylight Saving Time
5447
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
5448
- const prevDate = function(date, amount = 1) {
5449
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
5450
- };
5451
-
5452
- const nextDate = function(date, amount = 1) {
5453
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
5454
- };
5455
-
5456
- const getStartDateOfMonth = function(year, month) {
5457
- const result = new Date(year, month, 1);
5458
- const day = result.getDay();
5459
-
5460
- if (day === 0) {
5461
- return prevDate(result, 7);
5462
- } else {
5463
- return prevDate(result, day);
5464
- }
5465
- };
5466
-
5467
- const getWeekNumber = function(date) {
5468
- // 支持多种输入类型
5469
- if (!date||!isDate(date)) {
5470
- date = new Date();
5471
- }
5472
- if (typeof date === 'string') {
5473
- date = new Date(date);
5474
- }
5475
-
5476
- // 验证日期有效性
5477
- if (!isDate(date)) return null;
5478
-
5479
- const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
5480
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
5481
- // 将星期日的星期数设为7
5482
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
5483
- // 获取当年的第一天
5484
- const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
5485
- // 计算到最近的星期四的完整周数
5486
- const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
5487
- // 返回周数
5488
- return weekNo;
5489
- };
5490
-
5491
- const getRangeHours = function(ranges) {
5492
- const hours = [];
5493
- let disabledHours = [];
5494
-
5495
- (ranges || []).forEach(range => {
5496
- const value = range.map(date => date.getHours());
5497
-
5498
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
5499
- });
5500
-
5501
- if (disabledHours.length) {
5502
- for (let i = 0; i < 24; i++) {
5503
- hours[i] = disabledHours.indexOf(i) === -1;
5504
- }
5505
- } else {
5506
- for (let i = 0; i < 24; i++) {
5507
- hours[i] = false;
5508
- }
5509
- }
5510
-
5511
- return hours;
5512
- };
5513
-
5514
- const getPrevMonthLastDays = (date, amount) => {
5515
- if (amount <= 0) return [];
5516
- const temp = new Date(date.getTime());
5517
- temp.setDate(0);
5518
- const lastDay = temp.getDate();
5519
- return range(amount).map((_, index) => lastDay - (amount - index - 1));
5520
- };
5521
-
5522
- const getMonthDays = (date) => {
5523
- const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
5524
- const days = temp.getDate();
5525
- return range(days).map((_, index) => index + 1);
5526
- };
5527
-
5528
- function setRangeData(arr, start, end, value) {
5529
- for (let i = start; i < end; i++) {
5530
- arr[i] = value;
5531
- }
5532
- }
5533
-
5534
- const getRangeMinutes = function(ranges, hour) {
5535
- const minutes = new Array(60);
5536
-
5537
- if (ranges.length > 0) {
5538
- ranges.forEach(range => {
5539
- const start = range[0];
5540
- const end = range[1];
5541
- const startHour = start.getHours();
5542
- const startMinute = start.getMinutes();
5543
- const endHour = end.getHours();
5544
- const endMinute = end.getMinutes();
5545
- if (startHour === hour && endHour !== hour) {
5546
- setRangeData(minutes, startMinute, 60, true);
5547
- } else if (startHour === hour && endHour === hour) {
5548
- setRangeData(minutes, startMinute, endMinute + 1, true);
5549
- } else if (startHour !== hour && endHour === hour) {
5550
- setRangeData(minutes, 0, endMinute + 1, true);
5551
- } else if (startHour < hour && endHour > hour) {
5552
- setRangeData(minutes, 0, 60, true);
5553
- }
5554
- });
5555
- } else {
5556
- setRangeData(minutes, 0, 60, true);
5557
- }
5558
- return minutes;
5559
- };
5560
-
5561
- const range = function(n) {
5562
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
5563
- return Array.apply(null, {length: n}).map((_, n) => n);
5564
- };
5565
-
5566
- const modifyDate = function(date, y, m, d) {
5567
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
5568
- };
5569
-
5570
- const modifyTime = function(date, h, m, s) {
5571
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
5572
- };
5573
-
5574
- const modifyWithTimeString = (date, time) => {
5575
- if (date == null || !time) {
5576
- return date;
5577
- }
5578
- time = parseDate(time, 'HH:mm:ss');
5579
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
5580
- };
5581
-
5582
- const clearTime = function(date) {
5583
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
5584
- };
5585
-
5586
- const clearMilliseconds = function(date) {
5587
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
5588
- };
5589
-
5590
- const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
5591
- // TODO: refactory a more elegant solution
5592
- if (ranges.length === 0) return date;
5593
- const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
5594
- const ndate = normalizeDate(date);
5595
- const nranges = ranges.map(range => range.map(normalizeDate));
5596
- if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
5597
-
5598
- let minDate = nranges[0][0];
5599
- let maxDate = nranges[0][0];
5600
-
5601
- nranges.forEach(nrange => {
5602
- minDate = new Date(Math.min(nrange[0], minDate));
5603
- maxDate = new Date(Math.max(nrange[1], minDate));
5604
- });
5605
-
5606
- const ret = ndate < minDate ? minDate : maxDate;
5607
- // preserve Year/Month/Date
5608
- return modifyDate(
5609
- ret,
5610
- date.getFullYear(),
5611
- date.getMonth(),
5612
- date.getDate()
5613
- );
5614
- };
5615
-
5616
- const timeWithinRange = function(date, selectableRange, format) {
5617
- const limitedDate = limitTimeRange(date, selectableRange, format);
5618
- return limitedDate.getTime() === date.getTime();
5619
- };
5620
-
5621
- const changeYearMonthAndClampDate = function(date, year, month) {
5622
- // clamp date to the number of days in `year`, `month`
5623
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
5624
- const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
5625
- return modifyDate(date, year, month, monthDate);
5626
- };
5627
-
5628
- const prevMonth = function(date) {
5629
- const year = date.getFullYear();
5630
- const month = date.getMonth();
5631
- return month === 0
5632
- ? changeYearMonthAndClampDate(date, year - 1, 11)
5633
- : changeYearMonthAndClampDate(date, year, month - 1);
5634
- };
5635
-
5636
- const nextMonth = function(date) {
5637
- const year = date.getFullYear();
5638
- const month = date.getMonth();
5639
- return month === 11
5640
- ? changeYearMonthAndClampDate(date, year + 1, 0)
5641
- : changeYearMonthAndClampDate(date, year, month + 1);
5642
- };
5643
-
5644
- const prevYear = function(date, amount = 1) {
5645
- const year = date.getFullYear();
5646
- const month = date.getMonth();
5647
- return changeYearMonthAndClampDate(date, year - amount, month);
5648
- };
5649
-
5650
- const nextYear = function(date, amount = 1) {
5651
- const year = date.getFullYear();
5652
- const month = date.getMonth();
5653
- return changeYearMonthAndClampDate(date, year + amount, month);
5654
- };
5655
-
5656
- const extractDateFormat = function(format) {
5657
- return format
5658
- .replace(/\W?m{1,2}|\W?ZZ/g, '')
5659
- .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
5660
- .trim();
5661
- };
5662
-
5663
- const extractTimeFormat = function(format) {
5664
- return format
5665
- .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
5666
- .trim();
5667
- };
5668
-
5669
- const validateRangeInOneMonth = function(start, end) {
5670
- return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
5671
- };
5672
-
5262
+ */
5263
+ fecha.parse = function (dateStr, format) {
5264
+ if (typeof format !== 'string') {
5265
+ throw new Error('Invalid format in fecha.parse');
5266
+ }
5267
+
5268
+ format = fecha.masks[format] || format;
5269
+
5270
+ // Avoid regular expression denial of service, fail early for really long strings
5271
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5272
+ if (dateStr.length > 1000) {
5273
+ return null;
5274
+ }
5275
+
5276
+ var dateInfo = {};
5277
+ var parseInfo = [];
5278
+ var literals = [];
5279
+ format = format.replace(literal, function ($0, $1) {
5280
+ literals.push($1);
5281
+ return '@@@';
5282
+ });
5283
+ var newFormat = regexEscape(format).replace(token, function ($0) {
5284
+ if (parseFlags[$0]) {
5285
+ var info = parseFlags[$0];
5286
+ parseInfo.push(info[1]);
5287
+ return '(' + info[0] + ')';
5288
+ }
5289
+
5290
+ return $0;
5291
+ });
5292
+ newFormat = newFormat.replace(/@@@/g, function () {
5293
+ return literals.shift();
5294
+ });
5295
+ var matches = dateStr.match(new RegExp(newFormat, 'i'));
5296
+ if (!matches) {
5297
+ return null;
5298
+ }
5299
+
5300
+ for (var i = 1; i < matches.length; i++) {
5301
+ parseInfo[i - 1](dateInfo, matches[i]);
5302
+ }
5303
+
5304
+ var today = new Date();
5305
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5306
+ dateInfo.hour = +dateInfo.hour + 12;
5307
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5308
+ dateInfo.hour = 0;
5309
+ }
5310
+
5311
+ var date = void 0;
5312
+ if (dateInfo.timezoneOffset != null) {
5313
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5314
+ 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));
5315
+ } else {
5316
+ 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);
5317
+ }
5318
+ return date;
5319
+ };
5320
+
5321
+ // 导出fecha对象
5322
+
5323
+
5324
+ // 以下是从date-util.js合并的函数
5325
+ var newArray = function newArray(start, end) {
5326
+ var result = [];
5327
+ for (var i = start; i <= end; i++) {
5328
+ result.push(i);
5329
+ }
5330
+ return result;
5331
+ };
5332
+
5333
+ var getSettings = function getSettings() {
5334
+ return {
5335
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
5336
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
5337
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
5338
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
5339
+ amPm: ['上午', '下午']
5340
+ };
5341
+ };
5342
+
5343
+ var toDate = function toDate(date) {
5344
+ return isDate(date) ? new Date(date) : null;
5345
+ };
5346
+
5347
+ var isDate = function isDate(date) {
5348
+ if (date === null || date === undefined) return false;
5349
+ if (isNaN(new Date(date).getTime())) return false;
5350
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
5351
+ return true;
5352
+ };
5353
+
5354
+ var isDateObject = function isDateObject(val) {
5355
+ return val instanceof Date;
5356
+ };
5357
+
5358
+ var formatDate = function formatDate(date) {
5359
+ var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
5360
+
5361
+ // 处理多种输入类型
5362
+ if (!date) return '';
5363
+
5364
+ // 如果是时间戳,转成日期对象
5365
+ if (typeof date === 'number') {
5366
+ date = new Date(date);
5367
+ }
5368
+ // 如果是字符串,转成日期对象
5369
+ if (typeof date === 'string') {
5370
+ date = new Date(date);
5371
+ }
5372
+
5373
+ // 调用toDate进一步验证和转换
5374
+ date = toDate(date);
5375
+ if (!date) return '';
5376
+
5377
+ // 兼容大写和小写的格式标记
5378
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
5379
+ var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
5380
+
5381
+ // 使用fecha库进行格式化,支持中文配置
5382
+ var str = fecha.format(date, lowercaseFormat, getSettings());
5383
+ return str;
5384
+ };
5385
+
5386
+ var parseDate = function parseDate(string, format) {
5387
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
5388
+ };
5389
+
5390
+ var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
5391
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
5392
+ return 30;
5393
+ }
5394
+
5395
+ if (month === 1) {
5396
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
5397
+ return 29;
5398
+ } else {
5399
+ return 28;
5400
+ }
5401
+ }
5402
+
5403
+ return 31;
5404
+ };
5405
+
5406
+ var getDayCountOfYear = function getDayCountOfYear(year) {
5407
+ var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
5408
+ return isLeapYear ? 366 : 365;
5409
+ };
5410
+
5411
+ var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
5412
+ var temp = new Date(date.getTime());
5413
+ temp.setDate(1);
5414
+ return temp.getDay();
5415
+ };
5416
+
5417
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
5418
+ // {prev, next} Date should work for Daylight Saving Time
5419
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
5420
+ var prevDate = function prevDate(date) {
5421
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5422
+
5423
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
5424
+ };
5425
+
5426
+ var nextDate = function nextDate(date) {
5427
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5428
+
5429
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
5430
+ };
5431
+
5432
+ var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
5433
+ var result = new Date(year, month, 1);
5434
+ var day = result.getDay();
5435
+
5436
+ if (day === 0) {
5437
+ return prevDate(result, 7);
5438
+ } else {
5439
+ return prevDate(result, day);
5440
+ }
5441
+ };
5442
+
5443
+ var getWeekNumber = function getWeekNumber(date) {
5444
+ // 支持多种输入类型
5445
+ if (!date || !isDate(date)) {
5446
+ date = new Date();
5447
+ }
5448
+ if (typeof date === 'string') {
5449
+ date = new Date(date);
5450
+ }
5451
+
5452
+ // 验证日期有效性
5453
+ if (!isDate(date)) return null;
5454
+
5455
+ var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
5456
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
5457
+ // 将星期日的星期数设为7
5458
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
5459
+ // 获取当年的第一天
5460
+ var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
5461
+ // 计算到最近的星期四的完整周数
5462
+ var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
5463
+ // 返回周数
5464
+ return weekNo;
5465
+ };
5466
+
5467
+ var getRangeHours = function getRangeHours(ranges) {
5468
+ var hours = [];
5469
+ var disabledHours = [];
5470
+
5471
+ (ranges || []).forEach(function (range) {
5472
+ var value = range.map(function (date) {
5473
+ return date.getHours();
5474
+ });
5475
+
5476
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
5477
+ });
5478
+
5479
+ if (disabledHours.length) {
5480
+ for (var i = 0; i < 24; i++) {
5481
+ hours[i] = disabledHours.indexOf(i) === -1;
5482
+ }
5483
+ } else {
5484
+ for (var _i = 0; _i < 24; _i++) {
5485
+ hours[_i] = false;
5486
+ }
5487
+ }
5488
+
5489
+ return hours;
5490
+ };
5491
+
5492
+ var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
5493
+ if (amount <= 0) return [];
5494
+ var temp = new Date(date.getTime());
5495
+ temp.setDate(0);
5496
+ var lastDay = temp.getDate();
5497
+ return range(amount).map(function (_, index) {
5498
+ return lastDay - (amount - index - 1);
5499
+ });
5500
+ };
5501
+
5502
+ var getMonthDays = function getMonthDays(date) {
5503
+ var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
5504
+ var days = temp.getDate();
5505
+ return range(days).map(function (_, index) {
5506
+ return index + 1;
5507
+ });
5508
+ };
5509
+
5510
+ function setRangeData(arr, start, end, value) {
5511
+ for (var i = start; i < end; i++) {
5512
+ arr[i] = value;
5513
+ }
5514
+ }
5515
+
5516
+ var getRangeMinutes = function getRangeMinutes(ranges, hour) {
5517
+ var minutes = new Array(60);
5518
+
5519
+ if (ranges.length > 0) {
5520
+ ranges.forEach(function (range) {
5521
+ var start = range[0];
5522
+ var end = range[1];
5523
+ var startHour = start.getHours();
5524
+ var startMinute = start.getMinutes();
5525
+ var endHour = end.getHours();
5526
+ var endMinute = end.getMinutes();
5527
+ if (startHour === hour && endHour !== hour) {
5528
+ setRangeData(minutes, startMinute, 60, true);
5529
+ } else if (startHour === hour && endHour === hour) {
5530
+ setRangeData(minutes, startMinute, endMinute + 1, true);
5531
+ } else if (startHour !== hour && endHour === hour) {
5532
+ setRangeData(minutes, 0, endMinute + 1, true);
5533
+ } else if (startHour < hour && endHour > hour) {
5534
+ setRangeData(minutes, 0, 60, true);
5535
+ }
5536
+ });
5537
+ } else {
5538
+ setRangeData(minutes, 0, 60, true);
5539
+ }
5540
+ return minutes;
5541
+ };
5542
+
5543
+ var range = function range(n) {
5544
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
5545
+ return Array.apply(null, { length: n }).map(function (_, n) {
5546
+ return n;
5547
+ });
5548
+ };
5549
+
5550
+ var modifyDate = function modifyDate(date, y, m, d) {
5551
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
5552
+ };
5553
+
5554
+ var modifyTime = function modifyTime(date, h, m, s) {
5555
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
5556
+ };
5557
+
5558
+ var modifyWithTimeString = function modifyWithTimeString(date, time) {
5559
+ if (date == null || !time) {
5560
+ return date;
5561
+ }
5562
+ time = parseDate(time, 'HH:mm:ss');
5563
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
5564
+ };
5565
+
5566
+ var clearTime = function clearTime(date) {
5567
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
5568
+ };
5569
+
5570
+ var clearMilliseconds = function clearMilliseconds(date) {
5571
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
5572
+ };
5573
+
5574
+ var limitTimeRange = function limitTimeRange(date, ranges) {
5575
+ var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
5576
+
5577
+ // TODO: refactory a more elegant solution
5578
+ if (ranges.length === 0) return date;
5579
+ var normalizeDate = function normalizeDate(date) {
5580
+ return fecha.parse(fecha.format(date, format), format);
5581
+ };
5582
+ var ndate = normalizeDate(date);
5583
+ var nranges = ranges.map(function (range) {
5584
+ return range.map(normalizeDate);
5585
+ });
5586
+ if (nranges.some(function (nrange) {
5587
+ return ndate >= nrange[0] && ndate <= nrange[1];
5588
+ })) return date;
5589
+
5590
+ var minDate = nranges[0][0];
5591
+ var maxDate = nranges[0][0];
5592
+
5593
+ nranges.forEach(function (nrange) {
5594
+ minDate = new Date(Math.min(nrange[0], minDate));
5595
+ maxDate = new Date(Math.max(nrange[1], minDate));
5596
+ });
5597
+
5598
+ var ret = ndate < minDate ? minDate : maxDate;
5599
+ // preserve Year/Month/Date
5600
+ return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
5601
+ };
5602
+
5603
+ var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
5604
+ var limitedDate = limitTimeRange(date, selectableRange, format);
5605
+ return limitedDate.getTime() === date.getTime();
5606
+ };
5607
+
5608
+ var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
5609
+ // clamp date to the number of days in `year`, `month`
5610
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
5611
+ var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
5612
+ return modifyDate(date, year, month, monthDate);
5613
+ };
5614
+
5615
+ var prevMonth = function prevMonth(date) {
5616
+ var year = date.getFullYear();
5617
+ var month = date.getMonth();
5618
+ return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
5619
+ };
5620
+
5621
+ var nextMonth = function nextMonth(date) {
5622
+ var year = date.getFullYear();
5623
+ var month = date.getMonth();
5624
+ return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
5625
+ };
5626
+
5627
+ var prevYear = function prevYear(date) {
5628
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5629
+
5630
+ var year = date.getFullYear();
5631
+ var month = date.getMonth();
5632
+ return changeYearMonthAndClampDate(date, year - amount, month);
5633
+ };
5634
+
5635
+ var nextYear = function nextYear(date) {
5636
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5637
+
5638
+ var year = date.getFullYear();
5639
+ var month = date.getMonth();
5640
+ return changeYearMonthAndClampDate(date, year + amount, month);
5641
+ };
5642
+
5643
+ var extractDateFormat = function extractDateFormat(format) {
5644
+ return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
5645
+ };
5646
+
5647
+ var extractTimeFormat = function extractTimeFormat(format) {
5648
+ return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
5649
+ };
5650
+
5651
+ var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
5652
+ return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
5653
+ };
5654
+
5673
5655
  /**
5674
5656
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
5675
5657
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
5676
5658
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
5677
5659
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
5678
5660
  * @returns {number} 工作日数量
5679
- */
5680
- const calculateNetworkDays = function (start_date, end_date, holidays = []) {
5681
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
5682
- throw new Error(
5683
- "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
5684
- );
5685
- }
5686
-
5687
- const startDateObj = new Date(start_date);
5688
- const endDateObj = new Date(end_date);
5689
-
5690
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
5691
- throw new Error(
5692
- "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
5693
- );
5694
- }
5695
-
5696
- if (startDateObj > endDateObj) {
5697
- throw new Error('Start date should be earlier than or equal to end date.');
5698
- }
5699
-
5700
- let workdays = 0;
5701
-
5702
- // Iterate through each day in the date range
5703
- for (
5704
- let currentDate = new Date(startDateObj);
5705
- currentDate <= endDateObj;
5706
- currentDate.setDate(currentDate.getDate() + 1)
5707
- ) {
5708
- // Check if the current day is a weekend (Saturday or Sunday)
5709
- const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
5710
-
5711
- // Check if the current day is a holiday
5712
- const isHoliday = holidays.some((holiday) => {
5713
- const holidayDate = new Date(holiday);
5714
- return currentDate.toDateString() === holidayDate.toDateString();
5715
- });
5716
-
5717
- // If it's a workday (not a weekend or holiday), increment the workdays count
5718
- if (!isWeekend && !isHoliday) {
5719
- workdays++;
5720
- }
5721
- }
5722
-
5723
- return workdays;
5724
- };
5725
-
5661
+ */
5662
+ var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
5663
+ var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
5664
+
5665
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
5666
+ throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
5667
+ }
5668
+
5669
+ var startDateObj = new Date(start_date);
5670
+ var endDateObj = new Date(end_date);
5671
+
5672
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
5673
+ throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
5674
+ }
5675
+
5676
+ if (startDateObj > endDateObj) {
5677
+ throw new Error('Start date should be earlier than or equal to end date.');
5678
+ }
5679
+
5680
+ var workdays = 0;
5681
+
5682
+ // Iterate through each day in the date range
5683
+
5684
+ var _loop = function _loop(currentDate) {
5685
+ // Check if the current day is a weekend (Saturday or Sunday)
5686
+ var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
5687
+
5688
+ // Check if the current day is a holiday
5689
+ var isHoliday = holidays.some(function (holiday) {
5690
+ var holidayDate = new Date(holiday);
5691
+ return currentDate.toDateString() === holidayDate.toDateString();
5692
+ });
5693
+
5694
+ // If it's a workday (not a weekend or holiday), increment the workdays count
5695
+ if (!isWeekend && !isHoliday) {
5696
+ workdays++;
5697
+ }
5698
+ };
5699
+
5700
+ for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
5701
+ _loop(currentDate);
5702
+ }
5703
+
5704
+ return workdays;
5705
+ };
5706
+
5726
5707
  /**
5727
5708
  * 日期加减天数
5728
5709
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
5729
5710
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
5730
5711
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
5731
- */
5732
- const dateAddDays = function (start_date, days) {
5733
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
5734
- throw new Error(
5735
- "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
5736
- );
5737
- }
5738
-
5739
- const startDateObj = new Date(start_date);
5740
- if (isNaN(startDateObj.getTime())) {
5741
- throw new Error(
5742
- "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
5743
- );
5744
- }
5745
-
5746
- const resultDateObj = new Date(startDateObj);
5747
- resultDateObj.setDate(resultDateObj.getDate() + days);
5748
-
5749
- const resultYear = resultDateObj.getFullYear();
5750
- const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
5751
- const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
5752
-
5753
- return `${resultYear}-${resultMonth}-${resultDay}`;
5754
- };
5755
-
5712
+ */
5713
+ var dateAddDays = function dateAddDays(start_date, days) {
5714
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
5715
+ 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.");
5716
+ }
5717
+
5718
+ var startDateObj = new Date(start_date);
5719
+ if (isNaN(startDateObj.getTime())) {
5720
+ throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
5721
+ }
5722
+
5723
+ var resultDateObj = new Date(startDateObj);
5724
+ resultDateObj.setDate(resultDateObj.getDate() + days);
5725
+
5726
+ var resultYear = resultDateObj.getFullYear();
5727
+ var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
5728
+ var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
5729
+
5730
+ return resultYear + '-' + resultMonth + '-' + resultDay;
5731
+ };
5732
+
5756
5733
  /**
5757
5734
  * 计算两个日期之间的差值
5758
5735
  * @date 2023年12月14日
@@ -5760,182 +5737,180 @@ const dateAddDays = function (start_date, days) {
5760
5737
  * @param {String} end_date - 结束日期字符串
5761
5738
  * @param {String} unit - 单位:year/month/day
5762
5739
  * @returns {Number} 差值
5763
- */
5764
- const dateDiff = function (start_date, end_date, unit = 'day') {
5765
- // Assuming date strings are in "YYYY-MM-DD" format
5766
- var startDate = new Date(start_date);
5767
- var endDate = new Date(end_date);
5768
-
5769
- // If the date is invalid, return 0
5770
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
5771
- return 0;
5772
- }
5773
-
5774
- if (unit === 'year') {
5775
- return endDate.getFullYear() - startDate.getFullYear();
5776
- } else if (unit === 'month') {
5777
- return (
5778
- (endDate.getFullYear() - startDate.getFullYear()) * 12 +
5779
- (endDate.getMonth() - startDate.getMonth())
5780
- );
5781
- } else {
5782
- // Default to day
5783
- var timeDifference = endDate - startDate;
5784
- // Calculate days (86400000 milliseconds per day)
5785
- return Math.floor(timeDifference / 86400000);
5786
- }
5787
- };
5788
-
5740
+ */
5741
+ var dateDiff = function dateDiff(start_date, end_date) {
5742
+ var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
5743
+
5744
+ // Assuming date strings are in "YYYY-MM-DD" format
5745
+ var startDate = new Date(start_date);
5746
+ var endDate = new Date(end_date);
5747
+
5748
+ // If the date is invalid, return 0
5749
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
5750
+ return 0;
5751
+ }
5752
+
5753
+ if (unit === 'year') {
5754
+ return endDate.getFullYear() - startDate.getFullYear();
5755
+ } else if (unit === 'month') {
5756
+ return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
5757
+ } else {
5758
+ // Default to day
5759
+ var timeDifference = endDate - startDate;
5760
+ // Calculate days (86400000 milliseconds per day)
5761
+ return Math.floor(timeDifference / 86400000);
5762
+ }
5763
+ };
5764
+
5789
5765
  /**
5790
5766
  * 获取月份中的日期
5791
5767
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
5792
5768
  * @returns {number} 月份中的日期(1-31)
5793
- */
5794
- const dayOfMonth = function (date) {
5795
- if (typeof date !== 'string') {
5796
- throw new Error(
5797
- "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
5798
- );
5799
- }
5800
-
5801
- const dateObj = new Date(date);
5802
- if (isNaN(dateObj.getTime())) {
5803
- throw new Error(
5804
- "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
5805
- );
5806
- }
5807
-
5808
- return dateObj.getDate();
5809
- };
5810
-
5769
+ */
5770
+ var dayOfMonth = function dayOfMonth(date) {
5771
+ if (typeof date !== 'string') {
5772
+ throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
5773
+ }
5774
+
5775
+ var dateObj = new Date(date);
5776
+ if (isNaN(dateObj.getTime())) {
5777
+ throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
5778
+ }
5779
+
5780
+ return dateObj.getDate();
5781
+ };
5782
+
5811
5783
  /**
5812
5784
  * 获取当前日期
5813
5785
  * @date 2022年5月7日
5814
5786
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
5815
5787
  * @returns {string} 当前日期的格式化字符串
5816
- */
5817
- const getCurrentDate = function (format = 'YYYY-MM-DD') {
5818
- return formatDate(new Date(), format);
5819
- };
5820
-
5788
+ */
5789
+ var getCurrentDate = function getCurrentDate() {
5790
+ var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
5791
+
5792
+ return formatDate(new Date(), format);
5793
+ };
5794
+
5821
5795
  /**
5822
5796
  * 获取当前日期时间
5823
5797
  * @date 2022年5月7日
5824
5798
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
5825
5799
  * @returns {string} 当前日期时间的格式化字符串
5826
- */
5827
- const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
5828
- return formatDate(new Date(), format);
5829
- };
5830
-
5800
+ */
5801
+ var getCurrentDateTime = function getCurrentDateTime() {
5802
+ var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
5803
+
5804
+ return formatDate(new Date(), format);
5805
+ };
5806
+
5831
5807
  /**
5832
5808
  * 获取小时
5833
5809
  * @date 2022年5月7日
5834
5810
  * @param {Date|string} [date] - 日期对象或日期字符串
5835
5811
  * @returns {number} 小时数(0-23)
5836
- */
5837
- const getHour = function (date) {
5838
- if (!date) {
5839
- return new Date().getHours();
5840
- }
5841
- if (typeof date === 'string') {
5842
- date = new Date(date);
5843
- }
5844
- return date.getHours();
5845
- };
5846
-
5812
+ */
5813
+ var getHour = function getHour(date) {
5814
+ if (!date) {
5815
+ return new Date().getHours();
5816
+ }
5817
+ if (typeof date === 'string') {
5818
+ date = new Date(date);
5819
+ }
5820
+ return date.getHours();
5821
+ };
5822
+
5847
5823
  /**
5848
5824
  * 获取分钟
5849
5825
  * @date 2022年5月7日
5850
5826
  * @param {Date|string} [date] - 日期对象或日期字符串
5851
5827
  * @returns {number} 分钟数(0-59)
5852
- */
5853
- const getMinute = function (date) {
5854
- if (!date) {
5855
- return new Date().getMinutes();
5856
- }
5857
- if (typeof date === 'string') {
5858
- date = new Date(date);
5859
- }
5860
- return date.getMinutes();
5861
- };
5862
-
5828
+ */
5829
+ var getMinute = function getMinute(date) {
5830
+ if (!date) {
5831
+ return new Date().getMinutes();
5832
+ }
5833
+ if (typeof date === 'string') {
5834
+ date = new Date(date);
5835
+ }
5836
+ return date.getMinutes();
5837
+ };
5838
+
5863
5839
  /**
5864
5840
  * 获取月份
5865
5841
  * @date 2022年5月7日
5866
5842
  * @param {Date|string} [date] - 日期对象或日期字符串
5867
5843
  * @returns {number} 月份数(1-12)
5868
- */
5869
- const getMonth = function (date) {
5870
- if (!date) {
5871
- return new Date().getMonth() + 1;
5872
- }
5873
- if (typeof date === 'string') {
5874
- date = new Date(date);
5875
- }
5876
- return date.getMonth() + 1;
5877
- };
5878
-
5844
+ */
5845
+ var getMonth = function getMonth(date) {
5846
+ if (!date) {
5847
+ return new Date().getMonth() + 1;
5848
+ }
5849
+ if (typeof date === 'string') {
5850
+ date = new Date(date);
5851
+ }
5852
+ return date.getMonth() + 1;
5853
+ };
5854
+
5879
5855
  /**
5880
5856
  * 获取秒
5881
5857
  * @date 2022年5月7日
5882
5858
  * @param {Date|string} [date] - 日期对象或日期字符串
5883
5859
  * @returns {number} 秒数(0-59)
5884
- */
5885
- const getSecond = function (date) {
5886
- if (!date) {
5887
- return new Date().getSeconds();
5888
- }
5889
- if (typeof date === 'string') {
5890
- date = new Date(date);
5891
- }
5892
- return date.getSeconds();
5893
- };
5894
-
5860
+ */
5861
+ var getSecond = function getSecond(date) {
5862
+ if (!date) {
5863
+ return new Date().getSeconds();
5864
+ }
5865
+ if (typeof date === 'string') {
5866
+ date = new Date(date);
5867
+ }
5868
+ return date.getSeconds();
5869
+ };
5870
+
5895
5871
  /**
5896
5872
  * 获取星期几
5897
5873
  * @date 2022年5月7日
5898
5874
  * @param {Date|string} [date] - 日期对象或日期字符串
5899
5875
  * @returns {number} 星期几(0-6,0表示星期日)
5900
- */
5901
- const getWeekday = function (date) {
5902
- if (!date) {
5903
- return new Date().getDay();
5904
- }
5905
- if (typeof date === 'string') {
5906
- date = new Date(date);
5907
- }
5908
- return date.getDay();
5909
- };
5910
-
5911
-
5876
+ */
5877
+ var getWeekday = function getWeekday(date) {
5878
+ if (!date) {
5879
+ return new Date().getDay();
5880
+ }
5881
+ if (typeof date === 'string') {
5882
+ date = new Date(date);
5883
+ }
5884
+ return date.getDay();
5885
+ };
5886
+
5912
5887
  /**
5913
5888
  * @desc 获取上午/下午/晚上
5914
5889
  * @author huangbo
5915
5890
  * @date 2022年5月7日
5916
5891
  * @param {String} [time] - 时间
5917
- **/
5918
- const timeCycle = function (time) {
5919
- let hour = 0;
5920
- if (!time) {
5921
- hour = new Date().getHours();
5922
- } else if (typeof time === 'string') {
5923
- // 从时间字符串中提取小时
5924
- const match = time.match(/^(\d{1,2})/);
5925
- if (match) {
5926
- hour = parseInt(match[1], 10);
5927
- }
5928
- } else if (typeof time === 'number') {
5929
- hour = time;
5930
- }
5931
- // 判断时间段
5932
- if (hour >= 5 && hour < 12) {
5933
- return '上午';
5934
- } else if (hour >= 12 && hour < 18) {
5935
- return '下午';
5936
- } else {
5937
- return '晚上';
5938
- }
5892
+ **/
5893
+ var timeCycle = function timeCycle(time) {
5894
+ var hour = 0;
5895
+ if (!time) {
5896
+ hour = new Date().getHours();
5897
+ } else if (typeof time === 'string') {
5898
+ // 从时间字符串中提取小时
5899
+ var match = time.match(/^(\d{1,2})/);
5900
+ if (match) {
5901
+ hour = parseInt(match[1], 10);
5902
+ }
5903
+ } else if (typeof time === 'number') {
5904
+ hour = time;
5905
+ }
5906
+ // 判断时间段
5907
+ if (hour >= 5 && hour < 12) {
5908
+ return '上午';
5909
+ } else if (hour >= 12 && hour < 18) {
5910
+ return '下午';
5911
+ } else {
5912
+ return '晚上';
5913
+ }
5939
5914
  };
5940
5915
 
5941
5916
  /***/ }),
@@ -6779,7 +6754,7 @@ function redirectToLoginPage(loginPage, next) {
6779
6754
  * @param {function} callback - 回调函数
6780
6755
  **/
6781
6756
  var getMainConfig = function getMainConfig(callback) {
6782
- ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "pb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
6757
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "tb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
6783
6758
  if (res && res.rCode === 0) {
6784
6759
  callback(res.results);
6785
6760
  }
@@ -6802,7 +6777,7 @@ var getSysCodeList = function getSysCodeList(_ref4) {
6802
6777
  method = _ref4$method === undefined ? 'POST' : _ref4$method,
6803
6778
  service = _ref4.service,
6804
6779
  _ref4$url = _ref4.url,
6805
- url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "B"] : _ref4$url,
6780
+ url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "C"] : _ref4$url,
6806
6781
  sysCode = _ref4.sysCode,
6807
6782
  _ref4$param = _ref4.param,
6808
6783
  param = _ref4$param === undefined ? {} : _ref4$param,
@@ -6912,7 +6887,7 @@ var downloadFile = function downloadFile(_ref6) {
6912
6887
  file = _ref6.file,
6913
6888
  withToken = _ref6.withToken;
6914
6889
 
6915
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "w"] };
6890
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "x"] };
6916
6891
 
6917
6892
  var downloadUrl = '';
6918
6893
  if (file.adjunctId || file.response && file.response.adjunctId) {
@@ -6975,7 +6950,7 @@ var downloadZip = function downloadZip(_ref7) {
6975
6950
  code = _ref7.code,
6976
6951
  option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
6977
6952
 
6978
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Oc"] };
6953
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Sc"] };
6979
6954
 
6980
6955
  // 处理URL和参数
6981
6956
  var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
@@ -7027,7 +7002,7 @@ var deleteFile = function deleteFile(_ref8) {
7027
7002
  onSuccess = _ref8.onSuccess,
7028
7003
  onError = _ref8.onError;
7029
7004
 
7030
- var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "n"] + '\' }');
7005
+ var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "o"] + '\' }');
7031
7006
 
7032
7007
  // 处理URL和参数
7033
7008
  var deleteUrl = url ? url : dochubConfig.deleteDocumentUrl;