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
@@ -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 = 174);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 179);
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',
@@ -3344,7 +3344,7 @@ var getColor = function getColor($color, $n) {
3344
3344
  var getLightness = function getLightness($v, $i, $isLight) {
3345
3345
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
3346
3346
  $value = $value < 1 ? $value : 1;
3347
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "V"])($value, 2);
3347
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($value, 2);
3348
3348
  };
3349
3349
 
3350
3350
  /**
@@ -3368,7 +3368,7 @@ var getSaturation = function getSaturation($s, $i, $isLight) {
3368
3368
  $saturation = 0.1;
3369
3369
  }
3370
3370
  $saturation = $saturation > 0.06 ? $saturation : 0.06;
3371
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "V"])($saturation, 2);
3371
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($saturation, 2);
3372
3372
  };
3373
3373
 
3374
3374
  /**
@@ -3482,7 +3482,14 @@ var getRgb = function getRgb($color) {
3482
3482
 
3483
3483
  /***/ }),
3484
3484
 
3485
- /***/ 174:
3485
+ /***/ 17:
3486
+ /***/ (function(module, exports) {
3487
+
3488
+ module.exports = require("eoss/lib/loading");
3489
+
3490
+ /***/ }),
3491
+
3492
+ /***/ 179:
3486
3493
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3487
3494
 
3488
3495
  "use strict";
