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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/lib/0.js +1 -1
  2. package/lib/1.js +1 -1
  3. package/lib/10.js +1 -1
  4. package/lib/11.js +1 -1
  5. package/lib/12.js +1 -1
  6. package/lib/13.js +1 -1
  7. package/lib/14.js +1 -1
  8. package/lib/15.js +1 -1
  9. package/lib/16.js +1 -1
  10. package/lib/17.js +1 -1
  11. package/lib/18.js +1 -1
  12. package/lib/19.js +1 -1
  13. package/lib/20.js +1 -1
  14. package/lib/21.js +1 -1
  15. package/lib/22.js +1 -1
  16. package/lib/23.js +1 -1
  17. package/lib/24.js +1 -1
  18. package/lib/25.js +1 -1
  19. package/lib/26.js +1 -1
  20. package/lib/27.js +1 -1
  21. package/lib/28.js +1 -1
  22. package/lib/29.js +1 -1
  23. package/lib/3.js +1 -1
  24. package/lib/30.js +1 -1
  25. package/lib/31.js +1 -1
  26. package/lib/32.js +1 -1
  27. package/lib/33.js +1 -1
  28. package/lib/34.js +1 -1
  29. package/lib/35.js +1 -1
  30. package/lib/36.js +1 -1
  31. package/lib/37.js +1 -1
  32. package/lib/38.js +1 -1
  33. package/lib/39.js +1 -1
  34. package/lib/4.js +1 -1
  35. package/lib/40.js +1 -1
  36. package/lib/41.js +1 -1
  37. package/lib/42.js +1 -1
  38. package/lib/43.js +1 -1
  39. package/lib/44.js +1 -1
  40. package/lib/45.js +1 -1
  41. package/lib/46.js +1 -1
  42. package/lib/47.js +1 -1
  43. package/lib/48.js +1 -1
  44. package/lib/49.js +1 -1
  45. package/lib/5.js +1 -1
  46. package/lib/50.js +1 -1
  47. package/lib/51.js +1 -1
  48. package/lib/52.js +1 -1
  49. package/lib/53.js +1 -1
  50. package/lib/54.js +1 -1
  51. package/lib/55.js +1 -1
  52. package/lib/56.js +1 -1
  53. package/lib/57.js +1 -1
  54. package/lib/58.js +1 -1
  55. package/lib/59.js +1 -1
  56. package/lib/6.js +1 -1
  57. package/lib/60.js +1 -1
  58. package/lib/61.js +1 -1
  59. package/lib/62.js +1 -1
  60. package/lib/63.js +1 -1
  61. package/lib/64.js +1 -1
  62. package/lib/65.js +1 -1
  63. package/lib/66.js +1 -1
  64. package/lib/67.js +1 -1
  65. package/lib/68.js +1 -1
  66. package/lib/69.js +1 -1
  67. package/lib/7.js +1 -1
  68. package/lib/70.js +1 -1
  69. package/lib/71.js +1 -1
  70. package/lib/72.js +1 -1
  71. package/lib/73.js +1 -1
  72. package/lib/74.js +1 -1
  73. package/lib/75.js +1 -1
  74. package/lib/76.js +1 -1
  75. package/lib/77.js +1 -1
  76. package/lib/78.js +1 -1
  77. package/lib/79.js +1 -1
  78. package/lib/8.js +1 -1
  79. package/lib/80.js +1 -1
  80. package/lib/81.js +1 -1
  81. package/lib/9.js +1 -1
  82. package/lib/account-login.js +985 -1010
  83. package/lib/alert.js +2 -2
  84. package/lib/aside.js +2 -2
  85. package/lib/audit-trajectory.js +145 -145
  86. package/lib/autocomplete.js +1778 -2002
  87. package/lib/avatar.js +2 -2
  88. package/lib/backtop.js +2 -2
  89. package/lib/badge.js +2 -2
  90. package/lib/breadcrumb-item.js +4 -4
  91. package/lib/breadcrumb.js +4 -4
  92. package/lib/button-group.js +2 -2
  93. package/lib/button.js +2 -2
  94. package/lib/ca-login.js +837 -862
  95. package/lib/calendar.js +837 -862
  96. package/lib/card.js +2 -2
  97. package/lib/carousel-item.js +839 -864
  98. package/lib/carousel.js +839 -864
  99. package/lib/cascader-panel.js +839 -864
  100. package/lib/cascader.js +1780 -2004
  101. package/lib/checkbox-button.js +2 -2
  102. package/lib/checkbox-group.js +987 -1012
  103. package/lib/checkbox.js +2 -2
  104. package/lib/col.js +2 -2
  105. package/lib/collapse-item.js +839 -864
  106. package/lib/collapse.js +839 -864
  107. package/lib/color-picker.js +942 -1141
  108. package/lib/container.js +2 -2
  109. package/lib/cron.js +2 -2
  110. package/lib/data-table.js +987 -1012
  111. package/lib/date-picker.js +1785 -2009
  112. package/lib/dialog.js +837 -862
  113. package/lib/divider.js +2 -2
  114. package/lib/drawer.js +2 -2
  115. package/lib/dropdown-item.js +4 -4
  116. package/lib/dropdown-menu.js +942 -1141
  117. package/lib/dropdown.js +837 -862
  118. package/lib/email-login.js +986 -1011
  119. package/lib/empty.js +2 -2
  120. package/lib/eoss.common.js +2935 -2523
  121. package/lib/flip.js +2 -2
  122. package/lib/flow-group.js +841 -866
  123. package/lib/flow.js +1073 -1098
  124. package/lib/flows.js +993 -1018
  125. package/lib/footer.js +2 -2
  126. package/lib/form-item.js +2275 -2300
  127. package/lib/form.js +1034 -1046
  128. package/lib/guide.js +2 -2
  129. package/lib/header.js +2 -2
  130. package/lib/icon.js +981 -1006
  131. package/lib/icons.js +2 -2
  132. package/lib/image-viewer.js +837 -862
  133. package/lib/image.js +4 -4
  134. package/lib/index.js +1 -1
  135. package/lib/infinite-scroll.js +2 -2
  136. package/lib/input-number.js +4 -4
  137. package/lib/input.js +837 -862
  138. package/lib/link.js +2 -2
  139. package/lib/loading.js +2 -2
  140. package/lib/login.js +1737 -1059
  141. package/lib/lowcode-view.js +991 -1016
  142. package/lib/lowcode.js +1088 -1113
  143. package/lib/main.js +1066 -1091
  144. package/lib/marquee.js +837 -862
  145. package/lib/menu-item-group.js +2 -2
  146. package/lib/menu-item.js +2 -2
  147. package/lib/menu.js +1779 -2003
  148. package/lib/message-box.js +837 -862
  149. package/lib/message.js +837 -862
  150. package/lib/notification.js +859 -884
  151. package/lib/option-group.js +4 -4
  152. package/lib/option.js +839 -864
  153. package/lib/page-header.js +2 -2
  154. package/lib/pagination.js +837 -862
  155. package/lib/phone-login.js +986 -1011
  156. package/lib/popconfirm.js +4 -4
  157. package/lib/popover.js +1779 -2003
  158. package/lib/process-config.js +995 -1020
  159. package/lib/process-module.js +1056 -1081
  160. package/lib/process-rule.js +999 -1024
  161. package/lib/progress.js +2 -2
  162. package/lib/qr-code.js +4 -4
  163. package/lib/qrcode-login.js +987 -1012
  164. package/lib/radio-button.js +2 -2
  165. package/lib/radio-group.js +987 -1012
  166. package/lib/radio.js +2 -2
  167. package/lib/rate.js +837 -862
  168. package/lib/row.js +2 -2
  169. package/lib/scrollbar.js +837 -862
  170. package/lib/select.js +1938 -2162
  171. package/lib/selector-panel.js +1014 -1039
  172. package/lib/selector.js +991 -1016
  173. package/lib/slider.js +2 -2
  174. package/lib/step.js +4 -4
  175. package/lib/steps.js +839 -864
  176. package/lib/submenu.js +944 -1143
  177. package/lib/switch.js +837 -862
  178. package/lib/tab-pane.js +4 -4
  179. package/lib/table-column.js +837 -862
  180. package/lib/table.js +1927 -2151
  181. package/lib/tabs.js +839 -864
  182. package/lib/tag.js +2 -2
  183. package/lib/theme-chalk/base.css +1 -1
  184. package/lib/theme-chalk/index.css +1 -1
  185. package/lib/theme-chalk/main.css +1 -1
  186. package/lib/time-picker.js +1786 -2010
  187. package/lib/time-select.js +1782 -2006
  188. package/lib/timeline-item.js +2 -2
  189. package/lib/timeline.js +2 -2
  190. package/lib/tips.js +986 -1011
  191. package/lib/toolbar.js +2 -2
  192. package/lib/tooltip.js +1778 -2002
  193. package/lib/transfer.js +837 -862
  194. package/lib/tree-group.js +982 -1007
  195. package/lib/tree.js +985 -1010
  196. package/lib/update-history.js +146 -146
  197. package/lib/upload.js +999 -1024
  198. package/lib/utils/helpers.js +52 -0
  199. package/lib/utils/popper.js +48 -97
  200. package/lib/wujie.js +841 -866
  201. package/package.json +1 -1
  202. package/packages/login/src/login.vue +24 -3
  203. package/packages/login/src/resetPassword.vue +19 -13
  204. package/packages/main/src/minxs.js +0 -1
  205. package/packages/theme-chalk/src/base.scss +1 -2
  206. package/src/index.js +327 -327
  207. package/src/utils/helpers.js +49 -0
  208. package/src/utils/popper.js +70 -109
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 190);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 192);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3521,7 +3521,7 @@ module.exports = require("lodash/cloneDeep");
3521
3521
 
3522
3522
  /***/ }),
3523
3523
 
3524
- /***/ 190:
3524
+ /***/ 192:
3525
3525
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3526
3526
 
3527
3527
  "use strict";
@@ -4466,7 +4466,7 @@ var data_table_default = /*#__PURE__*/__webpack_require__.n(data_table_);
4466
4466
 
4467
4467
  computed: {
4468
4468
  reportDetailUrl: function reportDetailUrl() {
4469
- return '/' + this.bootName + api["l" /* companyDetail */] + '?ruleid=' + this.ruleid;
4469
+ return '/' + this.bootName + api["m" /* companyDetail */] + '?ruleid=' + this.ruleid;
4470
4470
  }
4471
4471
  },
4472
4472
  mounted: function mounted() {
@@ -4647,22 +4647,22 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4647
4647
  return { modulecode: this.code };
4648
4648
  },
4649
4649
  url: function url() {
4650
- return '/' + this.bootName + api["Ub" /* ruleListJson */];
4650
+ return '/' + this.bootName + api["Yb" /* ruleListJson */];
4651
4651
  },
4652
4652
  add: function add() {
4653
- return '/' + this.bootName + api["Sb" /* ruleAdd */];
4653
+ return '/' + this.bootName + api["Wb" /* ruleAdd */];
4654
4654
  },
