eoss 0.1.0-alpha.35 → 0.1.0-alpha.37

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 (228) 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 +1101 -1035
  83. package/lib/alert.js +2 -2
  84. package/lib/aside.js +2 -2
  85. package/lib/audit-trajectory.js +150 -150
  86. package/lib/autocomplete.js +2095 -1871
  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 +4 -4
  93. package/lib/button.js +2 -2
  94. package/lib/ca-login.js +862 -837
  95. package/lib/calendar.js +864 -839
  96. package/lib/card.js +2 -2
  97. package/lib/carousel-item.js +864 -839
  98. package/lib/carousel.js +866 -841
  99. package/lib/cascader-panel.js +878 -853
  100. package/lib/cascader.js +2325 -2101
  101. package/lib/checkbox-button.js +4 -4
  102. package/lib/checkbox-group.js +1060 -1025
  103. package/lib/checkbox.js +6 -6
  104. package/lib/col.js +2 -2
  105. package/lib/collapse-item.js +920 -895
  106. package/lib/collapse.js +913 -888
  107. package/lib/color-picker.js +1155 -956
  108. package/lib/container.js +2 -2
  109. package/lib/cron.js +18 -18
  110. package/lib/data-table.js +1053 -1018
  111. package/lib/date-picker.js +2094 -1870
  112. package/lib/descriptions-item.js +144 -0
  113. package/lib/descriptions.js +561 -0
  114. package/lib/dialog.js +943 -918
  115. package/lib/divider.js +2 -2
  116. package/lib/drawer.js +12 -12
  117. package/lib/dropdown-item.js +6 -6
  118. package/lib/dropdown-menu.js +1157 -958
  119. package/lib/dropdown.js +870 -845
  120. package/lib/email-login.js +1047 -1012
  121. package/lib/empty.js +2 -2
  122. package/lib/eoss.common.js +3493 -2313
  123. package/lib/flip.js +2 -2
  124. package/lib/flow-group.js +876 -851
  125. package/lib/flow.js +1184 -1149
  126. package/lib/flows.js +1080 -1045
  127. package/lib/footer.js +2 -2
  128. package/lib/form-item.js +877 -852
  129. package/lib/form.js +1123 -1087
  130. package/lib/guide.js +2 -2
  131. package/lib/header.js +2 -2
  132. package/lib/icon.js +1009 -984
  133. package/lib/icons.js +6 -6
  134. package/lib/image-viewer.js +862 -837
  135. package/lib/image.js +4 -4
  136. package/lib/index.js +1 -1
  137. package/lib/infinite-scroll.js +2 -2
  138. package/lib/input-number.js +6 -6
  139. package/lib/input.js +870 -845
  140. package/lib/link.js +2 -2
  141. package/lib/loading.js +13 -13
  142. package/lib/login.js +1116 -1066
  143. package/lib/lowcode-view.js +1078 -1043
  144. package/lib/lowcode.js +1131 -1096
  145. package/lib/main.js +1185 -1148
  146. package/lib/marquee.js +862 -837
  147. package/lib/menu-item-group.js +20 -17
  148. package/lib/menu-item.js +8 -8
  149. package/lib/menu.js +2390 -2164
  150. package/lib/message-box.js +950 -925
  151. package/lib/message.js +941 -916
  152. package/lib/notification.js +962 -937
  153. package/lib/option-group.js +4 -4
  154. package/lib/option.js +871 -846
  155. package/lib/page-header.js +2 -2
  156. package/lib/pagination.js +866 -841
  157. package/lib/phone-login.js +1049 -1014
  158. package/lib/popconfirm.js +4 -4
  159. package/lib/popover.js +2100 -1876
  160. package/lib/process-config.js +1065 -1030
  161. package/lib/process-module.js +1053 -1018
  162. package/lib/process-rule.js +1062 -1027
  163. package/lib/progress.js +2 -2
  164. package/lib/qr-code.js +4 -4
  165. package/lib/qrcode-login.js +1052 -1017
  166. package/lib/radio-button.js +4 -4
  167. package/lib/radio-group.js +2608 -2573
  168. package/lib/radio.js +6 -6
  169. package/lib/rate.js +864 -839
  170. package/lib/retrial-auth.js +7063 -0
  171. package/lib/row.js +2 -2
  172. package/lib/scrollbar.js +868 -843
  173. package/lib/select.js +2591 -2357
  174. package/lib/selector-panel.js +2659 -2624
  175. package/lib/selector.js +1068 -1033
  176. package/lib/slider.js +6 -6
  177. package/lib/step.js +44 -44
  178. package/lib/steps.js +911 -886
  179. package/lib/submenu.js +1439 -1236
  180. package/lib/switch.js +866 -841
  181. package/lib/tab-pane.js +4 -4
  182. package/lib/table-column.js +936 -911
  183. package/lib/table.js +2318 -2084
  184. package/lib/tabs.js +866 -841
  185. package/lib/tag.js +2 -2
  186. package/lib/theme-chalk/base.css +1 -1
  187. package/lib/theme-chalk/descriptions.css +1 -1
  188. package/lib/theme-chalk/index.css +1 -1
  189. package/lib/theme-chalk/main.css +1 -1
  190. package/lib/theme-chalk/retrial-auth.css +1 -0
  191. package/lib/time-picker.js +2047 -1823
  192. package/lib/time-select.js +2041 -1817
  193. package/lib/timeline-item.js +2 -2
  194. package/lib/timeline.js +2 -2
  195. package/lib/tips.js +1047 -1012
  196. package/lib/toolbar.js +36 -17
  197. package/lib/tooltip.js +2080 -1856
  198. package/lib/transfer.js +881 -856
  199. package/lib/tree-group.js +1020 -995
  200. package/lib/tree.js +1062 -1027
  201. package/lib/update-history.js +151 -151
  202. package/lib/upload.js +1082 -1047
  203. package/lib/utils/ajax.js +5 -1
  204. package/lib/utils/popper.js +97 -48
  205. package/lib/wujie.js +866 -841
  206. package/package.json +1 -1
  207. package/packages/account-login/src/account-login.vue +29 -0
  208. package/packages/descriptions/index.js +8 -0
  209. package/packages/descriptions/src/index.js +181 -0
  210. package/packages/descriptions/src/item.js +30 -0
  211. package/packages/descriptions/src/row.js +120 -0
  212. package/packages/descriptions-item/index.js +8 -0
  213. package/packages/login/src/login.vue +8 -0
  214. package/packages/login/src/mixins.js +3 -1
  215. package/packages/main/src/minxs.js +1 -0
  216. package/packages/menu/src/menu.vue +0 -1
  217. package/packages/menu/src/mixins.js +4 -3
  218. package/packages/menu/src/submenu.vue +4 -4
  219. package/packages/retrial-auth/index.js +5 -0
  220. package/packages/retrial-auth/src/main.vue +300 -0
  221. package/packages/theme-chalk/src/base.scss +2 -1
  222. package/packages/theme-chalk/src/descriptions.scss +0 -1
  223. package/packages/theme-chalk/src/index.scss +3 -0
  224. package/packages/theme-chalk/src/retrial-auth.scss +38 -0
  225. package/packages/toolbar/src/toolbar.vue +5 -0
  226. package/src/index.js +336 -327
  227. package/src/utils/ajax.js +2 -1
  228. package/src/utils/popper.js +109 -70
package/lib/selector.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 253);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 257);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3285,7 +3285,7 @@ var warning = function warning(content, _callback3) {
3285
3285
 
3286
3286
  /***/ }),
3287
3287
 
3288
- /***/ 11:
3288
+ /***/ 10:
3289
3289
  /***/ (function(module, exports) {
3290
3290
 
3291
3291
  module.exports = require("eoss/lib/message");
@@ -3507,14 +3507,14 @@ module.exports = require("eoss/lib/input");
3507
3507
 
3508
3508
  /***/ }),
3509
3509
 
3510
- /***/ 148:
3510
+ /***/ 150:
3511
3511
  /***/ (function(module, exports) {
3512
3512
 
3513
3513
  module.exports = require("eoss/lib/autocomplete");
3514
3514
 
3515
3515
  /***/ }),
3516
3516
 
3517
- /***/ 149:
3517
+ /***/ 151:
3518
3518
  /***/ (function(module, exports) {
3519
3519
 
3520
3520
  module.exports = require("eoss/lib/selector-panel");
@@ -3563,7 +3563,7 @@ module.exports = require("vue");
3563
3563
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
3564
3564
  /* unused harmony export doDecrypt */
3565
3565
  /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
3566
- var sm2 = __webpack_require__(41).sm2;
3566
+ var sm2 = __webpack_require__(42).sm2;
3567
3567
 
3568
3568
 
3569
3569
  /**
@@ -3615,7 +3615,14 @@ var doDecrypt = function doDecrypt(_ref2) {
3615
3615
 
3616
3616
  /***/ }),
3617
3617
 
3618
- /***/ 22:
3618
+ /***/ 21:
3619
+ /***/ (function(module, exports) {
3620
+
3621
+ module.exports = require("fetch-request-source");
3622
+
3623
+ /***/ }),
3624
+
3625
+ /***/ 23:
3619
3626
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3620
3627
 
3621
3628
  "use strict";
@@ -3760,14 +3767,7 @@ function scrollMove(wrap) {
3760
3767
 
3761
3768
  /***/ }),
3762
3769
 
3763
- /***/ 23:
3764
- /***/ (function(module, exports) {
3765
-
3766
- module.exports = require("fetch-request-source");
3767
-
3768
- /***/ }),
3769
-
3770
- /***/ 253:
3770
+ /***/ 257:
3771
3771
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3772
3772
 
3773
3773
  "use strict";
@@ -4032,7 +4032,7 @@ var types = __webpack_require__(3);
4032
4032
  var api = __webpack_require__(6);
4033
4033
 
4034
4034
  // EXTERNAL MODULE: ./src/utils/clickoutside.js
4035
- var clickoutside = __webpack_require__(42);
4035
+ var clickoutside = __webpack_require__(43);
4036
4036
 
4037
4037
  // EXTERNAL MODULE: ./src/utils/ajax.js
4038
4038
  var ajax = __webpack_require__(9);
@@ -4041,10 +4041,10 @@ var ajax = __webpack_require__(9);
4041
4041
  var storage = __webpack_require__(0);
4042
4042
 
4043
4043
  // EXTERNAL MODULE: ./src/components/bar.js
4044
- var bar = __webpack_require__(57);
4044
+ var bar = __webpack_require__(58);
4045
4045
 
4046
4046
  // EXTERNAL MODULE: external "eoss/lib/autocomplete"
4047
- var autocomplete_ = __webpack_require__(148);
4047
+ var autocomplete_ = __webpack_require__(150);
4048
4048
  var autocomplete_default = /*#__PURE__*/__webpack_require__.n(autocomplete_);
4049
4049
 
4050
4050
  // EXTERNAL MODULE: external "eoss/lib/button"
@@ -4052,7 +4052,7 @@ var button_ = __webpack_require__(13);
4052
4052
  var button_default = /*#__PURE__*/__webpack_require__.n(button_);
4053
4053
 
4054
4054
  // EXTERNAL MODULE: external "eoss/lib/dialog"
4055
- var dialog_ = __webpack_require__(36);
4055
+ var dialog_ = __webpack_require__(37);
4056
4056
  var dialog_default = /*#__PURE__*/__webpack_require__.n(dialog_);