@@ -4165,7 +4172,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4165
4172
  getData: function getData() {
4166
4173
  var _this2 = this;
4167
4174
 
4168
- var loadingInstance = Object(util["L" /* loading */])('加载中...');
4175
+ var loadingInstance = Object(util["K" /* loading */])('加载中...');
4169
4176
  Object(ajax["a" /* ajax */])({
4170
4177
  url: this.url,
4171
4178
  params: { id: this.id }
@@ -4424,7 +4431,7 @@ companyReportDetailvue_type_template_id_7c6217f0_render._withStripped = true
4424
4431
  getDetailData: function getDetailData() {
4425
4432
  var _this = this;
4426
4433
 
4427
- var loadingInstance = Object(util["L" /* loading */])('加载中...');
4434
+ var loadingInstance = Object(util["K" /* loading */])('加载中...');
4428
4435
  Object(ajax["a" /* ajax */])({
4429
4436
  url: this.reportDetailUrl,
4430
4437
  params: this.isActive == 1 ? this.ysbParam : this.wsbParam
@@ -4583,16 +4590,16 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4583
4590
  return { modulecode: this.code };
4584
4591
  },
4585
4592
  url: function url() {
4586
- return '/' + this.bootName + api["Sb" /* ruleListJson */];
4593
+ return '/' + this.bootName + api["Tb" /* ruleListJson */];
4587
4594
  },
4588
4595
  add: function add() {
4589
- return '/' + this.bootName + api["Qb" /* ruleAdd */];
4596
+ return '/' + this.bootName + api["Rb" /* ruleAdd */];
4590
4597
  },
4591
4598
  edit: function edit() {
4592
- return '/' + this.bootName + api["Rb" /* ruleEdit */];
4599
+ return '/' + this.bootName + api["Sb" /* ruleEdit */];
4593
4600
  },
4594
4601
  read: function read() {
4595
- return '/' + this.bootName + api["Tb" /* ruleRead */];
4602
+ return '/' + this.bootName + api["Ub" /* ruleRead */];
4596
4603
  },
4597
4604
  org: function org() {
4598
4605
  return '' + api["Z" /* getSysParamV1 */];
@@ -4911,10 +4918,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4911
4918
  recall: function recall(id) {
4912
4919
  var _this5 = this;
4913
4920
 
4914
- var loadingInstance = Object(util["L" /* loading */])('加载中...');
4921
+ var loadingInstance = Object(util["K" /* loading */])('加载中...');
4915
4922
  Object(ajax["a" /* ajax */])({
4916
4923
  method: 'post',
4917
- url: '/' + this.bootName + api["Vb" /* ruleUndore */],
4924
+ url: '/' + this.bootName + api["Wb" /* ruleUndore */],
4918
4925
  data: { ids: id }
4919
4926
  }).then(function (res) {
4920
4927
  loadingInstance.close();
@@ -4966,9 +4973,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4966
4973
  reissueItem: function reissueItem(ids) {
4967
4974
  var _this6 = this;
4968
4975
 
4969
- var loadingInstance = Object(util["L" /* loading */])('加载中...');
4976
+ var loadingInstance = Object(util["K" /* loading */])('加载中...');
4970
4977
  Object(ajax["a" /* ajax */])({
4971
- url: '/' + this.bootName + api["bc" /* supplement */],
4978
+ url: '/' + this.bootName + api["cc" /* supplement */],
4972
4979
  method: 'post',
4973
4980
  data: { ids: ids }
4974
4981
  }).then(function (res) {
@@ -5063,9 +5070,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5063
5070
  triggerInTime: function triggerInTime(id) {
5064
5071
  var _this7 = this;
5065
5072
 
5066
- var loadingInstance = Object(util["L" /* loading */])('提交中...');
5073
+ var loadingInstance = Object(util["K" /* loading */])('提交中...');
5067
5074
  Object(ajax["a" /* ajax */])({
5068
- url: '/' + this.bootName + api["pc" /* tiggerInTime */],
5075
+ url: '/' + this.bootName + api["qc" /* tiggerInTime */],
5069
5076
  params: { id: id }
5070
5077
  }).then(function (res) {
5071
5078
  loadingInstance.close();
@@ -5080,7 +5087,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5080
5087
  pulseTiming: function pulseTiming(id, state) {
5081
5088
  var _this8 = this;
5082
5089
 
5083
- var loadingInstance = Object(util["L" /* loading */])('提交中...');
5090
+ var loadingInstance = Object(util["K" /* loading */])('提交中...');
5084
5091
  Object(ajax["a" /* ajax */])({
5085
5092
  url: '/' + this.bootName + api["g" /* changeInTime */],
5086
5093
  params: { id: id, state: state }
@@ -5097,14 +5104,14 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5097
5104
  handleSubmit: function handleSubmit(data) {
5098
5105
  var _this9 = this;
5099
5106
 
5100
- var loadingInstance = Object(util["L" /* loading */])('提交中...');
5107
+ var loadingInstance = Object(util["K" /* loading */])('提交中...');
5101
5108
  var res = Object.assign({}, data);
5102
5109
  if (this.title === '新增') {
5103
5110
  delete res.id;
5104
5111
  }
5105
5112
  Object(ajax["a" /* ajax */])({
5106
5113
  method: 'post',
5107
- url: '/' + this.bootName + api["Ub" /* ruleSave */],
5114
+ url: '/' + this.bootName + api["Vb" /* ruleSave */],
5108
5115
  // params: {debug: true},
5109
5116
  data: _extends({
5110
5117
  fillUsername: Object(storage["a" /* getStorage */])('userName'),
@@ -5196,13 +5203,6 @@ main.install = function (Vue) {
5196
5203
 
5197
5204
  /***/ }),
5198
5205
 
5199
- /***/ 18:
5200
- /***/ (function(module, exports) {
5201
-
5202
- module.exports = require("eoss/lib/loading");
5203
-
5204
- /***/ }),
5205
-
5206
5206
  /***/ 19:
5207
5207
  /***/ (function(module, exports) {
5208
5208
 
@@ -5260,736 +5260,759 @@ module.exports = require("lodash/get");
5260
5260
  /* unused harmony export getSecond */
5261
5261
  /* unused harmony export getWeekday */
5262
5262
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
5263
-
5264
-
5263
+ /* Modified from https://github.com/taylorhakes/fecha
5264
+ *
5265
+ * The MIT License (MIT)
5266
+ *
5267
+ * Copyright (c) 2015 Taylor Hakes
5268
+ *
5269
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5270
+ * of this software and associated documentation files (the "Software"), to deal
5271
+ * in the Software without restriction, including without limitation the rights
5272
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5273
+ * copies of the Software, and to permit persons to whom the Software is
5274
+ * furnished to do so, subject to the following conditions:
5275
+ *
5276
+ * The above copyright notice and this permission notice shall be included in all
5277
+ * copies or substantial portions of the Software.
5278
+ *
5279
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5280
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5281
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5282
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5283
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5284
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5285
+ * SOFTWARE.
5286
+ */
5287
+
5288
+ /*eslint-disable*/
5289
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
5290
+
5291
+
5265
5292
  /**
5266
5293
  * Parse or format dates
5267
5294
  * @class fecha
5268
- */
5269
- var fecha = {};
5270
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
5271
- var twoDigits = '\\d\\d?';
5272
- var threeDigits = '\\d{3}';
5273
- var fourDigits = '\\d{4}';
5274
- var word = '[^\\s]+';
5275
- var literal = /\[([^]*?)\]/gm;
5276
- var noop = function noop() {};
5277
-
5278
- function regexEscape(str) {
5279
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
5280
- }
5281
-
5282
- function shorten(arr, sLen) {
5283
- var newArr = [];
5284
- for (var i = 0, len = arr.length; i < len; i++) {
5285
- newArr.push(arr[i].substr(0, sLen));
5286
- }
5287
- return newArr;
5288
- }
5289
-
5290
- function monthUpdate() {
5291
- return function (d, v) {
5292
- var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
5293
- if (~index) {
5294
- d.month = index;
5295
- }
5296
- };
5297
- }
5298
-
5299
- function pad(val, len) {
5300
- val = String(val);
5301
- len = len || 2;
5302
- while (val.length < len) {
5303
- val = '0' + val;
5304
- }
5305
- return val;
5306
- }
5307
-
5308
- // 直接使用中文日期名称常量
5309
- var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
5310
- var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
5311
- var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
5312
- var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
5313
- var amPm = ['上午', '下午'];
5314
- var DoFn = function DoFn(D) {
5315
- return D + '日';
5316
- };
5317
-
5318
- var formatFlags = {
5319
- D: function D(dateObj) {
5320
- return dateObj.getDay();
5321
- },
5322
- DD: function DD(dateObj) {
5323
- return pad(dateObj.getDay());
5324
- },
5325
- Do: function Do(dateObj) {
5326
- return DoFn(dateObj.getDate());
5327
- },
5328
- d: function d(dateObj) {
5329
- return dateObj.getDate();
5330
- },
5331
- dd: function dd(dateObj) {
5332
- return pad(dateObj.getDate());
5333
- },
5334
- ddd: function ddd(dateObj) {
5335
- return dayNamesShort[dateObj.getDay()];
5336
- },
5337
- dddd: function dddd(dateObj) {
5338
- return dayNames[dateObj.getDay()];
5339
- },
5340
- M: function M(dateObj) {
5341
- return dateObj.getMonth() + 1;
5342
- },
5343
- MM: function MM(dateObj) {
5344
- return pad(dateObj.getMonth() + 1);
5345
- },
5346
- MMM: function MMM(dateObj) {
5347
- return monthNamesShort[dateObj.getMonth()];
5348
- },
5349
- MMMM: function MMMM(dateObj) {
5350
- return monthNames[dateObj.getMonth()];
5351
- },
5352
- yy: function yy(dateObj) {
5353
- return pad(String(dateObj.getFullYear()), 4).substr(2);
5354
- },
5355
- yyyy: function yyyy(dateObj) {
5356
- return pad(dateObj.getFullYear(), 4);
5357
- },
5358
- h: function h(dateObj) {
5359
- return dateObj.getHours() % 12 || 12;
5360
- },
5361
- hh: function hh(dateObj) {
5362
- return pad(dateObj.getHours() % 12 || 12);
5363
- },
5364
- H: function H(dateObj) {
5365
- return dateObj.getHours();
5366
- },
5367
- HH: function HH(dateObj) {
5368
- return pad(dateObj.getHours());
5369
- },
5370
- m: function m(dateObj) {
5371
- return dateObj.getMinutes();
5372
- },
5373
- mm: function mm(dateObj) {
5374
- return pad(dateObj.getMinutes());
5375
- },
5376
- s: function s(dateObj) {
5377
- return dateObj.getSeconds();
5378
- },
5379
- ss: function ss(dateObj) {
5380
- return pad(dateObj.getSeconds());
5381
- },
5382
- S: function S(dateObj) {
5383
- return Math.round(dateObj.getMilliseconds() / 100);
5384
- },
5385
- SS: function SS(dateObj) {
5386
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5387
- },
5388
- SSS: function SSS(dateObj) {
5389
- return pad(dateObj.getMilliseconds(), 3);
5390
- },
5391
- a: function a(dateObj) {
5392
- return dateObj.getHours() < 12 ? '上午' : '下午';
5393
- },
5394
- A: function A(dateObj) {
5395
- return dateObj.getHours() < 12 ? '上午' : '下午';
5396
- },
5397
- ZZ: function ZZ(dateObj) {
5398
- var o = dateObj.getTimezoneOffset();
5399
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5400
- }
5401
- };
5402
-
5403
- var parseFlags = {
5404
- d: [twoDigits, function (d, v) {
5405
- d.day = v;
5406
- }],
5407
- Do: [twoDigits + word, function (d, v) {
5408
- d.day = parseInt(v, 10);
5409
- }],
5410
- M: [twoDigits, function (d, v) {
5411
- d.month = v - 1;
5412
- }],
5413
- yy: [twoDigits, function (d, v) {
5414
- var da = new Date(),
5415
- cent = +('' + da.getFullYear()).substr(0, 2);
5416
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5417
- }],
5418
- h: [twoDigits, function (d, v) {
5419
- d.hour = v;
5420
- }],
5421
- m: [twoDigits, function (d, v) {
5422
- d.minute = v;
5423
- }],
5424
- s: [twoDigits, function (d, v) {
5425
- d.second = v;
5426
- }],
5427
- yyyy: [fourDigits, function (d, v) {
5428
- d.year = v;
5429
- }],
5430
- S: ['\\d', function (d, v) {
5431
- d.millisecond = v * 100;
5432
- }],
5433
- SS: ['\\d{2}', function (d, v) {
5434
- d.millisecond = v * 10;
5435
- }],
5436
- SSS: [threeDigits, function (d, v) {
5437
- d.millisecond = v;
5438
- }],
5439
- D: [twoDigits, noop],
5440
- ddd: [word, noop],
5441
- MMM: [word, monthUpdate('monthNamesShort')],
5442
- MMMM: [word, monthUpdate('monthNames')],
5443
- a: [word, function (d, v) {
5444
- var val = v.toLowerCase();
5445
- if (val === '上午') {
5446
- d.isPm = false;
5447
- } else if (val === '下午') {
5448
- d.isPm = true;
5449
- }
5450
- }],
5451
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5452
- var parts = (v + '').match(/([+-]|\d\d)/gi),
5453
- minutes = void 0;
5454
-
5455
- if (parts) {
5456
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5457
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5458
- }
5459
- }]
5460
- };
5461
- parseFlags.dd = parseFlags.d;
5462
- parseFlags.dddd = parseFlags.ddd;
5463
- parseFlags.DD = parseFlags.D;
5464
- parseFlags.mm = parseFlags.m;
5465
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5466
- parseFlags.MM = parseFlags.M;
5467
- parseFlags.ss = parseFlags.s;
5468
- parseFlags.A = parseFlags.a;
5469
-
5470
- // Some common format strings
5471
- fecha.masks = {
5472
- default: 'ddd MMM dd yyyy HH:mm:ss',
5473
- shortDate: 'M/D/yy',
5474
- mediumDate: 'MMM d, yyyy',
5475
- longDate: 'MMMM d, yyyy',
5476
- fullDate: 'dddd, MMMM d, yyyy',
5477
- shortTime: 'HH:mm',
5478
- mediumTime: 'HH:mm:ss',
5479
- longTime: 'HH:mm:ss.SSS'
5480
- };
5481
-
5295
+ */
5296
+ const fecha = {};
5297
+ const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
5298
+ const twoDigits = '\\d\\d?';
5299
+ const threeDigits = '\\d{3}';
5300
+ const fourDigits = '\\d{4}';
5301
+ const word = '[^\\s]+';
5302
+ const literal = /\[([^]*?)\]/gm;
5303
+ const noop = function () {};
5304
+
5305
+ function regexEscape(str) {
5306
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
5307
+ }
5308
+
5309
+ function shorten(arr, sLen) {
5310
+ const newArr = [];
5311
+ for (let i = 0, len = arr.length; i < len; i++) {
5312
+ newArr.push(arr[i].substr(0, sLen));
5313
+ }
5314
+ return newArr;
5315
+ }
5316
+
5317
+ function monthUpdate() {
5318
+ return function (d, v) {
5319
+ const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
5320
+ if (~index) {
5321
+ d.month = index;
5322
+ }
5323
+ };
5324
+ }
5325
+
5326
+ function pad(val, len) {
5327
+ val = String(val);
5328
+ len = len || 2;
5329
+ while (val.length < len) {
5330
+ val = '0' + val;
5331
+ }
5332
+ return val;
5333
+ }
5334
+
5335
+ // 直接使用中文日期名称常量
5336
+ const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
5337
+ const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
5338
+ const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
5339
+ const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
5340
+ const amPm = ['上午', '下午'];
5341
+ const DoFn = function DoFn(D) {
5342
+ return D + '日';
5343
+ };
5344
+
5345
+ const formatFlags = {
5346
+ D: function(dateObj) {
5347
+ return dateObj.getDay();
5348
+ },
5349
+ DD: function(dateObj) {
5350
+ return pad(dateObj.getDay());
5351
+ },
5352
+ Do: function(dateObj) {
5353
+ return DoFn(dateObj.getDate());
5354
+ },
5355
+ d: function(dateObj) {
5356
+ return dateObj.getDate();
5357
+ },
5358
+ dd: function(dateObj) {
5359
+ return pad(dateObj.getDate());
5360
+ },
5361
+ ddd: function(dateObj) {
5362
+ return dayNamesShort[dateObj.getDay()];
5363
+ },
5364
+ dddd: function(dateObj) {
5365
+ return dayNames[dateObj.getDay()];
5366
+ },
5367
+ M: function(dateObj) {
5368
+ return dateObj.getMonth() + 1;
5369
+ },
5370
+ MM: function(dateObj) {
5371
+ return pad(dateObj.getMonth() + 1);
5372
+ },
5373
+ MMM: function(dateObj) {
5374
+ return monthNamesShort[dateObj.getMonth()];
5375
+ },
5376
+ MMMM: function(dateObj) {
5377
+ return monthNames[dateObj.getMonth()];
5378
+ },
5379
+ yy: function(dateObj) {
5380
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
5381
+ },
5382
+ yyyy: function(dateObj) {
5383
+ return pad(dateObj.getFullYear(), 4);
5384
+ },
5385
+ h: function(dateObj) {
5386
+ return dateObj.getHours() % 12 || 12;
5387
+ },
5388
+ hh: function(dateObj) {
5389
+ return pad(dateObj.getHours() % 12 || 12);
5390
+ },
5391
+ H: function(dateObj) {
5392
+ return dateObj.getHours();
5393
+ },
5394
+ HH: function(dateObj) {
5395
+ return pad(dateObj.getHours());
5396
+ },
5397
+ m: function(dateObj) {
5398
+ return dateObj.getMinutes();
5399
+ },
5400
+ mm: function(dateObj) {
5401
+ return pad(dateObj.getMinutes());
5402
+ },
5403
+ s: function(dateObj) {
5404
+ return dateObj.getSeconds();
5405
+ },
5406
+ ss: function(dateObj) {
5407
+ return pad(dateObj.getSeconds());
5408
+ },
5409
+ S: function(dateObj) {
5410
+ return Math.round(dateObj.getMilliseconds() / 100);
5411
+ },
5412
+ SS: function(dateObj) {
5413
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5414
+ },
5415
+ SSS: function(dateObj) {
5416
+ return pad(dateObj.getMilliseconds(), 3);
5417
+ },
5418
+ a: function(dateObj) {
5419
+ return dateObj.getHours() < 12 ? '上午' : '下午';
5420
+ },
5421
+ A: function(dateObj) {
5422
+ return dateObj.getHours() < 12 ? '上午' : '下午';
5423
+ },
5424
+ ZZ: function(dateObj) {
5425
+ const o = dateObj.getTimezoneOffset();
5426
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5427
+ }
5428
+ };
5429
+
5430
+ const parseFlags = {
5431
+ d: [twoDigits, function (d, v) {
5432
+ d.day = v;
5433
+ }],
5434
+ Do: [twoDigits + word, function (d, v) {
5435
+ d.day = parseInt(v, 10);
5436
+ }],
5437
+ M: [twoDigits, function (d, v) {
5438
+ d.month = v - 1;
5439
+ }],
5440
+ yy: [twoDigits, function (d, v) {
5441
+ const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
5442
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5443
+ }],
5444
+ h: [twoDigits, function (d, v) {
5445
+ d.hour = v;
5446
+ }],
5447
+ m: [twoDigits, function (d, v) {
5448
+ d.minute = v;
5449
+ }],
5450
+ s: [twoDigits, function (d, v) {
5451
+ d.second = v;
5452
+ }],
5453
+ yyyy: [fourDigits, function (d, v) {
5454
+ d.year = v;
5455
+ }],
5456
+ S: ['\\d', function (d, v) {
5457
+ d.millisecond = v * 100;
5458
+ }],
5459
+ SS: ['\\d{2}', function (d, v) {
5460
+ d.millisecond = v * 10;
5461
+ }],
5462
+ SSS: [threeDigits, function (d, v) {
5463
+ d.millisecond = v;
5464
+ }],
5465
+ D: [twoDigits, noop],
5466
+ ddd: [word, noop],
5467
+ MMM: [word, monthUpdate('monthNamesShort')],
5468
+ MMMM: [word, monthUpdate('monthNames')],
5469
+ a: [word, function (d, v) {
5470
+ const val = v.toLowerCase();
5471
+ if (val === '上午') {
5472
+ d.isPm = false;
5473
+ } else if (val === '下午') {
5474
+ d.isPm = true;
5475
+ }
5476
+ }],
5477
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5478
+ let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
5479
+
5480
+ if (parts) {
5481
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5482
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5483
+ }
5484
+ }]
5485
+ };
5486
+ parseFlags.dd = parseFlags.d;
5487
+ parseFlags.dddd = parseFlags.ddd;
5488
+ parseFlags.DD = parseFlags.D;
5489
+ parseFlags.mm = parseFlags.m;
5490
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5491
+ parseFlags.MM = parseFlags.M;
5492
+ parseFlags.ss = parseFlags.s;
5493
+ parseFlags.A = parseFlags.a;
5494
+
5495
+
5496
+ // Some common format strings
5497
+ fecha.masks = {
5498
+ default: 'ddd MMM dd yyyy HH:mm:ss',
5499
+ shortDate: 'M/D/yy',
5500
+ mediumDate: 'MMM d, yyyy',
5501
+ longDate: 'MMMM d, yyyy',
5502
+ fullDate: 'dddd, MMMM d, yyyy',
5503
+ shortTime: 'HH:mm',
5504
+ mediumTime: 'HH:mm:ss',
5505
+ longTime: 'HH:mm:ss.SSS'
5506
+ };
5507
+
5482
5508
  /***
5483
5509
  * Format a date
5484
5510
  * @method format
5485
5511
  * @param {Date|number} dateObj
5486
5512
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
5487
- */
5488
- fecha.format = function (dateObj, mask) {
5489
- if (typeof dateObj === 'number') {
5490
- dateObj = new Date(dateObj);
5491
- }
5492
-
5493
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5494
- throw new Error('Invalid Date in fecha.format');
5495
- }
5496
-
5497
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
5498
-
5499
- var literals = [];
5500
-
5501
- // Make literals inactive by replacing them with ??
5502
- mask = mask.replace(literal, function ($0, $1) {
5503
- literals.push($1);
5504
- return '@@@';
5505
- });
5506
- // Apply formatting rules
5507
- mask = mask.replace(token, function ($0) {
5508
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
5509
- });
5510
- // Inline literal values back into the formatted value
5511
- return mask.replace(/@@@/g, function () {
5512
- return literals.shift();
5513
- });
5514
- };
5515
-
5513
+ */
5514
+ fecha.format = function (dateObj, mask) {
5515
+ if (typeof dateObj === 'number') {
5516
+ dateObj = new Date(dateObj);
5517
+ }
5518
+
5519
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5520
+ throw new Error('Invalid Date in fecha.format');
5521
+ }
5522
+
5523
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
5524
+
5525
+ const literals = [];
5526
+
5527
+ // Make literals inactive by replacing them with ??
5528
+ mask = mask.replace(literal, function($0, $1) {
5529
+ literals.push($1);
5530
+ return '@@@';
5531
+ });
5532
+ // Apply formatting rules
5533
+ mask = mask.replace(token, function ($0) {
5534
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
5535
+ });
5536
+ // Inline literal values back into the formatted value
5537
+ return mask.replace(/@@@/g, function() {
5538
+ return literals.shift();
5539
+ });
5540
+ };
5541
+
5516
5542
  /**
5517
5543
  * Parse a date string into an object, changes - into /
5518
5544
  * @method parse
5519
5545
  * @param {string} dateStr Date string
5520
5546
  * @param {string} format Date parse format
5521
5547
  * @returns {Date|boolean}
5522
- */
5523
- fecha.parse = function (dateStr, format) {
5524
- if (typeof format !== 'string') {
5525
- throw new Error('Invalid format in fecha.parse');
5526
- }
5527
-
5528
- format = fecha.masks[format] || format;
5529
-
5530
- // Avoid regular expression denial of service, fail early for really long strings
5531
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5532
- if (dateStr.length > 1000) {
5533
- return null;
5534
- }
5535
-
5536
- var dateInfo = {};
5537
- var parseInfo = [];
5538
- var literals = [];
5539
- format = format.replace(literal, function ($0, $1) {
5540
- literals.push($1);
5541
- return '@@@';
5542
- });
5543
- var newFormat = regexEscape(format).replace(token, function ($0) {
5544
- if (parseFlags[$0]) {
5545
- var info = parseFlags[$0];
5546
- parseInfo.push(info[1]);
5547
- return '(' + info[0] + ')';
5548
- }
5549
-
5550
- return $0;
5551
- });
5552
- newFormat = newFormat.replace(/@@@/g, function () {
5553
- return literals.shift();
5554
- });
5555
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
5556
- if (!matches) {
5557
- return null;
5558
- }
5559
-
5560
- for (var i = 1; i < matches.length; i++) {
5561
- parseInfo[i - 1](dateInfo, matches[i]);
5562
- }
5563
-
5564
- var today = new Date();
5565
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5566
- dateInfo.hour = +dateInfo.hour + 12;
5567
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5568
- dateInfo.hour = 0;
5569
- }
5570
-
5571
- var date = void 0;
5572
- if (dateInfo.timezoneOffset != null) {
5573
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5574
- 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));
5575
- } else {
5576
- 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);
5577
- }
5578
- return date;
5579
- };
5580
-
5581
- // 导出fecha对象
5582
-
5583
-
5584
- // 以下是从date-util.js合并的函数
5585
- var newArray = function newArray(start, end) {
5586
- var result = [];
5587
- for (var i = start; i <= end; i++) {
5588
- result.push(i);
5589
- }
5590
- return result;
5591
- };
5592
-
5593
- var getSettings = function getSettings() {
5594
- return {
5595
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
5596
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
5597
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
5598
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
5599
- amPm: ['上午', '下午']
5600
- };
5601
- };
5602
-
5603
- var toDate = function toDate(date) {
5604
- return isDate(date) ? new Date(date) : null;
5605
- };
5606
-
5607
- var isDate = function isDate(date) {
5608
- if (date === null || date === undefined) return false;
5609
- if (isNaN(new Date(date).getTime())) return false;
5610
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
5611
- return true;
5612
- };
5613
-
5614
- var isDateObject = function isDateObject(val) {
5615
- return val instanceof Date;
5616
- };
5617
-
5618
- var formatDate = function formatDate(date) {
5619
- var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
5620
-
5621
- // 处理多种输入类型
5622
- if (!date) return '';
5623
-
5624
- // 如果是时间戳,转成日期对象
5625
- if (typeof date === 'number') {
5626
- date = new Date(date);
5627
- }
5628
- // 如果是字符串,转成日期对象
5629
- if (typeof date === 'string') {
5630
- date = new Date(date);
5631
- }
5632
-
5633
- // 调用toDate进一步验证和转换
5634
- date = toDate(date);
5635
- if (!date) return '';
5636
-
5637
- // 兼容大写和小写的格式标记
5638
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
5639
- var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
5640
-
5641
- // 使用fecha库进行格式化,支持中文配置
5642
- var str = fecha.format(date, lowercaseFormat, getSettings());
5643
- return str;
5644
- };
5645
-
5646
- var parseDate = function parseDate(string, format) {
5647
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
5648
- };
5649
-
5650
- var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
5651
- if (month === 3 || month === 5 || month === 8 || month === 10) {
5652
- return 30;
5653
- }
5654
-
5655
- if (month === 1) {
5656
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
5657
- return 29;
5658
- } else {
5659
- return 28;
5660
- }
5661
- }
5662
-
5663
- return 31;
5664
- };
5665
-
5666
- var getDayCountOfYear = function getDayCountOfYear(year) {
5667
- var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
5668
- return isLeapYear ? 366 : 365;
5669
- };
5670
-
5671
- var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
5672
- var temp = new Date(date.getTime());
5673
- temp.setDate(1);
5674
- return temp.getDay();
5675
- };
5676
-
5677
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
5678
- // {prev, next} Date should work for Daylight Saving Time
5679
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
5680
- var prevDate = function prevDate(date) {
5681
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5682
-
5683
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
5684
- };
5685
-
5686
- var nextDate = function nextDate(date) {
5687
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5688
-
5689
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
5690
- };
5691
-
5692
- var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
5693
- var result = new Date(year, month, 1);
5694
- var day = result.getDay();
5695
-
5696
- if (day === 0) {
5697
- return prevDate(result, 7);
5698
- } else {
5699
- return prevDate(result, day);
5700
- }
5701
- };
5702
-
5703
- var getWeekNumber = function getWeekNumber(date) {
5704
- // 支持多种输入类型
5705
- if (!date || !isDate(date)) {
5706
- date = new Date();
5707
- }
5708
- if (typeof date === 'string') {
5709
- date = new Date(date);
5710
- }
5711
-
5712
- // 验证日期有效性
5713
- if (!isDate(date)) return null;
5714
-
5715
- var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
5716
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
5717
- // 将星期日的星期数设为7
5718
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
5719
- // 获取当年的第一天
5720
- var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
5721
- // 计算到最近的星期四的完整周数
5722
- var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
5723
- // 返回周数
5724
- return weekNo;
5725
- };
5726
-
5727
- var getRangeHours = function getRangeHours(ranges) {
5728
- var hours = [];
5729
- var disabledHours = [];
5730
-
5731
- (ranges || []).forEach(function (range) {
5732
- var value = range.map(function (date) {
5733
- return date.getHours();
5734
- });
5735
-
5736
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
5737
- });
5738
-
5739
- if (disabledHours.length) {
5740
- for (var i = 0; i < 24; i++) {
5741
- hours[i] = disabledHours.indexOf(i) === -1;
5742
- }
5743
- } else {
5744
- for (var _i = 0; _i < 24; _i++) {
5745
- hours[_i] = false;
5746
- }
5747
- }
5748
-
5749
- return hours;
5750
- };
5751
-
5752
- var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
5753
- if (amount <= 0) return [];
5754
- var temp = new Date(date.getTime());
5755
- temp.setDate(0);
5756
- var lastDay = temp.getDate();
5757
- return range(amount).map(function (_, index) {
5758
- return lastDay - (amount - index - 1);
5759
- });
5760
- };
5761
-
5762
- var getMonthDays = function getMonthDays(date) {
5763
- var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
5764
- var days = temp.getDate();
5765
- return range(days).map(function (_, index) {
5766
- return index + 1;
5767
- });
5768
- };
5769
-
5770
- function setRangeData(arr, start, end, value) {
5771
- for (var i = start; i < end; i++) {
5772
- arr[i] = value;
5773
- }
5774
- }
5775
-
5776
- var getRangeMinutes = function getRangeMinutes(ranges, hour) {
5777
- var minutes = new Array(60);
5778
-
5779
- if (ranges.length > 0) {
5780
- ranges.forEach(function (range) {
5781
- var start = range[0];
5782
- var end = range[1];
5783
- var startHour = start.getHours();
5784
- var startMinute = start.getMinutes();
5785
- var endHour = end.getHours();
5786
- var endMinute = end.getMinutes();
5787
- if (startHour === hour && endHour !== hour) {
5788
- setRangeData(minutes, startMinute, 60, true);
5789
- } else if (startHour === hour && endHour === hour) {
5790
- setRangeData(minutes, startMinute, endMinute + 1, true);
5791
- } else if (startHour !== hour && endHour === hour) {
5792
- setRangeData(minutes, 0, endMinute + 1, true);
5793
- } else if (startHour < hour && endHour > hour) {
5794
- setRangeData(minutes, 0, 60, true);
5795
- }
5796
- });
5797
- } else {
5798
- setRangeData(minutes, 0, 60, true);
5799
- }
5800
- return minutes;
5801
- };
5802
-
5803
- var range = function range(n) {
5804
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
5805
- return Array.apply(null, { length: n }).map(function (_, n) {
5806
- return n;
5807
- });
5808
- };
5809
-
5810
- var modifyDate = function modifyDate(date, y, m, d) {
5811
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
5812
- };
5813
-
5814
- var modifyTime = function modifyTime(date, h, m, s) {
5815
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
5816
- };
5817
-
5818
- var modifyWithTimeString = function modifyWithTimeString(date, time) {
5819
- if (date == null || !time) {
5820
- return date;
5821
- }
5822
- time = parseDate(time, 'HH:mm:ss');
5823
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
5824
- };
5825
-
5826
- var clearTime = function clearTime(date) {
5827
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
5828
- };
5829
-
5830
- var clearMilliseconds = function clearMilliseconds(date) {
5831
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
5832
- };
5833
-
5834
- var limitTimeRange = function limitTimeRange(date, ranges) {
5835
- var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
5836
-
5837
- // TODO: refactory a more elegant solution
5838
- if (ranges.length === 0) return date;
5839
- var normalizeDate = function normalizeDate(date) {
5840
- return fecha.parse(fecha.format(date, format), format);
5841
- };
5842
- var ndate = normalizeDate(date);
5843
- var nranges = ranges.map(function (range) {
5844
- return range.map(normalizeDate);
5845
- });
5846
- if (nranges.some(function (nrange) {
5847
- return ndate >= nrange[0] && ndate <= nrange[1];
5848
- })) return date;
5849
-
5850
- var minDate = nranges[0][0];
5851
- var maxDate = nranges[0][0];
5852
-
5853
- nranges.forEach(function (nrange) {
5854
- minDate = new Date(Math.min(nrange[0], minDate));
5855
- maxDate = new Date(Math.max(nrange[1], minDate));
5856
- });
5857
-
5858
- var ret = ndate < minDate ? minDate : maxDate;
5859
- // preserve Year/Month/Date
5860
- return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
5861
- };
5862
-
5863
- var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
5864
- var limitedDate = limitTimeRange(date, selectableRange, format);
5865
- return limitedDate.getTime() === date.getTime();
5866
- };
5867
-
5868
- var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
5869
- // clamp date to the number of days in `year`, `month`
5870
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
5871
- var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
5872
- return modifyDate(date, year, month, monthDate);
5873
- };
5874
-
5875
- var prevMonth = function prevMonth(date) {
5876
- var year = date.getFullYear();
5877
- var month = date.getMonth();
5878
- return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
5879
- };
5880
-
5881
- var nextMonth = function nextMonth(date) {
5882
- var year = date.getFullYear();
5883
- var month = date.getMonth();
5884
- return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
5885
- };
5886
-
5887
- var prevYear = function prevYear(date) {
5888
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5889
-
5890
- var year = date.getFullYear();
5891
- var month = date.getMonth();
5892
- return changeYearMonthAndClampDate(date, year - amount, month);
5893
- };
5894
-
5895
- var nextYear = function nextYear(date) {
5896
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5897
-
5898
- var year = date.getFullYear();
5899
- var month = date.getMonth();
5900
- return changeYearMonthAndClampDate(date, year + amount, month);
5901
- };
5902
-
5903
- var extractDateFormat = function extractDateFormat(format) {
5904
- return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
5905
- };
5906
-
5907
- var extractTimeFormat = function extractTimeFormat(format) {
5908
- return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
5909
- };
5910
-
5911
- var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
5912
- return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
5913
- };
5914
-
5548
+ */
5549
+ fecha.parse = function (dateStr, format) {
5550
+ if (typeof format !== 'string') {
5551
+ throw new Error('Invalid format in fecha.parse');
5552
+ }
5553
+
5554
+ format = fecha.masks[format] || format;
5555
+
5556
+ // Avoid regular expression denial of service, fail early for really long strings
5557
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5558
+ if (dateStr.length > 1000) {
5559
+ return null;
5560
+ }
5561
+
5562
+ const dateInfo = {};
5563
+ const parseInfo = [];
5564
+ const literals = [];
5565
+ format = format.replace(literal, function($0, $1) {
5566
+ literals.push($1);
5567
+ return '@@@';
5568
+ });
5569
+ let newFormat = regexEscape(format).replace(token, function ($0) {
5570
+ if (parseFlags[$0]) {
5571
+ const info = parseFlags[$0];
5572
+ parseInfo.push(info[1]);
5573
+ return '(' + info[0] + ')';
5574
+ }
5575
+
5576
+ return $0;
5577
+ });
5578
+ newFormat = newFormat.replace(/@@@/g, function() {
5579
+ return literals.shift();
5580
+ });
5581
+ const matches = dateStr.match(new RegExp(newFormat, 'i'));
5582
+ if (!matches) {
5583
+ return null;
5584
+ }
5585
+
5586
+ for (let i = 1; i < matches.length; i++) {
5587
+ parseInfo[i - 1](dateInfo, matches[i]);
5588
+ }
5589
+
5590
+ const today = new Date();
5591
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5592
+ dateInfo.hour = +dateInfo.hour + 12;
5593
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5594
+ dateInfo.hour = 0;
5595
+ }
5596
+
5597
+ let date;
5598
+ if (dateInfo.timezoneOffset != null) {
5599
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5600
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
5601
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
5602
+ } else {
5603
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
5604
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
5605
+ }
5606
+ return date;
5607
+ };
5608
+
5609
+ // 导出fecha对象
5610
+
5611
+
5612
+ // 以下是从date-util.js合并的函数
5613
+ const newArray = function(start, end) {
5614
+ let result = [];
5615
+ for (let i = start; i <= end; i++) {
5616
+ result.push(i);
5617
+ }
5618
+ return result;
5619
+ };
5620
+
5621
+ const getSettings = () => {
5622
+ return {
5623
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
5624
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
5625
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
5626
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
5627
+ amPm: ['上午', '下午']
5628
+ };
5629
+ };
5630
+
5631
+ const toDate = function(date) {
5632
+ return isDate(date) ? new Date(date) : null;
5633
+ };
5634
+
5635
+ const isDate = function(date) {
5636
+ if (date === null || date === undefined) return false;
5637
+ if (isNaN(new Date(date).getTime())) return false;
5638
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
5639
+ return true;
5640
+ };
5641
+
5642
+ const isDateObject = function(val) {
5643
+ return val instanceof Date;
5644
+ };
5645
+
5646
+ const formatDate = function (date, format = 'yyyy-MM-dd') {
5647
+ // 处理多种输入类型
5648
+ if (!date) return '';
5649
+
5650
+ // 如果是时间戳,转成日期对象
5651
+ if (typeof date === 'number') {
5652
+ date = new Date(date);
5653
+ }
5654
+ // 如果是字符串,转成日期对象
5655
+ if (typeof date === 'string') {
5656
+ date = new Date(date);
5657
+ }
5658
+
5659
+ // 调用toDate进一步验证和转换
5660
+ date = toDate(date);
5661
+ if (!date) return '';
5662
+
5663
+ // 兼容大写和小写的格式标记
5664
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
5665
+ const lowercaseFormat = format
5666
+ .replace(/YYYY/g, 'yyyy')
5667
+ .replace(/D/g, 'd')
5668
+
5669
+ // 使用fecha库进行格式化,支持中文配置
5670
+ const str = fecha.format(date, lowercaseFormat, getSettings());
5671
+ return str;
5672
+ };
5673
+
5674
+ const parseDate = function(string, format) {
5675
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
5676
+ };
5677
+
5678
+ const getDayCountOfMonth = function(year, month) {
5679
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
5680
+ return 30;
5681
+ }
5682
+
5683
+ if (month === 1) {
5684
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
5685
+ return 29;
5686
+ } else {
5687
+ return 28;
5688
+ }
5689
+ }
5690
+
5691
+ return 31;
5692
+ };
5693
+
5694
+ const getDayCountOfYear = function(year) {
5695
+ const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
5696
+ return isLeapYear ? 366 : 365;
5697
+ };
5698
+
5699
+ const getFirstDayOfMonth = function(date) {
5700
+ const temp = new Date(date.getTime());
5701
+ temp.setDate(1);
5702
+ return temp.getDay();
5703
+ };
5704
+
5705
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
5706
+ // {prev, next} Date should work for Daylight Saving Time
5707
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
5708
+ const prevDate = function(date, amount = 1) {
5709
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
5710
+ };
5711
+
5712
+ const nextDate = function(date, amount = 1) {
5713
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
5714
+ };
5715
+
5716
+ const getStartDateOfMonth = function(year, month) {
5717
+ const result = new Date(year, month, 1);
5718
+ const day = result.getDay();
5719
+
5720
+ if (day === 0) {
5721
+ return prevDate(result, 7);
5722
+ } else {
5723
+ return prevDate(result, day);
5724
+ }
5725
+ };
5726
+
5727
+ const getWeekNumber = function(date) {
5728
+ // 支持多种输入类型
5729
+ if (!date||!isDate(date)) {
5730
+ date = new Date();
5731
+ }
5732
+ if (typeof date === 'string') {
5733
+ date = new Date(date);
5734
+ }
5735
+
5736
+ // 验证日期有效性
5737
+ if (!isDate(date)) return null;
5738
+
5739
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
5740
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
5741
+ // 将星期日的星期数设为7
5742
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
5743
+ // 获取当年的第一天
5744
+ const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
5745
+ // 计算到最近的星期四的完整周数
5746
+ const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
5747
+ // 返回周数
5748
+ return weekNo;
5749
+ };
5750
+
5751
+ const getRangeHours = function(ranges) {
5752
+ const hours = [];
5753
+ let disabledHours = [];
5754
+
5755
+ (ranges || []).forEach(range => {
5756
+ const value = range.map(date => date.getHours());
5757
+
5758
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
5759
+ });
5760
+
5761
+ if (disabledHours.length) {
5762
+ for (let i = 0; i < 24; i++) {
5763
+ hours[i] = disabledHours.indexOf(i) === -1;
5764
+ }
5765
+ } else {
5766
+ for (let i = 0; i < 24; i++) {
5767
+ hours[i] = false;
5768
+ }
5769
+ }
5770
+
5771
+ return hours;
5772
+ };
5773
+
5774
+ const getPrevMonthLastDays = (date, amount) => {
5775
+ if (amount <= 0) return [];
5776
+ const temp = new Date(date.getTime());
5777
+ temp.setDate(0);
5778
+ const lastDay = temp.getDate();
5779
+ return range(amount).map((_, index) => lastDay - (amount - index - 1));
5780
+ };
5781
+
5782
+ const getMonthDays = (date) => {
5783
+ const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
5784
+ const days = temp.getDate();
5785
+ return range(days).map((_, index) => index + 1);
5786
+ };
5787
+
5788
+ function setRangeData(arr, start, end, value) {
5789
+ for (let i = start; i < end; i++) {
5790
+ arr[i] = value;
5791
+ }
5792
+ }
5793
+
5794
+ const getRangeMinutes = function(ranges, hour) {
5795
+ const minutes = new Array(60);
5796
+
5797
+ if (ranges.length > 0) {
5798
+ ranges.forEach(range => {
5799
+ const start = range[0];
5800
+ const end = range[1];
5801
+ const startHour = start.getHours();
5802
+ const startMinute = start.getMinutes();
5803
+ const endHour = end.getHours();
5804
+ const endMinute = end.getMinutes();
5805
+ if (startHour === hour && endHour !== hour) {
5806
+ setRangeData(minutes, startMinute, 60, true);
5807
+ } else if (startHour === hour && endHour === hour) {
5808
+ setRangeData(minutes, startMinute, endMinute + 1, true);
5809
+ } else if (startHour !== hour && endHour === hour) {
5810
+ setRangeData(minutes, 0, endMinute + 1, true);
5811
+ } else if (startHour < hour && endHour > hour) {
5812
+ setRangeData(minutes, 0, 60, true);
5813
+ }
5814
+ });
5815
+ } else {
5816
+ setRangeData(minutes, 0, 60, true);
5817
+ }
5818
+ return minutes;
5819
+ };
5820
+
5821
+ const range = function(n) {
5822
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
5823
+ return Array.apply(null, {length: n}).map((_, n) => n);
5824
+ };
5825
+
5826
+ const modifyDate = function(date, y, m, d) {
5827
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
5828
+ };
5829
+
5830
+ const modifyTime = function(date, h, m, s) {
5831
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
5832
+ };
5833
+
5834
+ const modifyWithTimeString = (date, time) => {
5835
+ if (date == null || !time) {
5836
+ return date;
5837
+ }
5838
+ time = parseDate(time, 'HH:mm:ss');
5839
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
5840
+ };
5841
+
5842
+ const clearTime = function(date) {
5843
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
5844
+ };
5845
+
5846
+ const clearMilliseconds = function(date) {
5847
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
5848
+ };
5849
+
5850
+ const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
5851
+ // TODO: refactory a more elegant solution
5852
+ if (ranges.length === 0) return date;
5853
+ const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
5854
+ const ndate = normalizeDate(date);
5855
+ const nranges = ranges.map(range => range.map(normalizeDate));
5856
+ if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
5857
+
5858
+ let minDate = nranges[0][0];
5859
+ let maxDate = nranges[0][0];
5860
+
5861
+ nranges.forEach(nrange => {
5862
+ minDate = new Date(Math.min(nrange[0], minDate));
5863
+ maxDate = new Date(Math.max(nrange[1], minDate));
5864
+ });
5865
+
5866
+ const ret = ndate < minDate ? minDate : maxDate;
5867
+ // preserve Year/Month/Date
5868
+ return modifyDate(
5869
+ ret,
5870
+ date.getFullYear(),
5871
+ date.getMonth(),
5872
+ date.getDate()
5873
+ );
5874
+ };
5875
+
5876
+ const timeWithinRange = function(date, selectableRange, format) {
5877
+ const limitedDate = limitTimeRange(date, selectableRange, format);
5878
+ return limitedDate.getTime() === date.getTime();
5879
+ };
5880
+
5881
+ const changeYearMonthAndClampDate = function(date, year, month) {
5882
+ // clamp date to the number of days in `year`, `month`
5883
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
5884
+ const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
5885
+ return modifyDate(date, year, month, monthDate);
5886
+ };
5887
+
5888
+ const prevMonth = function(date) {
5889
+ const year = date.getFullYear();
5890
+ const month = date.getMonth();
5891
+ return month === 0
5892
+ ? changeYearMonthAndClampDate(date, year - 1, 11)
5893
+ : changeYearMonthAndClampDate(date, year, month - 1);
5894
+ };
5895
+
5896
+ const nextMonth = function(date) {
5897
+ const year = date.getFullYear();
5898
+ const month = date.getMonth();
5899
+ return month === 11
5900
+ ? changeYearMonthAndClampDate(date, year + 1, 0)
5901
+ : changeYearMonthAndClampDate(date, year, month + 1);
5902
+ };
5903
+
5904
+ const prevYear = function(date, amount = 1) {
5905
+ const year = date.getFullYear();
5906
+ const month = date.getMonth();
5907
+ return changeYearMonthAndClampDate(date, year - amount, month);
5908
+ };
5909
+
5910
+ const nextYear = function(date, amount = 1) {
5911
+ const year = date.getFullYear();
5912
+ const month = date.getMonth();
5913
+ return changeYearMonthAndClampDate(date, year + amount, month);
5914
+ };
5915
+
5916
+ const extractDateFormat = function(format) {
5917
+ return format
5918
+ .replace(/\W?m{1,2}|\W?ZZ/g, '')
5919
+ .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
5920
+ .trim();
5921
+ };
5922
+
5923
+ const extractTimeFormat = function(format) {
5924
+ return format
5925
+ .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
5926
+ .trim();
5927
+ };
5928
+
5929
+ const validateRangeInOneMonth = function(start, end) {
5930
+ return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
5931
+ };
5932
+
5915
5933
  /**
5916
5934
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
5917
5935
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
5918
5936
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
5919
5937
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
5920
5938
  * @returns {number} 工作日数量
5921
- */
5922
- var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
5923
- var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
5924
-
5925
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
5926
- throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
5927
- }
5928
-
5929
- var startDateObj = new Date(start_date);
5930
- var endDateObj = new Date(end_date);
5931
-
5932
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
5933
- throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
5934
- }
5935
-
5936
- if (startDateObj > endDateObj) {
5937
- throw new Error('Start date should be earlier than or equal to end date.');
5938
- }
5939
-
5940
- var workdays = 0;
5941
-
5942
- // Iterate through each day in the date range
5943
-
5944
- var _loop = function _loop(currentDate) {
5945
- // Check if the current day is a weekend (Saturday or Sunday)
5946
- var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
5947
-
5948
- // Check if the current day is a holiday
5949
- var isHoliday = holidays.some(function (holiday) {
5950
- var holidayDate = new Date(holiday);
5951
- return currentDate.toDateString() === holidayDate.toDateString();
5952
- });
5953
-
5954
- // If it's a workday (not a weekend or holiday), increment the workdays count
5955
- if (!isWeekend && !isHoliday) {
5956
- workdays++;
5957
- }
5958
- };
5959
-
5960
- for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
5961
- _loop(currentDate);
5962
- }
5963
-
5964
- return workdays;
5965
- };
5966
-
5939
+ */
5940
+ const calculateNetworkDays = function (start_date, end_date, holidays = []) {
5941
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
5942
+ throw new Error(
5943
+ "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
5944
+ );
5945
+ }
5946
+
5947
+ const startDateObj = new Date(start_date);
5948
+ const endDateObj = new Date(end_date);
5949
+
5950
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
5951
+ throw new Error(
5952
+ "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
5953
+ );
5954
+ }
5955
+
5956
+ if (startDateObj > endDateObj) {
5957
+ throw new Error('Start date should be earlier than or equal to end date.');
5958
+ }
5959
+
5960
+ let workdays = 0;
5961
+
5962
+ // Iterate through each day in the date range
5963
+ for (
5964
+ let currentDate = new Date(startDateObj);
5965
+ currentDate <= endDateObj;
5966
+ currentDate.setDate(currentDate.getDate() + 1)
5967
+ ) {
5968
+ // Check if the current day is a weekend (Saturday or Sunday)
5969
+ const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
5970
+
5971
+ // Check if the current day is a holiday
5972
+ const isHoliday = holidays.some((holiday) => {
5973
+ const holidayDate = new Date(holiday);
5974
+ return currentDate.toDateString() === holidayDate.toDateString();
5975
+ });
5976
+
5977
+ // If it's a workday (not a weekend or holiday), increment the workdays count
5978
+ if (!isWeekend && !isHoliday) {
5979
+ workdays++;
5980
+ }
5981
+ }
5982
+
5983
+ return workdays;
5984
+ };
5985
+
5967
5986
  /**
5968
5987
  * 日期加减天数
5969
5988
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
5970
5989
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
5971
5990
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
5972
- */
5973
- var dateAddDays = function dateAddDays(start_date, days) {
5974
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
5975
- 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.");
5976
- }
5977
-
5978
- var startDateObj = new Date(start_date);
5979
- if (isNaN(startDateObj.getTime())) {
5980
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
5981
- }
5982
-
5983
- var resultDateObj = new Date(startDateObj);
5984
- resultDateObj.setDate(resultDateObj.getDate() + days);
5985
-
5986
- var resultYear = resultDateObj.getFullYear();
5987
- var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
5988
- var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
5989
-
5990
- return resultYear + '-' + resultMonth + '-' + resultDay;
5991
- };
5992
-
5991
+ */
5992
+ const dateAddDays = function (start_date, days) {
5993
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
5994
+ throw new Error(
5995
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
5996
+ );
5997
+ }
5998
+
5999
+ const startDateObj = new Date(start_date);
6000
+ if (isNaN(startDateObj.getTime())) {
6001
+ throw new Error(
6002
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
6003
+ );
6004
+ }
6005
+
6006
+ const resultDateObj = new Date(startDateObj);
6007
+ resultDateObj.setDate(resultDateObj.getDate() + days);
6008
+
6009
+ const resultYear = resultDateObj.getFullYear();
6010
+ const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
6011
+ const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
6012
+
6013
+ return `${resultYear}-${resultMonth}-${resultDay}`;
6014
+ };
6015
+
5993
6016
  /**
5994
6017
  * 计算两个日期之间的差值
5995
6018
  * @date 2023年12月14日
@@ -5997,180 +6020,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
5997
6020
  * @param {String} end_date - 结束日期字符串
5998
6021
  * @param {String} unit - 单位:year/month/day
5999
6022
  * @returns {Number} 差值
6000
- */
6001
- var dateDiff = function dateDiff(start_date, end_date) {
6002
- var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
6003
-
6004
- // Assuming date strings are in "YYYY-MM-DD" format
6005
- var startDate = new Date(start_date);
6006
- var endDate = new Date(end_date);
6007
-
6008
- // If the date is invalid, return 0
6009
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6010
- return 0;
6011
- }
6012
-
6013
- if (unit === 'year') {
6014
- return endDate.getFullYear() - startDate.getFullYear();
6015
- } else if (unit === 'month') {
6016
- return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
6017
- } else {
6018
- // Default to day
6019
- var timeDifference = endDate - startDate;
6020
- // Calculate days (86400000 milliseconds per day)
6021
- return Math.floor(timeDifference / 86400000);
6022
- }
6023
- };
6024
-
6023
+ */
6024
+ const dateDiff = function (start_date, end_date, unit = 'day') {
6025
+ // Assuming date strings are in "YYYY-MM-DD" format
6026
+ var startDate = new Date(start_date);
6027
+ var endDate = new Date(end_date);
6028
+
6029
+ // If the date is invalid, return 0
6030
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6031
+ return 0;
6032
+ }
6033
+
6034
+ if (unit === 'year') {
6035
+ return endDate.getFullYear() - startDate.getFullYear();
6036
+ } else if (unit === 'month') {
6037
+ return (
6038
+ (endDate.getFullYear() - startDate.getFullYear()) * 12 +
6039
+ (endDate.getMonth() - startDate.getMonth())
6040
+ );
6041
+ } else {
6042
+ // Default to day
6043
+ var timeDifference = endDate - startDate;
6044
+ // Calculate days (86400000 milliseconds per day)
6045
+ return Math.floor(timeDifference / 86400000);
6046
+ }
6047
+ };
6048
+
6025
6049
  /**
6026
6050
  * 获取月份中的日期
6027
6051
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
6028
6052
  * @returns {number} 月份中的日期(1-31)
6029
- */
6030
- var dayOfMonth = function dayOfMonth(date) {
6031
- if (typeof date !== 'string') {
6032
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6033
- }
6034
-
6035
- var dateObj = new Date(date);
6036
- if (isNaN(dateObj.getTime())) {
6037
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6038
- }
6039
-
6040
- return dateObj.getDate();
6041
- };
6042
-
6053
+ */
6054
+ const dayOfMonth = function (date) {
6055
+ if (typeof date !== 'string') {
6056
+ throw new Error(
6057
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
6058
+ );
6059
+ }
6060
+
6061
+ const dateObj = new Date(date);
6062
+ if (isNaN(dateObj.getTime())) {
6063
+ throw new Error(
6064
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
6065
+ );
6066
+ }
6067
+
6068
+ return dateObj.getDate();
6069
+ };
6070
+
6043
6071
  /**
6044
6072
  * 获取当前日期
6045
6073
  * @date 2022年5月7日
6046
6074
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
6047
6075
  * @returns {string} 当前日期的格式化字符串
6048
- */
6049
- var getCurrentDate = function getCurrentDate() {
6050
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
6051
-
6052
- return formatDate(new Date(), format);
6053
- };
6054
-
6076
+ */
6077
+ const getCurrentDate = function (format = 'YYYY-MM-DD') {
6078
+ return formatDate(new Date(), format);
6079
+ };
6080
+
6055
6081
  /**
6056
6082
  * 获取当前日期时间
6057
6083
  * @date 2022年5月7日
6058
6084
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
6059
6085
  * @returns {string} 当前日期时间的格式化字符串
6060
- */
6061
- var getCurrentDateTime = function getCurrentDateTime() {
6062
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
6063
-
6064
- return formatDate(new Date(), format);
6065
- };
6066
-
6086
+ */
6087
+ const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
6088
+ return formatDate(new Date(), format);
6089
+ };
6090
+
6067
6091
  /**
6068
6092
  * 获取小时
6069
6093
  * @date 2022年5月7日
6070
6094
  * @param {Date|string} [date] - 日期对象或日期字符串
6071
6095
  * @returns {number} 小时数(0-23)
6072
- */
6073
- var getHour = function getHour(date) {
6074
- if (!date) {
6075
- return new Date().getHours();
6076
- }
6077
- if (typeof date === 'string') {
6078
- date = new Date(date);
6079
- }
6080
- return date.getHours();
6081
- };
6082
-
6096
+ */
6097
+ const getHour = function (date) {
6098
+ if (!date) {
6099
+ return new Date().getHours();
6100
+ }
6101
+ if (typeof date === 'string') {
6102
+ date = new Date(date);
6103
+ }
6104
+ return date.getHours();
6105
+ };
6106
+
6083
6107
  /**
6084
6108
  * 获取分钟
6085
6109
  * @date 2022年5月7日
6086
6110
  * @param {Date|string} [date] - 日期对象或日期字符串
6087
6111
  * @returns {number} 分钟数(0-59)
6088
- */
6089
- var getMinute = function getMinute(date) {
6090
- if (!date) {
6091
- return new Date().getMinutes();
6092
- }
6093
- if (typeof date === 'string') {
6094
- date = new Date(date);
6095
- }
6096
- return date.getMinutes();
6097
- };
6098
-
6112
+ */
6113
+ const getMinute = function (date) {
6114
+ if (!date) {
6115
+ return new Date().getMinutes();
6116
+ }
6117
+ if (typeof date === 'string') {
6118
+ date = new Date(date);
6119
+ }
6120
+ return date.getMinutes();
6121
+ };
6122
+
6099
6123
  /**
6100
6124
  * 获取月份
6101
6125
  * @date 2022年5月7日
6102
6126
  * @param {Date|string} [date] - 日期对象或日期字符串
6103
6127
  * @returns {number} 月份数(1-12)
6104
- */
6105
- var getMonth = function getMonth(date) {
6106
- if (!date) {
6107
- return new Date().getMonth() + 1;
6108
- }
6109
- if (typeof date === 'string') {
6110
- date = new Date(date);
6111
- }
6112
- return date.getMonth() + 1;
6113
- };
6114
-
6128
+ */
6129
+ const getMonth = function (date) {
6130
+ if (!date) {
6131
+ return new Date().getMonth() + 1;
6132
+ }
6133
+ if (typeof date === 'string') {
6134
+ date = new Date(date);
6135
+ }
6136
+ return date.getMonth() + 1;
6137
+ };
6138
+
6115
6139
  /**
6116
6140
  * 获取秒
6117
6141
  * @date 2022年5月7日
6118
6142
  * @param {Date|string} [date] - 日期对象或日期字符串
6119
6143
  * @returns {number} 秒数(0-59)
6120
- */
6121
- var getSecond = function getSecond(date) {
6122
- if (!date) {
6123
- return new Date().getSeconds();
6124
- }
6125
- if (typeof date === 'string') {
6126
- date = new Date(date);
6127
- }
6128
- return date.getSeconds();
6129
- };
6130
-
6144
+ */
6145
+ const getSecond = function (date) {
6146
+ if (!date) {
6147
+ return new Date().getSeconds();
6148
+ }
6149
+ if (typeof date === 'string') {
6150
+ date = new Date(date);
6151
+ }
6152
+ return date.getSeconds();
6153
+ };
6154
+
6131
6155
  /**
6132
6156
  * 获取星期几
6133
6157
  * @date 2022年5月7日
6134
6158
  * @param {Date|string} [date] - 日期对象或日期字符串
6135
6159
  * @returns {number} 星期几(0-6,0表示星期日)
6136
- */
6137
- var getWeekday = function getWeekday(date) {
6138
- if (!date) {
6139
- return new Date().getDay();
6140
- }
6141
- if (typeof date === 'string') {
6142
- date = new Date(date);
6143
- }
6144
- return date.getDay();
6145
- };
6146
-
6160
+ */
6161
+ const getWeekday = function (date) {
6162
+ if (!date) {
6163
+ return new Date().getDay();
6164
+ }
6165
+ if (typeof date === 'string') {
6166
+ date = new Date(date);
6167
+ }
6168
+ return date.getDay();
6169
+ };
6170
+
6171
+
6147
6172
  /**
6148
6173
  * @desc 获取上午/下午/晚上
6149
6174
  * @author huangbo
6150
6175
  * @date 2022年5月7日
6151
6176
  * @param {String} [time] - 时间
6152
- **/
6153
- var timeCycle = function timeCycle(time) {
6154
- var hour = 0;
6155
- if (!time) {
6156
- hour = new Date().getHours();
6157
- } else if (typeof time === 'string') {
6158
- // 从时间字符串中提取小时
6159
- var match = time.match(/^(\d{1,2})/);
6160
- if (match) {
6161
- hour = parseInt(match[1], 10);
6162
- }
6163
- } else if (typeof time === 'number') {
6164
- hour = time;
6165
- }
6166
- // 判断时间段
6167
- if (hour >= 5 && hour < 12) {
6168
- return '上午';
6169
- } else if (hour >= 12 && hour < 18) {
6170
- return '下午';
6171
- } else {
6172
- return '晚上';
6173
- }
6177
+ **/
6178
+ const timeCycle = function (time) {
6179
+ let hour = 0;
6180
+ if (!time) {
6181
+ hour = new Date().getHours();
6182
+ } else if (typeof time === 'string') {
6183
+ // 从时间字符串中提取小时
6184
+ const match = time.match(/^(\d{1,2})/);
6185
+ if (match) {
6186
+ hour = parseInt(match[1], 10);
6187
+ }
6188
+ } else if (typeof time === 'number') {
6189
+ hour = time;
6190
+ }
6191
+ // 判断时间段
6192
+ if (hour >= 5 && hour < 12) {
6193
+ return '上午';
6194
+ } else if (hour >= 12 && hour < 18) {
6195
+ return '下午';
6196
+ } else {
6197
+ return '晚上';
6198
+ }
6174
6199
  };
6175
6200
 
6176
6201
  /***/ }),
