eoss 0.1.0-alpha.25 → 0.1.0-alpha.26

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 (254) 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 +1000 -971
  83. package/lib/alert.js +2 -2
  84. package/lib/aside.js +2 -2
  85. package/lib/audit-trajectory.js +75 -71
  86. package/lib/autocomplete.js +2136 -1951
  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 +12 -12
  93. package/lib/button.js +2 -2
  94. package/lib/ca-login.js +913 -888
  95. package/lib/calendar.js +872 -847
  96. package/lib/card.js +2 -2
  97. package/lib/carousel-item.js +905 -880
  98. package/lib/carousel.js +1042 -1017
  99. package/lib/cascader-panel.js +926 -901
  100. package/lib/cascader.js +2022 -1837
  101. package/lib/checkbox-button.js +2 -2
  102. package/lib/checkbox-group.js +1000 -971
  103. package/lib/checkbox.js +2 -2
  104. package/lib/col.js +2 -2
  105. package/lib/collapse-item.js +2174 -1980
  106. package/lib/collapse.js +2175 -1980
  107. package/lib/color-picker.js +1112 -952
  108. package/lib/config/api.js +3 -0
  109. package/lib/container.js +2 -2
  110. package/lib/cron.js +2 -2
  111. package/lib/data-table.js +1007 -978
  112. package/lib/date-picker.js +2142 -1957
  113. package/lib/dialog.js +910 -885
  114. package/lib/divider.js +2 -2
  115. package/lib/drawer.js +2 -2
  116. package/lib/dropdown-item.js +4 -4
  117. package/lib/dropdown-menu.js +1104 -944
  118. package/lib/dropdown.js +925 -900
  119. package/lib/email-login.js +999 -970
  120. package/lib/empty.js +2 -2
  121. package/lib/eoss.common.js +8751 -4166
  122. package/lib/flip.js +2 -2
  123. package/lib/flow-group.js +906 -881
  124. package/lib/flow.js +1112 -1083
  125. package/lib/flows.js +1010 -981
  126. package/lib/footer.js +2 -2
  127. package/lib/form-item.js +909 -884
  128. package/lib/form.js +2185 -1986
  129. package/lib/guide.js +620 -0
  130. package/lib/header.js +2 -2
  131. package/lib/icon.js +981 -952
  132. package/lib/icons.js +2 -2
  133. package/lib/image-viewer.js +907 -882
  134. package/lib/image.js +4 -4
  135. package/lib/index.js +1 -1
  136. package/lib/infinite-scroll.js +2 -2
  137. package/lib/input-number.js +4 -4
  138. package/lib/input.js +910 -885
  139. package/lib/link.js +2 -2
  140. package/lib/loading.js +2 -2
  141. package/lib/login.js +1027 -998
  142. package/lib/lowcode.js +17336 -13510
  143. package/lib/main.js +14933 -14625
  144. package/lib/marquee.js +907 -882
  145. package/lib/menu-item-group.js +2 -2
  146. package/lib/menu-item.js +2 -2
  147. package/lib/menu.js +2011 -1826
  148. package/lib/message-box.js +923 -898
  149. package/lib/message.js +911 -886
  150. package/lib/notification.js +911 -886
  151. package/lib/option-group.js +2 -2
  152. package/lib/option.js +907 -882
  153. package/lib/page-header.js +2 -2
  154. package/lib/pagination.js +910 -885
  155. package/lib/phone-login.js +998 -969
  156. package/lib/popconfirm.js +12 -12
  157. package/lib/popover.js +2009 -1824
  158. package/lib/process-config.js +1015 -986
  159. package/lib/process-module.js +1001 -972
  160. package/lib/process-rule.js +1019 -990
  161. package/lib/progress.js +5 -5
  162. package/lib/qr-code.js +4 -4
  163. package/lib/qrcode-login.js +1057 -1028
  164. package/lib/radio-button.js +2 -2
  165. package/lib/radio-group.js +998 -969
  166. package/lib/radio.js +2 -2
  167. package/lib/rate.js +907 -882
  168. package/lib/row.js +2 -2
  169. package/lib/scrollbar.js +904 -879
  170. package/lib/select.js +2135 -1945
  171. package/lib/selector-panel.js +1009 -980
  172. package/lib/selector.js +1001 -972
  173. package/lib/slider.js +2 -2
  174. package/lib/step.js +2172 -1977
  175. package/lib/steps.js +907 -882
  176. package/lib/submenu.js +1119 -959
  177. package/lib/switch.js +907 -882
  178. package/lib/tab-pane.js +2 -2
  179. package/lib/table-column.js +906 -881
  180. package/lib/table.js +2236 -2047
  181. package/lib/tabs.js +911 -886
  182. package/lib/tag.js +2 -2
  183. package/lib/theme-chalk/base.css +1 -1
  184. package/lib/theme-chalk/guide.css +1 -0
  185. package/lib/theme-chalk/icon.css +1 -1
  186. package/lib/theme-chalk/index.css +1 -1
  187. package/lib/theme-chalk/lowcode-view.css +1 -0
  188. package/lib/theme-chalk/lowcode.css +1 -1
  189. package/lib/theme-chalk/main.css +1 -1
  190. package/lib/theme-chalk/pagination.css +1 -1
  191. package/lib/theme-chalk/select-dropdown.css +1 -1
  192. package/lib/theme-chalk/select.css +1 -1
  193. package/lib/theme-chalk/wujie.css +1 -0
  194. package/lib/time-picker.js +1977 -1792
  195. package/lib/time-select.js +1978 -1793
  196. package/lib/timeline-item.js +2 -2
  197. package/lib/timeline.js +2 -2
  198. package/lib/tips.js +998 -969
  199. package/lib/toolbar.js +2 -2
  200. package/lib/tooltip.js +2006 -1821
  201. package/lib/transfer.js +916 -891
  202. package/lib/tree-group.js +978 -949
  203. package/lib/tree.js +999 -970
  204. package/lib/update-history.js +76 -72
  205. package/lib/upload.js +1028 -999
  206. package/lib/utils/frame.js +133 -0
  207. package/lib/wujie.js +5037 -0
  208. package/package.json +3 -2
  209. package/packages/cascader/src/cascader.vue +1 -1
  210. package/packages/date-picker/src/picker.vue +1 -1
  211. package/packages/form/src/form-item-render.vue +10 -6
  212. package/packages/guide/index.js +8 -0
  213. package/packages/guide/src/directive.js +47 -0
  214. package/packages/guide/src/guide.vue +89 -0
  215. package/packages/guide/src/manager.js +133 -0
  216. package/packages/input/src/input.vue +1 -1
  217. package/packages/lowcode/src/aside.vue +41 -8
  218. package/packages/lowcode/src/attribute/bind.vue +2 -4
  219. package/packages/lowcode/src/attribute/dependency.vue +3 -16
  220. package/packages/lowcode/src/attribute/function.vue +2 -4
  221. package/packages/lowcode/src/attribute/property.vue +3 -15
  222. package/packages/lowcode/src/attribute/styles.vue +105 -11
  223. package/packages/lowcode/src/attribute.vue +5 -35
  224. package/packages/lowcode/src/canvas.vue +223 -97
  225. package/packages/lowcode/src/iframe.vue +60 -0
  226. package/packages/lowcode/src/lowcode.vue +32 -8
  227. package/packages/lowcode/src/pages.vue +1 -1
  228. package/packages/lowcode/src/render.vue +312 -70
  229. package/packages/lowcode/src/util/source-generator.js +7 -11
  230. package/packages/lowcode/src/util/source-parser.js +1 -1
  231. package/packages/lowcode-view/index.js +1 -1
  232. package/packages/lowcode-view/src/Iframe.vue +55 -0
  233. package/packages/lowcode-view/src/Modulels.vue +239 -0
  234. package/packages/lowcode-view/src/render.vue +337 -0
  235. package/packages/lowcode-view/src/view.vue +763 -0
  236. package/packages/main/src/components/pages.vue +11 -2
  237. package/packages/main/src/event-center.js +160 -0
  238. package/packages/main/src/minxs.js +60 -90
  239. package/packages/progress/src/progress.vue +1 -1
  240. package/packages/select/src/select.vue +2 -1
  241. package/packages/theme-chalk/src/common/var.scss +34 -10
  242. package/packages/theme-chalk/src/guide.scss +93 -0
  243. package/packages/theme-chalk/src/icon.scss +425 -426
  244. package/packages/theme-chalk/src/index.scss +2 -0
  245. package/packages/theme-chalk/src/lowcode-view.scss +288 -0
  246. package/packages/theme-chalk/src/lowcode.scss +11 -1
  247. package/packages/theme-chalk/src/select-dropdown.scss +1 -1
  248. package/packages/theme-chalk/src/wujie.scss +5 -0
  249. package/packages/wujie/index.js +10 -0
  250. package/packages/wujie/src/wujie.vue +205 -0
  251. package/src/config/api.js +3 -0
  252. package/src/index.js +325 -319
  253. package/src/utils/frame.js +102 -0
  254. package/packages/lowcode/src/view.vue +0 -187
package/lib/login.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 176);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 181);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -91,32 +91,32 @@ module.exports =
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return noop; });
95
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return hasOwn; });
96
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return toObject; });
97
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return getValueByPath; });
98
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return getPropByPath; });
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return noop; });
95
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return hasOwn; });
96
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return toObject; });
97
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getValueByPath; });
98
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return getPropByPath; });
99
99
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return generateId; });
100
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return valueEquals; });
100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return valueEquals; });
101
101
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return escapeRegexpString; });
102
102
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return arrayFindIndex; });
103
103
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFind; });
104
104
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return coerceTruthyValueToArray; });
105
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isIE; });
106
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return isEdge; });
107
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return isFirefox; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return isIE; });
106
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return isEdge; });
107
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return isFirefox; });
108
108
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return autoprefixer; });
109
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return kebabCase; });
109
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return kebabCase; });
110
110
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return capitalize; });
111
111
  /* unused harmony export looseEqual */
112
112
  /* unused harmony export arrayEquals */
113
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isEqual; });
114
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return rafThrottle; });
113
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isEqual; });
114
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return rafThrottle; });
115
115
  /* unused harmony export objToArray */
116
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return requestAnimationFrame; });
116
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return requestAnimationFrame; });
117
117
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return cancelAnimationFrame; });
118
118
  /* unused harmony export debounce */
119
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return throttle; });
119
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return throttle; });
120
120
  /* unused harmony export guid */
121
121
  /* unused harmony export uid */
122
122
  /* unused harmony export get */
@@ -124,7 +124,7 @@ module.exports =
124
124
  /* unused harmony export cloneDeep */
125
125
  /* unused harmony export grouping */
126
126
  /* unused harmony export pager */
127
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return getWinTop; });
127
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return getWinTop; });
128
128
  /* unused harmony export getFileType */
129
129
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrUnique; });
130
130
  /* unused harmony export average */
@@ -142,54 +142,54 @@ module.exports =
142
142
  /* unused harmony export exportXls */
143
143
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return extend; });
144
144
  /* unused harmony export getObjectType */
145
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return getParams; });
145
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return getParams; });
146
146
  /* unused harmony export getScript */
147
147
  /* unused harmony export getStyle */
148
148
  /* unused harmony export getTypeName */
149
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getTypePrefix; });
149
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return getTypePrefix; });
150
150
  /* unused harmony export getValues */
151
151
  /* unused harmony export getZoom */
152
152
  /* unused harmony export getLength */
153
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return timestampUrl; });
153
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return timestampUrl; });
154
154
  /* unused harmony export hasChars */
155
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return identical; });
156
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return indexOfObj; });
157
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isEmpty; });
158
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return isExist; });
155
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return identical; });
156
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return indexOfObj; });
157
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return isEmpty; });
158
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isExist; });
159
159
  /* unused harmony export isFunction */
160
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return isObjectEqual; });
161
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return joinUrl; });
162
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return getHorizontalMargin; });
163
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return layoutWaterfall; });
160
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isObjectEqual; });
161
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return joinUrl; });
162
+ /* unused harmony export getHorizontalMargin */
163
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return layoutWaterfall; });
164
164
  /* unused harmony export loadJs */