4057
4057
 
4058
4058
  // EXTERNAL MODULE: external "eoss/lib/icon"
@@ -4064,18 +4064,18 @@ var input_ = __webpack_require__(14);
4064
4064
  var input_default = /*#__PURE__*/__webpack_require__.n(input_);
4065
4065
 
4066
4066
  // EXTERNAL MODULE: external "eoss/lib/tag"
4067
- var tag_ = __webpack_require__(67);
4067
+ var tag_ = __webpack_require__(68);
4068
4068
  var tag_default = /*#__PURE__*/__webpack_require__.n(tag_);
4069
4069
 
4070
4070
  // EXTERNAL MODULE: external "eoss/lib/selector-panel"
4071
- var selector_panel_ = __webpack_require__(149);
4071
+ var selector_panel_ = __webpack_require__(151);
4072
4072
  var selector_panel_default = /*#__PURE__*/__webpack_require__.n(selector_panel_);
4073
4073
 
4074
4074
  // EXTERNAL MODULE: ./src/utils/resize-event.js
4075
- var resize_event = __webpack_require__(37);
4075
+ var resize_event = __webpack_require__(38);
4076
4076
 
4077
4077
  // EXTERNAL MODULE: ./src/utils/scrollbar.js
4078
- var scrollbar = __webpack_require__(22);
4078
+ var scrollbar = __webpack_require__(23);
4079
4079
 
4080
4080
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector.vue?vue&type=script&lang=js&
4081
4081
  //
@@ -4320,7 +4320,7 @@ var scrollbar = __webpack_require__(22);
4320
4320
  */
4321
4321
  action: {
4322
4322
  type: String,
4323
- default: api["Z" /* getSelectorOrgDetail */]
4323
+ default: api["bb" /* getSelectorOrgDetail */]
4324
4324
  },
4325
4325
  /**
4326
4326
  * 主机地址
@@ -4809,7 +4809,7 @@ var scrollbar = __webpack_require__(22);
4809
4809
  return;
4810
4810
  }
4811
4811
  Object(ajax["a" /* ajax */])({
4812
- url: api["bb" /* getSysParam */],
4812
+ url: api["db" /* getSysParam */],
4813
4813
  params: {
4814
4814
  paramCode: 'sysorgname,sysdepname'
4815
4815
  }
@@ -5119,6 +5119,20 @@ module.exports = require("eoss/lib/icon");
5119
5119
 
5120
5120
  /***/ }),
5121
5121
 
5122
+ /***/ 28:
5123
+ /***/ (function(module, exports) {
5124
+
5125
+ module.exports = require("qs");
5126
+
5127
+ /***/ }),
5128
+
5129
+ /***/ 29:
5130
+ /***/ (function(module, exports) {
5131
+
5132
+ module.exports = require("axios");
5133
+
5134
+ /***/ }),
5135
+
5122
5136
  /***/ 3:
5123
5137
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5124
5138
 
@@ -5186,35 +5200,28 @@ function isDefined(val) {
5186
5200
 
5187
5201
  /***/ }),
5188
5202
 
5189
- /***/ 31:
5190
- /***/ (function(module, exports) {
5191
-
5192
- module.exports = require("qs");
5193
-
5194
- /***/ }),
5195
-
5196
- /***/ 32:
5203
+ /***/ 30:
5197
5204
  /***/ (function(module, exports) {
5198
5205
 
5199
- module.exports = require("axios");
5206
+ module.exports = require("json-bigint");
5200
5207
 
5201
5208
  /***/ }),
5202
5209
 
5203
- /***/ 33:
5210
+ /***/ 31:
5204
5211
  /***/ (function(module, exports) {
5205
5212
 
5206
- module.exports = require("json-bigint");
5213
+ module.exports = require("eoss/lib/retrial-auth");
5207
5214
 
5208
5215
  /***/ }),
5209
5216
 
5210
- /***/ 36:
5217
+ /***/ 37:
5211
5218
  /***/ (function(module, exports) {
5212
5219
 
5213
5220
  module.exports = require("eoss/lib/dialog");
5214
5221
 
5215
5222
  /***/ }),
5216
5223
 
5217
- /***/ 37:
5224
+ /***/ 38:
5218
5225
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5219
5226
 
5220
5227
  "use strict";
@@ -5532,14 +5539,14 @@ function normalizeComponent(
5532
5539
 
5533
5540
  /***/ }),
5534
5541
 
5535
- /***/ 41:
5542
+ /***/ 42:
5536
5543
  /***/ (function(module, exports) {
5537
5544
 
5538
5545
  module.exports = require("sm-crypto");
5539
5546
 
5540
5547
  /***/ }),
5541
5548
 
5542
- /***/ 42:
5549
+ /***/ 43:
5543
5550
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5544
5551
 
5545
5552
  "use strict";
@@ -5919,7 +5926,7 @@ function insertAfter(newEl, targetEl) {
5919
5926
 
5920
5927
  /***/ }),
5921
5928
 
5922
- /***/ 57:
5929
+ /***/ 58:
5923
5930
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5924
5931
 
5925
5932
  "use strict";
@@ -6281,146 +6288,146 @@ function renderThumbStyle(_ref3) {
6281
6288
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6282
6289
 
6283
6290
  "use strict";
6284
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doCaLogin; });
6285
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doUserLogin; });
6286
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doQrLogin; });
6287
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return logout; });
6288
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return initLogin; });
6289
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return switchUserTo; });
6291
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCaLogin; });
6292
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return doUserLogin; });
6293
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doQrLogin; });
6294
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return logout; });
6295
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initLogin; });
6296
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return switchUserTo; });
6290
6297
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
6291
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getLoginCode; });
6292
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCodeLogin; });
6298
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getLoginCode; });
6299
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doCodeLogin; });
6293
6300
  /* unused harmony export updateCode */
6294
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getModifyPassCode; });
6301
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getModifyPassCode; });
6295
6302
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
6296
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return loginModifyPassword; });
6303
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return loginModifyPassword; });
6297
6304
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
6298
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return initModifyPassword; });
6305
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return initModifyPassword; });
6299
6306
  /* unused harmony export doWechatQrLogin */
6300
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getTwoFactorLoginCode; });
6307
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getTwoFactorLoginCode; });
6301
6308
  /* unused harmony export doTwoFactorLogin */
6302
- /* unused harmony export initRetrialAuth */
6303
- /* unused harmony export getRetrialAuthCode */
6304
- /* unused harmony export scanCodeRetrialAuth */
6305
- /* unused harmony export codeRetrialAuth */
6306
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doAssistanceQrLogin; });
6307
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return userOnline; });
6308
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getUserAppWithTag; });
6309
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return recordUserApp; });
6310
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUserRecordApp; });
6311
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return mainConfig; });
6312
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initUserSet; });
6313
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return updateUserInfo; });
6309
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return initRetrialAuth; });
6310
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getRetrialAuthCode; });
6311
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return scanCodeRetrialAuth; });
6312
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return codeRetrialAuth; });
6313
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doAssistanceQrLogin; });
6314
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zc", function() { return userOnline; });
6315
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return getUserAppWithTag; });
6316
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return recordUserApp; });
6317
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return getUserRecordApp; });
6318
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return mainConfig; });
6319
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return initUserSet; });
6320
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return updateUserInfo; });
6314
6321
  /* unused harmony export getUserImgUrl */
6315
6322
  /* unused harmony export getDoorIndex */
6316
6323
  /* unused harmony export refreshOnlineUsers */
6317
6324
  /* unused harmony export getQuickMenuIds */
6318
6325
  /* unused harmony export getApplicationIdArray */
6319
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getComplexApplications; });
6320
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplicationsNew; });
6321
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getMainAppWithTag; });
6322
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getByType; });
6326
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplications; });
6327
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getComplexApplicationsNew; });
6328
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getMainAppWithTag; });
6329
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getByType; });
6323
6330
  /* unused harmony export getUserCustomInfo */
6324
6331
  /* unused harmony export updateUserCustomInfo */
6325
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return saveOrUpdate; });
6326
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sysMsgPage; });
6327
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return ignoreSysMsg; });
6328
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return ignoreAllSysMsg; });
6329
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return searchType; });
6330
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSysParam; });
6331
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctProperties; });
6332
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return uploads; });
6333
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return uploadOnlyOne; });
6334
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getAdjunctFileInfos; });
6332
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return saveOrUpdate; });
6333
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return sysMsgPage; });
6334
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return ignoreSysMsg; });
6335
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return ignoreAllSysMsg; });
6336
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return searchType; });
6337
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getSysParam; });
6338
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getAdjunctProperties; });
6339
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yc", function() { return uploads; });
6340
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xc", function() { return uploadOnlyOne; });
6341
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctFileInfos; });
6335
6342
  /* unused harmony export uploadSort */
6336
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return downloadByAdjunctId; });
6337
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return uploadDownloads; });
6338
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return previewAdjunct; });
6339
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return previewAdjunct2; });
6340
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return previewAdjunctOffice; });
6341
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return delAdjunct; });
6343
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return downloadByAdjunctId; });
6344
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return uploadDownloads; });
6345
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return previewAdjunct; });
6346
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return previewAdjunct2; });
6347
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return previewAdjunctOffice; });
6348
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return delAdjunct; });
6342
6349
  /* unused harmony export upload_updateClassify */
6343
6350
  /* unused harmony export getDeleteAdjunctFileInfos */
6344
6351
  /* unused harmony export getPictureBase64 */
6345
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getSelectorOrgTree; });
6346
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSelectorOrgDetail; });
6347
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getOrgMainTree; });
6352
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSelectorOrgTree; });
6353
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSelectorOrgDetail; });
6354
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getOrgMainTree; });
6348
6355
  /* unused harmony export getSelectOrgsubids */
6349
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findSysCode; });
6356
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCode; });
6350
6357
  /* unused harmony export getDictList */
6351
6358
  /* unused harmony export findUserBaseInfo */
6352
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return gethelpdoc; });
6359
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return gethelpdoc; });
6353
6360
  /* unused harmony export getCurrentuser */
6354
6361
  /* unused harmony export mainDetail */
6355
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toStartFlow; });
6356
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return tempSave; });
6357
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return commonOpion; });
6362
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toStartFlow; });
6363
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return tempSave; });
6364
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return commonOpion; });
6358
6365
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
6359
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return editCommonOpion; });
6360
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return saveCommonOpinion; });
6361
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return updateCommonOpinion; });
6362
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return deleteCommonOpion; });
6363
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getProcessDefList; });
6364
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getNodeInfo; });
6365
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findCodeValues; });
6366
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysParam; });
6367
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCodes; });
6368
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNotificationMsg; });
6369
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getHandleInfoHtml; });
6370
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskHandleHtml; });
6366
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return editCommonOpion; });
6367
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return saveCommonOpinion; });
6368
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return updateCommonOpinion; });
6369
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteCommonOpion; });
6370
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getProcessDefList; });
6371
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfo; });
6372
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findCodeValues; });
6373
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return findSysParam; });
6374
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysCodes; });
6375
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getNotificationMsg; });
6376
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getHandleInfoHtml; });
6377
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskHandleHtml; });
6371
6378
  /* unused harmony export getView */