@@ -6255,17 +6280,10 @@ module.exports = require("fetch-request-source");
6255
6280
 
6256
6281
  /***/ }),
6257
6282
 
6258
- /***/ 28:
6259
- /***/ (function(module, exports) {
6260
-
6261
- module.exports = require("qs");
6262
-
6263
- /***/ }),
6264
-
6265
6283
  /***/ 29:
6266
6284
  /***/ (function(module, exports) {
6267
6285
 
6268
- module.exports = require("axios");
6286
+ module.exports = require("qs");
6269
6287
 
6270
6288
  /***/ }),
6271
6289
 
@@ -6377,6 +6395,13 @@ function normalizeComponent(
6377
6395
  /***/ 30:
6378
6396
  /***/ (function(module, exports) {
6379
6397
 
6398
+ module.exports = require("axios");
6399
+
6400
+ /***/ }),
6401
+
6402
+ /***/ 31:
6403
+ /***/ (function(module, exports) {
6404
+
6380
6405
  module.exports = require("json-bigint");
6381
6406
 
6382
6407
  /***/ }),
@@ -6471,7 +6496,7 @@ function isDefined(val) {
6471
6496
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doQrLogin; });
6472
6497
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return logout; });
6473
6498
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return initLogin; });
6474
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return switchUserTo; });
6499
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return switchUserTo; });
6475
6500
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return changeImg; });
6476
6501
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getLoginCode; });
6477
6502
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCodeLogin; });
@@ -6489,13 +6514,13 @@ function isDefined(val) {
6489
6514
  /* unused harmony export scanCodeRetrialAuth */
6490
6515
  /* unused harmony export codeRetrialAuth */
6491
6516
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return doAssistanceQrLogin; });
6492
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return userOnline; });
6517
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return userOnline; });
6493
6518
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUserAppWithTag; });
6494
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return recordUserApp; });
6519
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return recordUserApp; });
6495
6520
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserRecordApp; });
6496
6521
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return mainConfig; });
6497
6522
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initUserSet; });
6498
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateUserInfo; });
6523
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateUserInfo; });
6499
6524
  /* unused harmony export getUserImgUrl */