4655
4655
  edit: function edit() {
4656
- return '/' + this.bootName + api["Tb" /* ruleEdit */];
4656
+ return '/' + this.bootName + api["Xb" /* ruleEdit */];
4657
4657
  },
4658
4658
  read: function read() {
4659
- return '/' + this.bootName + api["Vb" /* ruleRead */];
4659
+ return '/' + this.bootName + api["Zb" /* ruleRead */];
4660
4660
  },
4661
4661
  org: function org() {
4662
- return '' + api["ab" /* getSysParamV1 */];
4662
+ return '' + api["cb" /* getSysParamV1 */];
4663
4663
  },
4664
4664
  detail: function detail() {
4665
- return '/' + this.bootName + api["m" /* companyList */];
4665
+ return '/' + this.bootName + api["n" /* companyList */];
4666
4666
  },
4667
4667
  companyparam: function companyparam() {
4668
4668
  return { id: this.id };
@@ -4923,7 +4923,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4923
4923
  var _this3 = this;
4924
4924
 
4925
4925
  Object(ajax["a" /* ajax */])({
4926
- url: '/' + this.bootName + api["lb" /* isAddSource */],
4926
+ url: '/' + this.bootName + api["ob" /* isAddSource */],
4927
4927
  params: this.params
4928
4928
  }).then(function (res) {
4929
4929
  if (res.rCode === 0) {
@@ -4935,7 +4935,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4935
4935
  var _this4 = this;
4936
4936
 
4937
4937
  Object(ajax["a" /* ajax */])({
4938
- url: '/' + this.bootName + api["sb" /* moduleListJson */],
4938
+ url: '/' + this.bootName + api["wb" /* moduleListJson */],
4939
4939
  params: this.params
4940
4940
  }).then(function (res) {
4941
4941
  if (res.rCode === 0) {
@@ -4975,7 +4975,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4975
4975
  var loadingInstance = Object(util["K" /* loading */])('加载中...');
4976
4976
  Object(ajax["a" /* ajax */])({
4977
4977
  method: 'post',
4978
- url: '/' + this.bootName + api["Xb" /* ruleUndore */],
4978
+ url: '/' + this.bootName + api["bc" /* ruleUndore */],
4979
4979
  data: { ids: id }
4980
4980
  }).then(function (res) {
4981
4981
  loadingInstance.close();
@@ -5029,7 +5029,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5029
5029
 
5030
5030
  var loadingInstance = Object(util["K" /* loading */])('加载中...');
5031
5031
  Object(ajax["a" /* ajax */])({
5032
- url: '/' + this.bootName + api["dc" /* supplement */],
5032
+ url: '/' + this.bootName + api["hc" /* supplement */],
5033
5033
  method: 'post',
5034
5034
  data: { ids: ids }
5035
5035
  }).then(function (res) {
@@ -5126,7 +5126,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5126
5126
 
5127
5127
  var loadingInstance = Object(util["K" /* loading */])('提交中...');
5128
5128
  Object(ajax["a" /* ajax */])({
5129
- url: '/' + this.bootName + api["rc" /* tiggerInTime */],
5129
+ url: '/' + this.bootName + api["vc" /* tiggerInTime */],
5130
5130
  params: { id: id }
5131
5131
  }).then(function (res) {
5132
5132
  loadingInstance.close();
@@ -5165,7 +5165,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5165
5165
  }
5166
5166
  Object(ajax["a" /* ajax */])({
5167
5167
  method: 'post',
5168
- url: '/' + this.bootName + api["Wb" /* ruleSave */],
5168
+ url: '/' + this.bootName + api["ac" /* ruleSave */],
5169
5169
  // params: {debug: true},
5170
5170
  data: _extends({
5171
5171
  fillUsername: Object(storage["a" /* getStorage */])('userName'),
@@ -5195,7 +5195,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5195
5195
  }).then(function () {
5196
5196
  Object(ajax["a" /* ajax */])({
5197
5197
  method: 'post',
5198
- url: '/' + _this10.bootName + api["p" /* deleteRule */],
5198
+ url: '/' + _this10.bootName + api["q" /* deleteRule */],
5199
5199
  data: { id: id }
5200
5200
  }).then(function (res) {
5201
5201
  if (res.rCode === 0) {
@@ -5555,146 +5555,146 @@ module.exports = require("eoss/lib/data-table");
5555
5555
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5556
5556
 
5557
5557
  "use strict";
5558
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCaLogin; });
5559
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doUserLogin; });
5560
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doQrLogin; });
5561
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return logout; });
5562
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initLogin; });
5563
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return switchUserTo; });
5558
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doCaLogin; });
5559
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doUserLogin; });
5560
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doQrLogin; });
5561
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return logout; });
5562
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return initLogin; });
5563
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return switchUserTo; });
5564
5564
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
5565
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getLoginCode; });
5566
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doCodeLogin; });
5565
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getLoginCode; });
5566
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCodeLogin; });
5567
5567
  /* unused harmony export updateCode */
5568
- /* unused harmony export getModifyPassCode */
5569
- /* unused harmony export codeModifyPass */
5570
- /* unused harmony export loginModifyPassword */
5568
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getModifyPassCode; });
5569
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
5570
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return loginModifyPassword; });
5571
5571
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
5572
- /* unused harmony export initModifyPassword */
5572
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return initModifyPassword; });
5573
5573
  /* unused harmony export doWechatQrLogin */
5574
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getTwoFactorLoginCode; });
5574
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getTwoFactorLoginCode; });
5575
5575
  /* unused harmony export doTwoFactorLogin */
5576
5576
  /* unused harmony export initRetrialAuth */
5577
5577
  /* unused harmony export getRetrialAuthCode */
5578
5578
  /* unused harmony export scanCodeRetrialAuth */
5579
5579
  /* unused harmony export codeRetrialAuth */
5580
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return doAssistanceQrLogin; });
5581
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return userOnline; });
5582
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserAppWithTag; });
5583
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return recordUserApp; });
5584
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getUserRecordApp; });
5585
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return mainConfig; });
5586
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return initUserSet; });
5587
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return updateUserInfo; });
5580
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doAssistanceQrLogin; });
5581
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return userOnline; });
5582
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getUserAppWithTag; });
5583
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return recordUserApp; });
5584
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUserRecordApp; });
5585
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return mainConfig; });
5586
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initUserSet; });
5587
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return updateUserInfo; });
5588
5588
  /* unused harmony export getUserImgUrl */
5589
5589
  /* unused harmony export getDoorIndex */
5590
5590
  /* unused harmony export refreshOnlineUsers */
5591
5591
  /* unused harmony export getQuickMenuIds */
5592
5592
  /* unused harmony export getApplicationIdArray */
5593
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getComplexApplications; });
5594
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getComplexApplicationsNew; });
5595
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getMainAppWithTag; });
5596
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getByType; });
5593
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getComplexApplications; });
5594
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplicationsNew; });
5595
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getMainAppWithTag; });
5596
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getByType; });
5597
5597
  /* unused harmony export getUserCustomInfo */
5598
5598
  /* unused harmony export updateUserCustomInfo */
5599
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return saveOrUpdate; });
5600
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return sysMsgPage; });
5601
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return ignoreSysMsg; });
5602
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreAllSysMsg; });
5603
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return searchType; });
5604
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParam; });
5605
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getAdjunctProperties; });
5606
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return uploads; });
5607
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploadOnlyOne; });
5608
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctFileInfos; });
5599
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return saveOrUpdate; });
5600
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sysMsgPage; });
5601
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return ignoreSysMsg; });
5602
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return ignoreAllSysMsg; });
5603
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return searchType; });
5604
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSysParam; });
5605
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctProperties; });
5606
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return uploads; });
5607
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return uploadOnlyOne; });
5608
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getAdjunctFileInfos; });
5609
5609
  /* unused harmony export uploadSort */
5610
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return downloadByAdjunctId; });
5611
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadDownloads; });
5612
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct; });
5613
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunct2; });
5614
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return previewAdjunctOffice; });
5615
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return delAdjunct; });
5610
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return downloadByAdjunctId; });
5611
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return uploadDownloads; });
5612
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return previewAdjunct; });
5613
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return previewAdjunct2; });
5614
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return previewAdjunctOffice; });
5615
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return delAdjunct; });
5616
5616
  /* unused harmony export upload_updateClassify */
5617
5617
  /* unused harmony export getDeleteAdjunctFileInfos */
5618
5618
  /* unused harmony export getPictureBase64 */
5619
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSelectorOrgTree; });
5620
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getSelectorOrgDetail; });
5621
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getOrgMainTree; });
5619
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getSelectorOrgTree; });
5620
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSelectorOrgDetail; });
5621
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getOrgMainTree; });
5622
5622
  /* unused harmony export getSelectOrgsubids */
5623
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCode; });
5623
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findSysCode; });
5624
5624
  /* unused harmony export getDictList */
5625
5625
  /* unused harmony export findUserBaseInfo */
5626
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return gethelpdoc; });
5626
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return gethelpdoc; });
5627
5627
  /* unused harmony export getCurrentuser */
5628
5628
  /* unused harmony export mainDetail */
5629
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartFlow; });
5630
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tempSave; });
5631
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return commonOpion; });
5629
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toStartFlow; });
5630
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return tempSave; });
5631
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return commonOpion; });
5632
5632
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
5633
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return editCommonOpion; });
5634
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveCommonOpinion; });
5635
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateCommonOpinion; });
5636
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteCommonOpion; });
5637
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getProcessDefList; });
5638
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfo; });
5639
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return findCodeValues; });
5640
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysParam; });
5641
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findSysCodes; });
5642
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getNotificationMsg; });
5643
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getHandleInfoHtml; });
5644
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskHandleHtml; });
5633
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return editCommonOpion; });
5634
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return saveCommonOpinion; });
5635
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return updateCommonOpinion; });
5636
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return deleteCommonOpion; });
5637
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getProcessDefList; });
5638
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getNodeInfo; });
5639
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findCodeValues; });
5640
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysParam; });
5641
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCodes; });
5642
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNotificationMsg; });
5643
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getHandleInfoHtml; });
5644
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskHandleHtml; });
5645
5645
  /* unused harmony export getView */
5646
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return register; });
5647
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return pendedhistoryList; });
5648
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskRejectHtml; });
5649
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskRejectHtml; });
5650
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskRead; });
5651
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toStartTaskReadIndex; });
5652
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskReadHtml; });
5653
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return rejectAndEnd; });
5654
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toSendMsg; });
5655
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return sendMsg; });
5656
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return endFlowHtml; });
5657
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return handleInfo; });
5658
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return loginUserInfo; });
5659
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return wss; });
5660
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return topic; });
5661
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetCustomInfo; });
5662
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getPresetNodeInfo; });
5663
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskTransferIndex; });
5664
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskTransfer; });
5646
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return register; });
5647
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pendedhistoryList; });
5648
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskRejectHtml; });
5649
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskRejectHtml; });
5650
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toStartTaskRead; });
5651
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toStartTaskReadIndex; });
5652
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskReadHtml; });
5653
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return rejectAndEnd; });
5654
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toSendMsg; });
5655
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return sendMsg; });
5656
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowHtml; });
5657
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return handleInfo; });
5658
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return loginUserInfo; });
5659
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return wss; });
5660
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return topic; });
5661
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getPresetCustomInfo; });
5662
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetNodeInfo; });
5663
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskTransferIndex; });
5664
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskTransfer; });
5665
5665
  /* unused harmony export toPresetInfoListIndex */