6372
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return register; });
6373
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pendedhistoryList; });
6374
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskRejectHtml; });
6375
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskRejectHtml; });
6376
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toStartTaskRead; });
6377
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toStartTaskReadIndex; });
6378
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskReadHtml; });
6379
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return rejectAndEnd; });
6380
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toSendMsg; });
6381
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return sendMsg; });
6382
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowHtml; });
6383
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return handleInfo; });
6384
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return loginUserInfo; });
6385
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return wss; });
6386
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return topic; });
6387
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getPresetCustomInfo; });
6388
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetNodeInfo; });
6389
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskTransferIndex; });
6390
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskTransfer; });
6379
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return register; });
6380
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return pendedhistoryList; });
6381
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskRejectHtml; });
6382
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskRejectHtml; });
6383
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toStartTaskRead; });
6384
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toStartTaskReadIndex; });
6385
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskReadHtml; });
6386
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return rejectAndEnd; });
6387
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toSendMsg; });
6388
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sendMsg; });
6389
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return endFlowHtml; });
6390
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return handleInfo; });
6391
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return loginUserInfo; });
6392
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ad", function() { return wss; });
6393
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return topic; });
6394
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetCustomInfo; });
6395
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getPresetNodeInfo; });
6396
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return toTaskTransferIndex; });
6397
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return taskTransfer; });
6391
6398
  /* unused harmony export toPresetInfoListIndex */
6392
6399
  /* unused harmony export deletePresetInfo */
6393
6400
  /* unused harmony export historyListJson */
6394
6401
  /* unused harmony export pendedhistoryListJson */
6395
6402
  /* unused harmony export pressListJson */
6396
6403
  /* unused harmony export deleteFlow */
6397
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return isCanStartSubFlow; });
6398
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskUnionExamine; });
6399
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskUnionExamine; });
6400
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskTakeAdvice; });
6401
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskTakeAdvice; });
6402
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskStartDraft; });
6403
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskSupervise; });
6404
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskSuperviseSub; });
6405
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskStartDraft; });
6406
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskReview; });
6407
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskReview; });
6408
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskUnionSeal; });
6409
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskUnionSeal; });
6410
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTwoOfficesDispatch; });
6411
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return twoOfficesDispatch; });
6412
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toResetProcessIndex; });
6413
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return resetProcess; });
6414
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskContinuationIndex; });
6415
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskContinuation; });
6416
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getFreeStartFlowParams; });
6417
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlowWithSubmitTask; });
6404
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return isCanStartSubFlow; });
6405
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return toTaskUnionExamine; });
6406
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return taskUnionExamine; });
6407
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTaskTakeAdvice; });
6408
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return taskTakeAdvice; });
6409
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskStartDraft; });
6410
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskSupervise; });
6411
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskSuperviseSub; });
6412
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskStartDraft; });
6413
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskReview; });
6414
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskReview; });
6415
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return toTaskUnionSeal; });
6416
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return taskUnionSeal; });
6417
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return toTwoOfficesDispatch; });
6418
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return twoOfficesDispatch; });
6419
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toResetProcessIndex; });
6420
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return resetProcess; });
6421
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskContinuationIndex; });
6422
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskContinuation; });
6423
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getFreeStartFlowParams; });
6424
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeStartFlowWithSubmitTask; });
6418
6425
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
6419
6426
  /* unused harmony export pendedhistoryListWithCircularReadJson */
6420
6427
  /* unused harmony export fyListJson */
6421
6428
  /* unused harmony export circularReadWithdraw */
6422
6429
  /* unused harmony export taskReadWithDraw */
6423
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
6430
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
6424
6431
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
6425
6432
  /* unused harmony export sendList */
6426
6433
  /* unused harmony export sendInfo */
@@ -6429,56 +6436,56 @@ function renderThumbStyle(_ref3) {
6429
6436
  /* unused harmony export sendDelete */
6430
6437
  /* unused harmony export sendBatch */
6431
6438
  /* unused harmony export formContents */
6432
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return directStartTaskCircularRead; });
6433
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return endFlowAndStartTaskCircularRead; });
6434
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfoForStart; });
6435
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeStartFlow; });
6436
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getUrgencyLevelChangedNotificationType; });
6437
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toFreeTaskCircularRead; });
6438
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeTaskCircularRead; });
6439
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return pageLists; });
6439
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return directStartTaskCircularRead; });
6440
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowAndStartTaskCircularRead; });
6441
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNodeInfoForStart; });
6442
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlow; });
6443
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUrgencyLevelChangedNotificationType; });
6444
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toFreeTaskCircularRead; });
6445
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return freeTaskCircularRead; });
6446
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pageLists; });
6440
6447
  /* unused harmony export publishedLists */
6441
6448
  /* unused harmony export pageInfo */
6442
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return pageGroup; });
6443
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageSave; });
6444
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageUpdate; });
6445
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pageDelete; });
6449
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageGroup; });
6450
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return pageSave; });
6451
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return pageUpdate; });
6452
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageDelete; });
6446
6453
  /* unused harmony export pageTargetDelete */
6447
6454
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
6448
6455
  /* unused harmony export batchUpdate */
6449
6456
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
6450
6457
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
6451
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return processListJson; });
6452
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return processInfo; });
6453
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return processDeleteJson; });
6454
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processSave; });
6455
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processUpdate; });
6456
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return nodeListJson; });
6457
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return nodeDeleteJson; });
6458
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeSave; });
6459
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeUpdate; });
6460
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return nodeInfo; });
6461
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return moduleListJson; });
6462
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return moduleInfo; });
6463
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return moduleDelete; });
6464
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleSave; });
6465
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleUpdate; });
6466
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return ruleListJson; });
6467
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return ruleEdit; });
6468
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleRead; });
6469
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleSave; });
6458
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return processListJson; });
6459
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processInfo; });
6460
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processDeleteJson; });
6461
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return processSave; });
6462
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return processUpdate; });
6463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return nodeListJson; });
6464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeDeleteJson; });
6465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return nodeSave; });
6466
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return nodeUpdate; });
6467
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeInfo; });
6468
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return moduleListJson; });
6469
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleInfo; });
6470
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleDelete; });
6471
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return moduleSave; });
6472
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return moduleUpdate; });
6473
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleListJson; });
6474
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleEdit; });
6475
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return ruleRead; });
6476
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return ruleSave; });
6470
6477
  /* unused harmony export ruleSupplement */
6471
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleUndore; });
6472
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleAdd; });
6473
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return companyDetail; });
6478
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return ruleUndore; });
6479
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleAdd; });
6480
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyDetail; });
6474
6481
  /* unused harmony export issueDetailList */
6475
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteRule; });
6476
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSysParamV1; });
6477
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyList; });
6478
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return supplement; });
6479
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return isAddSource; });
6480
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return tiggerInTime; });
6481
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return updateHistory; });
6482
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return deleteRule; });
6483
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getSysParamV1; });
6484
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return companyList; });
6485
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return supplement; });
6486
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return isAddSource; });
6487
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return tiggerInTime; });
6488
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return updateHistory; });
6482
6489
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
6483
6490
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
6484
6491
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
@@ -6850,7 +6857,7 @@ var changeInTime = '/baseIssueRules/changeInTime';
6850
6857
 
6851
6858
  /***/ }),
6852
6859
 