6500
6525
  /* unused harmony export getDoorIndex */
6501
6526
  /* unused harmony export refreshOnlineUsers */
@@ -6507,22 +6532,22 @@ function isDefined(val) {
6507
6532
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getByType; });
6508
6533
  /* unused harmony export getUserCustomInfo */
6509
6534
  /* unused harmony export updateUserCustomInfo */
6510
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveOrUpdate; });
6511
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return sysMsgPage; });
6535
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveOrUpdate; });
6536
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return sysMsgPage; });
6512
6537
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreSysMsg; });
6513
6538
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return ignoreAllSysMsg; });
6514
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return searchType; });
6539
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return searchType; });
6515
6540
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSysParam; });
6516
6541
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctProperties; });
6517
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploads; });
6518
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadOnlyOne; });
6542
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploads; });
6543
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadOnlyOne; });
6519
6544
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getAdjunctFileInfos; });
6520
6545
  /* unused harmony export uploadSort */
6521
6546
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return downloadByAdjunctId; });
6522
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return uploadDownloads; });
6523
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return previewAdjunct; });
6524
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct2; });
6525
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunctOffice; });
6547
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadDownloads; });
6548
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct; });
6549
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct2; });
6550
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunctOffice; });
6526
6551
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return delAdjunct; });
6527
6552
  /* unused harmony export upload_updateClassify */