165
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return loading; });
165
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return loading; });
166
166
  /* unused harmony export lowerCase */
167
167
  /* unused harmony export overbrim */
168
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return queryParams; });
168
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return queryParams; });
169
169
  /* unused harmony export receiveMessage */
170
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return renderIcon; });
170
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return renderIcon; });
171
171
  /* unused harmony export replenish */
172
172
  /* unused harmony export rmbToCapital */
173
173
  /* unused harmony export setScale */
174
174
  /* unused harmony export sendMessage */
175
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return setFavicon; });
175
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return setFavicon; });
176
176
  /* unused harmony export sum */
177
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return startWith; });
177
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return startWith; });
178
178
  /* unused harmony export takeLeft */
179
179
  /* unused harmony export takeRight */
180
180
  /* unused harmony export trimWhitespace */
181
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return toFixed; });
181
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return toFixed; });
182
182
  /* unused harmony export toFunction */
183
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return updateTheme; });
183
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return updateTheme; });
184
184
  /* unused harmony export upperType */
185
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return urlJoinParams; });
186
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return uuid; });
187
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return watermark; });
185
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return urlJoinParams; });
186
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return uuid; });
187
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return watermark; });
188
188
  /* unused harmony export winTopOpen */
189
189
  /* unused harmony export confirm */
190
190
  /* unused harmony export success */
191
191
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return error; });
192
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return warning; });
192
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return warning; });
193
193
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
194
194
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
195
195
  /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
@@ -2172,7 +2172,7 @@ var loadJs = function loadJs(url, callback) {
2172
2172
  var loading = function loading() {
2173
2173
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '请求中...';
2174
2174
 
2175
- var Loading = __webpack_require__(18).default;
2175
+ var Loading = __webpack_require__(17).default;
2176
2176
  return Loading.service({
2177
2177
  text: text,
2178
2178
  spinner: 'es-icon-jiazai',
@@ -3274,42 +3274,42 @@ var removeCookie = function removeCookie(key) {
3274
3274
 
3275
3275
  /***/ }),
3276
3276
 
3277
- /***/ 108:
3277
+ /***/ 11:
3278
3278
  /***/ (function(module, exports) {
3279
3279
 
3280
- module.exports = require("eoss/lib/ca-login");
3280
+ module.exports = require("eoss/lib/message");
3281
3281
 
3282
3282
  /***/ }),
3283
3283
 
3284
- /***/ 109:
3284
+ /***/ 112:
3285
3285
  /***/ (function(module, exports) {
3286
3286
 
3287
- module.exports = require("eoss/lib/phone-login");
3287
+ module.exports = require("eoss/lib/ca-login");
3288
3288
 
3289
3289
  /***/ }),
3290
3290
 
3291
- /***/ 11:
3291
+ /***/ 113:
3292
3292
  /***/ (function(module, exports) {
3293
3293
 
3294
- module.exports = require("eoss/lib/message");
3294
+ module.exports = require("eoss/lib/phone-login");
3295
3295
 
3296
3296
  /***/ }),
3297
3297
 
3298
- /***/ 110:
3298
+ /***/ 114:
3299
3299
  /***/ (function(module, exports) {
3300
3300
 
3301
3301
  module.exports = require("eoss/lib/email-login");
3302
3302
 
3303
3303
  /***/ }),
3304
3304
 
3305
- /***/ 111:
3305
+ /***/ 115:
3306
3306
  /***/ (function(module, exports) {
3307
3307
 
3308
3308
  module.exports = require("eoss/lib/qrcode-login");
3309
3309
 
3310
3310
  /***/ }),
3311
3311
 
3312
- /***/ 112:
3312
+ /***/ 116:
3313
3313
  /***/ (function(module, exports) {
3314
3314
 
3315
3315
  module.exports = require("eoss/lib/account-login");
@@ -3379,7 +3379,7 @@ var getColor = function getColor($color, $n) {
3379
3379
  var getLightness = function getLightness($v, $i, $isLight) {
3380
3380
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
3381
3381
  $value = $value < 1 ? $value : 1;
3382
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "V"])($value, 2);
3382
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($value, 2);
3383
3383
  };
3384
3384
 
3385
3385
  /**
@@ -3403,7 +3403,7 @@ var getSaturation = function getSaturation($s, $i, $isLight) {
3403
3403
  $saturation = 0.1;
3404
3404
  }
3405
3405
  $saturation = $saturation > 0.06 ? $saturation : 0.06;
3406
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "V"])($saturation, 2);
3406
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($saturation, 2);
3407
3407
  };
3408
3408
 
3409
3409
  /**
@@ -3517,7 +3517,7 @@ var getRgb = function getRgb($color) {
3517
3517
 
3518
3518
  /***/ }),
3519
3519
 
3520
- /***/ 140:
3520
+ /***/ 145:
3521
3521
  /***/ (function(module, exports) {
3522
3522
 
3523
3523
  module.exports = require("enquire.js");
@@ -3531,7 +3531,14 @@ module.exports = require("throttle-debounce");
3531
3531
 
3532
3532
  /***/ }),
3533
3533
 
3534
- /***/ 176:
3534
+ /***/ 17:
3535
+ /***/ (function(module, exports) {
3536
+
3537
+ module.exports = require("eoss/lib/loading");
3538
+
3539
+ /***/ }),
3540
+
3541
+ /***/ 181:
3535
3542
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3536
3543
 
3537
3544
  "use strict";
@@ -4053,7 +4060,7 @@ render._withStripped = true
4053
4060
  methods: {}
4054
4061
  });
4055
4062
  // EXTERNAL MODULE: external "dompurify"
4056
- var external_dompurify_ = __webpack_require__(94);
4063
+ var external_dompurify_ = __webpack_require__(97);
4057
4064
  var external_dompurify_default = /*#__PURE__*/__webpack_require__.n(external_dompurify_);
4058
4065
 
4059
4066
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/download.vue?vue&type=template&id=72b641d3&
@@ -4248,7 +4255,7 @@ var component = Object(componentNormalizer["a" /* default */])(
4248
4255
 
4249
4256
  /* harmony default export */ var download = (component.exports);
4250
4257
  // EXTERNAL MODULE: external "eoss/lib/ca-login"
4251
- var ca_login_ = __webpack_require__(108);
4258
+ var ca_login_ = __webpack_require__(112);
4252
4259
  var ca_login_default = /*#__PURE__*/__webpack_require__.n(ca_login_);
4253
4260
 
4254
4261
  // EXTERNAL MODULE: external "eoss/lib/message-box"
@@ -4256,19 +4263,19 @@ var message_box_ = __webpack_require__(8);
4256
4263
  var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
4257
4264
 
4258
4265
  // EXTERNAL MODULE: external "eoss/lib/phone-login"
4259
- var phone_login_ = __webpack_require__(109);
4266
+ var phone_login_ = __webpack_require__(113);
4260
4267
  var phone_login_default = /*#__PURE__*/__webpack_require__.n(phone_login_);
4261
4268
 
4262
4269
  // EXTERNAL MODULE: external "eoss/lib/email-login"
4263
- var email_login_ = __webpack_require__(110);
4270
+ var email_login_ = __webpack_require__(114);
4264
4271
  var email_login_default = /*#__PURE__*/__webpack_require__.n(email_login_);
4265
4272
 
4266
4273
  // EXTERNAL MODULE: external "eoss/lib/qrcode-login"
4267
- var qrcode_login_ = __webpack_require__(111);
4274
+ var qrcode_login_ = __webpack_require__(115);
4268
4275
  var qrcode_login_default = /*#__PURE__*/__webpack_require__.n(qrcode_login_);
4269
4276
 
4270
4277
  // EXTERNAL MODULE: external "eoss/lib/account-login"
4271
- var account_login_ = __webpack_require__(112);
4278
+ var account_login_ = __webpack_require__(116);
4272
4279
  var account_login_default = /*#__PURE__*/__webpack_require__.n(account_login_);
4273
4280
 
4274
4281
  // EXTERNAL MODULE: ./src/utils/resize-event.js
@@ -4296,7 +4303,7 @@ if (typeof window !== 'undefined') {
4296
4303
  };
4297
4304
  window.matchMedia = window.matchMedia || matchMediaPolyfill;
4298
4305
  // eslint-disable-next-line global-require
4299
- enquire = __webpack_require__(140);
4306
+ enquire = __webpack_require__(145);
4300
4307
  }
4301
4308
 
4302
4309
  /**
@@ -4546,7 +4553,7 @@ var calcBreakPoint = function calcBreakPoint(width) {
4546
4553
  mounted: function mounted() {
4547
4554
  this.elDom = this.isBody ? document.body : this.$el;
4548
4555
  this.setupElResponsive();
4549
- this.setupElResponsiveProxy = Object(util["T" /* throttle */])(this.setupElResponsive, 300, false, this);
4556
+ this.setupElResponsiveProxy = Object(util["S" /* throttle */])(this.setupElResponsive, 300, false, this);
4550
4557
  Object(resize_event["a" /* addResizeListener */])(this.elDom, this.setupElResponsiveProxy);
4551
4558
  },