6853
- /***/ 67:
6860
+ /***/ 68:
6854
6861
  /***/ (function(module, exports) {
6855
6862
 
6856
6863
  module.exports = require("eoss/lib/tag");
@@ -6907,736 +6914,759 @@ module.exports = require("eoss/lib/tag");
6907
6914
  /* unused harmony export getSecond */
6908
6915
  /* unused harmony export getWeekday */
6909
6916
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
6910
-
6911
-
6917
+ /* Modified from https://github.com/taylorhakes/fecha
6918
+ *
6919
+ * The MIT License (MIT)
6920
+ *
6921
+ * Copyright (c) 2015 Taylor Hakes
6922
+ *
6923
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
6924
+ * of this software and associated documentation files (the "Software"), to deal
6925
+ * in the Software without restriction, including without limitation the rights
6926
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6927
+ * copies of the Software, and to permit persons to whom the Software is
6928
+ * furnished to do so, subject to the following conditions:
6929
+ *
6930
+ * The above copyright notice and this permission notice shall be included in all
6931
+ * copies or substantial portions of the Software.
6932
+ *
6933
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6934
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6935
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6936
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6937
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
6938
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6939
+ * SOFTWARE.
6940
+ */
6941
+
6942
+ /*eslint-disable*/
6943
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
6944
+
6945
+
6912
6946
  /**
6913
6947
  * Parse or format dates
6914
6948
  * @class fecha
6915
- */
6916
- var fecha = {};
6917
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6918
- var twoDigits = '\\d\\d?';
6919
- var threeDigits = '\\d{3}';
6920
- var fourDigits = '\\d{4}';
6921
- var word = '[^\\s]+';
6922
- var literal = /\[([^]*?)\]/gm;
6923
- var noop = function noop() {};
6924
-
6925
- function regexEscape(str) {
6926
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6927
- }
6928
-
6929
- function shorten(arr, sLen) {
6930
- var newArr = [];
6931
- for (var i = 0, len = arr.length; i < len; i++) {
6932
- newArr.push(arr[i].substr(0, sLen));
6933
- }
6934
- return newArr;
6935
- }
6936
-
6937
- function monthUpdate() {
6938
- return function (d, v) {
6939
- var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6940
- if (~index) {
6941
- d.month = index;
6942
- }
6943
- };
6944
- }
6945
-
6946
- function pad(val, len) {
6947
- val = String(val);
6948
- len = len || 2;
6949
- while (val.length < len) {
6950
- val = '0' + val;
6951
- }
6952
- return val;
6953
- }
6954
-
6955
- // 直接使用中文日期名称常量
6956
- var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6957
- var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6958
- var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6959
- var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6960
- var amPm = ['上午', '下午'];
6961
- var DoFn = function DoFn(D) {
6962
- return D + '日';
6963
- };
6964
-
6965
- var formatFlags = {
6966
- D: function D(dateObj) {
6967
- return dateObj.getDay();
6968
- },
6969
- DD: function DD(dateObj) {
6970
- return pad(dateObj.getDay());
6971
- },
6972
- Do: function Do(dateObj) {
6973
- return DoFn(dateObj.getDate());
6974
- },
6975
- d: function d(dateObj) {
6976
- return dateObj.getDate();
6977
- },
6978
- dd: function dd(dateObj) {
6979
- return pad(dateObj.getDate());
6980
- },
6981
- ddd: function ddd(dateObj) {
6982
- return dayNamesShort[dateObj.getDay()];
6983
- },
6984
- dddd: function dddd(dateObj) {
6985
- return dayNames[dateObj.getDay()];
6986
- },
6987
- M: function M(dateObj) {
6988
- return dateObj.getMonth() + 1;
6989
- },
6990
- MM: function MM(dateObj) {
6991
- return pad(dateObj.getMonth() + 1);
6992
- },
6993
- MMM: function MMM(dateObj) {
6994
- return monthNamesShort[dateObj.getMonth()];
6995
- },
6996
- MMMM: function MMMM(dateObj) {
6997
- return monthNames[dateObj.getMonth()];
6998
- },
6999
- yy: function yy(dateObj) {
7000
- return pad(String(dateObj.getFullYear()), 4).substr(2);
7001
- },
7002
- yyyy: function yyyy(dateObj) {
7003
- return pad(dateObj.getFullYear(), 4);
7004
- },
7005
- h: function h(dateObj) {
7006
- return dateObj.getHours() % 12 || 12;
7007
- },
7008
- hh: function hh(dateObj) {
7009
- return pad(dateObj.getHours() % 12 || 12);
7010
- },
7011
- H: function H(dateObj) {
7012
- return dateObj.getHours();
7013
- },
7014
- HH: function HH(dateObj) {
7015
- return pad(dateObj.getHours());
7016
- },
7017
- m: function m(dateObj) {
7018
- return dateObj.getMinutes();
7019
- },
7020
- mm: function mm(dateObj) {
7021
- return pad(dateObj.getMinutes());
7022
- },
7023
- s: function s(dateObj) {
7024
- return dateObj.getSeconds();
7025
- },
7026
- ss: function ss(dateObj) {
7027
- return pad(dateObj.getSeconds());
7028
- },
7029
- S: function S(dateObj) {
7030
- return Math.round(dateObj.getMilliseconds() / 100);
7031
- },
7032
- SS: function SS(dateObj) {
7033
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
7034
- },
7035
- SSS: function SSS(dateObj) {
7036
- return pad(dateObj.getMilliseconds(), 3);
7037
- },
7038
- a: function a(dateObj) {
7039
- return dateObj.getHours() < 12 ? '上午' : '下午';
7040
- },
7041
- A: function A(dateObj) {
7042
- return dateObj.getHours() < 12 ? '上午' : '下午';
7043
- },
7044
- ZZ: function ZZ(dateObj) {
7045
- var o = dateObj.getTimezoneOffset();
7046
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
7047
- }
7048
- };
7049
-
7050
- var parseFlags = {
7051
- d: [twoDigits, function (d, v) {
7052
- d.day = v;
7053
- }],
7054
- Do: [twoDigits + word, function (d, v) {
7055
- d.day = parseInt(v, 10);
7056
- }],
7057
- M: [twoDigits, function (d, v) {
7058
- d.month = v - 1;
7059
- }],
7060
- yy: [twoDigits, function (d, v) {
7061
- var da = new Date(),
7062
- cent = +('' + da.getFullYear()).substr(0, 2);
7063
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
7064
- }],
7065
- h: [twoDigits, function (d, v) {
7066
- d.hour = v;
7067
- }],
7068
- m: [twoDigits, function (d, v) {
7069
- d.minute = v;
7070
- }],
7071
- s: [twoDigits, function (d, v) {
7072
- d.second = v;
7073
- }],
7074
- yyyy: [fourDigits, function (d, v) {
7075
- d.year = v;
7076
- }],
7077
- S: ['\\d', function (d, v) {
7078
- d.millisecond = v * 100;
7079
- }],
7080
- SS: ['\\d{2}', function (d, v) {
7081
- d.millisecond = v * 10;
7082
- }],
7083
- SSS: [threeDigits, function (d, v) {
7084
- d.millisecond = v;
7085
- }],
7086
- D: [twoDigits, noop],
7087
- ddd: [word, noop],
7088
- MMM: [word, monthUpdate('monthNamesShort')],
7089
- MMMM: [word, monthUpdate('monthNames')],
7090
- a: [word, function (d, v) {
7091
- var val = v.toLowerCase();
7092
- if (val === '上午') {
7093
- d.isPm = false;
7094
- } else if (val === '下午') {
7095
- d.isPm = true;
7096
- }
7097
- }],
7098
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
7099
- var parts = (v + '').match(/([+-]|\d\d)/gi),
7100
- minutes = void 0;
7101
-
7102
- if (parts) {
7103
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
7104
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
7105
- }
7106
- }]
7107
- };
7108
- parseFlags.dd = parseFlags.d;
7109
- parseFlags.dddd = parseFlags.ddd;
7110
- parseFlags.DD = parseFlags.D;
7111
- parseFlags.mm = parseFlags.m;
7112
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
7113
- parseFlags.MM = parseFlags.M;
7114
- parseFlags.ss = parseFlags.s;
7115
- parseFlags.A = parseFlags.a;
7116
-
7117
- // Some common format strings
7118
- fecha.masks = {
7119
- default: 'ddd MMM dd yyyy HH:mm:ss',
7120
- shortDate: 'M/D/yy',
7121
- mediumDate: 'MMM d, yyyy',
7122
- longDate: 'MMMM d, yyyy',
7123
- fullDate: 'dddd, MMMM d, yyyy',
7124
- shortTime: 'HH:mm',
7125
- mediumTime: 'HH:mm:ss',
7126
- longTime: 'HH:mm:ss.SSS'
7127
- };
7128
-
6949
+ */
6950
+ const fecha = {};
6951
+ const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6952
+ const twoDigits = '\\d\\d?';
6953
+ const threeDigits = '\\d{3}';
6954
+ const fourDigits = '\\d{4}';
6955
+ const word = '[^\\s]+';
6956
+ const literal = /\[([^]*?)\]/gm;
6957
+ const noop = function () {};
6958
+
6959
+ function regexEscape(str) {
6960
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6961
+ }
6962
+
6963
+ function shorten(arr, sLen) {
6964
+ const newArr = [];
6965
+ for (let i = 0, len = arr.length; i < len; i++) {
6966
+ newArr.push(arr[i].substr(0, sLen));
6967
+ }
6968
+ return newArr;
6969
+ }
6970
+
6971
+ function monthUpdate() {
6972
+ return function (d, v) {
6973
+ const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6974
+ if (~index) {
6975
+ d.month = index;
6976
+ }
6977
+ };
6978
+ }
6979
+
6980
+ function pad(val, len) {
6981
+ val = String(val);
6982
+ len = len || 2;
6983
+ while (val.length < len) {
6984
+ val = '0' + val;
6985
+ }
6986
+ return val;
6987
+ }
6988
+
6989
+ // 直接使用中文日期名称常量
6990
+ const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6991
+ const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6992
+ const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6993
+ const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6994
+ const amPm = ['上午', '下午'];
6995
+ const DoFn = function DoFn(D) {
6996
+ return D + '日';
6997
+ };
6998
+
6999
+ const formatFlags = {
7000
+ D: function(dateObj) {
7001
+ return dateObj.getDay();
7002
+ },
7003
+ DD: function(dateObj) {
7004
+ return pad(dateObj.getDay());
7005
+ },
7006
+ Do: function(dateObj) {
7007
+ return DoFn(dateObj.getDate());
7008
+ },
7009
+ d: function(dateObj) {
7010
+ return dateObj.getDate();
7011
+ },
7012
+ dd: function(dateObj) {
7013
+ return pad(dateObj.getDate());
7014
+ },
7015
+ ddd: function(dateObj) {
7016
+ return dayNamesShort[dateObj.getDay()];
7017
+ },
7018
+ dddd: function(dateObj) {
7019
+ return dayNames[dateObj.getDay()];
7020
+ },
7021
+ M: function(dateObj) {
7022
+ return dateObj.getMonth() + 1;
7023
+ },
7024
+ MM: function(dateObj) {
7025
+ return pad(dateObj.getMonth() + 1);
7026
+ },
7027
+ MMM: function(dateObj) {
7028
+ return monthNamesShort[dateObj.getMonth()];
7029
+ },
7030
+ MMMM: function(dateObj) {
7031
+ return monthNames[dateObj.getMonth()];
7032
+ },
7033
+ yy: function(dateObj) {
7034
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
7035
+ },
7036
+ yyyy: function(dateObj) {
7037
+ return pad(dateObj.getFullYear(), 4);
7038
+ },
7039
+ h: function(dateObj) {
7040
+ return dateObj.getHours() % 12 || 12;
7041
+ },
7042
+ hh: function(dateObj) {
7043
+ return pad(dateObj.getHours() % 12 || 12);
7044
+ },
7045
+ H: function(dateObj) {
7046
+ return dateObj.getHours();
7047
+ },
7048
+ HH: function(dateObj) {
7049
+ return pad(dateObj.getHours());
7050
+ },
7051
+ m: function(dateObj) {
7052
+ return dateObj.getMinutes();
7053
+ },
7054
+ mm: function(dateObj) {
7055
+ return pad(dateObj.getMinutes());
7056
+ },
7057
+ s: function(dateObj) {
7058
+ return dateObj.getSeconds();
7059
+ },
7060
+ ss: function(dateObj) {
7061
+ return pad(dateObj.getSeconds());
7062
+ },
7063
+ S: function(dateObj) {
7064
+ return Math.round(dateObj.getMilliseconds() / 100);
7065
+ },
7066
+ SS: function(dateObj) {
7067
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
7068
+ },
7069
+ SSS: function(dateObj) {
7070
+ return pad(dateObj.getMilliseconds(), 3);
7071
+ },
7072
+ a: function(dateObj) {
7073
+ return dateObj.getHours() < 12 ? '上午' : '下午';
7074
+ },
7075
+ A: function(dateObj) {
7076
+ return dateObj.getHours() < 12 ? '上午' : '下午';
7077
+ },
7078
+ ZZ: function(dateObj) {
7079
+ const o = dateObj.getTimezoneOffset();
7080
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
7081
+ }
7082
+ };
7083
+
7084
+ const parseFlags = {
7085
+ d: [twoDigits, function (d, v) {
7086
+ d.day = v;
7087
+ }],
7088
+ Do: [twoDigits + word, function (d, v) {
7089
+ d.day = parseInt(v, 10);
7090
+ }],
7091
+ M: [twoDigits, function (d, v) {
7092
+ d.month = v - 1;
7093
+ }],
7094
+ yy: [twoDigits, function (d, v) {
7095
+ const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
7096
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
7097
+ }],
7098
+ h: [twoDigits, function (d, v) {
7099
+ d.hour = v;
7100
+ }],
7101
+ m: [twoDigits, function (d, v) {
7102
+ d.minute = v;
7103
+ }],
7104
+ s: [twoDigits, function (d, v) {
7105
+ d.second = v;
7106
+ }],
7107
+ yyyy: [fourDigits, function (d, v) {
7108
+ d.year = v;
7109
+ }],
7110
+ S: ['\\d', function (d, v) {
7111
+ d.millisecond = v * 100;
7112
+ }],
7113
+ SS: ['\\d{2}', function (d, v) {
7114
+ d.millisecond = v * 10;
7115
+ }],
7116
+ SSS: [threeDigits, function (d, v) {
7117
+ d.millisecond = v;
7118
+ }],
7119
+ D: [twoDigits, noop],
7120
+ ddd: [word, noop],
7121
+ MMM: [word, monthUpdate('monthNamesShort')],
7122
+ MMMM: [word, monthUpdate('monthNames')],
7123
+ a: [word, function (d, v) {
7124
+ const val = v.toLowerCase();
7125
+ if (val === '上午') {
7126
+ d.isPm = false;
7127
+ } else if (val === '下午') {
7128
+ d.isPm = true;
7129
+ }
7130
+ }],
7131
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
7132
+ let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
7133
+
7134
+ if (parts) {
7135
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
7136
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
7137
+ }
7138
+ }]
7139
+ };
7140
+ parseFlags.dd = parseFlags.d;
7141
+ parseFlags.dddd = parseFlags.ddd;
7142
+ parseFlags.DD = parseFlags.D;
7143
+ parseFlags.mm = parseFlags.m;
7144
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
7145
+ parseFlags.MM = parseFlags.M;
7146
+ parseFlags.ss = parseFlags.s;
7147
+ parseFlags.A = parseFlags.a;
7148
+
7149
+
7150
+ // Some common format strings
7151
+ fecha.masks = {
7152
+ default: 'ddd MMM dd yyyy HH:mm:ss',
7153
+ shortDate: 'M/D/yy',
7154
+ mediumDate: 'MMM d, yyyy',
7155
+ longDate: 'MMMM d, yyyy',
7156
+ fullDate: 'dddd, MMMM d, yyyy',
7157
+ shortTime: 'HH:mm',
7158
+ mediumTime: 'HH:mm:ss',
7159
+ longTime: 'HH:mm:ss.SSS'
7160
+ };
7161
+
7129
7162
  /***
7130
7163
  * Format a date
7131
7164
  * @method format
7132
7165
  * @param {Date|number} dateObj
7133
7166
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
7134
- */
7135
- fecha.format = function (dateObj, mask) {
7136
- if (typeof dateObj === 'number') {
7137
- dateObj = new Date(dateObj);
7138
- }
7139
-
7140
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
7141
- throw new Error('Invalid Date in fecha.format');
7142
- }
7143
-
7144
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
7145
-
7146
- var literals = [];
7147
-
7148
- // Make literals inactive by replacing them with ??
7149
- mask = mask.replace(literal, function ($0, $1) {
7150
- literals.push($1);
7151
- return '@@@';
7152
- });
7153
- // Apply formatting rules
7154
- mask = mask.replace(token, function ($0) {
7155
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
7156
- });
7157
- // Inline literal values back into the formatted value
7158
- return mask.replace(/@@@/g, function () {
7159
- return literals.shift();
7160
- });
7161
- };
7162
-
7167
+ */
7168
+ fecha.format = function (dateObj, mask) {
7169
+ if (typeof dateObj === 'number') {
7170
+ dateObj = new Date(dateObj);
7171
+ }
7172
+
7173
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
7174
+ throw new Error('Invalid Date in fecha.format');
7175
+ }
7176
+
7177
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
7178
+
7179
+ const literals = [];
7180
+
7181
+ // Make literals inactive by replacing them with ??
7182
+ mask = mask.replace(literal, function($0, $1) {
7183
+ literals.push($1);
7184
+ return '@@@';
7185
+ });
7186
+ // Apply formatting rules
7187
+ mask = mask.replace(token, function ($0) {
7188
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
7189
+ });
7190
+ // Inline literal values back into the formatted value
7191
+ return mask.replace(/@@@/g, function() {
7192
+ return literals.shift();
7193
+ });
7194
+ };
7195
+
7163
7196
  /**
7164
7197
  * Parse a date string into an object, changes - into /
7165
7198
  * @method parse
7166
7199
  * @param {string} dateStr Date string
7167
7200
  * @param {string} format Date parse format
7168
7201
  * @returns {Date|boolean}
7169
- */
7170
- fecha.parse = function (dateStr, format) {
7171
- if (typeof format !== 'string') {
7172
- throw new Error('Invalid format in fecha.parse');
7173
- }
7174
-
7175
- format = fecha.masks[format] || format;
7176
-
7177
- // Avoid regular expression denial of service, fail early for really long strings
7178
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
7179
- if (dateStr.length > 1000) {
7180
- return null;
7181
- }
7182
-
7183
- var dateInfo = {};
7184
- var parseInfo = [];
7185
- var literals = [];
7186
- format = format.replace(literal, function ($0, $1) {
7187
- literals.push($1);
7188
- return '@@@';
7189
- });
7190
- var newFormat = regexEscape(format).replace(token, function ($0) {
7191
- if (parseFlags[$0]) {
7192
- var info = parseFlags[$0];
7193
- parseInfo.push(info[1]);
7194
- return '(' + info[0] + ')';
7195
- }
7196
-
7197
- return $0;
7198
- });
7199
- newFormat = newFormat.replace(/@@@/g, function () {
7200
- return literals.shift();
7201
- });
7202
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
7203
- if (!matches) {
7204
- return null;
7205
- }
7206
-
7207
- for (var i = 1; i < matches.length; i++) {
7208
- parseInfo[i - 1](dateInfo, matches[i]);
7209
- }
7210
-
7211
- var today = new Date();
7212
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
7213
- dateInfo.hour = +dateInfo.hour + 12;
7214
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
7215
- dateInfo.hour = 0;
7216
- }
7217
-
7218
- var date = void 0;
7219
- if (dateInfo.timezoneOffset != null) {
7220
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
7221
- date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
7222
- } else {
7223
- date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
7224
- }
7225
- return date;
7226
- };
7227
-
7228
- // 导出fecha对象
7229
-
7230
-
7231
- // 以下是从date-util.js合并的函数
7232
- var newArray = function newArray(start, end) {
7233
- var result = [];
7234
- for (var i = start; i <= end; i++) {
7235
- result.push(i);
7236
- }
7237
- return result;
7238
- };
7239
-
7240
- var getSettings = function getSettings() {
7241
- return {
7242
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
7243
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
7244
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
7245
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
7246
- amPm: ['上午', '下午']
7247
- };
7248
- };
7249
-
7250
- var toDate = function toDate(date) {
7251
- return isDate(date) ? new Date(date) : null;
7252
- };
7253
-
7254
- var isDate = function isDate(date) {
7255
- if (date === null || date === undefined) return false;
7256
- if (isNaN(new Date(date).getTime())) return false;
7257
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
7258
- return true;
7259
- };
7260
-
7261
- var isDateObject = function isDateObject(val) {
7262
- return val instanceof Date;
7263
- };
7264
-
7265
- var formatDate = function formatDate(date) {
7266
- var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
7267
-
7268
- // 处理多种输入类型
7269
- if (!date) return '';
7270
-
7271
- // 如果是时间戳,转成日期对象
7272
- if (typeof date === 'number') {
7273
- date = new Date(date);
7274
- }
7275
- // 如果是字符串,转成日期对象
7276
- if (typeof date === 'string') {
7277
- date = new Date(date);
7278
- }
7279
-
7280
- // 调用toDate进一步验证和转换
7281
- date = toDate(date);
7282
- if (!date) return '';
7283
-
7284
- // 兼容大写和小写的格式标记
7285
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
7286
- var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
7287
-
7288
- // 使用fecha库进行格式化,支持中文配置
7289
- var str = fecha.format(date, lowercaseFormat, getSettings());
7290
- return str;
7291
- };
7292
-
7293
- var parseDate = function parseDate(string, format) {
7294
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
7295
- };
7296
-
7297
- var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
7298
- if (month === 3 || month === 5 || month === 8 || month === 10) {
7299
- return 30;
7300
- }
7301
-
7302
- if (month === 1) {
7303
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
7304
- return 29;
7305
- } else {
7306
- return 28;
7307
- }
7308
- }
7309
-
7310
- return 31;
7311
- };
7312
-
7313
- var getDayCountOfYear = function getDayCountOfYear(year) {
7314
- var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
7315
- return isLeapYear ? 366 : 365;
7316
- };
7317
-
7318
- var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
7319
- var temp = new Date(date.getTime());
7320
- temp.setDate(1);
7321
- return temp.getDay();
7322
- };
7323
-
7324
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
7325
- // {prev, next} Date should work for Daylight Saving Time
7326
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
7327
- var prevDate = function prevDate(date) {
7328
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7329
-
7330
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
7331
- };
7332
-
7333
- var nextDate = function nextDate(date) {
7334
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7335
-
7336
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
7337
- };
7338
-
7339
- var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
7340
- var result = new Date(year, month, 1);
7341
- var day = result.getDay();
7342
-
7343
- if (day === 0) {
7344
- return prevDate(result, 7);
7345
- } else {
7346
- return prevDate(result, day);
7347
- }
7348
- };
7349
-
7350
- var getWeekNumber = function getWeekNumber(date) {
7351
- // 支持多种输入类型
7352
- if (!date || !isDate(date)) {
7353
- date = new Date();
7354
- }
7355
- if (typeof date === 'string') {
7356
- date = new Date(date);
7357
- }
7358
-
7359
- // 验证日期有效性
7360
- if (!isDate(date)) return null;
7361
-
7362
- var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
7363
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
7364
- // 将星期日的星期数设为7
7365
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
7366
- // 获取当年的第一天
7367
- var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
7368
- // 计算到最近的星期四的完整周数
7369
- var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
7370
- // 返回周数
7371
- return weekNo;
7372
- };
7373
-
7374
- var getRangeHours = function getRangeHours(ranges) {
7375
- var hours = [];
7376
- var disabledHours = [];
7377
-
7378
- (ranges || []).forEach(function (range) {
7379
- var value = range.map(function (date) {
7380
- return date.getHours();
7381
- });
7382
-
7383
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
7384
- });
7385
-
7386
- if (disabledHours.length) {
7387
- for (var i = 0; i < 24; i++) {
7388
- hours[i] = disabledHours.indexOf(i) === -1;
7389
- }
7390
- } else {
7391
- for (var _i = 0; _i < 24; _i++) {
7392
- hours[_i] = false;
7393
- }
7394
- }
7395
-
7396
- return hours;
7397
- };
7398
-
7399
- var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
7400
- if (amount <= 0) return [];
7401
- var temp = new Date(date.getTime());
7402
- temp.setDate(0);
7403
- var lastDay = temp.getDate();
7404
- return range(amount).map(function (_, index) {
7405
- return lastDay - (amount - index - 1);
7406
- });
7407
- };
7408
-
7409
- var getMonthDays = function getMonthDays(date) {
7410
- var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
7411
- var days = temp.getDate();
7412
- return range(days).map(function (_, index) {
7413
- return index + 1;
7414
- });
7415
- };
7416
-
7417
- function setRangeData(arr, start, end, value) {
7418
- for (var i = start; i < end; i++) {
7419
- arr[i] = value;
7420
- }
7421
- }
7422
-
7423
- var getRangeMinutes = function getRangeMinutes(ranges, hour) {
7424
- var minutes = new Array(60);
7425
-
7426
- if (ranges.length > 0) {
7427
- ranges.forEach(function (range) {
7428
- var start = range[0];
7429
- var end = range[1];
7430
- var startHour = start.getHours();
7431
- var startMinute = start.getMinutes();
7432
- var endHour = end.getHours();
7433
- var endMinute = end.getMinutes();
7434
- if (startHour === hour && endHour !== hour) {
7435
- setRangeData(minutes, startMinute, 60, true);
7436
- } else if (startHour === hour && endHour === hour) {
7437
- setRangeData(minutes, startMinute, endMinute + 1, true);
7438
- } else if (startHour !== hour && endHour === hour) {
7439
- setRangeData(minutes, 0, endMinute + 1, true);
7440
- } else if (startHour < hour && endHour > hour) {
7441
- setRangeData(minutes, 0, 60, true);
7442
- }
7443
- });
7444
- } else {
7445
- setRangeData(minutes, 0, 60, true);
7446
- }
7447
- return minutes;
7448
- };
7449
-
7450
- var range = function range(n) {
7451
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
7452
- return Array.apply(null, { length: n }).map(function (_, n) {
7453
- return n;
7454
- });
7455
- };
7456
-
7457
- var modifyDate = function modifyDate(date, y, m, d) {
7458
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
7459
- };
7460
-
7461
- var modifyTime = function modifyTime(date, h, m, s) {
7462
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
7463
- };
7464
-
7465
- var modifyWithTimeString = function modifyWithTimeString(date, time) {
7466
- if (date == null || !time) {
7467
- return date;
7468
- }
7469
- time = parseDate(time, 'HH:mm:ss');
7470
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
7471
- };
7472
-
7473
- var clearTime = function clearTime(date) {
7474
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
7475
- };
7476
-
7477
- var clearMilliseconds = function clearMilliseconds(date) {
7478
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
7479
- };
7480
-
7481
- var limitTimeRange = function limitTimeRange(date, ranges) {
7482
- var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
7483
-
7484
- // TODO: refactory a more elegant solution
7485
- if (ranges.length === 0) return date;
7486
- var normalizeDate = function normalizeDate(date) {
7487
- return fecha.parse(fecha.format(date, format), format);
7488
- };
7489
- var ndate = normalizeDate(date);
7490
- var nranges = ranges.map(function (range) {
7491
- return range.map(normalizeDate);
7492
- });
7493
- if (nranges.some(function (nrange) {
7494
- return ndate >= nrange[0] && ndate <= nrange[1];
7495
- })) return date;
7496
-
7497
- var minDate = nranges[0][0];
7498
- var maxDate = nranges[0][0];
7499
-
7500
- nranges.forEach(function (nrange) {
7501
- minDate = new Date(Math.min(nrange[0], minDate));
7502
- maxDate = new Date(Math.max(nrange[1], minDate));
7503
- });
7504
-
7505
- var ret = ndate < minDate ? minDate : maxDate;
7506
- // preserve Year/Month/Date
7507
- return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
7508
- };
7509
-
7510
- var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
7511
- var limitedDate = limitTimeRange(date, selectableRange, format);
7512
- return limitedDate.getTime() === date.getTime();
7513
- };
7514
-
7515
- var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
7516
- // clamp date to the number of days in `year`, `month`
7517
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
7518
- var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
7519
- return modifyDate(date, year, month, monthDate);
7520
- };
7521
-
7522
- var prevMonth = function prevMonth(date) {
7523
- var year = date.getFullYear();
7524
- var month = date.getMonth();
7525
- return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
7526
- };
7527
-
7528
- var nextMonth = function nextMonth(date) {
7529
- var year = date.getFullYear();
7530
- var month = date.getMonth();
7531
- return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
7532
- };
7533
-
7534
- var prevYear = function prevYear(date) {
7535
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7536
-
7537
- var year = date.getFullYear();
7538
- var month = date.getMonth();
7539
- return changeYearMonthAndClampDate(date, year - amount, month);
7540
- };
7541
-
7542
- var nextYear = function nextYear(date) {
7543
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7544
-
7545
- var year = date.getFullYear();
7546
- var month = date.getMonth();
7547
- return changeYearMonthAndClampDate(date, year + amount, month);
7548
- };
7549
-
7550
- var extractDateFormat = function extractDateFormat(format) {
7551
- return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
7552
- };
7553
-
7554
- var extractTimeFormat = function extractTimeFormat(format) {
7555
- return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
7556
- };
7557
-
7558
- var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
7559
- return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
7560
- };
7561
-
7202
+ */
7203
+ fecha.parse = function (dateStr, format) {
7204
+ if (typeof format !== 'string') {
7205
+ throw new Error('Invalid format in fecha.parse');
7206
+ }
7207
+
7208
+ format = fecha.masks[format] || format;
7209
+
7210
+ // Avoid regular expression denial of service, fail early for really long strings
7211
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
7212
+ if (dateStr.length > 1000) {
7213
+ return null;
7214
+ }
7215
+
7216
+ const dateInfo = {};
7217
+ const parseInfo = [];
7218
+ const literals = [];
7219
+ format = format.replace(literal, function($0, $1) {
7220
+ literals.push($1);
7221
+ return '@@@';
7222
+ });
7223
+ let newFormat = regexEscape(format).replace(token, function ($0) {
7224
+ if (parseFlags[$0]) {
7225
+ const info = parseFlags[$0];
7226
+ parseInfo.push(info[1]);
7227
+ return '(' + info[0] + ')';
7228
+ }
7229
+
7230
+ return $0;
7231
+ });
7232
+ newFormat = newFormat.replace(/@@@/g, function() {
7233
+ return literals.shift();
7234
+ });
7235
+ const matches = dateStr.match(new RegExp(newFormat, 'i'));
7236
+ if (!matches) {
7237
+ return null;
7238
+ }
7239
+
7240
+ for (let i = 1; i < matches.length; i++) {
7241
+ parseInfo[i - 1](dateInfo, matches[i]);
7242
+ }
7243
+
7244
+ const today = new Date();
7245
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
7246
+ dateInfo.hour = +dateInfo.hour + 12;
7247
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
7248
+ dateInfo.hour = 0;
7249
+ }
7250
+
7251
+ let date;
7252
+ if (dateInfo.timezoneOffset != null) {
7253
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
7254
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
7255
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
7256
+ } else {
7257
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
7258
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
7259
+ }
7260
+ return date;
7261
+ };
7262
+
7263
+ // 导出fecha对象
7264
+
7265
+
7266
+ // 以下是从date-util.js合并的函数
7267
+ const newArray = function(start, end) {
7268
+ let result = [];
7269
+ for (let i = start; i <= end; i++) {
7270
+ result.push(i);
7271
+ }
7272
+ return result;
7273
+ };
7274
+
7275
+ const getSettings = () => {
7276
+ return {
7277
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
7278
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
7279
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
7280
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
7281
+ amPm: ['上午', '下午']
7282
+ };
7283
+ };
7284
+
7285
+ const toDate = function(date) {
7286
+ return isDate(date) ? new Date(date) : null;
7287
+ };
7288
+
7289
+ const isDate = function(date) {
7290
+ if (date === null || date === undefined) return false;
7291
+ if (isNaN(new Date(date).getTime())) return false;
7292
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
7293
+ return true;
7294
+ };
7295
+
7296
+ const isDateObject = function(val) {
7297
+ return val instanceof Date;
7298
+ };
7299
+
7300
+ const formatDate = function (date, format = 'yyyy-MM-dd') {
7301
+ // 处理多种输入类型
7302
+ if (!date) return '';
7303
+
7304
+ // 如果是时间戳,转成日期对象
7305
+ if (typeof date === 'number') {
7306
+ date = new Date(date);
7307
+ }
7308
+ // 如果是字符串,转成日期对象
7309
+ if (typeof date === 'string') {
7310
+ date = new Date(date);
7311
+ }
7312
+
7313
+ // 调用toDate进一步验证和转换
7314
+ date = toDate(date);
7315
+ if (!date) return '';
7316
+
7317
+ // 兼容大写和小写的格式标记
7318
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
7319
+ const lowercaseFormat = format
7320
+ .replace(/YYYY/g, 'yyyy')
7321
+ .replace(/D/g, 'd')
7322
+
7323
+ // 使用fecha库进行格式化,支持中文配置
7324
+ const str = fecha.format(date, lowercaseFormat, getSettings());
7325
+ return str;
7326
+ };
7327
+
7328
+ const parseDate = function(string, format) {
7329
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
7330
+ };
7331
+
7332
+ const getDayCountOfMonth = function(year, month) {
7333
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
7334
+ return 30;
7335
+ }
7336
+
7337
+ if (month === 1) {
7338
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
7339
+ return 29;
7340
+ } else {
7341
+ return 28;
7342
+ }
7343
+ }
7344
+
7345
+ return 31;
7346
+ };
7347
+
7348
+ const getDayCountOfYear = function(year) {
7349
+ const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
7350
+ return isLeapYear ? 366 : 365;
7351
+ };
7352
+
7353
+ const getFirstDayOfMonth = function(date) {
7354
+ const temp = new Date(date.getTime());
7355
+ temp.setDate(1);
7356
+ return temp.getDay();
7357
+ };
7358
+
7359
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
7360
+ // {prev, next} Date should work for Daylight Saving Time
7361
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
7362
+ const prevDate = function(date, amount = 1) {
7363
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
7364
+ };
7365
+
7366
+ const nextDate = function(date, amount = 1) {
7367
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
7368
+ };
7369
+
7370
+ const getStartDateOfMonth = function(year, month) {
7371
+ const result = new Date(year, month, 1);
7372
+ const day = result.getDay();
7373
+
7374
+ if (day === 0) {
7375
+ return prevDate(result, 7);
7376
+ } else {
7377
+ return prevDate(result, day);
7378
+ }
7379
+ };
7380
+
7381
+ const getWeekNumber = function(date) {
7382
+ // 支持多种输入类型
7383
+ if (!date||!isDate(date)) {
7384
+ date = new Date();
7385
+ }
7386
+ if (typeof date === 'string') {
7387
+ date = new Date(date);
7388
+ }
7389
+
7390
+ // 验证日期有效性
7391
+ if (!isDate(date)) return null;
7392
+
7393
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
7394
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
7395
+ // 将星期日的星期数设为7
7396
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
7397
+ // 获取当年的第一天
7398
+ const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
7399
+ // 计算到最近的星期四的完整周数
7400
+ const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
7401
+ // 返回周数
7402
+ return weekNo;
7403
+ };
7404
+
7405
+ const getRangeHours = function(ranges) {
7406
+ const hours = [];
7407
+ let disabledHours = [];
7408
+
7409
+ (ranges || []).forEach(range => {
7410
+ const value = range.map(date => date.getHours());
7411
+
7412
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
7413
+ });
7414
+
7415
+ if (disabledHours.length) {
7416
+ for (let i = 0; i < 24; i++) {
7417
+ hours[i] = disabledHours.indexOf(i) === -1;
7418
+ }
7419
+ } else {
7420
+ for (let i = 0; i < 24; i++) {
7421
+ hours[i] = false;
7422
+ }
7423
+ }
7424
+
7425
+ return hours;
7426
+ };
7427
+
7428
+ const getPrevMonthLastDays = (date, amount) => {
7429
+ if (amount <= 0) return [];
7430
+ const temp = new Date(date.getTime());
7431
+ temp.setDate(0);
7432
+ const lastDay = temp.getDate();
7433
+ return range(amount).map((_, index) => lastDay - (amount - index - 1));
7434
+ };
7435
+
7436
+ const getMonthDays = (date) => {
7437
+ const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
7438
+ const days = temp.getDate();
7439
+ return range(days).map((_, index) => index + 1);
7440
+ };
7441
+
7442
+ function setRangeData(arr, start, end, value) {
7443
+ for (let i = start; i < end; i++) {
7444
+ arr[i] = value;
7445
+ }
7446
+ }
7447
+
7448
+ const getRangeMinutes = function(ranges, hour) {
7449
+ const minutes = new Array(60);
7450
+
7451
+ if (ranges.length > 0) {
7452
+ ranges.forEach(range => {
7453
+ const start = range[0];
7454
+ const end = range[1];
7455
+ const startHour = start.getHours();
7456
+ const startMinute = start.getMinutes();
7457
+ const endHour = end.getHours();
7458
+ const endMinute = end.getMinutes();
7459
+ if (startHour === hour && endHour !== hour) {
7460
+ setRangeData(minutes, startMinute, 60, true);
7461
+ } else if (startHour === hour && endHour === hour) {
7462
+ setRangeData(minutes, startMinute, endMinute + 1, true);
7463
+ } else if (startHour !== hour && endHour === hour) {
7464
+ setRangeData(minutes, 0, endMinute + 1, true);
7465
+ } else if (startHour < hour && endHour > hour) {
7466
+ setRangeData(minutes, 0, 60, true);
7467
+ }
7468
+ });
7469
+ } else {
7470
+ setRangeData(minutes, 0, 60, true);
7471
+ }
7472
+ return minutes;
7473
+ };
7474
+
7475
+ const range = function(n) {
7476
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
7477
+ return Array.apply(null, {length: n}).map((_, n) => n);
7478
+ };
7479
+
7480
+ const modifyDate = function(date, y, m, d) {
7481
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
7482
+ };
7483
+
7484
+ const modifyTime = function(date, h, m, s) {
7485
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
7486
+ };
7487
+
7488
+ const modifyWithTimeString = (date, time) => {
7489
+ if (date == null || !time) {
7490
+ return date;
7491
+ }
7492
+ time = parseDate(time, 'HH:mm:ss');
7493
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
7494
+ };
7495
+
7496
+ const clearTime = function(date) {
7497
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
7498
+ };
7499
+
7500
+ const clearMilliseconds = function(date) {
7501
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
7502
+ };
7503
+
7504
+ const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
7505
+ // TODO: refactory a more elegant solution
7506
+ if (ranges.length === 0) return date;
7507
+ const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
7508
+ const ndate = normalizeDate(date);
7509
+ const nranges = ranges.map(range => range.map(normalizeDate));
7510
+ if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
7511
+
7512
+ let minDate = nranges[0][0];
7513
+ let maxDate = nranges[0][0];
7514
+
7515
+ nranges.forEach(nrange => {
7516
+ minDate = new Date(Math.min(nrange[0], minDate));
7517
+ maxDate = new Date(Math.max(nrange[1], minDate));
7518
+ });
7519
+
7520
+ const ret = ndate < minDate ? minDate : maxDate;
7521
+ // preserve Year/Month/Date
7522
+ return modifyDate(
7523
+ ret,
7524
+ date.getFullYear(),
7525
+ date.getMonth(),
7526
+ date.getDate()
7527
+ );
7528
+ };
7529
+
7530
+ const timeWithinRange = function(date, selectableRange, format) {
7531
+ const limitedDate = limitTimeRange(date, selectableRange, format);
7532
+ return limitedDate.getTime() === date.getTime();
7533
+ };
7534
+
7535
+ const changeYearMonthAndClampDate = function(date, year, month) {
7536
+ // clamp date to the number of days in `year`, `month`
7537
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
7538
+ const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
7539
+ return modifyDate(date, year, month, monthDate);
7540
+ };
7541
+
7542
+ const prevMonth = function(date) {
7543
+ const year = date.getFullYear();
7544
+ const month = date.getMonth();
7545
+ return month === 0
7546
+ ? changeYearMonthAndClampDate(date, year - 1, 11)
7547
+ : changeYearMonthAndClampDate(date, year, month - 1);
7548
+ };
7549
+
7550
+ const nextMonth = function(date) {
7551
+ const year = date.getFullYear();
7552
+ const month = date.getMonth();
7553
+ return month === 11
7554
+ ? changeYearMonthAndClampDate(date, year + 1, 0)
7555
+ : changeYearMonthAndClampDate(date, year, month + 1);
7556
+ };
7557
+
7558
+ const prevYear = function(date, amount = 1) {
7559
+ const year = date.getFullYear();
7560
+ const month = date.getMonth();
7561
+ return changeYearMonthAndClampDate(date, year - amount, month);
7562
+ };
7563
+
7564
+ const nextYear = function(date, amount = 1) {
7565
+ const year = date.getFullYear();
7566
+ const month = date.getMonth();
7567
+ return changeYearMonthAndClampDate(date, year + amount, month);
7568
+ };
7569
+
7570
+ const extractDateFormat = function(format) {
7571
+ return format
7572
+ .replace(/\W?m{1,2}|\W?ZZ/g, '')
7573
+ .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
7574
+ .trim();
7575
+ };
7576
+
7577
+ const extractTimeFormat = function(format) {
7578
+ return format
7579
+ .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
7580
+ .trim();
7581
+ };
7582
+
7583
+ const validateRangeInOneMonth = function(start, end) {
7584
+ return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
7585
+ };
7586
+
7562
7587
  /**
7563
7588
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
7564
7589
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
7565
7590
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
7566
7591
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
7567
7592
  * @returns {number} 工作日数量
7568
- */
7569
- var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
7570
- var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
7571
-
7572
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
7573
- throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
7574
- }
7575
-
7576
- var startDateObj = new Date(start_date);
7577
- var endDateObj = new Date(end_date);
7578
-
7579
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
7580
- throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
7581
- }
7582
-
7583
- if (startDateObj > endDateObj) {
7584
- throw new Error('Start date should be earlier than or equal to end date.');
7585
- }
7586
-
7587
- var workdays = 0;
7588
-
7589
- // Iterate through each day in the date range
7590
-
7591
- var _loop = function _loop(currentDate) {
7592
- // Check if the current day is a weekend (Saturday or Sunday)
7593
- var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
7594
-
7595
- // Check if the current day is a holiday
7596
- var isHoliday = holidays.some(function (holiday) {
7597
- var holidayDate = new Date(holiday);
7598
- return currentDate.toDateString() === holidayDate.toDateString();
7599
- });
7600
-
7601
- // If it's a workday (not a weekend or holiday), increment the workdays count
7602
- if (!isWeekend && !isHoliday) {
7603
- workdays++;
7604
- }
7605
- };
7606
-
7607
- for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
7608
- _loop(currentDate);
7609
- }
7610
-
7611
- return workdays;
7612
- };
7613
-
7593
+ */
7594
+ const calculateNetworkDays = function (start_date, end_date, holidays = []) {
7595
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
7596
+ throw new Error(
7597
+ "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
7598
+ );
7599
+ }
7600
+
7601
+ const startDateObj = new Date(start_date);
7602
+ const endDateObj = new Date(end_date);
7603
+
7604
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
7605
+ throw new Error(
7606
+ "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
7607
+ );
7608
+ }
7609
+
7610
+ if (startDateObj > endDateObj) {
7611
+ throw new Error('Start date should be earlier than or equal to end date.');
7612
+ }
7613
+
7614
+ let workdays = 0;
7615
+
7616
+ // Iterate through each day in the date range
7617
+ for (
7618
+ let currentDate = new Date(startDateObj);
7619
+ currentDate <= endDateObj;
7620
+ currentDate.setDate(currentDate.getDate() + 1)
7621
+ ) {
7622
+ // Check if the current day is a weekend (Saturday or Sunday)
7623
+ const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
7624
+
7625
+ // Check if the current day is a holiday
7626
+ const isHoliday = holidays.some((holiday) => {
7627
+ const holidayDate = new Date(holiday);
7628
+ return currentDate.toDateString() === holidayDate.toDateString();
7629
+ });
7630
+
7631
+ // If it's a workday (not a weekend or holiday), increment the workdays count
7632
+ if (!isWeekend && !isHoliday) {
7633
+ workdays++;
7634
+ }
7635
+ }
7636
+
7637
+ return workdays;
7638
+ };
7639
+
7614
7640
  /**
7615
7641
  * 日期加减天数
7616
7642
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
7617
7643
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
7618
7644
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
7619
- */
7620
- var dateAddDays = function dateAddDays(start_date, days) {
7621
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
7622
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days.");
7623
- }
7624
-
7625
- var startDateObj = new Date(start_date);
7626
- if (isNaN(startDateObj.getTime())) {
7627
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
7628
- }
7629
-
7630
- var resultDateObj = new Date(startDateObj);
7631
- resultDateObj.setDate(resultDateObj.getDate() + days);
7632
-
7633
- var resultYear = resultDateObj.getFullYear();
7634
- var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
7635
- var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
7636
-
7637
- return resultYear + '-' + resultMonth + '-' + resultDay;
7638
- };
7639
-
7645
+ */
7646
+ const dateAddDays = function (start_date, days) {
7647
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
7648
+ throw new Error(
7649
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
7650
+ );
7651
+ }
7652
+
7653
+ const startDateObj = new Date(start_date);
7654
+ if (isNaN(startDateObj.getTime())) {
7655
+ throw new Error(
7656
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
7657
+ );
7658
+ }
7659
+
7660
+ const resultDateObj = new Date(startDateObj);
7661
+ resultDateObj.setDate(resultDateObj.getDate() + days);
7662
+
7663
+ const resultYear = resultDateObj.getFullYear();
7664
+ const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
7665
+ const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
7666
+
7667
+ return `${resultYear}-${resultMonth}-${resultDay}`;
7668
+ };
7669
+
7640
7670
  /**
7641
7671
  * 计算两个日期之间的差值
7642
7672
  * @date 2023年12月14日
@@ -7644,180 +7674,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
7644
7674
  * @param {String} end_date - 结束日期字符串
7645
7675
  * @param {String} unit - 单位:year/month/day
7646
7676
  * @returns {Number} 差值
7647
- */
7648
- var dateDiff = function dateDiff(start_date, end_date) {
7649
- var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
7650
-
7651
- // Assuming date strings are in "YYYY-MM-DD" format
7652
- var startDate = new Date(start_date);
7653
- var endDate = new Date(end_date);
7654
-
7655
- // If the date is invalid, return 0
7656
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
7657
- return 0;
7658
- }
7659
-
7660
- if (unit === 'year') {
7661
- return endDate.getFullYear() - startDate.getFullYear();
7662
- } else if (unit === 'month') {
7663
- return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
7664
- } else {
7665
- // Default to day
7666
- var timeDifference = endDate - startDate;
7667
- // Calculate days (86400000 milliseconds per day)
7668
- return Math.floor(timeDifference / 86400000);
7669
- }
7670
- };
7671
-
7677
+ */
7678
+ const dateDiff = function (start_date, end_date, unit = 'day') {
7679
+ // Assuming date strings are in "YYYY-MM-DD" format
7680
+ var startDate = new Date(start_date);
7681
+ var endDate = new Date(end_date);
7682
+
7683
+ // If the date is invalid, return 0
7684
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
7685
+ return 0;
7686
+ }
7687
+
7688
+ if (unit === 'year') {
7689
+ return endDate.getFullYear() - startDate.getFullYear();
7690
+ } else if (unit === 'month') {
7691
+ return (
7692
+ (endDate.getFullYear() - startDate.getFullYear()) * 12 +
7693
+ (endDate.getMonth() - startDate.getMonth())
7694
+ );
7695
+ } else {
7696
+ // Default to day
7697
+ var timeDifference = endDate - startDate;
7698
+ // Calculate days (86400000 milliseconds per day)
7699
+ return Math.floor(timeDifference / 86400000);
7700
+ }
7701
+ };
7702
+
7672
7703
  /**
7673
7704
  * 获取月份中的日期
7674
7705
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
7675
7706
  * @returns {number} 月份中的日期(1-31)
7676
- */
7677
- var dayOfMonth = function dayOfMonth(date) {
7678
- if (typeof date !== 'string') {
7679
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
7680
- }
7681
-
7682
- var dateObj = new Date(date);
7683
- if (isNaN(dateObj.getTime())) {
7684
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
7685
- }
7686
-
7687
- return dateObj.getDate();
7688
- };
7689
-
7707
+ */
7708
+ const dayOfMonth = function (date) {
7709
+ if (typeof date !== 'string') {
7710
+ throw new Error(
7711
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
7712
+ );
7713
+ }
7714
+
7715
+ const dateObj = new Date(date);
7716
+ if (isNaN(dateObj.getTime())) {
7717
+ throw new Error(
7718
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
7719
+ );
7720
+ }
7721
+
7722
+ return dateObj.getDate();
7723
+ };
7724
+
7690
7725
  /**
7691
7726
  * 获取当前日期
7692
7727
  * @date 2022年5月7日
7693
7728
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
7694
7729
  * @returns {string} 当前日期的格式化字符串
7695
- */
7696
- var getCurrentDate = function getCurrentDate() {
7697
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
7698
-
7699
- return formatDate(new Date(), format);
7700
- };
7701
-
7730
+ */
7731
+ const getCurrentDate = function (format = 'YYYY-MM-DD') {
7732
+ return formatDate(new Date(), format);
7733
+ };
7734
+
7702
7735
  /**
7703
7736
  * 获取当前日期时间
7704
7737
  * @date 2022年5月7日
7705
7738
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
7706
7739
  * @returns {string} 当前日期时间的格式化字符串
7707
- */
7708
- var getCurrentDateTime = function getCurrentDateTime() {
7709
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
7710
-
7711
- return formatDate(new Date(), format);
7712
- };
7713
-
7740
+ */
7741
+ const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
7742
+ return formatDate(new Date(), format);
7743
+ };
7744
+
7714
7745
  /**
7715
7746
  * 获取小时
7716
7747
  * @date 2022年5月7日
7717
7748
  * @param {Date|string} [date] - 日期对象或日期字符串
7718
7749
  * @returns {number} 小时数(0-23)
7719
- */
7720
- var getHour = function getHour(date) {
7721
- if (!date) {
7722
- return new Date().getHours();
7723
- }
7724
- if (typeof date === 'string') {
7725
- date = new Date(date);
7726
- }
7727
- return date.getHours();
7728
- };
7729
-
7750
+ */
7751
+ const getHour = function (date) {
7752
+ if (!date) {
7753
+ return new Date().getHours();
7754
+ }
7755
+ if (typeof date === 'string') {
7756
+ date = new Date(date);
7757
+ }
7758
+ return date.getHours();
7759
+ };
7760
+
7730
7761
  /**
7731
7762
  * 获取分钟
7732
7763
  * @date 2022年5月7日
7733
7764
  * @param {Date|string} [date] - 日期对象或日期字符串
7734
7765
  * @returns {number} 分钟数(0-59)
7735
- */
7736
- var getMinute = function getMinute(date) {
7737
- if (!date) {
7738
- return new Date().getMinutes();
7739
- }
7740
- if (typeof date === 'string') {
7741
- date = new Date(date);
7742
- }
7743
- return date.getMinutes();
7744
- };
7745
-
7766
+ */
7767
+ const getMinute = function (date) {
7768
+ if (!date) {
7769
+ return new Date().getMinutes();
7770
+ }
7771
+ if (typeof date === 'string') {
7772
+ date = new Date(date);
7773
+ }
7774
+ return date.getMinutes();
7775
+ };
7776
+
7746
7777
  /**
7747
7778
  * 获取月份
7748
7779
  * @date 2022年5月7日
7749
7780
  * @param {Date|string} [date] - 日期对象或日期字符串
7750
7781
  * @returns {number} 月份数(1-12)
7751
- */
7752
- var getMonth = function getMonth(date) {
7753
- if (!date) {
7754
- return new Date().getMonth() + 1;
7755
- }
7756
- if (typeof date === 'string') {
7757
- date = new Date(date);
7758
- }
7759
- return date.getMonth() + 1;
7760
- };
7761
-
7782
+ */
7783
+ const getMonth = function (date) {
7784
+ if (!date) {
7785
+ return new Date().getMonth() + 1;
7786
+ }
7787
+ if (typeof date === 'string') {
7788
+ date = new Date(date);
7789
+ }
7790
+ return date.getMonth() + 1;
7791
+ };
7792
+
7762
7793
  /**
7763
7794
  * 获取秒
7764
7795
  * @date 2022年5月7日
7765
7796
  * @param {Date|string} [date] - 日期对象或日期字符串
7766
7797
  * @returns {number} 秒数(0-59)
7767
- */
7768
- var getSecond = function getSecond(date) {
7769
- if (!date) {
7770
- return new Date().getSeconds();
7771
- }
7772
- if (typeof date === 'string') {
7773
- date = new Date(date);
7774
- }
7775
- return date.getSeconds();
7776
- };
7777
-
7798
+ */
7799
+ const getSecond = function (date) {
7800
+ if (!date) {
7801
+ return new Date().getSeconds();
7802
+ }
7803
+ if (typeof date === 'string') {
7804
+ date = new Date(date);
7805
+ }
7806
+ return date.getSeconds();
7807
+ };
7808
+
7778
7809
  /**
7779
7810
  * 获取星期几
7780
7811
  * @date 2022年5月7日
7781
7812
  * @param {Date|string} [date] - 日期对象或日期字符串
7782
7813
  * @returns {number} 星期几(0-6,0表示星期日)
7783
- */
7784
- var getWeekday = function getWeekday(date) {
7785
- if (!date) {
7786
- return new Date().getDay();
7787
- }
7788
- if (typeof date === 'string') {
7789
- date = new Date(date);
7790
- }
7791
- return date.getDay();
7792
- };
7793
-
7814
+ */
7815
+ const getWeekday = function (date) {
7816
+ if (!date) {
7817
+ return new Date().getDay();
7818
+ }
7819
+ if (typeof date === 'string') {
7820
+ date = new Date(date);
7821
+ }
7822
+ return date.getDay();
7823
+ };
7824
+
7825
+
7794
7826
  /**
7795
7827
  * @desc 获取上午/下午/晚上
7796
7828
  * @author huangbo
7797
7829
  * @date 2022年5月7日
7798
7830
  * @param {String} [time] - 时间
7799
- **/
7800
- var timeCycle = function timeCycle(time) {
7801
- var hour = 0;
7802
- if (!time) {
7803
- hour = new Date().getHours();
7804
- } else if (typeof time === 'string') {
7805
- // 从时间字符串中提取小时
7806
- var match = time.match(/^(\d{1,2})/);
7807
- if (match) {
7808
- hour = parseInt(match[1], 10);
7809
- }
7810
- } else if (typeof time === 'number') {
7811
- hour = time;
7812
- }
7813
- // 判断时间段
7814
- if (hour >= 5 && hour < 12) {
7815
- return '上午';
7816
- } else if (hour >= 12 && hour < 18) {
7817
- return '下午';
7818
- } else {
7819
- return '晚上';
7820
- }
7831
+ **/
7832
+ const timeCycle = function (time) {
7833
+ let hour = 0;
7834
+ if (!time) {
7835
+ hour = new Date().getHours();
7836
+ } else if (typeof time === 'string') {
7837
+ // 从时间字符串中提取小时
7838
+ const match = time.match(/^(\d{1,2})/);
7839
+ if (match) {
7840
+ hour = parseInt(match[1], 10);
7841
+ }
7842
+ } else if (typeof time === 'number') {
7843
+ hour = time;
7844
+ }
7845
+ // 判断时间段
7846
+ if (hour >= 5 && hour < 12) {
7847
+ return '上午';
7848
+ } else if (hour >= 12 && hour < 18) {
7849
+ return '下午';
7850
+ } else {
7851
+ return '晚上';
7852
+ }
7821
7853
  };
7822
7854
 
7823
7855
  /***/ }),