6528
6553
  /* unused harmony export getDeleteAdjunctFileInfos */
@@ -6537,13 +6562,13 @@ function isDefined(val) {
6537
6562
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return gethelpdoc; });
6538
6563
  /* unused harmony export getCurrentuser */
6539
6564
  /* unused harmony export mainDetail */
6540
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toStartFlow; });
6541
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return tempSave; });
6565
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartFlow; });
6566
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tempSave; });
6542
6567
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return commonOpion; });
6543
6568
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
6544
6569
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return editCommonOpion; });
6545
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return saveCommonOpinion; });
6546
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return updateCommonOpinion; });
6570
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveCommonOpinion; });
6571
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateCommonOpinion; });
6547
6572
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return deleteCommonOpion; });
6548
6573
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getProcessDefList; });
6549
6574
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getNodeInfo; });
@@ -6552,27 +6577,27 @@ function isDefined(val) {
6552
6577
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCodes; });
6553
6578
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNotificationMsg; });
6554
6579
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getHandleInfoHtml; });
6555
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskHandleHtml; });
6580
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskHandleHtml; });
6556
6581
  /* unused harmony export getView */
6557
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return register; });
6558
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pendedhistoryList; });
6559
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskRejectHtml; });
6560
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskRejectHtml; });
6561
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartTaskRead; });
6562
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskReadIndex; });
6563
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskReadHtml; });
6564
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return rejectAndEnd; });
6565
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toSendMsg; });
6566
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return sendMsg; });
6582
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return register; });
6583
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pendedhistoryList; });
6584
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskRejectHtml; });
6585
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskRejectHtml; });
6586
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskRead; });
6587
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskReadIndex; });
6588
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskReadHtml; });
6589
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return rejectAndEnd; });
6590
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toSendMsg; });
6591
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return sendMsg; });
6567
6592
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowHtml; });
6568
6593
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return handleInfo; });
6569
6594
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return loginUserInfo; });
6570
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return wss; });
6571
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return topic; });
6595
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return wss; });
6596
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return topic; });
6572
6597
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getPresetCustomInfo; });
6573
6598
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetNodeInfo; });
6574
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTransferIndex; });
6575
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTransfer; });
6599
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTransferIndex; });
6600
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTransfer; });
6576
6601
  /* unused harmony export toPresetInfoListIndex */