4552
4559
  beforeDestroy: function beforeDestroy() {
@@ -5115,12 +5122,12 @@ var LOGIN_TYPES = {
5115
5122
  },
5116
5123
  themeColor: {
5117
5124
  handler: function handler(newVal) {
5118
- Object(util["X" /* updateTheme */])(newVal);
5125
+ Object(util["W" /* updateTheme */])(newVal);
5119
5126
  }
5120
5127
  },
5121
5128
  sysLogoIco: {
5122
5129
  handler: function handler(newVal) {
5123
- Object(util["R" /* setFavicon */])(newVal);
5130
+ Object(util["Q" /* setFavicon */])(newVal);
5124
5131
  }
5125
5132
  },
5126
5133
  subsystemName: {
@@ -5305,10 +5312,10 @@ var LOGIN_TYPES = {
5305
5312
  }
5306
5313
  break;
5307
5314
  case 2:
5308
- Object(util["bb" /* warning */])(results.msg ? results.msg : '密码太简单了, 请修改密码!', function () {
5315
+ Object(util["ab" /* warning */])(results.msg ? results.msg : '密码太简单了, 请修改密码!', function () {
5309
5316
  _this2.operationCheckCode = results.checkCode;
5310
5317
  if (_this2.changePasswordUrl || _this2.forgetUrl) {
5311
- var _url = Object(util["Y" /* urlJoinParams */])({
5318
+ var _url = Object(util["X" /* urlJoinParams */])({
5312
5319
  url: _this2.changePasswordUrl || _this2.forgetUrl,
5313
5320
  params: { checkCode: results.checkCode }
5314
5321
  });
@@ -5441,13 +5448,6 @@ login.install = function (Vue) {
5441
5448
 
5442
5449
  /***/ }),
5443
5450
 
5444
- /***/ 18:
5445
- /***/ (function(module, exports) {
5446
-
5447
- module.exports = require("eoss/lib/loading");
5448
-
5449
- /***/ }),
5450
-
5451
5451
  /***/ 19:
5452
5452
  /***/ (function(module, exports) {
5453
5453
 
@@ -5505,736 +5505,759 @@ module.exports = require("lodash/get");
5505
5505
  /* unused harmony export getSecond */
5506
5506
  /* unused harmony export getWeekday */
5507
5507
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
5508
-
5509
-
5508
+ /* Modified from https://github.com/taylorhakes/fecha
5509
+ *
5510
+ * The MIT License (MIT)
5511
+ *
5512
+ * Copyright (c) 2015 Taylor Hakes
5513
+ *
5514
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5515
+ * of this software and associated documentation files (the "Software"), to deal
5516
+ * in the Software without restriction, including without limitation the rights
5517
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5518
+ * copies of the Software, and to permit persons to whom the Software is
5519
+ * furnished to do so, subject to the following conditions:
5520
+ *
5521
+ * The above copyright notice and this permission notice shall be included in all
5522
+ * copies or substantial portions of the Software.
5523
+ *
5524
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5525
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5526
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5527
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5528
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5529
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5530
+ * SOFTWARE.
5531
+ */
5532
+
5533
+ /*eslint-disable*/
5534
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
5535
+
5536
+
5510
5537
  /**
5511
5538
  * Parse or format dates
5512
5539
  * @class fecha
5513
- */
5514
- var fecha = {};
5515
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
5516
- var twoDigits = '\\d\\d?';
5517
- var threeDigits = '\\d{3}';
5518
- var fourDigits = '\\d{4}';
5519
- var word = '[^\\s]+';
5520
- var literal = /\[([^]*?)\]/gm;
5521
- var noop = function noop() {};
5522
-
5523
- function regexEscape(str) {
5524
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
5525
- }
5526
-
5527
- function shorten(arr, sLen) {
5528
- var newArr = [];
5529
- for (var i = 0, len = arr.length; i < len; i++) {
5530
- newArr.push(arr[i].substr(0, sLen));
5531
- }
5532
- return newArr;
5533
- }
5534
-
5535
- function monthUpdate() {
5536
- return function (d, v) {
5537
- var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
5538
- if (~index) {
5539
- d.month = index;
5540
- }
5541
- };
5542
- }
5543
-
5544
- function pad(val, len) {
5545
- val = String(val);
5546
- len = len || 2;
5547
- while (val.length < len) {
5548
- val = '0' + val;
5549
- }
5550
- return val;
5551
- }
5552
-
5553
- // 直接使用中文日期名称常量
5554
- var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
5555
- var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
5556
- var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
5557
- var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
5558
- var amPm = ['上午', '下午'];
5559
- var DoFn = function DoFn(D) {
5560
- return D + '日';
5561
- };
5562
-
5563
- var formatFlags = {
5564
- D: function D(dateObj) {
5565
- return dateObj.getDay();
5566
- },
5567
- DD: function DD(dateObj) {
5568
- return pad(dateObj.getDay());
5569
- },
5570
- Do: function Do(dateObj) {
5571
- return DoFn(dateObj.getDate());
5572
- },
5573
- d: function d(dateObj) {
5574
- return dateObj.getDate();
5575
- },
5576
- dd: function dd(dateObj) {
5577
- return pad(dateObj.getDate());
5578
- },
5579
- ddd: function ddd(dateObj) {
5580
- return dayNamesShort[dateObj.getDay()];
5581
- },
5582
- dddd: function dddd(dateObj) {
5583
- return dayNames[dateObj.getDay()];
5584
- },
5585
- M: function M(dateObj) {
5586
- return dateObj.getMonth() + 1;
5587
- },
5588
- MM: function MM(dateObj) {
5589
- return pad(dateObj.getMonth() + 1);
5590
- },
5591
- MMM: function MMM(dateObj) {
5592
- return monthNamesShort[dateObj.getMonth()];
5593
- },
5594
- MMMM: function MMMM(dateObj) {
5595
- return monthNames[dateObj.getMonth()];
5596
- },
5597
- yy: function yy(dateObj) {
5598
- return pad(String(dateObj.getFullYear()), 4).substr(2);
5599
- },
5600
- yyyy: function yyyy(dateObj) {
5601
- return pad(dateObj.getFullYear(), 4);
5602
- },
5603
- h: function h(dateObj) {
5604
- return dateObj.getHours() % 12 || 12;
5605
- },
5606
- hh: function hh(dateObj) {
5607
- return pad(dateObj.getHours() % 12 || 12);
5608
- },
5609
- H: function H(dateObj) {
5610
- return dateObj.getHours();
5611
- },
5612
- HH: function HH(dateObj) {
5613
- return pad(dateObj.getHours());
5614
- },
5615
- m: function m(dateObj) {
5616
- return dateObj.getMinutes();
5617
- },
5618
- mm: function mm(dateObj) {
5619
- return pad(dateObj.getMinutes());
5620
- },
5621
- s: function s(dateObj) {
5622
- return dateObj.getSeconds();
5623
- },
5624
- ss: function ss(dateObj) {
5625
- return pad(dateObj.getSeconds());
5626
- },
5627
- S: function S(dateObj) {
5628
- return Math.round(dateObj.getMilliseconds() / 100);
5629
- },
5630
- SS: function SS(dateObj) {
5631
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5632
- },
5633
- SSS: function SSS(dateObj) {
5634
- return pad(dateObj.getMilliseconds(), 3);
5635
- },
5636
- a: function a(dateObj) {
5637
- return dateObj.getHours() < 12 ? '上午' : '下午';
5638
- },
5639
- A: function A(dateObj) {
5640
- return dateObj.getHours() < 12 ? '上午' : '下午';
5641
- },
5642
- ZZ: function ZZ(dateObj) {
5643
- var o = dateObj.getTimezoneOffset();
5644
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5645
- }
5646
- };
5647
-
5648
- var parseFlags = {
5649
- d: [twoDigits, function (d, v) {
5650
- d.day = v;
5651
- }],
5652
- Do: [twoDigits + word, function (d, v) {
5653
- d.day = parseInt(v, 10);
5654
- }],
5655
- M: [twoDigits, function (d, v) {
5656
- d.month = v - 1;
5657
- }],
5658
- yy: [twoDigits, function (d, v) {
5659
- var da = new Date(),
5660
- cent = +('' + da.getFullYear()).substr(0, 2);
5661
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5662
- }],
5663
- h: [twoDigits, function (d, v) {
5664
- d.hour = v;
5665
- }],
5666
- m: [twoDigits, function (d, v) {
5667
- d.minute = v;
5668
- }],
5669
- s: [twoDigits, function (d, v) {
5670
- d.second = v;
5671
- }],
5672
- yyyy: [fourDigits, function (d, v) {
5673
- d.year = v;
5674
- }],
5675
- S: ['\\d', function (d, v) {
5676
- d.millisecond = v * 100;
5677
- }],
5678
- SS: ['\\d{2}', function (d, v) {
5679
- d.millisecond = v * 10;
5680
- }],
5681
- SSS: [threeDigits, function (d, v) {
5682
- d.millisecond = v;
5683
- }],
5684
- D: [twoDigits, noop],
5685
- ddd: [word, noop],
5686
- MMM: [word, monthUpdate('monthNamesShort')],
5687
- MMMM: [word, monthUpdate('monthNames')],
5688
- a: [word, function (d, v) {
5689
- var val = v.toLowerCase();
5690
- if (val === '上午') {
5691
- d.isPm = false;
5692
- } else if (val === '下午') {
5693
- d.isPm = true;
5694
- }
5695
- }],
5696
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5697
- var parts = (v + '').match(/([+-]|\d\d)/gi),
5698
- minutes = void 0;
5699
-
5700
- if (parts) {
5701
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5702
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5703
- }
5704
- }]
5705
- };
5706
- parseFlags.dd = parseFlags.d;
5707
- parseFlags.dddd = parseFlags.ddd;
5708
- parseFlags.DD = parseFlags.D;
5709
- parseFlags.mm = parseFlags.m;
5710
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5711
- parseFlags.MM = parseFlags.M;
5712
- parseFlags.ss = parseFlags.s;
5713
- parseFlags.A = parseFlags.a;
5714
-
5715
- // Some common format strings
5716
- fecha.masks = {
5717
- default: 'ddd MMM dd yyyy HH:mm:ss',
5718
- shortDate: 'M/D/yy',
5719
- mediumDate: 'MMM d, yyyy',
5720
- longDate: 'MMMM d, yyyy',
5721
- fullDate: 'dddd, MMMM d, yyyy',
5722
- shortTime: 'HH:mm',
5723
- mediumTime: 'HH:mm:ss',
5724
- longTime: 'HH:mm:ss.SSS'
5725
- };
5726
-
5540
+ */
5541
+ const fecha = {};
5542
+ const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
5543
+ const twoDigits = '\\d\\d?';
5544
+ const threeDigits = '\\d{3}';
5545
+ const fourDigits = '\\d{4}';
5546
+ const word = '[^\\s]+';
5547
+ const literal = /\[([^]*?)\]/gm;
5548
+ const noop = function () {};
5549
+
5550
+ function regexEscape(str) {
5551
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
5552
+ }
5553
+
5554
+ function shorten(arr, sLen) {
5555
+ const newArr = [];
5556
+ for (let i = 0, len = arr.length; i < len; i++) {
5557
+ newArr.push(arr[i].substr(0, sLen));
5558
+ }
5559
+ return newArr;
5560
+ }
5561
+
5562
+ function monthUpdate() {
5563
+ return function (d, v) {
5564
+ const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
5565
+ if (~index) {
5566
+ d.month = index;
5567
+ }
5568
+ };
5569
+ }
5570
+
5571
+ function pad(val, len) {
5572
+ val = String(val);
5573
+ len = len || 2;
5574
+ while (val.length < len) {
5575
+ val = '0' + val;
5576
+ }
5577
+ return val;
5578
+ }
5579
+
5580
+ // 直接使用中文日期名称常量
5581
+ const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
5582
+ const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
5583
+ const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
5584
+ const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
5585
+ const amPm = ['上午', '下午'];
5586
+ const DoFn = function DoFn(D) {
5587
+ return D + '日';
5588
+ };
5589
+
5590
+ const formatFlags = {
5591
+ D: function(dateObj) {
5592
+ return dateObj.getDay();
5593
+ },
5594
+ DD: function(dateObj) {
5595
+ return pad(dateObj.getDay());
5596
+ },
5597
+ Do: function(dateObj) {
5598
+ return DoFn(dateObj.getDate());
5599
+ },
5600
+ d: function(dateObj) {
5601
+ return dateObj.getDate();
5602
+ },
5603
+ dd: function(dateObj) {
5604
+ return pad(dateObj.getDate());
5605
+ },
5606
+ ddd: function(dateObj) {
5607
+ return dayNamesShort[dateObj.getDay()];
5608
+ },
5609
+ dddd: function(dateObj) {
5610
+ return dayNames[dateObj.getDay()];
5611
+ },
5612
+ M: function(dateObj) {
5613
+ return dateObj.getMonth() + 1;
5614
+ },
5615
+ MM: function(dateObj) {
5616
+ return pad(dateObj.getMonth() + 1);
5617
+ },
5618
+ MMM: function(dateObj) {
5619
+ return monthNamesShort[dateObj.getMonth()];
5620
+ },
5621
+ MMMM: function(dateObj) {
5622
+ return monthNames[dateObj.getMonth()];
5623
+ },
5624
+ yy: function(dateObj) {
5625
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
5626
+ },
5627
+ yyyy: function(dateObj) {
5628
+ return pad(dateObj.getFullYear(), 4);
5629
+ },
5630
+ h: function(dateObj) {
5631
+ return dateObj.getHours() % 12 || 12;
5632
+ },
5633
+ hh: function(dateObj) {
5634
+ return pad(dateObj.getHours() % 12 || 12);
5635
+ },
5636
+ H: function(dateObj) {
5637
+ return dateObj.getHours();
5638
+ },
5639
+ HH: function(dateObj) {
5640
+ return pad(dateObj.getHours());
5641
+ },
5642
+ m: function(dateObj) {
5643
+ return dateObj.getMinutes();
5644
+ },
5645
+ mm: function(dateObj) {
5646
+ return pad(dateObj.getMinutes());
5647
+ },
5648
+ s: function(dateObj) {
5649
+ return dateObj.getSeconds();
5650
+ },
5651
+ ss: function(dateObj) {
5652
+ return pad(dateObj.getSeconds());
5653
+ },
5654
+ S: function(dateObj) {
5655
+ return Math.round(dateObj.getMilliseconds() / 100);
5656
+ },
5657
+ SS: function(dateObj) {
5658
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5659
+ },
5660
+ SSS: function(dateObj) {
5661
+ return pad(dateObj.getMilliseconds(), 3);
5662
+ },
5663
+ a: function(dateObj) {
5664
+ return dateObj.getHours() < 12 ? '上午' : '下午';
5665
+ },
5666
+ A: function(dateObj) {
5667
+ return dateObj.getHours() < 12 ? '上午' : '下午';
5668
+ },
5669
+ ZZ: function(dateObj) {
5670
+ const o = dateObj.getTimezoneOffset();
5671
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5672
+ }
5673
+ };
5674
+
5675
+ const parseFlags = {
5676
+ d: [twoDigits, function (d, v) {
5677
+ d.day = v;
5678
+ }],
5679
+ Do: [twoDigits + word, function (d, v) {
5680
+ d.day = parseInt(v, 10);
5681
+ }],
5682
+ M: [twoDigits, function (d, v) {
5683
+ d.month = v - 1;
5684
+ }],
5685
+ yy: [twoDigits, function (d, v) {
5686
+ const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
5687
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5688
+ }],
5689
+ h: [twoDigits, function (d, v) {
5690
+ d.hour = v;
5691
+ }],
5692
+ m: [twoDigits, function (d, v) {
5693
+ d.minute = v;
5694
+ }],
5695
+ s: [twoDigits, function (d, v) {
5696
+ d.second = v;
5697
+ }],
5698
+ yyyy: [fourDigits, function (d, v) {
5699
+ d.year = v;
5700
+ }],
5701
+ S: ['\\d', function (d, v) {
5702
+ d.millisecond = v * 100;
5703
+ }],
5704
+ SS: ['\\d{2}', function (d, v) {
5705
+ d.millisecond = v * 10;
5706
+ }],
5707
+ SSS: [threeDigits, function (d, v) {
5708
+ d.millisecond = v;
5709
+ }],
5710
+ D: [twoDigits, noop],
5711
+ ddd: [word, noop],
5712
+ MMM: [word, monthUpdate('monthNamesShort')],
5713
+ MMMM: [word, monthUpdate('monthNames')],
5714
+ a: [word, function (d, v) {
5715
+ const val = v.toLowerCase();
5716
+ if (val === '上午') {
5717
+ d.isPm = false;
5718
+ } else if (val === '下午') {
5719
+ d.isPm = true;
5720
+ }
5721
+ }],
5722
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5723
+ let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
5724
+
5725
+ if (parts) {
5726
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5727
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5728
+ }
5729
+ }]
5730
+ };
5731
+ parseFlags.dd = parseFlags.d;
5732
+ parseFlags.dddd = parseFlags.ddd;
5733
+ parseFlags.DD = parseFlags.D;
5734
+ parseFlags.mm = parseFlags.m;
5735
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5736
+ parseFlags.MM = parseFlags.M;
5737
+ parseFlags.ss = parseFlags.s;
5738
+ parseFlags.A = parseFlags.a;
5739
+
5740
+
5741
+ // Some common format strings
5742
+ fecha.masks = {
5743
+ default: 'ddd MMM dd yyyy HH:mm:ss',
5744
+ shortDate: 'M/D/yy',
5745
+ mediumDate: 'MMM d, yyyy',
5746
+ longDate: 'MMMM d, yyyy',
5747
+ fullDate: 'dddd, MMMM d, yyyy',
5748
+ shortTime: 'HH:mm',
5749
+ mediumTime: 'HH:mm:ss',
5750
+ longTime: 'HH:mm:ss.SSS'
5751
+ };
5752
+
5727
5753
  /***
5728
5754
  * Format a date
5729
5755
  * @method format
5730
5756
  * @param {Date|number} dateObj
5731
5757
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
5732
- */
5733
- fecha.format = function (dateObj, mask) {
5734
- if (typeof dateObj === 'number') {
5735
- dateObj = new Date(dateObj);
5736
- }
5737
-
5738
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5739
- throw new Error('Invalid Date in fecha.format');
5740
- }
5741
-
5742
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
5743
-
5744
- var literals = [];
5745
-
5746
- // Make literals inactive by replacing them with ??
5747
- mask = mask.replace(literal, function ($0, $1) {
5748
- literals.push($1);
5749
- return '@@@';
5750
- });
5751
- // Apply formatting rules
5752
- mask = mask.replace(token, function ($0) {
5753
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
5754
- });
5755
- // Inline literal values back into the formatted value
5756
- return mask.replace(/@@@/g, function () {
5757
- return literals.shift();
5758
- });
5759
- };
5760
-
5758
+ */
5759
+ fecha.format = function (dateObj, mask) {
5760
+ if (typeof dateObj === 'number') {
5761
+ dateObj = new Date(dateObj);
5762
+ }
5763
+
5764
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5765
+ throw new Error('Invalid Date in fecha.format');
5766
+ }
5767
+
5768
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
5769
+
5770
+ const literals = [];
5771
+
5772
+ // Make literals inactive by replacing them with ??
5773
+ mask = mask.replace(literal, function($0, $1) {
5774
+ literals.push($1);
5775
+ return '@@@';
5776
+ });
5777
+ // Apply formatting rules
5778
+ mask = mask.replace(token, function ($0) {
5779
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
5780
+ });
5781
+ // Inline literal values back into the formatted value
5782
+ return mask.replace(/@@@/g, function() {
5783
+ return literals.shift();
5784
+ });
5785
+ };
5786
+
5761
5787
  /**
5762
5788
  * Parse a date string into an object, changes - into /
5763
5789
  * @method parse
5764
5790
  * @param {string} dateStr Date string
5765
5791
  * @param {string} format Date parse format
5766
5792
  * @returns {Date|boolean}
5767
- */
5768
- fecha.parse = function (dateStr, format) {
5769
- if (typeof format !== 'string') {
5770
- throw new Error('Invalid format in fecha.parse');
5771
- }
5772
-
5773
- format = fecha.masks[format] || format;
5774
-
5775
- // Avoid regular expression denial of service, fail early for really long strings
5776
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5777
- if (dateStr.length > 1000) {
5778
- return null;
5779
- }
5780
-
5781
- var dateInfo = {};
5782
- var parseInfo = [];
5783
- var literals = [];
5784
- format = format.replace(literal, function ($0, $1) {
5785
- literals.push($1);
5786
- return '@@@';
5787
- });
5788
- var newFormat = regexEscape(format).replace(token, function ($0) {
5789
- if (parseFlags[$0]) {
5790
- var info = parseFlags[$0];
5791
- parseInfo.push(info[1]);
5792
- return '(' + info[0] + ')';
5793
- }
5794
-
5795
- return $0;
5796
- });
5797
- newFormat = newFormat.replace(/@@@/g, function () {
5798
- return literals.shift();
5799
- });
5800
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
5801
- if (!matches) {
5802
- return null;
5803
- }
5804
-
5805
- for (var i = 1; i < matches.length; i++) {
5806
- parseInfo[i - 1](dateInfo, matches[i]);
5807
- }
5808
-
5809
- var today = new Date();
5810
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5811
- dateInfo.hour = +dateInfo.hour + 12;
5812
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5813
- dateInfo.hour = 0;
5814
- }
5815
-
5816
- var date = void 0;
5817
- if (dateInfo.timezoneOffset != null) {
5818
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5819
- 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));
5820
- } else {
5821
- 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);
5822
- }
5823
- return date;
5824
- };
5825
-
5826
- // 导出fecha对象
5827
-
5828
-
5829
- // 以下是从date-util.js合并的函数
5830
- var newArray = function newArray(start, end) {
5831
- var result = [];
5832
- for (var i = start; i <= end; i++) {
5833
- result.push(i);
5834
- }
5835
- return result;
5836
- };
5837
-
5838
- var getSettings = function getSettings() {
5839
- return {
5840
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
5841
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
5842
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
5843
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
5844
- amPm: ['上午', '下午']
5845
- };
5846
- };
5847
-
5848
- var toDate = function toDate(date) {
5849
- return isDate(date) ? new Date(date) : null;
5850
- };
5851
-
5852
- var isDate = function isDate(date) {
5853
- if (date === null || date === undefined) return false;
5854
- if (isNaN(new Date(date).getTime())) return false;
5855
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
5856
- return true;
5857
- };
5858
-
5859
- var isDateObject = function isDateObject(val) {
5860
- return val instanceof Date;
5861
- };
5862
-
5863
- var formatDate = function formatDate(date) {
5864
- var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
5865
-
5866
- // 处理多种输入类型
5867
- if (!date) return '';
5868
-
5869
- // 如果是时间戳,转成日期对象
5870
- if (typeof date === 'number') {
5871
- date = new Date(date);
5872
- }
5873
- // 如果是字符串,转成日期对象
5874
- if (typeof date === 'string') {
5875
- date = new Date(date);
5876
- }
5877
-
5878
- // 调用toDate进一步验证和转换
5879
- date = toDate(date);
5880
- if (!date) return '';
5881
-
5882
- // 兼容大写和小写的格式标记
5883
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
5884
- var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
5885
-
5886
- // 使用fecha库进行格式化,支持中文配置
5887
- var str = fecha.format(date, lowercaseFormat, getSettings());
5888
- return str;
5889
- };
5890
-
5891
- var parseDate = function parseDate(string, format) {
5892
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
5893
- };
5894
-
5895
- var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
5896
- if (month === 3 || month === 5 || month === 8 || month === 10) {
5897
- return 30;
5898
- }
5899
-
5900
- if (month === 1) {
5901
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
5902
- return 29;
5903
- } else {
5904
- return 28;
5905
- }
5906
- }
5907
-
5908
- return 31;
5909
- };
5910
-
5911
- var getDayCountOfYear = function getDayCountOfYear(year) {
5912
- var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
5913
- return isLeapYear ? 366 : 365;
5914
- };
5915
-
5916
- var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
5917
- var temp = new Date(date.getTime());
5918
- temp.setDate(1);
5919
- return temp.getDay();
5920
- };
5921
-
5922
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
5923
- // {prev, next} Date should work for Daylight Saving Time
5924
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
5925
- var prevDate = function prevDate(date) {
5926
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5927
-
5928
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
5929
- };
5930
-
5931
- var nextDate = function nextDate(date) {
5932
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5933
-
5934
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
5935
- };
5936
-
5937
- var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
5938
- var result = new Date(year, month, 1);
5939
- var day = result.getDay();
5940
-
5941
- if (day === 0) {
5942
- return prevDate(result, 7);
5943
- } else {
5944
- return prevDate(result, day);
5945
- }
5946
- };
5947
-
5948
- var getWeekNumber = function getWeekNumber(date) {
5949
- // 支持多种输入类型
5950
- if (!date || !isDate(date)) {
5951
- date = new Date();
5952
- }
5953
- if (typeof date === 'string') {
5954
- date = new Date(date);
5955
- }
5956
-
5957
- // 验证日期有效性
5958
- if (!isDate(date)) return null;
5959
-
5960
- var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
5961
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
5962
- // 将星期日的星期数设为7
5963
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
5964
- // 获取当年的第一天
5965
- var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
5966
- // 计算到最近的星期四的完整周数
5967
- var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
5968
- // 返回周数
5969
- return weekNo;
5970
- };
5971
-
5972
- var getRangeHours = function getRangeHours(ranges) {
5973
- var hours = [];
5974
- var disabledHours = [];
5975
-
5976
- (ranges || []).forEach(function (range) {
5977
- var value = range.map(function (date) {
5978
- return date.getHours();
5979
- });
5980
-
5981
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
5982
- });
5983
-
5984
- if (disabledHours.length) {
5985
- for (var i = 0; i < 24; i++) {
5986
- hours[i] = disabledHours.indexOf(i) === -1;
5987
- }
5988
- } else {
5989
- for (var _i = 0; _i < 24; _i++) {
5990
- hours[_i] = false;
5991
- }
5992
- }
5993
-
5994
- return hours;
5995
- };
5996
-
5997
- var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
5998
- if (amount <= 0) return [];
5999
- var temp = new Date(date.getTime());
6000
- temp.setDate(0);
6001
- var lastDay = temp.getDate();
6002
- return range(amount).map(function (_, index) {
6003
- return lastDay - (amount - index - 1);
6004
- });
6005
- };
6006
-
6007
- var getMonthDays = function getMonthDays(date) {
6008
- var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
6009
- var days = temp.getDate();
6010
- return range(days).map(function (_, index) {
6011
- return index + 1;
6012
- });
6013
- };
6014
-
6015
- function setRangeData(arr, start, end, value) {
6016
- for (var i = start; i < end; i++) {
6017
- arr[i] = value;
6018
- }
6019
- }
6020
-
6021
- var getRangeMinutes = function getRangeMinutes(ranges, hour) {
6022
- var minutes = new Array(60);
6023
-
6024
- if (ranges.length > 0) {
6025
- ranges.forEach(function (range) {
6026
- var start = range[0];
6027
- var end = range[1];
6028
- var startHour = start.getHours();
6029
- var startMinute = start.getMinutes();
6030
- var endHour = end.getHours();
6031
- var endMinute = end.getMinutes();
6032
- if (startHour === hour && endHour !== hour) {
6033
- setRangeData(minutes, startMinute, 60, true);
6034
- } else if (startHour === hour && endHour === hour) {
6035
- setRangeData(minutes, startMinute, endMinute + 1, true);
6036
- } else if (startHour !== hour && endHour === hour) {
6037
- setRangeData(minutes, 0, endMinute + 1, true);
6038
- } else if (startHour < hour && endHour > hour) {
6039
- setRangeData(minutes, 0, 60, true);
6040
- }
6041
- });
6042
- } else {
6043
- setRangeData(minutes, 0, 60, true);
6044
- }
6045
- return minutes;
6046
- };
6047
-
6048
- var range = function range(n) {
6049
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
6050
- return Array.apply(null, { length: n }).map(function (_, n) {
6051
- return n;
6052
- });
6053
- };
6054
-
6055
- var modifyDate = function modifyDate(date, y, m, d) {
6056
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
6057
- };
6058
-
6059
- var modifyTime = function modifyTime(date, h, m, s) {
6060
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
6061
- };
6062
-
6063
- var modifyWithTimeString = function modifyWithTimeString(date, time) {
6064
- if (date == null || !time) {
6065
- return date;
6066
- }
6067
- time = parseDate(time, 'HH:mm:ss');
6068
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
6069
- };
6070
-
6071
- var clearTime = function clearTime(date) {
6072
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
6073
- };
6074
-
6075
- var clearMilliseconds = function clearMilliseconds(date) {
6076
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
6077
- };
6078
-
6079
- var limitTimeRange = function limitTimeRange(date, ranges) {
6080
- var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
6081
-
6082
- // TODO: refactory a more elegant solution
6083
- if (ranges.length === 0) return date;
6084
- var normalizeDate = function normalizeDate(date) {
6085
- return fecha.parse(fecha.format(date, format), format);
6086
- };
6087
- var ndate = normalizeDate(date);
6088
- var nranges = ranges.map(function (range) {
6089
- return range.map(normalizeDate);
6090
- });
6091
- if (nranges.some(function (nrange) {
6092
- return ndate >= nrange[0] && ndate <= nrange[1];
6093
- })) return date;
6094
-
6095
- var minDate = nranges[0][0];
6096
- var maxDate = nranges[0][0];
6097
-
6098
- nranges.forEach(function (nrange) {
6099
- minDate = new Date(Math.min(nrange[0], minDate));
6100
- maxDate = new Date(Math.max(nrange[1], minDate));
6101
- });
6102
-
6103
- var ret = ndate < minDate ? minDate : maxDate;
6104
- // preserve Year/Month/Date
6105
- return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
6106
- };
6107
-
6108
- var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
6109
- var limitedDate = limitTimeRange(date, selectableRange, format);
6110
- return limitedDate.getTime() === date.getTime();
6111
- };
6112
-
6113
- var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
6114
- // clamp date to the number of days in `year`, `month`
6115
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
6116
- var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
6117
- return modifyDate(date, year, month, monthDate);
6118
- };
6119
-
6120
- var prevMonth = function prevMonth(date) {
6121
- var year = date.getFullYear();
6122
- var month = date.getMonth();
6123
- return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
6124
- };
6125
-
6126
- var nextMonth = function nextMonth(date) {
6127
- var year = date.getFullYear();
6128
- var month = date.getMonth();
6129
- return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
6130
- };
6131
-
6132
- var prevYear = function prevYear(date) {
6133
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6134
-
6135
- var year = date.getFullYear();
6136
- var month = date.getMonth();
6137
- return changeYearMonthAndClampDate(date, year - amount, month);
6138
- };
6139
-
6140
- var nextYear = function nextYear(date) {
6141
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6142
-
6143
- var year = date.getFullYear();
6144
- var month = date.getMonth();
6145
- return changeYearMonthAndClampDate(date, year + amount, month);
6146
- };
6147
-
6148
- var extractDateFormat = function extractDateFormat(format) {
6149
- return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
6150
- };
6151
-
6152
- var extractTimeFormat = function extractTimeFormat(format) {
6153
- return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
6154
- };
6155
-
6156
- var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
6157
- return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
6158
- };
6159
-
5793
+ */
5794
+ fecha.parse = function (dateStr, format) {
5795
+ if (typeof format !== 'string') {
5796
+ throw new Error('Invalid format in fecha.parse');
5797
+ }
5798
+
5799
+ format = fecha.masks[format] || format;
5800
+
5801
+ // Avoid regular expression denial of service, fail early for really long strings
5802
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5803
+ if (dateStr.length > 1000) {
5804
+ return null;
5805
+ }
5806
+
5807
+ const dateInfo = {};
5808
+ const parseInfo = [];
5809
+ const literals = [];
5810
+ format = format.replace(literal, function($0, $1) {
5811
+ literals.push($1);
5812
+ return '@@@';
5813
+ });
5814
+ let newFormat = regexEscape(format).replace(token, function ($0) {
5815
+ if (parseFlags[$0]) {
5816
+ const info = parseFlags[$0];
5817
+ parseInfo.push(info[1]);
5818
+ return '(' + info[0] + ')';
5819
+ }
5820
+
5821
+ return $0;
5822
+ });
5823
+ newFormat = newFormat.replace(/@@@/g, function() {
5824
+ return literals.shift();
5825
+ });
5826
+ const matches = dateStr.match(new RegExp(newFormat, 'i'));
5827
+ if (!matches) {
5828
+ return null;
5829
+ }
5830
+
5831
+ for (let i = 1; i < matches.length; i++) {
5832
+ parseInfo[i - 1](dateInfo, matches[i]);
5833
+ }
5834
+
5835
+ const today = new Date();
5836
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5837
+ dateInfo.hour = +dateInfo.hour + 12;
5838
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5839
+ dateInfo.hour = 0;
5840
+ }
5841
+
5842
+ let date;
5843
+ if (dateInfo.timezoneOffset != null) {
5844
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5845
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
5846
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
5847
+ } else {
5848
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
5849
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
5850
+ }
5851
+ return date;
5852
+ };
5853
+
5854
+ // 导出fecha对象
5855
+
5856
+
5857
+ // 以下是从date-util.js合并的函数
5858
+ const newArray = function(start, end) {
5859
+ let result = [];
5860
+ for (let i = start; i <= end; i++) {
5861
+ result.push(i);
5862
+ }
5863
+ return result;
5864
+ };
5865
+
5866
+ const getSettings = () => {
5867
+ return {
5868
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
5869
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
5870
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
5871
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
5872
+ amPm: ['上午', '下午']
5873
+ };
5874
+ };
5875
+
5876
+ const toDate = function(date) {
5877
+ return isDate(date) ? new Date(date) : null;
5878
+ };
5879
+
5880
+ const isDate = function(date) {
5881
+ if (date === null || date === undefined) return false;
5882
+ if (isNaN(new Date(date).getTime())) return false;
5883
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
5884
+ return true;
5885
+ };
5886
+
5887
+ const isDateObject = function(val) {
5888
+ return val instanceof Date;
5889
+ };
5890
+
5891
+ const formatDate = function (date, format = 'yyyy-MM-dd') {
5892
+ // 处理多种输入类型
5893
+ if (!date) return '';
5894
+
5895
+ // 如果是时间戳,转成日期对象
5896
+ if (typeof date === 'number') {
5897
+ date = new Date(date);
5898
+ }
5899
+ // 如果是字符串,转成日期对象
5900
+ if (typeof date === 'string') {
5901
+ date = new Date(date);
5902
+ }
5903
+
5904
+ // 调用toDate进一步验证和转换
5905
+ date = toDate(date);
5906
+ if (!date) return '';
5907
+
5908
+ // 兼容大写和小写的格式标记
5909
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
5910
+ const lowercaseFormat = format
5911
+ .replace(/YYYY/g, 'yyyy')
5912
+ .replace(/D/g, 'd')
5913
+
5914
+ // 使用fecha库进行格式化,支持中文配置
5915
+ const str = fecha.format(date, lowercaseFormat, getSettings());
5916
+ return str;
5917
+ };
5918
+
5919
+ const parseDate = function(string, format) {
5920
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
5921
+ };
5922
+
5923
+ const getDayCountOfMonth = function(year, month) {
5924
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
5925
+ return 30;
5926
+ }
5927
+
5928
+ if (month === 1) {
5929
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
5930
+ return 29;
5931
+ } else {
5932
+ return 28;
5933
+ }
5934
+ }
5935
+
5936
+ return 31;
5937
+ };
5938
+
5939
+ const getDayCountOfYear = function(year) {
5940
+ const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
5941
+ return isLeapYear ? 366 : 365;
5942
+ };
5943
+
5944
+ const getFirstDayOfMonth = function(date) {
5945
+ const temp = new Date(date.getTime());
5946
+ temp.setDate(1);
5947
+ return temp.getDay();
5948
+ };
5949
+
5950
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
5951
+ // {prev, next} Date should work for Daylight Saving Time
5952
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
5953
+ const prevDate = function(date, amount = 1) {
5954
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
5955
+ };
5956
+
5957
+ const nextDate = function(date, amount = 1) {
5958
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
5959
+ };
5960
+
5961
+ const getStartDateOfMonth = function(year, month) {
5962
+ const result = new Date(year, month, 1);
5963
+ const day = result.getDay();
5964
+
5965
+ if (day === 0) {
5966
+ return prevDate(result, 7);
5967
+ } else {
5968
+ return prevDate(result, day);
5969
+ }
5970
+ };
5971
+
5972
+ const getWeekNumber = function(date) {
5973
+ // 支持多种输入类型
5974
+ if (!date||!isDate(date)) {
5975
+ date = new Date();
5976
+ }
5977
+ if (typeof date === 'string') {
5978
+ date = new Date(date);
5979
+ }
5980
+
5981
+ // 验证日期有效性
5982
+ if (!isDate(date)) return null;
5983
+
5984
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
5985
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
5986
+ // 将星期日的星期数设为7
5987
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
5988
+ // 获取当年的第一天
5989
+ const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
5990
+ // 计算到最近的星期四的完整周数
5991
+ const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
5992
+ // 返回周数
5993
+ return weekNo;
5994
+ };
5995
+
5996
+ const getRangeHours = function(ranges) {
5997
+ const hours = [];
5998
+ let disabledHours = [];
5999
+
6000
+ (ranges || []).forEach(range => {
6001
+ const value = range.map(date => date.getHours());
6002
+
6003
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
6004
+ });
6005
+
6006
+ if (disabledHours.length) {
6007
+ for (let i = 0; i < 24; i++) {
6008
+ hours[i] = disabledHours.indexOf(i) === -1;
6009
+ }
6010
+ } else {
6011
+ for (let i = 0; i < 24; i++) {
6012
+ hours[i] = false;
6013
+ }
6014
+ }
6015
+
6016
+ return hours;
6017
+ };
6018
+
6019
+ const getPrevMonthLastDays = (date, amount) => {
6020
+ if (amount <= 0) return [];
6021
+ const temp = new Date(date.getTime());
6022
+ temp.setDate(0);
6023
+ const lastDay = temp.getDate();
6024
+ return range(amount).map((_, index) => lastDay - (amount - index - 1));
6025
+ };
6026
+
6027
+ const getMonthDays = (date) => {
6028
+ const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
6029
+ const days = temp.getDate();
6030
+ return range(days).map((_, index) => index + 1);
6031
+ };
6032
+
6033
+ function setRangeData(arr, start, end, value) {
6034
+ for (let i = start; i < end; i++) {
6035
+ arr[i] = value;
6036
+ }
6037
+ }
6038
+
6039
+ const getRangeMinutes = function(ranges, hour) {
6040
+ const minutes = new Array(60);
6041
+
6042
+ if (ranges.length > 0) {
6043
+ ranges.forEach(range => {
6044
+ const start = range[0];
6045
+ const end = range[1];
6046
+ const startHour = start.getHours();
6047
+ const startMinute = start.getMinutes();
6048
+ const endHour = end.getHours();
6049
+ const endMinute = end.getMinutes();
6050
+ if (startHour === hour && endHour !== hour) {
6051
+ setRangeData(minutes, startMinute, 60, true);
6052
+ } else if (startHour === hour && endHour === hour) {
6053
+ setRangeData(minutes, startMinute, endMinute + 1, true);
6054
+ } else if (startHour !== hour && endHour === hour) {
6055
+ setRangeData(minutes, 0, endMinute + 1, true);
6056
+ } else if (startHour < hour && endHour > hour) {
6057
+ setRangeData(minutes, 0, 60, true);
6058
+ }
6059
+ });
6060
+ } else {
6061
+ setRangeData(minutes, 0, 60, true);
6062
+ }
6063
+ return minutes;
6064
+ };
6065
+
6066
+ const range = function(n) {
6067
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
6068
+ return Array.apply(null, {length: n}).map((_, n) => n);
6069
+ };
6070
+
6071
+ const modifyDate = function(date, y, m, d) {
6072
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
6073
+ };
6074
+
6075
+ const modifyTime = function(date, h, m, s) {
6076
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
6077
+ };
6078
+
6079
+ const modifyWithTimeString = (date, time) => {
6080
+ if (date == null || !time) {
6081
+ return date;
6082
+ }
6083
+ time = parseDate(time, 'HH:mm:ss');
6084
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
6085
+ };
6086
+
6087
+ const clearTime = function(date) {
6088
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
6089
+ };
6090
+
6091
+ const clearMilliseconds = function(date) {
6092
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
6093
+ };
6094
+
6095
+ const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
6096
+ // TODO: refactory a more elegant solution
6097
+ if (ranges.length === 0) return date;
6098
+ const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
6099
+ const ndate = normalizeDate(date);
6100
+ const nranges = ranges.map(range => range.map(normalizeDate));
6101
+ if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
6102
+
6103
+ let minDate = nranges[0][0];
6104
+ let maxDate = nranges[0][0];
6105
+
6106
+ nranges.forEach(nrange => {
6107
+ minDate = new Date(Math.min(nrange[0], minDate));
6108
+ maxDate = new Date(Math.max(nrange[1], minDate));
6109
+ });
6110
+
6111
+ const ret = ndate < minDate ? minDate : maxDate;
6112
+ // preserve Year/Month/Date
6113
+ return modifyDate(
6114
+ ret,
6115
+ date.getFullYear(),
6116
+ date.getMonth(),
6117
+ date.getDate()
6118
+ );
6119
+ };
6120
+
6121
+ const timeWithinRange = function(date, selectableRange, format) {
6122
+ const limitedDate = limitTimeRange(date, selectableRange, format);
6123
+ return limitedDate.getTime() === date.getTime();
6124
+ };
6125
+
6126
+ const changeYearMonthAndClampDate = function(date, year, month) {
6127
+ // clamp date to the number of days in `year`, `month`
6128
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
6129
+ const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
6130
+ return modifyDate(date, year, month, monthDate);
6131
+ };
6132
+
6133
+ const prevMonth = function(date) {
6134
+ const year = date.getFullYear();
6135
+ const month = date.getMonth();
6136
+ return month === 0
6137
+ ? changeYearMonthAndClampDate(date, year - 1, 11)
6138
+ : changeYearMonthAndClampDate(date, year, month - 1);
6139
+ };
6140
+
6141
+ const nextMonth = function(date) {
6142
+ const year = date.getFullYear();
6143
+ const month = date.getMonth();
6144
+ return month === 11
6145
+ ? changeYearMonthAndClampDate(date, year + 1, 0)
6146
+ : changeYearMonthAndClampDate(date, year, month + 1);
6147
+ };
6148
+
6149
+ const prevYear = function(date, amount = 1) {
6150
+ const year = date.getFullYear();
6151
+ const month = date.getMonth();
6152
+ return changeYearMonthAndClampDate(date, year - amount, month);
6153
+ };
6154
+
6155
+ const nextYear = function(date, amount = 1) {
6156
+ const year = date.getFullYear();
6157
+ const month = date.getMonth();
6158
+ return changeYearMonthAndClampDate(date, year + amount, month);
6159
+ };
6160
+
6161
+ const extractDateFormat = function(format) {
6162
+ return format
6163
+ .replace(/\W?m{1,2}|\W?ZZ/g, '')
6164
+ .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
6165
+ .trim();
6166
+ };
6167
+
6168
+ const extractTimeFormat = function(format) {
6169
+ return format
6170
+ .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
6171
+ .trim();
6172
+ };
6173
+
6174
+ const validateRangeInOneMonth = function(start, end) {
6175
+ return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
6176
+ };
6177
+
6160
6178
  /**
6161
6179
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
6162
6180
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
6163
6181
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
6164
6182
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
6165
6183
  * @returns {number} 工作日数量
6166
- */
6167
- var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
6168
- var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
6169
-
6170
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
6171
- throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
6172
- }
6173
-
6174
- var startDateObj = new Date(start_date);
6175
- var endDateObj = new Date(end_date);
6176
-
6177
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
6178
- throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
6179
- }
6180
-
6181
- if (startDateObj > endDateObj) {
6182
- throw new Error('Start date should be earlier than or equal to end date.');
6183
- }
6184
-
6185
- var workdays = 0;
6186
-
6187
- // Iterate through each day in the date range
6188
-
6189
- var _loop = function _loop(currentDate) {
6190
- // Check if the current day is a weekend (Saturday or Sunday)
6191
- var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
6192
-
6193
- // Check if the current day is a holiday
6194
- var isHoliday = holidays.some(function (holiday) {
6195
- var holidayDate = new Date(holiday);
6196
- return currentDate.toDateString() === holidayDate.toDateString();
6197
- });
6198
-
6199
- // If it's a workday (not a weekend or holiday), increment the workdays count
6200
- if (!isWeekend && !isHoliday) {
6201
- workdays++;
6202
- }
6203
- };
6204
-
6205
- for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
6206
- _loop(currentDate);
6207
- }
6208
-
6209
- return workdays;
6210
- };
6211
-
6184
+ */
6185
+ const calculateNetworkDays = function (start_date, end_date, holidays = []) {
6186
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
6187
+ throw new Error(
6188
+ "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
6189
+ );
6190
+ }
6191
+
6192
+ const startDateObj = new Date(start_date);
6193
+ const endDateObj = new Date(end_date);
6194
+
6195
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
6196
+ throw new Error(
6197
+ "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
6198
+ );
6199
+ }
6200
+
6201
+ if (startDateObj > endDateObj) {
6202
+ throw new Error('Start date should be earlier than or equal to end date.');
6203
+ }
6204
+
6205
+ let workdays = 0;
6206
+
6207
+ // Iterate through each day in the date range
6208
+ for (
6209
+ let currentDate = new Date(startDateObj);
6210
+ currentDate <= endDateObj;
6211
+ currentDate.setDate(currentDate.getDate() + 1)
6212
+ ) {
6213
+ // Check if the current day is a weekend (Saturday or Sunday)
6214
+ const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
6215
+
6216
+ // Check if the current day is a holiday
6217
+ const isHoliday = holidays.some((holiday) => {
6218
+ const holidayDate = new Date(holiday);
6219
+ return currentDate.toDateString() === holidayDate.toDateString();
6220
+ });
6221
+
6222
+ // If it's a workday (not a weekend or holiday), increment the workdays count
6223
+ if (!isWeekend && !isHoliday) {
6224
+ workdays++;
6225
+ }
6226
+ }
6227
+
6228
+ return workdays;
6229
+ };
6230
+
6212
6231
  /**
6213
6232
  * 日期加减天数
6214
6233
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
6215
6234
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
6216
6235
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
6217
- */
6218
- var dateAddDays = function dateAddDays(start_date, days) {
6219
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
6220
- 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.");
6221
- }
6222
-
6223
- var startDateObj = new Date(start_date);
6224
- if (isNaN(startDateObj.getTime())) {
6225
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6226
- }
6227
-
6228
- var resultDateObj = new Date(startDateObj);
6229
- resultDateObj.setDate(resultDateObj.getDate() + days);
6230
-
6231
- var resultYear = resultDateObj.getFullYear();
6232
- var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
6233
- var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
6234
-
6235
- return resultYear + '-' + resultMonth + '-' + resultDay;
6236
- };
6237
-
6236
+ */
6237
+ const dateAddDays = function (start_date, days) {
6238
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
6239
+ throw new Error(
6240
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
6241
+ );
6242
+ }
6243
+
6244
+ const startDateObj = new Date(start_date);
6245
+ if (isNaN(startDateObj.getTime())) {
6246
+ throw new Error(
6247
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
6248
+ );
6249
+ }
6250
+
6251
+ const resultDateObj = new Date(startDateObj);
6252
+ resultDateObj.setDate(resultDateObj.getDate() + days);
6253
+
6254
+ const resultYear = resultDateObj.getFullYear();
6255
+ const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
6256
+ const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
6257
+
6258
+ return `${resultYear}-${resultMonth}-${resultDay}`;
6259
+ };
6260
+
6238
6261
  /**
6239
6262
  * 计算两个日期之间的差值
6240
6263
  * @date 2023年12月14日
@@ -6242,180 +6265,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
6242
6265
  * @param {String} end_date - 结束日期字符串
6243
6266
  * @param {String} unit - 单位:year/month/day
6244
6267
  * @returns {Number} 差值
6245
- */
6246
- var dateDiff = function dateDiff(start_date, end_date) {
6247
- var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
6248
-
6249
- // Assuming date strings are in "YYYY-MM-DD" format
6250
- var startDate = new Date(start_date);
6251
- var endDate = new Date(end_date);
6252
-
6253
- // If the date is invalid, return 0
6254
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6255
- return 0;
6256
- }
6257
-
6258
- if (unit === 'year') {
6259
- return endDate.getFullYear() - startDate.getFullYear();
6260
- } else if (unit === 'month') {
6261
- return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
6262
- } else {
6263
- // Default to day
6264
- var timeDifference = endDate - startDate;
6265
- // Calculate days (86400000 milliseconds per day)
6266
- return Math.floor(timeDifference / 86400000);
6267
- }
6268
- };
6269
-
6268
+ */
6269
+ const dateDiff = function (start_date, end_date, unit = 'day') {
6270
+ // Assuming date strings are in "YYYY-MM-DD" format
6271
+ var startDate = new Date(start_date);
6272
+ var endDate = new Date(end_date);
6273
+
6274
+ // If the date is invalid, return 0
6275
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6276
+ return 0;
6277
+ }
6278
+
6279
+ if (unit === 'year') {
6280
+ return endDate.getFullYear() - startDate.getFullYear();
6281
+ } else if (unit === 'month') {
6282
+ return (
6283
+ (endDate.getFullYear() - startDate.getFullYear()) * 12 +
6284
+ (endDate.getMonth() - startDate.getMonth())
6285
+ );
6286
+ } else {
6287
+ // Default to day
6288
+ var timeDifference = endDate - startDate;
6289
+ // Calculate days (86400000 milliseconds per day)
6290
+ return Math.floor(timeDifference / 86400000);
6291
+ }
6292
+ };
6293
+
6270
6294
  /**
6271
6295
  * 获取月份中的日期
6272
6296
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
6273
6297
  * @returns {number} 月份中的日期(1-31)
6274
- */
6275
- var dayOfMonth = function dayOfMonth(date) {
6276
- if (typeof date !== 'string') {
6277
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6278
- }
6279
-
6280
- var dateObj = new Date(date);
6281
- if (isNaN(dateObj.getTime())) {
6282
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6283
- }
6284
-
6285
- return dateObj.getDate();
6286
- };
6287
-
6298
+ */
6299
+ const dayOfMonth = function (date) {
6300
+ if (typeof date !== 'string') {
6301
+ throw new Error(
6302
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
6303
+ );
6304
+ }
6305
+
6306
+ const dateObj = new Date(date);
6307
+ if (isNaN(dateObj.getTime())) {
6308
+ throw new Error(
6309
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
6310
+ );
6311
+ }
6312
+
6313
+ return dateObj.getDate();
6314
+ };
6315
+
6288
6316
  /**
6289
6317
  * 获取当前日期
6290
6318
  * @date 2022年5月7日
6291
6319
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
6292
6320
  * @returns {string} 当前日期的格式化字符串
6293
- */
6294
- var getCurrentDate = function getCurrentDate() {
6295
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
6296
-
6297
- return formatDate(new Date(), format);
6298
- };
6299
-
6321
+ */
6322
+ const getCurrentDate = function (format = 'YYYY-MM-DD') {
6323
+ return formatDate(new Date(), format);
6324
+ };
6325
+
6300
6326
  /**
6301
6327
  * 获取当前日期时间
6302
6328
  * @date 2022年5月7日
6303
6329
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
6304
6330
  * @returns {string} 当前日期时间的格式化字符串
6305
- */
6306
- var getCurrentDateTime = function getCurrentDateTime() {
6307
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
6308
-
6309
- return formatDate(new Date(), format);
6310
- };
6311
-
6331
+ */
6332
+ const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
6333
+ return formatDate(new Date(), format);
6334
+ };
6335
+
6312
6336
  /**
6313
6337
  * 获取小时
6314
6338
  * @date 2022年5月7日
6315
6339
  * @param {Date|string} [date] - 日期对象或日期字符串
6316
6340
  * @returns {number} 小时数(0-23)
6317
- */
6318
- var getHour = function getHour(date) {
6319
- if (!date) {
6320
- return new Date().getHours();
6321
- }
6322
- if (typeof date === 'string') {
6323
- date = new Date(date);
6324
- }
6325
- return date.getHours();
6326
- };
6327
-
6341
+ */
6342
+ const getHour = function (date) {
6343
+ if (!date) {
6344
+ return new Date().getHours();
6345
+ }
6346
+ if (typeof date === 'string') {
6347
+ date = new Date(date);
6348
+ }
6349
+ return date.getHours();
6350
+ };
6351
+
6328
6352
  /**
6329
6353
  * 获取分钟
6330
6354
  * @date 2022年5月7日
6331
6355
  * @param {Date|string} [date] - 日期对象或日期字符串
6332
6356
  * @returns {number} 分钟数(0-59)
6333
- */
6334
- var getMinute = function getMinute(date) {
6335
- if (!date) {
6336
- return new Date().getMinutes();
6337
- }
6338
- if (typeof date === 'string') {
6339
- date = new Date(date);
6340
- }
6341
- return date.getMinutes();
6342
- };
6343
-
6357
+ */
6358
+ const getMinute = function (date) {
6359
+ if (!date) {
6360
+ return new Date().getMinutes();
6361
+ }
6362
+ if (typeof date === 'string') {
6363
+ date = new Date(date);
6364
+ }
6365
+ return date.getMinutes();
6366
+ };
6367
+
6344
6368
  /**
6345
6369
  * 获取月份
6346
6370
  * @date 2022年5月7日
6347
6371
  * @param {Date|string} [date] - 日期对象或日期字符串
6348
6372
  * @returns {number} 月份数(1-12)
6349
- */
6350
- var getMonth = function getMonth(date) {
6351
- if (!date) {
6352
- return new Date().getMonth() + 1;
6353
- }
6354
- if (typeof date === 'string') {
6355
- date = new Date(date);
6356
- }
6357
- return date.getMonth() + 1;
6358
- };
6359
-
6373
+ */
6374
+ const getMonth = function (date) {
6375
+ if (!date) {
6376
+ return new Date().getMonth() + 1;
6377
+ }
6378
+ if (typeof date === 'string') {
6379
+ date = new Date(date);
6380
+ }
6381
+ return date.getMonth() + 1;
6382
+ };
6383
+
6360
6384
  /**
6361
6385
  * 获取秒
6362
6386
  * @date 2022年5月7日
6363
6387
  * @param {Date|string} [date] - 日期对象或日期字符串
6364
6388
  * @returns {number} 秒数(0-59)
6365
- */
6366
- var getSecond = function getSecond(date) {
6367
- if (!date) {
6368
- return new Date().getSeconds();
6369
- }
6370
- if (typeof date === 'string') {
6371
- date = new Date(date);
6372
- }
6373
- return date.getSeconds();
6374
- };
6375
-
6389
+ */
6390
+ const getSecond = function (date) {
6391
+ if (!date) {
6392
+ return new Date().getSeconds();
6393
+ }
6394
+ if (typeof date === 'string') {
6395
+ date = new Date(date);
6396
+ }
6397
+ return date.getSeconds();
6398
+ };
6399
+
6376
6400
  /**
6377
6401
  * 获取星期几
6378
6402
  * @date 2022年5月7日
6379
6403
  * @param {Date|string} [date] - 日期对象或日期字符串
6380
6404
  * @returns {number} 星期几(0-6,0表示星期日)
6381
- */
6382
- var getWeekday = function getWeekday(date) {
6383
- if (!date) {
6384
- return new Date().getDay();
6385
- }
6386
- if (typeof date === 'string') {
6387
- date = new Date(date);
6388
- }
6389
- return date.getDay();
6390
- };
6391
-
6405
+ */
6406
+ const getWeekday = function (date) {
6407
+ if (!date) {
6408
+ return new Date().getDay();
6409
+ }
6410
+ if (typeof date === 'string') {
6411
+ date = new Date(date);
6412
+ }
6413
+ return date.getDay();
6414
+ };
6415
+
6416
+
6392
6417
  /**
6393
6418
  * @desc 获取上午/下午/晚上
6394
6419
  * @author huangbo
6395
6420
  * @date 2022年5月7日
6396
6421
  * @param {String} [time] - 时间
6397
- **/
6398
- var timeCycle = function timeCycle(time) {
6399
- var hour = 0;
6400
- if (!time) {
6401
- hour = new Date().getHours();
6402
- } else if (typeof time === 'string') {
6403
- // 从时间字符串中提取小时
6404
- var match = time.match(/^(\d{1,2})/);
6405
- if (match) {
6406
- hour = parseInt(match[1], 10);
6407
- }
6408
- } else if (typeof time === 'number') {
6409
- hour = time;
6410
- }
6411
- // 判断时间段
6412
- if (hour >= 5 && hour < 12) {
6413
- return '上午';
6414
- } else if (hour >= 12 && hour < 18) {
6415
- return '下午';
6416
- } else {
6417
- return '晚上';
6418
- }
6422
+ **/
6423
+ const timeCycle = function (time) {
6424
+ let hour = 0;
6425
+ if (!time) {
6426
+ hour = new Date().getHours();
6427
+ } else if (typeof time === 'string') {
6428
+ // 从时间字符串中提取小时
6429
+ const match = time.match(/^(\d{1,2})/);
6430
+ if (match) {
6431
+ hour = parseInt(match[1], 10);
6432
+ }
6433
+ } else if (typeof time === 'number') {
6434
+ hour = time;
6435
+ }
6436
+ // 判断时间段
6437
+ if (hour >= 5 && hour < 12) {
6438
+ return '上午';
6439
+ } else if (hour >= 12 && hour < 18) {
6440
+ return '下午';
6441
+ } else {
6442
+ return '晚上';
6443
+ }
6419
6444
  };
6420
6445
 
6421
6446
  /***/ }),