5666
5666
  /* unused harmony export deletePresetInfo */
5667
5667
  /* unused harmony export historyListJson */
5668
5668
  /* unused harmony export pendedhistoryListJson */
5669
5669
  /* unused harmony export pressListJson */
5670
5670
  /* unused harmony export deleteFlow */
5671
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return isCanStartSubFlow; });
5672
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionExamine; });
5673
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionExamine; });
5674
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTakeAdvice; });
5675
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTakeAdvice; });
5676
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskStartDraft; });
5677
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSupervise; });
5678
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskSuperviseSub; });
5679
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskStartDraft; });
5680
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskReview; });
5681
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskReview; });
5682
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskUnionSeal; });
5683
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskUnionSeal; });
5684
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTwoOfficesDispatch; });
5685
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return twoOfficesDispatch; });
5686
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toResetProcessIndex; });
5687
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return resetProcess; });
5688
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskContinuationIndex; });
5689
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskContinuation; });
5690
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getFreeStartFlowParams; });
5691
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeStartFlowWithSubmitTask; });
5671
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return isCanStartSubFlow; });
5672
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskUnionExamine; });
5673
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskUnionExamine; });
5674
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskTakeAdvice; });
5675
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskTakeAdvice; });
5676
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskStartDraft; });
5677
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskSupervise; });
5678
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskSuperviseSub; });
5679
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskStartDraft; });
5680
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskReview; });
5681
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskReview; });
5682
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskUnionSeal; });
5683
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskUnionSeal; });
5684
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTwoOfficesDispatch; });
5685
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return twoOfficesDispatch; });
5686
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toResetProcessIndex; });
5687
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return resetProcess; });
5688
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskContinuationIndex; });
5689
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskContinuation; });
5690
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getFreeStartFlowParams; });
5691
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlowWithSubmitTask; });
5692
5692
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
5693
5693
  /* unused harmony export pendedhistoryListWithCircularReadJson */
5694
5694
  /* unused harmony export fyListJson */
5695
5695
  /* unused harmony export circularReadWithdraw */
5696
5696
  /* unused harmony export taskReadWithDraw */
5697
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
5697
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
5698
5698
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
5699
5699
  /* unused harmony export sendList */
5700
5700
  /* unused harmony export sendInfo */
@@ -5703,56 +5703,56 @@ module.exports = require("eoss/lib/data-table");
5703
5703
  /* unused harmony export sendDelete */
5704
5704
  /* unused harmony export sendBatch */
5705
5705
  /* unused harmony export formContents */
5706
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return directStartTaskCircularRead; });
5707
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowAndStartTaskCircularRead; });
5708
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNodeInfoForStart; });
5709
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlow; });
5710
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUrgencyLevelChangedNotificationType; });
5711
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toFreeTaskCircularRead; });
5712
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeTaskCircularRead; });
5713
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageLists; });
5706
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return directStartTaskCircularRead; });
5707
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return endFlowAndStartTaskCircularRead; });
5708
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfoForStart; });
5709
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeStartFlow; });
5710
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getUrgencyLevelChangedNotificationType; });
5711
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toFreeTaskCircularRead; });
5712
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeTaskCircularRead; });
5713
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return pageLists; });
5714
5714
  /* unused harmony export publishedLists */
5715
5715
  /* unused harmony export pageInfo */
5716
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageGroup; });
5717
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageSave; });
5718
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pageUpdate; });
5719
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageDelete; });
5716
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return pageGroup; });
5717
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageSave; });
5718
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageUpdate; });
5719
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pageDelete; });
5720
5720
  /* unused harmony export pageTargetDelete */
5721
5721
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
5722
5722
  /* unused harmony export batchUpdate */
5723
5723
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
5724
5724
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
5725
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processListJson; });
5726
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processInfo; });
5727
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processDeleteJson; });
5728
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processSave; });
5729
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return processUpdate; });
5730
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeListJson; });
5731
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return nodeDeleteJson; });
5732
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return nodeSave; });
5733
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return nodeUpdate; });
5734
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeInfo; });
5735
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleListJson; });
5736
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return moduleInfo; });
5737
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return moduleDelete; });
5738
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleSave; });
5739
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return moduleUpdate; });
5740
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleListJson; });
5741
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleEdit; });
5742
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleRead; });
5743
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleSave; });
5725
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return processListJson; });
5726
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return processInfo; });
5727
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return processDeleteJson; });
5728
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processSave; });
5729
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processUpdate; });
5730
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return nodeListJson; });
5731
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return nodeDeleteJson; });
5732
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeSave; });
5733
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeUpdate; });
5734
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return nodeInfo; });
5735
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return moduleListJson; });
5736
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return moduleInfo; });
5737
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return moduleDelete; });
5738
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleSave; });
5739
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleUpdate; });
5740
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return ruleListJson; });
5741
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return ruleEdit; });
5742
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleRead; });
5743
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleSave; });
5744
5744
  /* unused harmony export ruleSupplement */
5745
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return ruleUndore; });
5746
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleAdd; });
5747
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyDetail; });
5745
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleUndore; });
5746
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleAdd; });
5747
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return companyDetail; });
5748
5748
  /* unused harmony export issueDetailList */
5749
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return deleteRule; });
5750
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getSysParamV1; });
5751
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return companyList; });
5752
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return supplement; });
5753
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isAddSource; });
5754
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return tiggerInTime; });
5755
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateHistory; });
5749
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteRule; });
5750
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSysParamV1; });
5751
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyList; });
5752
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return supplement; });
5753
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return isAddSource; });
5754
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return tiggerInTime; });
5755
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return updateHistory; });
5756
5756
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
5757
5757
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
5758
5758
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
@@ -6174,759 +6174,736 @@ var changeInTime = '/baseIssueRules/changeInTime';
6174
6174
  /* unused harmony export getSecond */
6175
6175
  /* unused harmony export getWeekday */