6577
6602
  /* unused harmony export deletePresetInfo */
6578
6603
  /* unused harmony export historyListJson */
@@ -6580,24 +6605,24 @@ function isDefined(val) {
6580
6605
  /* unused harmony export pressListJson */
6581
6606
  /* unused harmony export deleteFlow */
6582
6607
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isCanStartSubFlow; });
6583
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskUnionExamine; });
6584
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskUnionExamine; });
6585
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskTakeAdvice; });
6586
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskTakeAdvice; });
6587
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskStartDraft; });
6588
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskSupervise; });
6589
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSuperviseSub; });
6590
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskStartDraft; });
6591
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskReview; });
6592
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskReview; });
6593
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionSeal; });
6594
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionSeal; });
6595
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTwoOfficesDispatch; });
6596
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return twoOfficesDispatch; });
6597
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toResetProcessIndex; });
6598
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return resetProcess; });
6599
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toTaskContinuationIndex; });
6600
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return taskContinuation; });
6608
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionExamine; });
6609
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionExamine; });
6610
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTakeAdvice; });
6611
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTakeAdvice; });
6612
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskStartDraft; });
6613
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSupervise; });
6614
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSuperviseSub; });
6615
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskStartDraft; });
6616
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskReview; });
6617
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskReview; });
6618
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionSeal; });
6619
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionSeal; });
6620
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTwoOfficesDispatch; });
6621
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return twoOfficesDispatch; });
6622
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toResetProcessIndex; });
6623
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return resetProcess; });
6624
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskContinuationIndex; });
6625
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskContinuation; });
6601
6626
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getFreeStartFlowParams; });
6602
6627
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlowWithSubmitTask; });
6603
6628
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkForeignOrgStartedCircularRead; });
@@ -6605,7 +6630,7 @@ function isDefined(val) {
6605
6630
  /* unused harmony export fyListJson */
6606
6631
  /* unused harmony export circularReadWithdraw */
6607
6632
  /* unused harmony export taskReadWithDraw */
6608
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
6633
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
6609
6634
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return checkBusinessIdStartedReadTransferHandle; });
6610
6635
  /* unused harmony export sendList */