@@ -6713,17 +6738,10 @@ var removeResizeListener = function removeResizeListener(element, fn) {
6713
6738
 
6714
6739
  /***/ }),
6715
6740
 
6716
- /***/ 28:
6717
- /***/ (function(module, exports) {
6718
-
6719
- module.exports = require("qs");
6720
-
6721
- /***/ }),
6722
-
6723
6741
  /***/ 29:
6724
6742
  /***/ (function(module, exports) {
6725
6743
 
6726
- module.exports = require("axios");
6744
+ module.exports = require("qs");
6727
6745
 
6728
6746
  /***/ }),
6729
6747
 
@@ -6835,6 +6853,13 @@ function normalizeComponent(
6835
6853
  /***/ 30:
6836
6854
  /***/ (function(module, exports) {
6837
6855
 
6856
+ module.exports = require("axios");
6857
+
6858
+ /***/ }),
6859
+
6860
+ /***/ 31:
6861
+ /***/ (function(module, exports) {
6862
+
6838
6863
  module.exports = require("json-bigint");
6839
6864
 
6840
6865
  /***/ }),
@@ -6936,7 +6961,7 @@ function isDefined(val) {
6936
6961
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doQrLogin; });
6937
6962
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return logout; });
6938
6963
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return initLogin; });
6939
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return switchUserTo; });
6964
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return switchUserTo; });
6940
6965
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return changeImg; });
6941
6966
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getLoginCode; });
6942
6967
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCodeLogin; });
@@ -6954,13 +6979,13 @@ function isDefined(val) {
6954
6979
  /* unused harmony export scanCodeRetrialAuth */
6955
6980
  /* unused harmony export codeRetrialAuth */
6956
6981
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return doAssistanceQrLogin; });
6957
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return userOnline; });
6982
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return userOnline; });
6958
6983
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUserAppWithTag; });
6959
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return recordUserApp; });
6984
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return recordUserApp; });
6960
6985
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserRecordApp; });
6961
6986
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return mainConfig; });
6962
6987
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initUserSet; });
6963
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateUserInfo; });
6988
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateUserInfo; });
6964
6989
  /* unused harmony export getUserImgUrl */