6176
6176
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
6177
- /* Modified from https://github.com/taylorhakes/fecha
6178
- *
6179
- * The MIT License (MIT)
6180
- *
6181
- * Copyright (c) 2015 Taylor Hakes
6182
- *
6183
- * Permission is hereby granted, free of charge, to any person obtaining a copy
6184
- * of this software and associated documentation files (the "Software"), to deal
6185
- * in the Software without restriction, including without limitation the rights
6186
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6187
- * copies of the Software, and to permit persons to whom the Software is
6188
- * furnished to do so, subject to the following conditions:
6189
- *
6190
- * The above copyright notice and this permission notice shall be included in all
6191
- * copies or substantial portions of the Software.
6192
- *
6193
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6194
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6195
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6196
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6197
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
6198
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6199
- * SOFTWARE.
6200
- */
6201
-
6202
- /*eslint-disable*/
6203
- // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
6204
-
6205
-
6177
+
6178
+
6206
6179
  /**
6207
6180
  * Parse or format dates
6208
6181
  * @class fecha
6209
- */
6210
- const fecha = {};
6211
- const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6212
- const twoDigits = '\\d\\d?';
6213
- const threeDigits = '\\d{3}';
6214
- const fourDigits = '\\d{4}';
6215
- const word = '[^\\s]+';
6216
- const literal = /\[([^]*?)\]/gm;
6217
- const noop = function () {};
6218
-
6219
- function regexEscape(str) {
6220
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6221
- }
6222
-
6223
- function shorten(arr, sLen) {
6224
- const newArr = [];
6225
- for (let i = 0, len = arr.length; i < len; i++) {
6226
- newArr.push(arr[i].substr(0, sLen));
6227
- }
6228
- return newArr;
6229
- }
6230
-
6231
- function monthUpdate() {
6232
- return function (d, v) {
6233
- const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6234
- if (~index) {
6235
- d.month = index;
6236
- }
6237
- };
6238
- }
6239
-
6240
- function pad(val, len) {
6241
- val = String(val);
6242
- len = len || 2;
6243
- while (val.length < len) {
6244
- val = '0' + val;
6245
- }
6246
- return val;
6247
- }
6248
-
6249
- // 直接使用中文日期名称常量
6250
- const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6251
- const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6252
- const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6253
- const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6254
- const amPm = ['上午', '下午'];
6255
- const DoFn = function DoFn(D) {
6256
- return D + '日';
6257
- };
6258
-
6259
- const formatFlags = {
6260
- D: function(dateObj) {
6261
- return dateObj.getDay();
6262
- },
6263
- DD: function(dateObj) {
6264
- return pad(dateObj.getDay());
6265
- },
6266
- Do: function(dateObj) {
6267
- return DoFn(dateObj.getDate());
6268
- },
6269
- d: function(dateObj) {
6270
- return dateObj.getDate();
6271
- },
6272
- dd: function(dateObj) {
6273
- return pad(dateObj.getDate());
6274
- },
6275
- ddd: function(dateObj) {
6276
- return dayNamesShort[dateObj.getDay()];
6277
- },
6278
- dddd: function(dateObj) {
6279
- return dayNames[dateObj.getDay()];
6280
- },
6281
- M: function(dateObj) {
6282
- return dateObj.getMonth() + 1;
6283
- },
6284
- MM: function(dateObj) {
6285
- return pad(dateObj.getMonth() + 1);
6286
- },
6287
- MMM: function(dateObj) {
6288
- return monthNamesShort[dateObj.getMonth()];
6289
- },
6290
- MMMM: function(dateObj) {
6291
- return monthNames[dateObj.getMonth()];
6292
- },
6293
- yy: function(dateObj) {
6294
- return pad(String(dateObj.getFullYear()), 4).substr(2);
6295
- },
6296
- yyyy: function(dateObj) {
6297
- return pad(dateObj.getFullYear(), 4);
6298
- },
6299
- h: function(dateObj) {
6300
- return dateObj.getHours() % 12 || 12;
6301
- },
6302
- hh: function(dateObj) {
6303
- return pad(dateObj.getHours() % 12 || 12);
6304
- },
6305
- H: function(dateObj) {
6306
- return dateObj.getHours();
6307
- },
6308
- HH: function(dateObj) {
6309
- return pad(dateObj.getHours());
6310
- },
6311
- m: function(dateObj) {
6312
- return dateObj.getMinutes();
6313
- },
6314
- mm: function(dateObj) {
6315
- return pad(dateObj.getMinutes());
6316
- },
6317
- s: function(dateObj) {
6318
- return dateObj.getSeconds();
6319
- },
6320
- ss: function(dateObj) {
6321
- return pad(dateObj.getSeconds());
6322
- },
6323
- S: function(dateObj) {
6324
- return Math.round(dateObj.getMilliseconds() / 100);
6325
- },
6326
- SS: function(dateObj) {
6327
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
6328
- },
6329
- SSS: function(dateObj) {
6330
- return pad(dateObj.getMilliseconds(), 3);
6331
- },
6332
- a: function(dateObj) {
6333
- return dateObj.getHours() < 12 ? '上午' : '下午';
6334
- },
6335
- A: function(dateObj) {
6336
- return dateObj.getHours() < 12 ? '上午' : '下午';
6337
- },
6338
- ZZ: function(dateObj) {
6339
- const o = dateObj.getTimezoneOffset();
6340
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
6341
- }
6342
- };
6343
-
6344
- const parseFlags = {
6345
- d: [twoDigits, function (d, v) {
6346
- d.day = v;
6347
- }],
6348
- Do: [twoDigits + word, function (d, v) {
6349
- d.day = parseInt(v, 10);
6350
- }],
6351
- M: [twoDigits, function (d, v) {
6352
- d.month = v - 1;
6353
- }],
6354
- yy: [twoDigits, function (d, v) {
6355
- const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
6356
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
6357
- }],
6358
- h: [twoDigits, function (d, v) {
6359
- d.hour = v;
6360
- }],
6361
- m: [twoDigits, function (d, v) {
6362
- d.minute = v;
6363
- }],
6364
- s: [twoDigits, function (d, v) {
6365
- d.second = v;
6366
- }],
6367
- yyyy: [fourDigits, function (d, v) {
6368
- d.year = v;
6369
- }],
6370
- S: ['\\d', function (d, v) {
6371
- d.millisecond = v * 100;
6372
- }],
6373
- SS: ['\\d{2}', function (d, v) {
6374
- d.millisecond = v * 10;
6375
- }],
6376
- SSS: [threeDigits, function (d, v) {
6377
- d.millisecond = v;
6378
- }],
6379
- D: [twoDigits, noop],
6380
- ddd: [word, noop],
6381
- MMM: [word, monthUpdate('monthNamesShort')],
6382
- MMMM: [word, monthUpdate('monthNames')],
6383
- a: [word, function (d, v) {
6384
- const val = v.toLowerCase();
6385
- if (val === '上午') {
6386
- d.isPm = false;
6387
- } else if (val === '下午') {
6388
- d.isPm = true;
6389
- }
6390
- }],
6391
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
6392
- let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
6393
-
6394
- if (parts) {
6395
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
6396
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
6397
- }
6398
- }]
6399
- };
6400
- parseFlags.dd = parseFlags.d;
6401
- parseFlags.dddd = parseFlags.ddd;
6402
- parseFlags.DD = parseFlags.D;
6403
- parseFlags.mm = parseFlags.m;
6404
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
6405
- parseFlags.MM = parseFlags.M;
6406
- parseFlags.ss = parseFlags.s;
6407
- parseFlags.A = parseFlags.a;
6408
-
6409
-
6410
- // Some common format strings
6411
- fecha.masks = {
6412
- default: 'ddd MMM dd yyyy HH:mm:ss',
6413
- shortDate: 'M/D/yy',
6414
- mediumDate: 'MMM d, yyyy',
6415
- longDate: 'MMMM d, yyyy',
6416
- fullDate: 'dddd, MMMM d, yyyy',
6417
- shortTime: 'HH:mm',
6418
- mediumTime: 'HH:mm:ss',
6419
- longTime: 'HH:mm:ss.SSS'
6420
- };
6421
-
6182
+ */
6183
+ var fecha = {};
6184
+ var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6185
+ var twoDigits = '\\d\\d?';
6186
+ var threeDigits = '\\d{3}';
6187
+ var fourDigits = '\\d{4}';
6188
+ var word = '[^\\s]+';
6189
+ var literal = /\[([^]*?)\]/gm;
6190
+ var noop = function noop() {};
6191
+
6192
+ function regexEscape(str) {
6193
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6194
+ }
6195
+
6196
+ function shorten(arr, sLen) {
6197
+ var newArr = [];
6198
+ for (var i = 0, len = arr.length; i < len; i++) {
6199
+ newArr.push(arr[i].substr(0, sLen));
6200
+ }
6201
+ return newArr;
6202
+ }
6203
+
6204
+ function monthUpdate() {
6205
+ return function (d, v) {
6206
+ var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6207
+ if (~index) {
6208
+ d.month = index;
6209
+ }
6210
+ };
6211
+ }
6212
+
6213
+ function pad(val, len) {
6214
+ val = String(val);
6215
+ len = len || 2;
6216
+ while (val.length < len) {
6217
+ val = '0' + val;
6218
+ }
6219
+ return val;
6220
+ }
6221
+
6222
+ // 直接使用中文日期名称常量
6223
+ var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6224
+ var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6225
+ var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6226
+ var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6227
+ var amPm = ['上午', '下午'];
6228
+ var DoFn = function DoFn(D) {
6229
+ return D + '日';
6230
+ };
6231
+
6232
+ var formatFlags = {
6233
+ D: function D(dateObj) {
6234
+ return dateObj.getDay();
6235
+ },
6236
+ DD: function DD(dateObj) {
6237
+ return pad(dateObj.getDay());
6238
+ },
6239
+ Do: function Do(dateObj) {
6240
+ return DoFn(dateObj.getDate());
6241
+ },
6242
+ d: function d(dateObj) {
6243
+ return dateObj.getDate();
6244
+ },
6245
+ dd: function dd(dateObj) {
6246
+ return pad(dateObj.getDate());
6247
+ },
6248
+ ddd: function ddd(dateObj) {
6249
+ return dayNamesShort[dateObj.getDay()];
6250
+ },
6251
+ dddd: function dddd(dateObj) {
6252
+ return dayNames[dateObj.getDay()];
6253
+ },
6254
+ M: function M(dateObj) {
6255
+ return dateObj.getMonth() + 1;
6256
+ },
6257
+ MM: function MM(dateObj) {
6258
+ return pad(dateObj.getMonth() + 1);
6259
+ },
6260
+ MMM: function MMM(dateObj) {
6261
+ return monthNamesShort[dateObj.getMonth()];
6262
+ },
6263
+ MMMM: function MMMM(dateObj) {
6264
+ return monthNames[dateObj.getMonth()];
6265
+ },
6266
+ yy: function yy(dateObj) {
6267
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
6268
+ },
6269
+ yyyy: function yyyy(dateObj) {
6270
+ return pad(dateObj.getFullYear(), 4);
6271
+ },
6272
+ h: function h(dateObj) {
6273
+ return dateObj.getHours() % 12 || 12;
6274
+ },
6275
+ hh: function hh(dateObj) {
6276
+ return pad(dateObj.getHours() % 12 || 12);
6277
+ },
6278
+ H: function H(dateObj) {
6279
+ return dateObj.getHours();
6280
+ },
6281
+ HH: function HH(dateObj) {
6282
+ return pad(dateObj.getHours());
6283
+ },
6284
+ m: function m(dateObj) {
6285
+ return dateObj.getMinutes();
6286
+ },
6287
+ mm: function mm(dateObj) {
6288
+ return pad(dateObj.getMinutes());
6289
+ },
6290
+ s: function s(dateObj) {
6291
+ return dateObj.getSeconds();
6292
+ },
6293
+ ss: function ss(dateObj) {
6294
+ return pad(dateObj.getSeconds());
6295
+ },
6296
+ S: function S(dateObj) {
6297
+ return Math.round(dateObj.getMilliseconds() / 100);
6298
+ },
6299
+ SS: function SS(dateObj) {
6300
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
6301
+ },
6302
+ SSS: function SSS(dateObj) {
6303
+ return pad(dateObj.getMilliseconds(), 3);
6304
+ },
6305
+ a: function a(dateObj) {
6306
+ return dateObj.getHours() < 12 ? '上午' : '下午';
6307
+ },
6308
+ A: function A(dateObj) {
6309
+ return dateObj.getHours() < 12 ? '上午' : '下午';
6310
+ },
6311
+ ZZ: function ZZ(dateObj) {
6312
+ var o = dateObj.getTimezoneOffset();
6313
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
6314
+ }
6315
+ };
6316
+
6317
+ var parseFlags = {
6318
+ d: [twoDigits, function (d, v) {
6319
+ d.day = v;
6320
+ }],
6321
+ Do: [twoDigits + word, function (d, v) {
6322
+ d.day = parseInt(v, 10);
6323
+ }],
6324
+ M: [twoDigits, function (d, v) {
6325
+ d.month = v - 1;
6326
+ }],
6327
+ yy: [twoDigits, function (d, v) {
6328
+ var da = new Date(),
6329
+ cent = +('' + da.getFullYear()).substr(0, 2);
6330
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
6331
+ }],
6332
+ h: [twoDigits, function (d, v) {
6333
+ d.hour = v;
6334
+ }],
6335
+ m: [twoDigits, function (d, v) {
6336
+ d.minute = v;
6337
+ }],
6338
+ s: [twoDigits, function (d, v) {
6339
+ d.second = v;
6340
+ }],
6341
+ yyyy: [fourDigits, function (d, v) {
6342
+ d.year = v;
6343
+ }],
6344
+ S: ['\\d', function (d, v) {
6345
+ d.millisecond = v * 100;
6346
+ }],
6347
+ SS: ['\\d{2}', function (d, v) {
6348
+ d.millisecond = v * 10;
6349
+ }],
6350
+ SSS: [threeDigits, function (d, v) {
6351
+ d.millisecond = v;
6352
+ }],
6353
+ D: [twoDigits, noop],
6354
+ ddd: [word, noop],
6355
+ MMM: [word, monthUpdate('monthNamesShort')],
6356
+ MMMM: [word, monthUpdate('monthNames')],
6357
+ a: [word, function (d, v) {
6358
+ var val = v.toLowerCase();
6359
+ if (val === '上午') {
6360
+ d.isPm = false;
6361
+ } else if (val === '下午') {
6362
+ d.isPm = true;
6363
+ }
6364
+ }],
6365
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
6366
+ var parts = (v + '').match(/([+-]|\d\d)/gi),
6367
+ minutes = void 0;
6368
+
6369
+ if (parts) {
6370
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
6371
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
6372
+ }
6373
+ }]
6374
+ };
6375
+ parseFlags.dd = parseFlags.d;
6376
+ parseFlags.dddd = parseFlags.ddd;
6377
+ parseFlags.DD = parseFlags.D;
6378
+ parseFlags.mm = parseFlags.m;
6379
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
6380
+ parseFlags.MM = parseFlags.M;
6381
+ parseFlags.ss = parseFlags.s;
6382
+ parseFlags.A = parseFlags.a;
6383
+
6384
+ // Some common format strings
6385
+ fecha.masks = {
6386
+ default: 'ddd MMM dd yyyy HH:mm:ss',
6387
+ shortDate: 'M/D/yy',
6388
+ mediumDate: 'MMM d, yyyy',
6389
+ longDate: 'MMMM d, yyyy',
6390
+ fullDate: 'dddd, MMMM d, yyyy',
6391
+ shortTime: 'HH:mm',
6392
+ mediumTime: 'HH:mm:ss',
6393
+ longTime: 'HH:mm:ss.SSS'
6394
+ };
6395
+
6422
6396
  /***
6423
6397
  * Format a date
6424
6398
  * @method format
6425
6399
  * @param {Date|number} dateObj
6426
6400
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
6427
- */
6428
- fecha.format = function (dateObj, mask) {
6429
- if (typeof dateObj === 'number') {
6430
- dateObj = new Date(dateObj);
6431
- }
6432
-
6433
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
6434
- throw new Error('Invalid Date in fecha.format');
6435
- }
6436
-
6437
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
6438
-
6439
- const literals = [];
6440
-
6441
- // Make literals inactive by replacing them with ??
6442
- mask = mask.replace(literal, function($0, $1) {
6443
- literals.push($1);
6444
- return '@@@';
6445
- });
6446
- // Apply formatting rules
6447
- mask = mask.replace(token, function ($0) {
6448
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
6449
- });
6450
- // Inline literal values back into the formatted value
6451
- return mask.replace(/@@@/g, function() {
6452
- return literals.shift();
6453
- });
6454
- };
6455
-
6401
+ */
6402
+ fecha.format = function (dateObj, mask) {
6403
+ if (typeof dateObj === 'number') {
6404
+ dateObj = new Date(dateObj);
6405
+ }
6406
+
6407
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
6408
+ throw new Error('Invalid Date in fecha.format');
6409
+ }
6410
+
6411
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
6412
+
6413
+ var literals = [];
6414
+
6415
+ // Make literals inactive by replacing them with ??
6416
+ mask = mask.replace(literal, function ($0, $1) {
6417
+ literals.push($1);
6418
+ return '@@@';
6419
+ });
6420
+ // Apply formatting rules
6421
+ mask = mask.replace(token, function ($0) {
6422
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
6423
+ });
6424
+ // Inline literal values back into the formatted value
6425
+ return mask.replace(/@@@/g, function () {
6426
+ return literals.shift();
6427
+ });
6428
+ };
6429
+
6456
6430
  /**
6457
6431
  * Parse a date string into an object, changes - into /
6458
6432
  * @method parse
6459
6433
  * @param {string} dateStr Date string
6460
6434
  * @param {string} format Date parse format
6461
6435
  * @returns {Date|boolean}
6462
- */
6463
- fecha.parse = function (dateStr, format) {
6464
- if (typeof format !== 'string') {
6465
- throw new Error('Invalid format in fecha.parse');
6466
- }
6467
-
6468
- format = fecha.masks[format] || format;
6469
-
6470
- // Avoid regular expression denial of service, fail early for really long strings
6471
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
6472
- if (dateStr.length > 1000) {
6473
- return null;
6474
- }
6475
-
6476
- const dateInfo = {};
6477
- const parseInfo = [];
6478
- const literals = [];
6479
- format = format.replace(literal, function($0, $1) {
6480
- literals.push($1);
6481
- return '@@@';
6482
- });
6483
- let newFormat = regexEscape(format).replace(token, function ($0) {
6484
- if (parseFlags[$0]) {
6485
- const info = parseFlags[$0];
6486
- parseInfo.push(info[1]);
6487
- return '(' + info[0] + ')';
6488
- }
6489
-
6490
- return $0;
6491
- });
6492
- newFormat = newFormat.replace(/@@@/g, function() {
6493
- return literals.shift();
6494
- });
6495
- const matches = dateStr.match(new RegExp(newFormat, 'i'));
6496
- if (!matches) {
6497
- return null;
6498
- }
6499
-
6500
- for (let i = 1; i < matches.length; i++) {
6501
- parseInfo[i - 1](dateInfo, matches[i]);
6502
- }
6503
-
6504
- const today = new Date();
6505
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
6506
- dateInfo.hour = +dateInfo.hour + 12;
6507
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
6508
- dateInfo.hour = 0;
6509
- }
6510
-
6511
- let date;
6512
- if (dateInfo.timezoneOffset != null) {
6513
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
6514
- date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
6515
- dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
6516
- } else {
6517
- date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
6518
- dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
6519
- }
6520
- return date;
6521
- };
6522
-
6523
- // 导出fecha对象
6524
-
6525
-
6526
- // 以下是从date-util.js合并的函数
6527
- const newArray = function(start, end) {
6528
- let result = [];
6529
- for (let i = start; i <= end; i++) {
6530
- result.push(i);
6531
- }
6532
- return result;
6533
- };
6534
-
6535
- const getSettings = () => {
6536
- return {
6537
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
6538
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
6539
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
6540
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
6541
- amPm: ['上午', '下午']
6542
- };
6543
- };
6544
-
6545
- const toDate = function(date) {
6546
- return isDate(date) ? new Date(date) : null;
6547
- };
6548
-
6549
- const isDate = function(date) {
6550
- if (date === null || date === undefined) return false;
6551
- if (isNaN(new Date(date).getTime())) return false;
6552
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
6553
- return true;
6554
- };
6555
-
6556
- const isDateObject = function(val) {
6557
- return val instanceof Date;
6558
- };
6559
-
6560
- const formatDate = function (date, format = 'yyyy-MM-dd') {
6561
- // 处理多种输入类型
6562
- if (!date) return '';
6563
-
6564
- // 如果是时间戳,转成日期对象
6565
- if (typeof date === 'number') {
6566
- date = new Date(date);
6567
- }
6568
- // 如果是字符串,转成日期对象
6569
- if (typeof date === 'string') {
6570
- date = new Date(date);
6571
- }
6572
-
6573
- // 调用toDate进一步验证和转换
6574
- date = toDate(date);
6575
- if (!date) return '';
6576
-
6577
- // 兼容大写和小写的格式标记
6578
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
6579
- const lowercaseFormat = format
6580
- .replace(/YYYY/g, 'yyyy')
6581
- .replace(/D/g, 'd')
6582
-
6583
- // 使用fecha库进行格式化,支持中文配置
6584
- const str = fecha.format(date, lowercaseFormat, getSettings());
6585
- return str;
6586
- };
6587
-
6588
- const parseDate = function(string, format) {
6589
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
6590
- };
6591
-
6592
- const getDayCountOfMonth = function(year, month) {
6593
- if (month === 3 || month === 5 || month === 8 || month === 10) {
6594
- return 30;
6595
- }
6596
-
6597
- if (month === 1) {
6598
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
6599
- return 29;
6600
- } else {
6601
- return 28;
6602
- }
6603
- }
6604
-
6605
- return 31;
6606
- };
6607
-
6608
- const getDayCountOfYear = function(year) {
6609
- const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
6610
- return isLeapYear ? 366 : 365;
6611
- };
6612
-
6613
- const getFirstDayOfMonth = function(date) {
6614
- const temp = new Date(date.getTime());
6615
- temp.setDate(1);
6616
- return temp.getDay();
6617
- };
6618
-
6619
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
6620
- // {prev, next} Date should work for Daylight Saving Time
6621
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
6622
- const prevDate = function(date, amount = 1) {
6623
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
6624
- };
6625
-
6626
- const nextDate = function(date, amount = 1) {
6627
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
6628
- };
6629
-
6630
- const getStartDateOfMonth = function(year, month) {
6631
- const result = new Date(year, month, 1);
6632
- const day = result.getDay();
6633
-
6634
- if (day === 0) {
6635
- return prevDate(result, 7);
6636
- } else {
6637
- return prevDate(result, day);
6638
- }
6639
- };
6640
-
6641
- const getWeekNumber = function(date) {
6642
- // 支持多种输入类型
6643
- if (!date||!isDate(date)) {
6644
- date = new Date();
6645
- }
6646
- if (typeof date === 'string') {
6647
- date = new Date(date);
6648
- }
6649
-
6650
- // 验证日期有效性
6651
- if (!isDate(date)) return null;
6652
-
6653
- const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
6654
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
6655
- // 将星期日的星期数设为7
6656
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
6657
- // 获取当年的第一天
6658
- const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
6659
- // 计算到最近的星期四的完整周数
6660
- const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
6661
- // 返回周数
6662
- return weekNo;
6663
- };
6664
-
6665
- const getRangeHours = function(ranges) {
6666
- const hours = [];
6667
- let disabledHours = [];
6668
-
6669
- (ranges || []).forEach(range => {
6670
- const value = range.map(date => date.getHours());
6671
-
6672
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
6673
- });
6674
-
6675
- if (disabledHours.length) {
6676
- for (let i = 0; i < 24; i++) {
6677
- hours[i] = disabledHours.indexOf(i) === -1;
6678
- }
6679
- } else {
6680
- for (let i = 0; i < 24; i++) {
6681
- hours[i] = false;
6682
- }
6683
- }
6684
-
6685
- return hours;
6686
- };
6687
-
6688
- const getPrevMonthLastDays = (date, amount) => {
6689
- if (amount <= 0) return [];
6690
- const temp = new Date(date.getTime());
6691
- temp.setDate(0);
6692
- const lastDay = temp.getDate();
6693
- return range(amount).map((_, index) => lastDay - (amount - index - 1));
6694
- };
6695
-
6696
- const getMonthDays = (date) => {
6697
- const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
6698
- const days = temp.getDate();
6699
- return range(days).map((_, index) => index + 1);
6700
- };
6701
-
6702
- function setRangeData(arr, start, end, value) {
6703
- for (let i = start; i < end; i++) {
6704
- arr[i] = value;
6705
- }
6706
- }
6707
-
6708
- const getRangeMinutes = function(ranges, hour) {
6709
- const minutes = new Array(60);
6710
-
6711
- if (ranges.length > 0) {
6712
- ranges.forEach(range => {
6713
- const start = range[0];
6714
- const end = range[1];
6715
- const startHour = start.getHours();
6716
- const startMinute = start.getMinutes();
6717
- const endHour = end.getHours();
6718
- const endMinute = end.getMinutes();
6719
- if (startHour === hour && endHour !== hour) {
6720
- setRangeData(minutes, startMinute, 60, true);
6721
- } else if (startHour === hour && endHour === hour) {
6722
- setRangeData(minutes, startMinute, endMinute + 1, true);
6723
- } else if (startHour !== hour && endHour === hour) {
6724
- setRangeData(minutes, 0, endMinute + 1, true);
6725
- } else if (startHour < hour && endHour > hour) {
6726
- setRangeData(minutes, 0, 60, true);
6727
- }
6728
- });
6729
- } else {
6730
- setRangeData(minutes, 0, 60, true);
6731
- }
6732
- return minutes;
6733
- };
6734
-
6735
- const range = function(n) {
6736
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
6737
- return Array.apply(null, {length: n}).map((_, n) => n);
6738
- };
6739
-
6740
- const modifyDate = function(date, y, m, d) {
6741
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
6742
- };
6743
-
6744
- const modifyTime = function(date, h, m, s) {
6745
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
6746
- };
6747
-
6748
- const modifyWithTimeString = (date, time) => {
6749
- if (date == null || !time) {
6750
- return date;
6751
- }
6752
- time = parseDate(time, 'HH:mm:ss');
6753
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
6754
- };
6755
-
6756
- const clearTime = function(date) {
6757
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
6758
- };
6759
-
6760
- const clearMilliseconds = function(date) {
6761
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
6762
- };
6763
-
6764
- const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
6765
- // TODO: refactory a more elegant solution
6766
- if (ranges.length === 0) return date;
6767
- const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
6768
- const ndate = normalizeDate(date);
6769
- const nranges = ranges.map(range => range.map(normalizeDate));
6770
- if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
6771
-
6772
- let minDate = nranges[0][0];
6773
- let maxDate = nranges[0][0];
6774
-
6775
- nranges.forEach(nrange => {
6776
- minDate = new Date(Math.min(nrange[0], minDate));
6777
- maxDate = new Date(Math.max(nrange[1], minDate));
6778
- });
6779
-
6780
- const ret = ndate < minDate ? minDate : maxDate;
6781
- // preserve Year/Month/Date
6782
- return modifyDate(
6783
- ret,
6784
- date.getFullYear(),
6785
- date.getMonth(),
6786
- date.getDate()
6787
- );
6788
- };
6789
-
6790
- const timeWithinRange = function(date, selectableRange, format) {
6791
- const limitedDate = limitTimeRange(date, selectableRange, format);
6792
- return limitedDate.getTime() === date.getTime();
6793
- };
6794
-
6795
- const changeYearMonthAndClampDate = function(date, year, month) {
6796
- // clamp date to the number of days in `year`, `month`
6797
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
6798
- const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
6799
- return modifyDate(date, year, month, monthDate);
6800
- };
6801
-
6802
- const prevMonth = function(date) {
6803
- const year = date.getFullYear();
6804
- const month = date.getMonth();
6805
- return month === 0
6806
- ? changeYearMonthAndClampDate(date, year - 1, 11)
6807
- : changeYearMonthAndClampDate(date, year, month - 1);
6808
- };
6809
-
6810
- const nextMonth = function(date) {
6811
- const year = date.getFullYear();
6812
- const month = date.getMonth();
6813
- return month === 11
6814
- ? changeYearMonthAndClampDate(date, year + 1, 0)
6815
- : changeYearMonthAndClampDate(date, year, month + 1);
6816
- };
6817
-
6818
- const prevYear = function(date, amount = 1) {
6819
- const year = date.getFullYear();
6820
- const month = date.getMonth();
6821
- return changeYearMonthAndClampDate(date, year - amount, month);
6822
- };
6823
-
6824
- const nextYear = function(date, amount = 1) {
6825
- const year = date.getFullYear();
6826
- const month = date.getMonth();
6827
- return changeYearMonthAndClampDate(date, year + amount, month);
6828
- };
6829
-
6830
- const extractDateFormat = function(format) {
6831
- return format
6832
- .replace(/\W?m{1,2}|\W?ZZ/g, '')
6833
- .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
6834
- .trim();
6835
- };
6836
-
6837
- const extractTimeFormat = function(format) {
6838
- return format
6839
- .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
6840
- .trim();
6841
- };
6842
-
6843
- const validateRangeInOneMonth = function(start, end) {
6844
- return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
6845
- };
6846
-
6436
+ */
6437
+ fecha.parse = function (dateStr, format) {
6438
+ if (typeof format !== 'string') {
6439
+ throw new Error('Invalid format in fecha.parse');
6440
+ }
6441
+
6442
+ format = fecha.masks[format] || format;
6443
+
6444
+ // Avoid regular expression denial of service, fail early for really long strings
6445
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
6446
+ if (dateStr.length > 1000) {
6447
+ return null;
6448
+ }
6449
+
6450
+ var dateInfo = {};
6451
+ var parseInfo = [];
6452
+ var literals = [];
6453
+ format = format.replace(literal, function ($0, $1) {
6454
+ literals.push($1);
6455
+ return '@@@';
6456
+ });
6457
+ var newFormat = regexEscape(format).replace(token, function ($0) {
6458
+ if (parseFlags[$0]) {
6459
+ var info = parseFlags[$0];
6460
+ parseInfo.push(info[1]);
6461
+ return '(' + info[0] + ')';
6462
+ }
6463
+
6464
+ return $0;
6465
+ });
6466
+ newFormat = newFormat.replace(/@@@/g, function () {
6467
+ return literals.shift();
6468
+ });
6469
+ var matches = dateStr.match(new RegExp(newFormat, 'i'));
6470
+ if (!matches) {
6471
+ return null;
6472
+ }
6473
+
6474
+ for (var i = 1; i < matches.length; i++) {
6475
+ parseInfo[i - 1](dateInfo, matches[i]);
6476
+ }
6477
+
6478
+ var today = new Date();
6479
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
6480
+ dateInfo.hour = +dateInfo.hour + 12;
6481
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
6482
+ dateInfo.hour = 0;
6483
+ }
6484
+
6485
+ var date = void 0;
6486
+ if (dateInfo.timezoneOffset != null) {
6487
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
6488
+ 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));
6489
+ } else {
6490
+ 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);
6491
+ }
6492
+ return date;
6493
+ };
6494
+
6495
+ // 导出fecha对象
6496
+
6497
+
6498
+ // 以下是从date-util.js合并的函数
6499
+ var newArray = function newArray(start, end) {
6500
+ var result = [];
6501
+ for (var i = start; i <= end; i++) {
6502
+ result.push(i);
6503
+ }
6504
+ return result;
6505
+ };
6506
+
6507
+ var getSettings = function getSettings() {
6508
+ return {
6509
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
6510
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
6511
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
6512
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
6513
+ amPm: ['上午', '下午']
6514
+ };
6515
+ };
6516
+
6517
+ var toDate = function toDate(date) {
6518
+ return isDate(date) ? new Date(date) : null;
6519
+ };
6520
+
6521
+ var isDate = function isDate(date) {
6522
+ if (date === null || date === undefined) return false;
6523
+ if (isNaN(new Date(date).getTime())) return false;
6524
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
6525
+ return true;
6526
+ };
6527
+
6528
+ var isDateObject = function isDateObject(val) {
6529
+ return val instanceof Date;
6530
+ };
6531
+
6532
+ var formatDate = function formatDate(date) {
6533
+ var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
6534
+
6535
+ // 处理多种输入类型
6536
+ if (!date) return '';
6537
+
6538
+ // 如果是时间戳,转成日期对象
6539
+ if (typeof date === 'number') {
6540
+ date = new Date(date);
6541
+ }
6542
+ // 如果是字符串,转成日期对象
6543
+ if (typeof date === 'string') {
6544
+ date = new Date(date);
6545
+ }
6546
+
6547
+ // 调用toDate进一步验证和转换
6548
+ date = toDate(date);
6549
+ if (!date) return '';
6550
+
6551
+ // 兼容大写和小写的格式标记
6552
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
6553
+ var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
6554
+
6555
+ // 使用fecha库进行格式化,支持中文配置
6556
+ var str = fecha.format(date, lowercaseFormat, getSettings());
6557
+ return str;
6558
+ };
6559
+
6560
+ var parseDate = function parseDate(string, format) {
6561
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
6562
+ };
6563
+
6564
+ var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
6565
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
6566
+ return 30;
6567
+ }
6568
+
6569
+ if (month === 1) {
6570
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
6571
+ return 29;
6572
+ } else {
6573
+ return 28;
6574
+ }
6575
+ }
6576
+
6577
+ return 31;
6578
+ };
6579
+
6580
+ var getDayCountOfYear = function getDayCountOfYear(year) {
6581
+ var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
6582
+ return isLeapYear ? 366 : 365;
6583
+ };
6584
+
6585
+ var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
6586
+ var temp = new Date(date.getTime());
6587
+ temp.setDate(1);
6588
+ return temp.getDay();
6589
+ };
6590
+
6591
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
6592
+ // {prev, next} Date should work for Daylight Saving Time
6593
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
6594
+ var prevDate = function prevDate(date) {
6595
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6596
+
6597
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
6598
+ };
6599
+
6600
+ var nextDate = function nextDate(date) {
6601
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6602
+
6603
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
6604
+ };
6605
+
6606
+ var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
6607
+ var result = new Date(year, month, 1);
6608
+ var day = result.getDay();
6609
+
6610
+ if (day === 0) {
6611
+ return prevDate(result, 7);
6612
+ } else {
6613
+ return prevDate(result, day);
6614
+ }
6615
+ };
6616
+
6617
+ var getWeekNumber = function getWeekNumber(date) {
6618
+ // 支持多种输入类型
6619
+ if (!date || !isDate(date)) {
6620
+ date = new Date();
6621
+ }
6622
+ if (typeof date === 'string') {
6623
+ date = new Date(date);
6624
+ }
6625
+
6626
+ // 验证日期有效性
6627
+ if (!isDate(date)) return null;
6628
+
6629
+ var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
6630
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
6631
+ // 将星期日的星期数设为7
6632
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
6633
+ // 获取当年的第一天
6634
+ var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
6635
+ // 计算到最近的星期四的完整周数
6636
+ var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
6637
+ // 返回周数
6638
+ return weekNo;
6639
+ };
6640
+
6641
+ var getRangeHours = function getRangeHours(ranges) {
6642
+ var hours = [];
6643
+ var disabledHours = [];
6644
+
6645
+ (ranges || []).forEach(function (range) {
6646
+ var value = range.map(function (date) {
6647
+ return date.getHours();
6648
+ });
6649
+
6650
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
6651
+ });
6652
+
6653
+ if (disabledHours.length) {
6654
+ for (var i = 0; i < 24; i++) {
6655
+ hours[i] = disabledHours.indexOf(i) === -1;
6656
+ }
6657
+ } else {
6658
+ for (var _i = 0; _i < 24; _i++) {
6659
+ hours[_i] = false;
6660
+ }
6661
+ }
6662
+
6663
+ return hours;
6664
+ };
6665
+
6666
+ var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
6667
+ if (amount <= 0) return [];
6668
+ var temp = new Date(date.getTime());
6669
+ temp.setDate(0);
6670
+ var lastDay = temp.getDate();
6671
+ return range(amount).map(function (_, index) {
6672
+ return lastDay - (amount - index - 1);
6673
+ });
6674
+ };
6675
+
6676
+ var getMonthDays = function getMonthDays(date) {
6677
+ var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
6678
+ var days = temp.getDate();
6679
+ return range(days).map(function (_, index) {
6680
+ return index + 1;
6681
+ });
6682
+ };
6683
+
6684
+ function setRangeData(arr, start, end, value) {
6685
+ for (var i = start; i < end; i++) {
6686
+ arr[i] = value;
6687
+ }
6688
+ }
6689
+
6690
+ var getRangeMinutes = function getRangeMinutes(ranges, hour) {
6691
+ var minutes = new Array(60);
6692
+
6693
+ if (ranges.length > 0) {
6694
+ ranges.forEach(function (range) {
6695
+ var start = range[0];
6696
+ var end = range[1];
6697
+ var startHour = start.getHours();
6698
+ var startMinute = start.getMinutes();
6699
+ var endHour = end.getHours();
6700
+ var endMinute = end.getMinutes();
6701
+ if (startHour === hour && endHour !== hour) {
6702
+ setRangeData(minutes, startMinute, 60, true);
6703
+ } else if (startHour === hour && endHour === hour) {
6704
+ setRangeData(minutes, startMinute, endMinute + 1, true);
6705
+ } else if (startHour !== hour && endHour === hour) {
6706
+ setRangeData(minutes, 0, endMinute + 1, true);
6707
+ } else if (startHour < hour && endHour > hour) {
6708
+ setRangeData(minutes, 0, 60, true);
6709
+ }
6710
+ });
6711
+ } else {
6712
+ setRangeData(minutes, 0, 60, true);
6713
+ }
6714
+ return minutes;
6715
+ };
6716
+
6717
+ var range = function range(n) {
6718
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
6719
+ return Array.apply(null, { length: n }).map(function (_, n) {
6720
+ return n;
6721
+ });
6722
+ };
6723
+
6724
+ var modifyDate = function modifyDate(date, y, m, d) {
6725
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
6726
+ };
6727
+
6728
+ var modifyTime = function modifyTime(date, h, m, s) {
6729
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
6730
+ };
6731
+
6732
+ var modifyWithTimeString = function modifyWithTimeString(date, time) {
6733
+ if (date == null || !time) {
6734
+ return date;
6735
+ }
6736
+ time = parseDate(time, 'HH:mm:ss');
6737
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
6738
+ };
6739
+
6740
+ var clearTime = function clearTime(date) {
6741
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
6742
+ };
6743
+
6744
+ var clearMilliseconds = function clearMilliseconds(date) {
6745
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
6746
+ };
6747
+
6748
+ var limitTimeRange = function limitTimeRange(date, ranges) {
6749
+ var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
6750
+
6751
+ // TODO: refactory a more elegant solution
6752
+ if (ranges.length === 0) return date;
6753
+ var normalizeDate = function normalizeDate(date) {
6754
+ return fecha.parse(fecha.format(date, format), format);
6755
+ };
6756
+ var ndate = normalizeDate(date);
6757
+ var nranges = ranges.map(function (range) {
6758
+ return range.map(normalizeDate);
6759
+ });
6760
+ if (nranges.some(function (nrange) {
6761
+ return ndate >= nrange[0] && ndate <= nrange[1];
6762
+ })) return date;
6763
+
6764
+ var minDate = nranges[0][0];
6765
+ var maxDate = nranges[0][0];
6766
+
6767
+ nranges.forEach(function (nrange) {
6768
+ minDate = new Date(Math.min(nrange[0], minDate));
6769
+ maxDate = new Date(Math.max(nrange[1], minDate));
6770
+ });
6771
+
6772
+ var ret = ndate < minDate ? minDate : maxDate;
6773
+ // preserve Year/Month/Date
6774
+ return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
6775
+ };
6776
+
6777
+ var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
6778
+ var limitedDate = limitTimeRange(date, selectableRange, format);
6779
+ return limitedDate.getTime() === date.getTime();
6780
+ };
6781
+
6782
+ var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
6783
+ // clamp date to the number of days in `year`, `month`
6784
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
6785
+ var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
6786
+ return modifyDate(date, year, month, monthDate);
6787
+ };
6788
+
6789
+ var prevMonth = function prevMonth(date) {
6790
+ var year = date.getFullYear();
6791
+ var month = date.getMonth();
6792
+ return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
6793
+ };
6794
+
6795
+ var nextMonth = function nextMonth(date) {
6796
+ var year = date.getFullYear();
6797
+ var month = date.getMonth();
6798
+ return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
6799
+ };
6800
+
6801
+ var prevYear = function prevYear(date) {
6802
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6803
+
6804
+ var year = date.getFullYear();
6805
+ var month = date.getMonth();
6806
+ return changeYearMonthAndClampDate(date, year - amount, month);
6807
+ };
6808
+
6809
+ var nextYear = function nextYear(date) {
6810
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6811
+
6812
+ var year = date.getFullYear();
6813
+ var month = date.getMonth();
6814
+ return changeYearMonthAndClampDate(date, year + amount, month);
6815
+ };
6816
+
6817
+ var extractDateFormat = function extractDateFormat(format) {
6818
+ return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
6819
+ };
6820
+
6821
+ var extractTimeFormat = function extractTimeFormat(format) {
6822
+ return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
6823
+ };
6824
+
6825
+ var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
6826
+ return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
6827
+ };
6828
+
6847
6829
  /**
6848
6830
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
6849
6831
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
6850
6832
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
6851
6833
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
6852
6834
  * @returns {number} 工作日数量
6853
- */
6854
- const calculateNetworkDays = function (start_date, end_date, holidays = []) {
6855
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
6856
- throw new Error(
6857
- "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
6858
- );
6859
- }
6860
-
6861
- const startDateObj = new Date(start_date);
6862
- const endDateObj = new Date(end_date);
6863
-
6864
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
6865
- throw new Error(
6866
- "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
6867
- );
6868
- }
6869
-
6870
- if (startDateObj > endDateObj) {
6871
- throw new Error('Start date should be earlier than or equal to end date.');
6872
- }
6873
-
6874
- let workdays = 0;
6875
-
6876
- // Iterate through each day in the date range
6877
- for (
6878
- let currentDate = new Date(startDateObj);
6879
- currentDate <= endDateObj;
6880
- currentDate.setDate(currentDate.getDate() + 1)
6881
- ) {
6882
- // Check if the current day is a weekend (Saturday or Sunday)
6883
- const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
6884
-
6885
- // Check if the current day is a holiday
6886
- const isHoliday = holidays.some((holiday) => {
6887
- const holidayDate = new Date(holiday);
6888
- return currentDate.toDateString() === holidayDate.toDateString();
6889
- });
6890
-
6891
- // If it's a workday (not a weekend or holiday), increment the workdays count
6892
- if (!isWeekend && !isHoliday) {
6893
- workdays++;
6894
- }
6895
- }
6896
-
6897
- return workdays;
6898
- };
6899
-
6835
+ */
6836
+ var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
6837
+ var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
6838
+
6839
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
6840
+ throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
6841
+ }
6842
+
6843
+ var startDateObj = new Date(start_date);
6844
+ var endDateObj = new Date(end_date);
6845
+
6846
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
6847
+ throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
6848
+ }
6849
+
6850
+ if (startDateObj > endDateObj) {
6851
+ throw new Error('Start date should be earlier than or equal to end date.');
6852
+ }
6853
+
6854
+ var workdays = 0;
6855
+
6856
+ // Iterate through each day in the date range
6857
+
6858
+ var _loop = function _loop(currentDate) {
6859
+ // Check if the current day is a weekend (Saturday or Sunday)
6860
+ var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
6861
+
6862
+ // Check if the current day is a holiday
6863
+ var isHoliday = holidays.some(function (holiday) {
6864
+ var holidayDate = new Date(holiday);
6865
+ return currentDate.toDateString() === holidayDate.toDateString();
6866
+ });
6867
+
6868
+ // If it's a workday (not a weekend or holiday), increment the workdays count
6869
+ if (!isWeekend && !isHoliday) {
6870
+ workdays++;
6871
+ }
6872
+ };
6873
+
6874
+ for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
6875
+ _loop(currentDate);
6876
+ }
6877
+
6878
+ return workdays;
6879
+ };
6880
+
6900
6881
  /**
6901
6882
  * 日期加减天数
6902
6883
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
6903
6884
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
6904
6885
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
6905
- */
6906
- const dateAddDays = function (start_date, days) {
6907
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
6908
- throw new Error(
6909
- "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
6910
- );
6911
- }
6912
-
6913
- const startDateObj = new Date(start_date);
6914
- if (isNaN(startDateObj.getTime())) {
6915
- throw new Error(
6916
- "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
6917
- );
6918
- }
6919
-
6920
- const resultDateObj = new Date(startDateObj);
6921
- resultDateObj.setDate(resultDateObj.getDate() + days);
6922
-
6923
- const resultYear = resultDateObj.getFullYear();
6924
- const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
6925
- const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
6926
-
6927
- return `${resultYear}-${resultMonth}-${resultDay}`;
6928
- };
6929
-
6886
+ */
6887
+ var dateAddDays = function dateAddDays(start_date, days) {
6888
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
6889
+ 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.");
6890
+ }
6891
+
6892
+ var startDateObj = new Date(start_date);
6893
+ if (isNaN(startDateObj.getTime())) {
6894
+ throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6895
+ }
6896
+
6897
+ var resultDateObj = new Date(startDateObj);
6898
+ resultDateObj.setDate(resultDateObj.getDate() + days);
6899
+
6900
+ var resultYear = resultDateObj.getFullYear();
6901
+ var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
6902
+ var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
6903
+
6904
+ return resultYear + '-' + resultMonth + '-' + resultDay;
6905
+ };
6906
+
6930
6907
  /**
6931
6908
  * 计算两个日期之间的差值
6932
6909
  * @date 2023年12月14日
@@ -6934,182 +6911,180 @@ const dateAddDays = function (start_date, days) {
6934
6911
  * @param {String} end_date - 结束日期字符串
6935
6912
  * @param {String} unit - 单位:year/month/day
6936
6913
  * @returns {Number} 差值
6937
- */
6938
- const dateDiff = function (start_date, end_date, unit = 'day') {
6939
- // Assuming date strings are in "YYYY-MM-DD" format
6940
- var startDate = new Date(start_date);
6941
- var endDate = new Date(end_date);
6942
-
6943
- // If the date is invalid, return 0
6944
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6945
- return 0;
6946
- }
6947
-
6948
- if (unit === 'year') {
6949
- return endDate.getFullYear() - startDate.getFullYear();
6950
- } else if (unit === 'month') {
6951
- return (
6952
- (endDate.getFullYear() - startDate.getFullYear()) * 12 +
6953
- (endDate.getMonth() - startDate.getMonth())
6954
- );
6955
- } else {
6956
- // Default to day
6957
- var timeDifference = endDate - startDate;
6958
- // Calculate days (86400000 milliseconds per day)
6959
- return Math.floor(timeDifference / 86400000);
6960
- }
6961
- };
6962
-
6914
+ */
6915
+ var dateDiff = function dateDiff(start_date, end_date) {
6916
+ var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
6917
+
6918
+ // Assuming date strings are in "YYYY-MM-DD" format
6919
+ var startDate = new Date(start_date);
6920
+ var endDate = new Date(end_date);
6921
+
6922
+ // If the date is invalid, return 0
6923
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6924
+ return 0;
6925
+ }
6926
+
6927
+ if (unit === 'year') {
6928
+ return endDate.getFullYear() - startDate.getFullYear();
6929
+ } else if (unit === 'month') {
6930
+ return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
6931
+ } else {
6932
+ // Default to day
6933
+ var timeDifference = endDate - startDate;
6934
+ // Calculate days (86400000 milliseconds per day)
6935
+ return Math.floor(timeDifference / 86400000);
6936
+ }
6937
+ };
6938
+
6963
6939
  /**
6964
6940
  * 获取月份中的日期
6965
6941
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
6966
6942
  * @returns {number} 月份中的日期(1-31)
6967
- */
6968
- const dayOfMonth = function (date) {
6969
- if (typeof date !== 'string') {
6970
- throw new Error(
6971
- "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
6972
- );
6973
- }
6974
-
6975
- const dateObj = new Date(date);
6976
- if (isNaN(dateObj.getTime())) {
6977
- throw new Error(
6978
- "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
6979
- );
6980
- }
6981
-
6982
- return dateObj.getDate();
6983
- };
6984
-
6943
+ */
6944
+ var dayOfMonth = function dayOfMonth(date) {
6945
+ if (typeof date !== 'string') {
6946
+ throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6947
+ }
6948
+
6949
+ var dateObj = new Date(date);
6950
+ if (isNaN(dateObj.getTime())) {
6951
+ throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6952
+ }
6953
+
6954
+ return dateObj.getDate();
6955
+ };
6956
+
6985
6957
  /**
6986
6958
  * 获取当前日期
6987
6959
  * @date 2022年5月7日
6988
6960
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
6989
6961
  * @returns {string} 当前日期的格式化字符串
6990
- */
6991
- const getCurrentDate = function (format = 'YYYY-MM-DD') {
6992
- return formatDate(new Date(), format);
6993
- };
6994
-
6962
+ */
6963
+ var getCurrentDate = function getCurrentDate() {
6964
+ var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
6965
+
6966
+ return formatDate(new Date(), format);
6967
+ };
6968
+
6995
6969
  /**
6996
6970
  * 获取当前日期时间
6997
6971
  * @date 2022年5月7日
6998
6972
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
6999
6973
  * @returns {string} 当前日期时间的格式化字符串
7000
- */
7001
- const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
7002
- return formatDate(new Date(), format);
7003
- };
7004
-
6974
+ */
6975
+ var getCurrentDateTime = function getCurrentDateTime() {
6976
+ var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
6977
+
6978
+ return formatDate(new Date(), format);
6979
+ };
6980
+
7005
6981
  /**
7006
6982
  * 获取小时
7007
6983
  * @date 2022年5月7日
7008
6984
  * @param {Date|string} [date] - 日期对象或日期字符串
7009
6985
  * @returns {number} 小时数(0-23)
7010
- */
7011
- const getHour = function (date) {
7012
- if (!date) {
7013
- return new Date().getHours();
7014
- }
7015
- if (typeof date === 'string') {
7016
- date = new Date(date);
7017
- }
7018
- return date.getHours();
7019
- };
7020
-
6986
+ */
6987
+ var getHour = function getHour(date) {
6988
+ if (!date) {
6989
+ return new Date().getHours();
6990
+ }
6991
+ if (typeof date === 'string') {
6992
+ date = new Date(date);
6993
+ }
6994
+ return date.getHours();
6995
+ };
6996
+
7021
6997
  /**
7022
6998
  * 获取分钟
7023
6999
  * @date 2022年5月7日
7024
7000
  * @param {Date|string} [date] - 日期对象或日期字符串
7025
7001
  * @returns {number} 分钟数(0-59)
7026
- */
7027
- const getMinute = function (date) {
7028
- if (!date) {
7029
- return new Date().getMinutes();
7030
- }
7031
- if (typeof date === 'string') {
7032
- date = new Date(date);
7033
- }
7034
- return date.getMinutes();
7035
- };
7036
-
7002
+ */
7003
+ var getMinute = function getMinute(date) {
7004
+ if (!date) {
7005
+ return new Date().getMinutes();
7006
+ }
7007
+ if (typeof date === 'string') {
7008
+ date = new Date(date);
7009
+ }
7010
+ return date.getMinutes();
7011
+ };
7012
+
7037
7013
  /**
7038
7014
  * 获取月份
7039
7015
  * @date 2022年5月7日
7040
7016
  * @param {Date|string} [date] - 日期对象或日期字符串
7041
7017
  * @returns {number} 月份数(1-12)
7042
- */
7043
- const getMonth = function (date) {
7044
- if (!date) {
7045
- return new Date().getMonth() + 1;
7046
- }
7047
- if (typeof date === 'string') {
7048
- date = new Date(date);
7049
- }
7050
- return date.getMonth() + 1;
7051
- };
7052
-
7018
+ */
7019
+ var getMonth = function getMonth(date) {
7020
+ if (!date) {
7021
+ return new Date().getMonth() + 1;
7022
+ }
7023
+ if (typeof date === 'string') {
7024
+ date = new Date(date);
7025
+ }
7026
+ return date.getMonth() + 1;
7027
+ };
7028
+
7053
7029
  /**
7054
7030
  * 获取秒
7055
7031
  * @date 2022年5月7日
7056
7032
  * @param {Date|string} [date] - 日期对象或日期字符串
7057
7033
  * @returns {number} 秒数(0-59)
7058
- */
7059
- const getSecond = function (date) {
7060
- if (!date) {
7061
- return new Date().getSeconds();
7062
- }
7063
- if (typeof date === 'string') {
7064
- date = new Date(date);
7065
- }
7066
- return date.getSeconds();
7067
- };
7068
-
7034
+ */
7035
+ var getSecond = function getSecond(date) {
7036
+ if (!date) {
7037
+ return new Date().getSeconds();
7038
+ }
7039
+ if (typeof date === 'string') {
7040
+ date = new Date(date);
7041
+ }
7042
+ return date.getSeconds();
7043
+ };
7044
+
7069
7045
  /**
7070
7046
  * 获取星期几
7071
7047
  * @date 2022年5月7日
7072
7048
  * @param {Date|string} [date] - 日期对象或日期字符串
7073
7049
  * @returns {number} 星期几(0-6,0表示星期日)
7074
- */
7075
- const getWeekday = function (date) {
7076
- if (!date) {
7077
- return new Date().getDay();
7078
- }
7079
- if (typeof date === 'string') {
7080
- date = new Date(date);
7081
- }
7082
- return date.getDay();
7083
- };
7084
-
7085
-
7050
+ */
7051
+ var getWeekday = function getWeekday(date) {
7052
+ if (!date) {
7053
+ return new Date().getDay();
7054
+ }
7055
+ if (typeof date === 'string') {
7056
+ date = new Date(date);
7057
+ }
7058
+ return date.getDay();
7059
+ };
7060
+
7086
7061
  /**
7087
7062
  * @desc 获取上午/下午/晚上
7088
7063
  * @author huangbo
7089
7064
  * @date 2022年5月7日
7090
7065
  * @param {String} [time] - 时间
7091
- **/
7092
- const timeCycle = function (time) {
7093
- let hour = 0;
7094
- if (!time) {
7095
- hour = new Date().getHours();
7096
- } else if (typeof time === 'string') {
7097
- // 从时间字符串中提取小时
7098
- const match = time.match(/^(\d{1,2})/);
7099
- if (match) {
7100
- hour = parseInt(match[1], 10);
7101
- }
7102
- } else if (typeof time === 'number') {
7103
- hour = time;
7104
- }
7105
- // 判断时间段
7106
- if (hour >= 5 && hour < 12) {
7107
- return '上午';
7108
- } else if (hour >= 12 && hour < 18) {
7109
- return '下午';
7110
- } else {
7111
- return '晚上';
7112
- }
7066
+ **/
7067
+ var timeCycle = function timeCycle(time) {
7068
+ var hour = 0;
7069
+ if (!time) {
7070
+ hour = new Date().getHours();
7071
+ } else if (typeof time === 'string') {
7072
+ // 从时间字符串中提取小时
7073
+ var match = time.match(/^(\d{1,2})/);
7074
+ if (match) {
7075
+ hour = parseInt(match[1], 10);
7076
+ }
7077
+ } else if (typeof time === 'number') {
7078
+ hour = time;
7079
+ }
7080
+ // 判断时间段
7081
+ if (hour >= 5 && hour < 12) {
7082
+ return '上午';
7083
+ } else if (hour >= 12 && hour < 18) {
7084
+ return '下午';
7085
+ } else {
7086
+ return '晚上';
7087
+ }
7113
7088
  };
7114
7089
 
7115
7090
  /***/ }),