6611
6636
  /* unused harmony export sendInfo */
@@ -6619,23 +6644,24 @@ function isDefined(val) {
6619
6644
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfoForStart; });
6620
6645
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return freeStartFlow; });
6621
6646
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getUrgencyLevelChangedNotificationType; });
6622
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return toFreeTaskCircularRead; });
6647
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toFreeTaskCircularRead; });
6623
6648
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeTaskCircularRead; });
6624
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageLists; });
6649
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageLists; });
6625
6650
  /* unused harmony export publishedLists */
6626
6651
  /* unused harmony export pageInfo */
6627
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageSave; });
6628
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageUpdate; });
6652
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageGroup; });
6653
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageSave; });
6654
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageUpdate; });
6629
6655
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return pageDelete; });
6630
6656
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchSave; });
6631
6657
  /* unused harmony export batchUpdate */
6632
6658
  /* unused harmony export batchDelete */
6633
6659
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchList; });
6634
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processListJson; });
6635
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processInfo; });
6636
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return processDeleteJson; });
6637
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processSave; });
6638
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processUpdate; });
6660
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processListJson; });
6661
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processInfo; });
6662
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processDeleteJson; });
6663
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processSave; });
6664
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processUpdate; });
6639
6665
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeListJson; });
6640
6666
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return nodeDeleteJson; });
6641
6667
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeSave; });
@@ -6646,22 +6672,22 @@ function isDefined(val) {
6646
6672
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return moduleDelete; });
6647
6673
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleSave; });
6648
6674
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleUpdate; });
6649
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleListJson; });
6650
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleEdit; });
6651
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleRead; });
6652
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleSave; });
6675
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleListJson; });
6676
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleEdit; });
6677
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleRead; });
6678
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleSave; });
6653
6679
  /* unused harmony export ruleSupplement */