6965
6990
  /* unused harmony export getDoorIndex */
6966
6991
  /* unused harmony export refreshOnlineUsers */
@@ -6972,22 +6997,22 @@ function isDefined(val) {
6972
6997
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getByType; });
6973
6998
  /* unused harmony export getUserCustomInfo */
6974
6999
  /* unused harmony export updateUserCustomInfo */
6975
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveOrUpdate; });
6976
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return sysMsgPage; });
7000
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveOrUpdate; });
7001
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return sysMsgPage; });
6977
7002
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreSysMsg; });
6978
7003
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return ignoreAllSysMsg; });
6979
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return searchType; });
7004
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return searchType; });
6980
7005
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSysParam; });
6981
7006
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctProperties; });
6982
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploads; });
6983
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadOnlyOne; });
7007
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploads; });
7008
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadOnlyOne; });
6984
7009
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getAdjunctFileInfos; });
6985
7010
  /* unused harmony export uploadSort */
6986
7011
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return downloadByAdjunctId; });
6987
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return uploadDownloads; });
6988
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return previewAdjunct; });
6989
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct2; });
6990
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunctOffice; });
7012
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadDownloads; });
7013
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct; });
7014
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct2; });
7015
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunctOffice; });
6991
7016
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return delAdjunct; });
6992
7017
  /* unused harmony export upload_updateClassify */