@@ -7844,22 +7876,24 @@ module.exports = require("eoss/lib/message-box");
7844
7876
  /* unused harmony export downloadZip */
7845
7877
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
7846
7878
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
7847
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
7879
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
7848
7880
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
7849
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32);
7881
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
7850
7882
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
7851
7883
  /* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20);
7852
- /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33);
7884
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30);
7853
7885
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
7854
7886
  /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0);
7855
- /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23);
7887
+ /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21);
7856
7888
  /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(fetch_request_source__WEBPACK_IMPORTED_MODULE_5__);
7857
7889
  /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1);
7858
7890
  /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6);
7859
7891
  /* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8);
7860
7892
  /* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__);
7861
- /* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(11);
7893
+ /* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(10);
7862
7894
  /* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__);
7895
+ /* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31);
7896
+ /* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__);
7863
7897
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
7864
7898
 
7865
7899
  function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
@@ -7882,6 +7916,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
7882
7916
 
7883
7917
 
7884
7918
 
7919
+
7885
7920
  // 常量定义
7886
7921
  var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ storeAsString: true });
7887
7922
  var statusMap = {
@@ -8418,7 +8453,7 @@ var responses = function responses(data) {
8418
8453
  onlyFirst: true,
8419
8454
  customClass: 'es-retrial-auth-msg',
8420
8455
  render: function render(h, msgBox) {
8421
- return h('es-retrial-auth', {
8456
+ return h(eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10___default.a, {
8422
8457
  ref: 'auth',
8423
8458
  props: {
8424
8459
  reload: data.results.reload || data.results.refresh,
@@ -8661,7 +8696,7 @@ function redirectToLoginPage(loginPage, next) {
8661
8696
  * @param {function} callback - 回调函数
8662
8697
  **/