6654
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleUndore; });
6655
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return ruleAdd; });
6680
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleUndore; });
6681
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleAdd; });
6656
6682
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return companyDetail; });
6657
6683
  /* unused harmony export issueDetailList */
6658
6684
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteRule; });
6659
6685
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParamV1; });
6660
6686
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyList; });
6661
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return supplement; });
6687
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return supplement; });
6662
6688
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return isAddSource; });
6663
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tiggerInTime; });
6664
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateHistory; });
6689
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tiggerInTime; });
6690
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateHistory; });
6665
6691
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
6666
6692
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeInTime; });
6667
6693
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
@@ -6943,6 +6969,9 @@ var pageLists = '/main2/pageComponentConfig/listJson';
6943
6969
  var publishedLists = '/main2/pageComponentConfig/listPublished';
6944
6970
  // 获取自定义配置详情
6945
6971
  var pageInfo = '/main2/pageComponentConfig/info';
6972
+ // 获取自定义配置授权列表
6973
+ var pageGroup = 'main2/pageComponentTarget/listByConfigIdAndTypeGroup';
6974
+
6946
6975
  // 保存自定义配置,发布也调这个接口但要加上字段status=1
6947
6976
  var pageSave = '/main2/pageComponentConfig/save';
6948
6977
  // 更新自定义配置
@@ -7050,12 +7079,12 @@ module.exports = require("eoss/lib/message-box");
7050
7079
  /* unused harmony export downloadZip */
7051
7080
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
7052
7081
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
7053
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
7082
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
7054
7083
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
7055
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
7084
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);
7056
7085
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
7057
7086
  /* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
7058
- /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30);
7087
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
7059
7088
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
7060
7089
  /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
7061
7090
  /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24);
@@ -7297,7 +7326,7 @@ var ajax = function ajax(_ref) {
7297
7326
  delete params[key];
7298
7327
  }
7299
7328
  }
7300
- url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: url, param: encodedParams });
7329
+ url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: url, param: encodedParams });
7301
7330
  }
7302
7331
  } else {
7303
7332
  params = {};
@@ -7655,7 +7684,7 @@ function redirectToLogin() {
7655
7684
 
7656
7685
  if (loginPage) {
7657
7686
  // 处理相对路径
7658
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "S"])(loginPage, ['http', '/'], true)) {
7687
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
7659
7688
  var pathname = '';
7660
7689
  try {
7661
7690
  pathname = window.top.location.pathname;
@@ -7687,7 +7716,7 @@ function redirectToLogin() {
7687
7716
  * @returns {Promise} 认证完成后 resolve
7688
7717
  */
7689
7718
  var initAuth = function initAuth() {
7690
- var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "t"])();
7719
+ var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])();
7691
7720
  var token = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('token') || Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('Authorization');
7692
7721
 
7693
7722
  // 已有 token 或没有认证参数,直接返回
@@ -7695,7 +7724,7 @@ var initAuth = function initAuth() {
7695
7724
  return Promise.resolve();
7696
7725
  }
7697
7726
 
7698
- var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "L"])('页面加载中...');
7727
+ var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('页面加载中...');
7699
7728
 
7700
7729
  return ajax({
7701
7730
  method: 'post',
@@ -7774,7 +7803,7 @@ var isLogined = function isLogined(_ref3) {
7774
7803
 
7775
7804
  // 处理cookie参数
7776
7805
  if (cookie === undefined) {
7777
- cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "t"])({ name: 'cookie' });
7806
+ cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])({ name: 'cookie' });
7778
7807
  }
7779
7808
 
7780
7809
  // 处理登录页面路径
@@ -7789,7 +7818,7 @@ var isLogined = function isLogined(_ref3) {
7789
7818
  sessionStorage.setItem('loginPage', loginPage);
7790
7819
 
7791
7820
  // 处理相对路径
7792
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "S"])(loginPage, ['http', '/'], true)) {
7821
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
7793
7822
  if (pathname !== '/') {
7794
7823
  var pathParts = pathname.split('/');
7795
7824
  pathParts.splice(pathParts.length - 1);
@@ -7814,7 +7843,7 @@ var isLogined = function isLogined(_ref3) {
7814
7843
 
7815
7844
  // 处理重定向
7816
7845
  if (redirect && (to.path === '/main' || to.path === '/login')) {
7817
- window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: '.' + to.path + '.html', param: to.query }));
7846
+ window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: '.' + to.path + '.html', param: to.query }));
7818
7847
  } else {
7819
7848
  next();
7820
7849
  }
@@ -8017,7 +8046,7 @@ var downloadFile = function downloadFile(_ref6) {
8017
8046
 
8018
8047
  // 拼接URL参数
8019
8048
  if (Object.keys(params).length > 0) {
8020
- downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: downloadUrl, param: params });
8049
+ downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
8021
8050
  }
8022
8051
  } else if (file.raw) {
8023
8052
  downloadUrl = URL.createObjectURL(file.raw);
@@ -8063,7 +8092,7 @@ var downloadZip = function downloadZip(_ref7) {
8063
8092
  code = _ref7.code,
8064
8093
  option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
8065
8094
 
8066
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Mc"] };
8095
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Nc"] };
8067
8096
 
8068
8097
  // 处理URL和参数
8069
8098
  var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
@@ -8079,7 +8108,7 @@ var downloadZip = function downloadZip(_ref7) {
8079
8108
 
8080
8109
  // 拼接URL参数
8081
8110
  if (Object.keys(params).length > 0) {
8082
- downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: downloadUrl, param: params });
8111
+ downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
8083
8112
  }
8084
8113
 
8085
8114
  // 创建a标签
@@ -8184,7 +8213,7 @@ var getTableData = function getTableData(_ref9) {
8184
8213
  onSuccess = _ref9.onSuccess,
8185
8214
  onError = _ref9.onError;
8186
8215
 
8187
- var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "L"])('数据加载中...');
8216
+ var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('数据加载中...');
8188
8217
  return new Promise(function (resolve, reject) {
8189
8218
  ajax({
8190
8219
  method: method,