6993
7018
  /* unused harmony export getDeleteAdjunctFileInfos */
@@ -7002,13 +7027,13 @@ function isDefined(val) {
7002
7027
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return gethelpdoc; });
7003
7028
  /* unused harmony export getCurrentuser */
7004
7029
  /* unused harmony export mainDetail */
7005
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toStartFlow; });
7006
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return tempSave; });
7030
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartFlow; });
7031
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tempSave; });
7007
7032
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return commonOpion; });
7008
7033
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
7009
7034
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return editCommonOpion; });
7010
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return saveCommonOpinion; });
7011
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return updateCommonOpinion; });
7035
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveCommonOpinion; });
7036
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateCommonOpinion; });
7012
7037
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return deleteCommonOpion; });
7013
7038
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getProcessDefList; });
7014
7039
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getNodeInfo; });
@@ -7017,27 +7042,27 @@ function isDefined(val) {
7017
7042
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCodes; });
7018
7043
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNotificationMsg; });
7019
7044
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getHandleInfoHtml; });
7020
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskHandleHtml; });
7045
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskHandleHtml; });
7021
7046
  /* unused harmony export getView */
7022
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return register; });
7023
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pendedhistoryList; });
7024
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskRejectHtml; });
7025
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskRejectHtml; });
7026
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartTaskRead; });
7027
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskReadIndex; });
7028
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskReadHtml; });
7029
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return rejectAndEnd; });
7030
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toSendMsg; });
7031
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return sendMsg; });
7047
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return register; });
7048
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pendedhistoryList; });
7049
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskRejectHtml; });
7050
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskRejectHtml; });
7051
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskRead; });
7052
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskReadIndex; });
7053
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskReadHtml; });
7054
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return rejectAndEnd; });
7055
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toSendMsg; });
7056
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return sendMsg; });
7032
7057
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowHtml; });
7033
7058
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return handleInfo; });
7034
7059
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return loginUserInfo; });
7035
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return wss; });
7036
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return topic; });
7060
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return wss; });
7061
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return topic; });
7037
7062
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getPresetCustomInfo; });
7038
7063
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetNodeInfo; });
7039
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTransferIndex; });
7040
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTransfer; });
7064
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTransferIndex; });
7065
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTransfer; });
7041
7066
  /* unused harmony export toPresetInfoListIndex */