8663
8698
  var getMainConfig = function getMainConfig(callback) {
8664
- ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "tb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
8699
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "wb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
8665
8700
  if (res && res.rCode === 0) {
8666
8701
  callback(res.results);
8667
8702
  }
@@ -8684,7 +8719,7 @@ var getSysCodeList = function getSysCodeList(_ref4) {
8684
8719
  method = _ref4$method === undefined ? 'POST' : _ref4$method,
8685
8720
  service = _ref4.service,
8686
8721
  _ref4$url = _ref4.url,
8687
- url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "C"] : _ref4$url,
8722
+ url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "D"] : _ref4$url,
8688
8723
  sysCode = _ref4.sysCode,
8689
8724
  _ref4$param = _ref4.param,
8690
8725
  param = _ref4$param === undefined ? {} : _ref4$param,
@@ -8794,7 +8829,7 @@ var downloadFile = function downloadFile(_ref6) {
8794
8829
  file = _ref6.file,
8795
8830
  withToken = _ref6.withToken;
8796
8831
 
8797
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "x"] };
8832
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "y"] };
8798
8833
 
8799
8834
  var downloadUrl = '';
8800
8835
  if (file.adjunctId || file.response && file.response.adjunctId) {
@@ -8857,7 +8892,7 @@ var downloadZip = function downloadZip(_ref7) {
8857
8892
  code = _ref7.code,
8858
8893
  option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
8859
8894
 
8860
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Sc"] };
8895
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Wc"] };
8861
8896
 
8862
8897
  // 处理URL和参数
8863
8898
  var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
@@ -8909,7 +8944,7 @@ var deleteFile = function deleteFile(_ref8) {
8909
8944
  onSuccess = _ref8.onSuccess,
8910
8945
  onError = _ref8.onError;
8911
8946
 
8912
- var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "o"] + '\' }');
8947
+ var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "p"] + '\' }');
8913
8948
 
8914
8949
  // 处理URL和参数
8915
8950
  var deleteUrl = url ? url : dochubConfig.deleteDocumentUrl;