@@ -7953,7 +7928,7 @@ function redirectToLoginPage(loginPage, next) {
7953
7928
  * @param {function} callback - 回调函数
7954
7929
  **/
7955
7930
  var getMainConfig = function getMainConfig(callback) {
7956
- ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "pb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
7931
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "tb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
7957
7932
  if (res && res.rCode === 0) {
7958
7933
  callback(res.results);
7959
7934
  }
@@ -7976,7 +7951,7 @@ var getSysCodeList = function getSysCodeList(_ref4) {
7976
7951
  method = _ref4$method === undefined ? 'POST' : _ref4$method,
7977
7952
  service = _ref4.service,
7978
7953
  _ref4$url = _ref4.url,
7979
- url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "B"] : _ref4$url,
7954
+ url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "C"] : _ref4$url,
7980
7955
  sysCode = _ref4.sysCode,
7981
7956
  _ref4$param = _ref4.param,
7982
7957
  param = _ref4$param === undefined ? {} : _ref4$param,
@@ -8086,7 +8061,7 @@ var downloadFile = function downloadFile(_ref6) {
8086
8061
  file = _ref6.file,
8087
8062
  withToken = _ref6.withToken;
8088
8063
 
8089
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "w"] };
8064
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "x"] };
8090
8065
 
8091
8066
  var downloadUrl = '';
8092
8067
  if (file.adjunctId || file.response && file.response.adjunctId) {
@@ -8149,7 +8124,7 @@ var downloadZip = function downloadZip(_ref7) {
8149
8124
  code = _ref7.code,
8150
8125
  option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
8151
8126
 
8152
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Oc"] };
8127
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Sc"] };
8153
8128
 
8154
8129
  // 处理URL和参数
8155
8130
  var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
@@ -8201,7 +8176,7 @@ var deleteFile = function deleteFile(_ref8) {
8201
8176
  onSuccess = _ref8.onSuccess,
8202
8177
  onError = _ref8.onError;
8203
8178
 
8204
- var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "n"] + '\' }');
8179
+ var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "o"] + '\' }');
8205
8180
 
8206
8181
  // 处理URL和参数
8207
8182
  var deleteUrl = url ? url : dochubConfig.deleteDocumentUrl;