7042
7067
  /* unused harmony export deletePresetInfo */
7043
7068
  /* unused harmony export historyListJson */
@@ -7045,24 +7070,24 @@ function isDefined(val) {
7045
7070
  /* unused harmony export pressListJson */
7046
7071
  /* unused harmony export deleteFlow */
7047
7072
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isCanStartSubFlow; });
7048
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskUnionExamine; });
7049
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskUnionExamine; });
7050
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskTakeAdvice; });
7051
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskTakeAdvice; });
7052
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskStartDraft; });
7053
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskSupervise; });
7054
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSuperviseSub; });
7055
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskStartDraft; });
7056
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskReview; });
7057
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskReview; });
7058
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionSeal; });
7059
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionSeal; });
7060
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTwoOfficesDispatch; });
7061
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return twoOfficesDispatch; });
7062
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toResetProcessIndex; });
7063
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return resetProcess; });
7064
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toTaskContinuationIndex; });
7065
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return taskContinuation; });
7073
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionExamine; });
7074
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionExamine; });
7075
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTakeAdvice; });
7076
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTakeAdvice; });
7077
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskStartDraft; });
7078
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSupervise; });
7079
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSuperviseSub; });
7080
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskStartDraft; });
7081
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskReview; });
7082
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskReview; });
7083
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionSeal; });
7084
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionSeal; });
7085
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTwoOfficesDispatch; });
7086
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return twoOfficesDispatch; });
7087
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toResetProcessIndex; });
7088
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return resetProcess; });
7089
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskContinuationIndex; });
7090
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskContinuation; });
7066
7091
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getFreeStartFlowParams; });
7067
7092
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlowWithSubmitTask; });
7068
7093
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkForeignOrgStartedCircularRead; });
@@ -7070,7 +7095,7 @@ function isDefined(val) {
7070
7095
  /* unused harmony export fyListJson */
7071
7096
  /* unused harmony export circularReadWithdraw */
7072
7097
  /* unused harmony export taskReadWithDraw */
7073
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
7098
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
7074
7099
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return checkBusinessIdStartedReadTransferHandle; });
7075
7100
  /* unused harmony export sendList */
7076
7101
  /* unused harmony export sendInfo */
@@ -7084,23 +7109,24 @@ function isDefined(val) {
7084
7109
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfoForStart; });
7085
7110
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return freeStartFlow; });
7086
7111
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getUrgencyLevelChangedNotificationType; });
7087
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return toFreeTaskCircularRead; });
7112
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toFreeTaskCircularRead; });
7088
7113
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeTaskCircularRead; });
7089
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageLists; });
7114
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageLists; });
7090
7115
  /* unused harmony export publishedLists */
7091
7116
  /* unused harmony export pageInfo */
7092
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageSave; });
7093
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageUpdate; });
7117
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageGroup; });
7118
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageSave; });
7119
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageUpdate; });
7094
7120
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return pageDelete; });
7095
7121
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchSave; });
7096
7122
  /* unused harmony export batchUpdate */
7097
7123
  /* unused harmony export batchDelete */
7098
7124
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchList; });
7099
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processListJson; });
7100
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processInfo; });
7101
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return processDeleteJson; });
7102
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processSave; });
7103
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processUpdate; });
7125
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processListJson; });
7126
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processInfo; });
7127
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processDeleteJson; });
7128
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processSave; });
7129
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processUpdate; });
7104
7130
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeListJson; });
7105
7131
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return nodeDeleteJson; });
7106
7132
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeSave; });
@@ -7111,22 +7137,22 @@ function isDefined(val) {
7111
7137
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return moduleDelete; });
7112
7138
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleSave; });
7113
7139
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleUpdate; });
7114
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleListJson; });
7115
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleEdit; });
7116
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleRead; });
7117
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleSave; });
7140
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleListJson; });
7141
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleEdit; });
7142
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleRead; });
7143
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleSave; });
7118
7144
  /* unused harmony export ruleSupplement */
7119
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleUndore; });
7120
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return ruleAdd; });
7145
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleUndore; });
7146
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleAdd; });
7121
7147
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return companyDetail; });
7122
7148
  /* unused harmony export issueDetailList */
7123
7149
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteRule; });
7124
7150
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParamV1; });
7125
7151
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyList; });
7126
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return supplement; });
7152
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return supplement; });
7127
7153
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return isAddSource; });
7128
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tiggerInTime; });
7129
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateHistory; });
7154
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tiggerInTime; });
7155
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateHistory; });
7130
7156
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
7131
7157
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeInTime; });
7132
7158
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
@@ -7408,6 +7434,9 @@ var pageLists = '/main2/pageComponentConfig/listJson';
7408
7434
  var publishedLists = '/main2/pageComponentConfig/listPublished';
7409
7435
  // 获取自定义配置详情
7410
7436
  var pageInfo = '/main2/pageComponentConfig/info';
7437
+ // 获取自定义配置授权列表
7438
+ var pageGroup = 'main2/pageComponentTarget/listByConfigIdAndTypeGroup';
7439
+
7411
7440
  // 保存自定义配置,发布也调这个接口但要加上字段status=1
7412
7441
  var pageSave = '/main2/pageComponentConfig/save';
7413
7442
  // 更新自定义配置
@@ -7515,12 +7544,12 @@ module.exports = require("eoss/lib/message-box");
7515
7544
  /* unused harmony export downloadZip */
7516
7545
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
7517
7546
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
7518
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
7547
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
7519
7548
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
7520
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
7549
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);
7521
7550
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
7522
7551
  /* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
7523
- /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30);
7552
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
7524
7553
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
7525
7554
  /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
7526
7555
  /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24);
@@ -7762,7 +7791,7 @@ var ajax = function ajax(_ref) {
7762
7791
  delete params[key];
7763
7792
  }
7764
7793
  }
7765
- url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: url, param: encodedParams });
7794
+ url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: url, param: encodedParams });
7766
7795
  }
7767
7796
  } else {
7768
7797
  params = {};
@@ -8120,7 +8149,7 @@ function redirectToLogin() {
8120
8149
 
8121
8150
  if (loginPage) {
8122
8151
  // 处理相对路径
8123
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "S"])(loginPage, ['http', '/'], true)) {
8152
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
8124
8153
  var pathname = '';
8125
8154
  try {
8126
8155
  pathname = window.top.location.pathname;
@@ -8152,7 +8181,7 @@ function redirectToLogin() {
8152
8181
  * @returns {Promise} 认证完成后 resolve
8153
8182
  */
8154
8183
  var initAuth = function initAuth() {
8155
- var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "t"])();
8184
+ var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])();
8156
8185
  var token = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('token') || Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('Authorization');
8157
8186
 
8158
8187
  // 已有 token 或没有认证参数,直接返回
@@ -8160,7 +8189,7 @@ var initAuth = function initAuth() {
8160
8189
  return Promise.resolve();
8161
8190
  }
8162
8191
 
8163
- var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "L"])('页面加载中...');
8192
+ var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('页面加载中...');
8164
8193
 
8165
8194
  return ajax({
8166
8195
  method: 'post',
@@ -8239,7 +8268,7 @@ var isLogined = function isLogined(_ref3) {
8239
8268
 
8240
8269
  // 处理cookie参数
8241
8270
  if (cookie === undefined) {
8242
- cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "t"])({ name: 'cookie' });
8271
+ cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])({ name: 'cookie' });
8243
8272
  }
8244
8273
 
8245
8274
  // 处理登录页面路径
@@ -8254,7 +8283,7 @@ var isLogined = function isLogined(_ref3) {
8254
8283
  sessionStorage.setItem('loginPage', loginPage);
8255
8284
 
8256
8285
  // 处理相对路径
8257
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "S"])(loginPage, ['http', '/'], true)) {
8286
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
8258
8287
  if (pathname !== '/') {
8259
8288
  var pathParts = pathname.split('/');
8260
8289
  pathParts.splice(pathParts.length - 1);
@@ -8279,7 +8308,7 @@ var isLogined = function isLogined(_ref3) {
8279
8308
 
8280
8309
  // 处理重定向
8281
8310
  if (redirect && (to.path === '/main' || to.path === '/login')) {
8282
- window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: '.' + to.path + '.html', param: to.query }));
8311
+ window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: '.' + to.path + '.html', param: to.query }));
8283
8312
  } else {
8284
8313
  next();
8285
8314
  }
@@ -8482,7 +8511,7 @@ var downloadFile = function downloadFile(_ref6) {
8482
8511
 
8483
8512
  // 拼接URL参数
8484
8513
  if (Object.keys(params).length > 0) {
8485
- downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: downloadUrl, param: params });
8514
+ downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
8486
8515
  }
8487
8516
  } else if (file.raw) {
8488
8517
  downloadUrl = URL.createObjectURL(file.raw);
@@ -8528,7 +8557,7 @@ var downloadZip = function downloadZip(_ref7) {
8528
8557
  code = _ref7.code,
8529
8558
  option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
8530
8559
 
8531
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Mc"] };
8560
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Nc"] };
8532
8561
 
8533
8562
  // 处理URL和参数
8534
8563
  var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
@@ -8544,7 +8573,7 @@ var downloadZip = function downloadZip(_ref7) {
8544
8573
 
8545
8574
  // 拼接URL参数
8546
8575
  if (Object.keys(params).length > 0) {
8547
- downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: downloadUrl, param: params });
8576
+ downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
8548
8577
  }
8549
8578
 
8550
8579
  // 创建a标签
@@ -8649,7 +8678,7 @@ var getTableData = function getTableData(_ref9) {
8649
8678
  onSuccess = _ref9.onSuccess,
8650
8679
  onError = _ref9.onError;
8651
8680
 
8652
- var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "L"])('数据加载中...');
8681
+ var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('数据加载中...');
8653
8682
  return new Promise(function (resolve, reject) {
8654
8683
  ajax({
8655
8684
  method: method,
@@ -8679,7 +8708,7 @@ var getTableData = function getTableData(_ref9) {
8679
8708
 
8680
8709
  /***/ }),
8681
8710
 
8682
- /***/ 94:
8711
+ /***/ 97:
8683
8712
  /***/ (function(module, exports) {
8684
8713
 
8685
8714
  module.exports = require("dompurify");