eoss 0.1.0-alpha.41 → 0.1.0-alpha.43

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 (358) 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 +1446 -1354
  83. package/lib/alert.js +2 -2
  84. package/lib/aside.js +2 -2
  85. package/lib/audit-trajectory.js +183 -160
  86. package/lib/autocomplete.js +2852 -2583
  87. package/lib/avatar.js +2 -2
  88. package/lib/backtop.js +4 -4
  89. package/lib/badge.js +2 -2
  90. package/lib/breadcrumb-item.js +4 -4
  91. package/lib/breadcrumb.js +4 -4
  92. package/lib/button-group.js +4 -4
  93. package/lib/button.js +2 -2
  94. package/lib/ca-login.js +1216 -1147
  95. package/lib/calendar.js +864 -839
  96. package/lib/card.js +2 -2
  97. package/lib/carousel-item.js +1199 -1130
  98. package/lib/carousel.js +1201 -1132
  99. package/lib/cascader-panel.js +1286 -1170
  100. package/lib/cascader.js +3309 -2976
  101. package/lib/checkbox-button.js +4 -4
  102. package/lib/checkbox-group.js +1670 -1388
  103. package/lib/checkbox.js +9 -7
  104. package/lib/code-editor.js +4 -4
  105. package/lib/col.js +2 -2
  106. package/lib/collapse-item.js +1258 -1191
  107. package/lib/collapse.js +1251 -1184
  108. package/lib/color-picker.js +1506 -1329
  109. package/lib/config/api.js +17 -1
  110. package/lib/container.js +2 -2
  111. package/lib/cron.js +22 -22
  112. package/lib/data-table.js +1677 -1359
  113. package/lib/date-picker.js +2707 -2466
  114. package/lib/descriptions-item.js +4 -4
  115. package/lib/descriptions.js +4 -4
  116. package/lib/dialog.js +1213 -1144
  117. package/lib/divider.js +2 -2
  118. package/lib/drawer.js +9 -9
  119. package/lib/dropdown-item.js +6 -6
  120. package/lib/dropdown-menu.js +1415 -1265
  121. package/lib/dropdown.js +1219 -1150
  122. package/lib/email-login.js +1446 -1354
  123. package/lib/empty.js +2 -2
  124. package/lib/eoss.common.js +31462 -18205
  125. package/lib/flip.js +2 -2
  126. package/lib/flow-group.js +4578 -3381
  127. package/lib/flow-list.js +9566 -0
  128. package/lib/flow.js +19284 -10275
  129. package/lib/flows.js +1483 -1391
  130. package/lib/footer.js +2 -2
  131. package/lib/form-editor.js +2825 -2035
  132. package/lib/form-item.js +1368 -1192
  133. package/lib/form.js +2297 -2036
  134. package/lib/guide.js +2 -2
  135. package/lib/header.js +2 -2
  136. package/lib/icon.js +1384 -1292
  137. package/lib/icons.js +145 -99
  138. package/lib/image-viewer.js +1204 -1135
  139. package/lib/image.js +6 -6
  140. package/lib/index.js +1 -1
  141. package/lib/infinite-scroll.js +4 -4
  142. package/lib/input-number.js +169 -122
  143. package/lib/input.js +1399 -1325
  144. package/lib/link.js +2 -2
  145. package/lib/loading.js +11 -11
  146. package/lib/login.js +1486 -1389
  147. package/lib/lowcode-view.js +1618 -1526
  148. package/lib/lowcode.js +1620 -1586
  149. package/lib/main.js +2062 -1982
  150. package/lib/marquee.js +1202 -1133
  151. package/lib/menu-item-group.js +8 -8
  152. package/lib/menu-item.js +6 -6
  153. package/lib/menu.js +2698 -2479
  154. package/lib/message-box.js +1893 -1824
  155. package/lib/message.js +1782 -1713
  156. package/lib/notification.js +1783 -1714
  157. package/lib/option-group.js +16 -7
  158. package/lib/option.js +1223 -1146
  159. package/lib/page-header.js +2 -2
  160. package/lib/pagination.js +1207 -1138
  161. package/lib/phone-login.js +1441 -1352
  162. package/lib/popconfirm.js +7 -7
  163. package/lib/popover.js +2668 -2449
  164. package/lib/process-config.js +1508 -1416
  165. package/lib/process-module.js +1453 -1361
  166. package/lib/process-rule.js +1473 -1381
  167. package/lib/progress.js +2 -2
  168. package/lib/qr-code.js +4 -4
  169. package/lib/qrcode-login.js +1434 -1342
  170. package/lib/radio-button.js +14 -7
  171. package/lib/radio-group.js +1696 -1383
  172. package/lib/radio.js +31 -9
  173. package/lib/rate.js +1286 -1182
  174. package/lib/retrial-auth.js +1444 -1352
  175. package/lib/row.js +2 -2
  176. package/lib/scrollbar.js +1205 -1136
  177. package/lib/select.js +4176 -3717
  178. package/lib/selector-panel.js +2081 -1623
  179. package/lib/selector.js +2582 -2468
  180. package/lib/slider.js +149 -109
  181. package/lib/step.js +28 -30
  182. package/lib/steps.js +2353 -2278
  183. package/lib/submenu.js +1399 -1249
  184. package/lib/switch.js +1337 -1217
  185. package/lib/tab-pane.js +4 -4
  186. package/lib/table-column.js +1208 -1139
  187. package/lib/table.js +3791 -3476
  188. package/lib/tabs.js +1202 -1133
  189. package/lib/tag.js +2 -2
  190. package/lib/theme-chalk/autocomplete.css +1 -1
  191. package/lib/theme-chalk/base.css +1 -1
  192. package/lib/theme-chalk/cascader.css +1 -1
  193. package/lib/theme-chalk/checkbox-group.css +1 -1
  194. package/lib/theme-chalk/collapse.css +1 -1
  195. package/lib/theme-chalk/date-picker.css +1 -1
  196. package/lib/theme-chalk/flow copy.css +1 -0
  197. package/lib/theme-chalk/flow-group.css +1 -1
  198. package/lib/theme-chalk/flow-list.css +1 -0
  199. package/lib/theme-chalk/flow.css +1 -1
  200. package/lib/theme-chalk/form-editor.css +1 -1
  201. package/lib/theme-chalk/form.css +1 -1
  202. package/lib/theme-chalk/icons.css +1 -1
  203. package/lib/theme-chalk/index.css +1 -1
  204. package/lib/theme-chalk/input-number.css +1 -1
  205. package/lib/theme-chalk/input.css +1 -1
  206. package/lib/theme-chalk/login.css +1 -1
  207. package/lib/theme-chalk/main.css +1 -1
  208. package/lib/theme-chalk/message-box.css +1 -1
  209. package/lib/theme-chalk/pagination.css +1 -1
  210. package/lib/theme-chalk/radio-group.css +1 -1
  211. package/lib/theme-chalk/retrial-auth.css +1 -1
  212. package/lib/theme-chalk/select.css +1 -1
  213. package/lib/theme-chalk/selector.css +1 -1
  214. package/lib/theme-chalk/slider.css +1 -1
  215. package/lib/theme-chalk/switch.css +1 -1
  216. package/lib/theme-chalk/tabs.css +1 -1
  217. package/lib/theme-chalk/time-picker.css +1 -1
  218. package/lib/theme-chalk/transfer.css +1 -1
  219. package/lib/time-picker.js +2294 -2097
  220. package/lib/time-select.js +2286 -2089
  221. package/lib/timeline-item.js +2 -2
  222. package/lib/timeline.js +2 -2
  223. package/lib/tips.js +1429 -1337
  224. package/lib/toolbar.js +71 -48
  225. package/lib/tooltip.js +3277 -3058
  226. package/lib/transfer.js +1351 -1230
  227. package/lib/tree-group.js +1405 -1313
  228. package/lib/tree.js +2214 -2122
  229. package/lib/update-history.js +184 -161
  230. package/lib/upload.js +2432 -2384
  231. package/lib/utils/label.js +56 -0
  232. package/lib/utils/util.js +43 -1
  233. package/lib/wujie.js +1204 -1135
  234. package/package.json +5 -1
  235. package/packages/autocomplete/src/autocomplete.vue +88 -55
  236. package/packages/cascader/src/cascader.vue +166 -99
  237. package/packages/cascader-panel/src/node.js +31 -16
  238. package/packages/cascader-panel/src/store.js +26 -12
  239. package/packages/checkbox/src/checkbox-group.vue +93 -1
  240. package/packages/checkbox/src/checkbox.vue +4 -1
  241. package/packages/color-picker/src/color-picker.vue +279 -261
  242. package/packages/data-table/src/data-table.vue +104 -12
  243. package/packages/data-table/src/mixins/table-methods.js +118 -0
  244. package/packages/date-picker/src/picker.vue +17 -1
  245. package/packages/dialog/src/dialog.vue +2 -2
  246. package/packages/flow/src/component/Circulate.vue +59 -93
  247. package/packages/flow/src/component/CommonOpinions.vue +390 -0
  248. package/packages/flow/src/component/CustomPreset.vue +18 -25
  249. package/packages/flow/src/component/FileList.vue +11 -28
  250. package/packages/flow/src/component/FreeCirculation.vue +48 -59
  251. package/packages/flow/src/component/Preset.vue +10 -25
  252. package/packages/flow/src/component/SendMsg.vue +22 -71
  253. package/packages/flow/src/component/SortFlow.vue +115 -0
  254. package/packages/flow/src/component/TimeLimit.vue +20 -36
  255. package/packages/flow/src/component/opinions.vue +160 -108
  256. package/packages/flow/src/component/taskUnionExamine.vue +143 -145
  257. package/packages/flow/src/flow.vue +4598 -0
  258. package/packages/flow/src/form.vue +14 -20
  259. package/packages/flow/src/freeStartFlow.vue +196 -222
  260. package/packages/flow/src/main.vue +877 -618
  261. package/packages/flow/src/processForm.vue +789 -177
  262. package/packages/flow/src/processReject.vue +87 -83
  263. package/packages/flow/src/reset.vue +71 -70
  264. package/packages/flow/src/selectUser.vue +94 -85
  265. package/packages/flow/src/startTaskRead.vue +150 -156
  266. package/packages/flow/src/supervise.vue +44 -64
  267. package/packages/flow/src/table.vue +2 -10
  268. package/packages/flow-group/src/attachment.js +78 -0
  269. package/packages/flow-group/src/flow-item.vue +250 -0
  270. package/packages/flow-group/src/main.vue +151 -416
  271. package/packages/flow-list/index.js +5 -0
  272. package/packages/flow-list/src/main.vue +2432 -0
  273. package/packages/flowOld/index.js +7 -0
  274. package/packages/flowOld/src/component/Circulate.vue +464 -0
  275. package/packages/flowOld/src/component/CustomPreset.vue +343 -0
  276. package/packages/flowOld/src/component/FileList.vue +117 -0
  277. package/packages/flowOld/src/component/FreeCirculation.vue +278 -0
  278. package/packages/flowOld/src/component/Preset.vue +283 -0
  279. package/packages/flowOld/src/component/SendMsg.vue +309 -0
  280. package/packages/flowOld/src/component/TimeLimit.vue +223 -0
  281. package/packages/flowOld/src/component/opinions-file.vue +126 -0
  282. package/packages/flowOld/src/component/opinions.vue +429 -0
  283. package/packages/flowOld/src/component/taskUnionExamine.vue +832 -0
  284. package/packages/flowOld/src/form.vue +134 -0
  285. package/packages/flowOld/src/freeStartFlow.vue +2945 -0
  286. package/packages/flowOld/src/main.vue +4141 -0
  287. package/packages/flowOld/src/processForm.vue +1431 -0
  288. package/packages/flowOld/src/processReject.vue +338 -0
  289. package/packages/flowOld/src/reset.vue +964 -0
  290. package/packages/flowOld/src/selectUser.vue +520 -0
  291. package/packages/flowOld/src/startTaskRead.vue +737 -0
  292. package/packages/flowOld/src/supervise.vue +197 -0
  293. package/packages/flowOld/src/table.vue +71 -0
  294. package/packages/form/src/collapse.vue +40 -59
  295. package/packages/form/src/form-item-render.vue +117 -13
  296. package/packages/form/src/form-item.vue +121 -22
  297. package/packages/form/src/form.vue +62 -59
  298. package/packages/form/src/label-wrap.vue +5 -4
  299. package/packages/form/src/steps.vue +5 -8
  300. package/packages/form-editor/src/components.js +1077 -145
  301. package/packages/form-editor/src/form-editor.vue +94 -80
  302. package/packages/form-editor/src/props-panel.vue +59 -12
  303. package/packages/icons/src/icons.vue +91 -51
  304. package/packages/input/src/input.vue +787 -783
  305. package/packages/input-number/src/input-number.vue +58 -39
  306. package/packages/login/src/login.vue +9 -1
  307. package/packages/lowcode/src/util/components.js +64 -149
  308. package/packages/main/src/components/pages.vue +6 -42
  309. package/packages/main/src/minxs.js +26 -14
  310. package/packages/pagination/src/pagination.js +4 -4
  311. package/packages/phone-login/src/phone-login.vue +1 -4
  312. package/packages/process-rule/src/main.vue +10 -10
  313. package/packages/radio/src/radio-button.vue +10 -1
  314. package/packages/radio/src/radio-group.vue +110 -1
  315. package/packages/radio/src/radio.vue +32 -4
  316. package/packages/rate/src/rate.vue +49 -26
  317. package/packages/retrial-auth/src/main.vue +12 -12
  318. package/packages/select/src/option-group.vue +9 -1
  319. package/packages/select/src/option.vue +9 -1
  320. package/packages/select/src/select.vue +286 -224
  321. package/packages/selector/src/selector.vue +93 -85
  322. package/packages/selector-panel/src/mixin.js +0 -1
  323. package/packages/selector-panel/src/selection.vue +16 -8
  324. package/packages/selector-panel/src/selector-panel.vue +30 -19
  325. package/packages/slider/src/slider.vue +90 -64
  326. package/packages/steps/src/steps.vue +8 -6
  327. package/packages/switch/src/switch.vue +81 -56
  328. package/packages/table/src/store/index.js +3 -3
  329. package/packages/table/src/table.vue +69 -6
  330. package/packages/theme-chalk/src/autocomplete.scss +1 -1
  331. package/packages/theme-chalk/src/base.scss +16 -0
  332. package/packages/theme-chalk/src/cascader.scss +2 -0
  333. package/packages/theme-chalk/src/checkbox-group.scss +2 -0
  334. package/packages/theme-chalk/src/collapse.scss +2 -6
  335. package/packages/theme-chalk/src/common/var.scss +2 -2
  336. package/packages/theme-chalk/src/flow copy.scss +664 -0
  337. package/packages/theme-chalk/src/flow-group.scss +9 -14
  338. package/packages/theme-chalk/src/flow-list.scss +61 -0
  339. package/packages/theme-chalk/src/flow.scss +244 -360
  340. package/packages/theme-chalk/src/form-editor.scss +14 -5
  341. package/packages/theme-chalk/src/form.scss +26 -2
  342. package/packages/theme-chalk/src/icons.scss +30 -24
  343. package/packages/theme-chalk/src/index.scss +1 -0
  344. package/packages/theme-chalk/src/input.scss +6 -0
  345. package/packages/theme-chalk/src/radio-group.scss +3 -2
  346. package/packages/theme-chalk/src/retrial-auth.scss +3 -3
  347. package/packages/theme-chalk/src/selector.scss +14 -1
  348. package/packages/theme-chalk/src/switch.scss +1 -1
  349. package/packages/theme-chalk/src/tabs.scss +2 -5
  350. package/packages/toolbar/src/toolbar.vue +51 -18
  351. package/packages/transfer/src/transfer.vue +79 -40
  352. package/packages/upload/src/index.vue +1531 -1572
  353. package/packages/upload/src/upload.vue +0 -1
  354. package/src/components/field-render.vue +10 -7
  355. package/src/config/api.js +19 -0
  356. package/src/index.js +345 -342
  357. package/src/utils/label.js +53 -0
  358. package/src/utils/util.js +39 -0
@@ -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 = 266);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 270);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -91,348 +91,112 @@ 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__, "c", function() { return setStorage; });
95
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getStorage; });
96
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeStorage; });
97
- /* unused harmony export setCookie */
98
- /* unused harmony export getCookie */
99
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
100
-
101
- /**
102
- * setStorage
103
- * @desc:设置本地储存数据
104
- * @author huangbo
105
- * @date 2022年5月7日
106
- * @param {String|Object} [key] - 数据的名称或包含type、key、value的对象
107
- * @param {String} [value] - 数据的值(当第一个参数为字符串时使用)
108
- **/
109
- var setStorage = function setStorage(key, value) {
110
- // 解析参数,支持两种调用方式:setStorage(key, value) 和 setStorage({type, key, value})
111
- var type = void 0,
112
- finalKey = void 0,
113
- finalValue = void 0;
114
-
115
- if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object' && key !== null) {
116
- // 对象调用方式:setStorage({type, key, value})
117
- type = key.type;
118
- finalKey = key.key;
119
- finalValue = key.value;
120
- } else {
121
- // 字符串调用方式:setStorage(key, value)
122
- type = getStorage('storageType');
123
- finalKey = key;
124
- finalValue = value;
125
- }
126
-
127
- // 使用默认存储类型如果未指定
128
- type = type || getStorage('storageType');
129
-
130
- // 获取存储对象
131
- var storage = type === 'localStorage' ? localStorage : sessionStorage;
132
-
133
- // 处理不同类型的key
134
- if (typeof finalKey === 'string') {
135
- // 单个字符串key
136
- var storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
137
- storage.setItem(finalKey, storedValue);
138
- if (finalKey === 'token') {
139
- setCookie('token', storedValue);
140
- }
141
- } else if (Array.isArray(finalKey)) {
142
- // 数组key,为多个key设置同一个value
143
- var _storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
144
- for (var i = 0; i < finalKey.length; i++) {
145
- storage.setItem(finalKey[i], _storedValue);
146
- if (finalKey[i] === 'token') {
147
- setCookie('token', _storedValue);
148
- }
149
- }
150
- } else if ((typeof finalKey === 'undefined' ? 'undefined' : _typeof(finalKey)) === 'object' && finalKey !== null) {
151
- // 对象key,对象的属性名称作为key,属性值作为value
152
- for (var k in finalKey) {
153
- if (Object.prototype.hasOwnProperty.call(finalKey, k)) {
154
- var _storedValue2 = _typeof(finalKey[k]) === 'object' ? JSON.stringify(finalKey[k]) : finalKey[k];
155
- storage.setItem(k, _storedValue2);
156
- if (k === 'token') {
157
- setCookie('token', _storedValue2);
158
- }
159
- }
160
- }
161
- }
162
- };
163
-
164
- /**
165
- * getStorage
166
- * @desc:获取本地储存数据
167
- * @author huangbo
168
- * @date 2022年5月7日
169
- * @param {String} [key] - 获取的名称
170
- **/
171
- var getStorage = function getStorage(key) {
172
- if (key) {
173
- var res = sessionStorage.getItem(key) || localStorage.getItem(key);
174
- if (!res && key === 'token') {
175
- res = getCookie('token');
176
- }
177
- if (key === 'host' && !res) {
178
- res = '';
179
- }
180
- return res;
181
- }
182
- var defaults = {};
183
- var token = sessionStorage.getItem('token') || localStorage.getItem('token') || getCookie('token');
184
- var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || getCookie('ssId');
185
-
186
- var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || getCookie('deviceUnique');
187
- if (token) {
188
- defaults.Authorization = token;
189
- }
190
- if (ssId) {
191
- defaults.ssId = ssId;
192
- }
193
- if (deviceUnique) {
194
- defaults.deviceUnique = deviceUnique;
195
- }
196
- return defaults;
197
- };
198
-
199
- /**
200
- * removeStorage
201
- * @desc:删除本地储存数据
202
- * @author huangbo
203
- * @date 2022年5月7日
204
- * @param {String, Array} [key] - 获取的名称
205
- **/
206
- var removeStorage = function removeStorage(key) {
207
- if (Array.isArray(key)) {
208
- for (var i = 0; i < key.length; i++) {
209
- sessionStorage.removeItem(key[i]);
210
- localStorage.removeItem(key[i]);
211
- if (key[i] === 'token') {
212
- removeCookie('token');
213
- }
214
- }
215
- } else if (key) {
216
- sessionStorage.removeItem(key);
217
- localStorage.removeItem(key);
218
- if (key === 'token') {
219
- removeCookie('token');
220
- }
221
- } else {
222
- sessionStorage.clear();
223
- localStorage.clear();
224
- removeCookie('token');
225
- }
226
- };
227
-
228
- /**
229
- * setCookie
230
- * @desc 设置cookie
231
- * @author huangbo
232
- * @param {string} [name] cookie名称
233
- * @param {string} [value] cookie值
234
- * @param {boolean} [isSession] 是否是会话cookie
235
- **/
236
- var setCookie = function setCookie(name, value) {
237
- var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
238
- var time = arguments[3];
239
-
240
- try {
241
- var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
242
- ];
243
- // 会话/持久Cookie设置
244
- if (!isSession) {
245
- if (/MSIE|Trident/.test(navigator.userAgent)) {
246
- // IE使用expires
247
- var date = new Date();
248
- date.setTime(date.getTime() + (time || 7 * 24 * 60 * 60 * 1000));
249
- cookieParts.push('expires=' + date.toUTCString());
250
- } else {
251
- // 其他浏览器使用max-age
252
- cookieParts.push('max-age=' + (time || 7 * 24 * 60 * 60));
253
- }
254
- }
255
- // 内核兼容处理
256
- if (/MSIE|Trident/.test(navigator.userAgent)) {
257
- // IE特殊处理:添加P3P协议头
258
- cookieParts.push('P3P=CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
259
- } else {
260
- // 现代浏览器设置
261
- cookieParts.push('samesite=lax');
262
- if (window.location.protocol === 'https:') {
263
- cookieParts.push('secure');
264
- }
265
- }
266
-
267
- // 设置Cookie
268
- document.cookie = cookieParts.join('; ');
269
- return true;
270
- } catch (e) {
271
- console.error('Cookie设置失败:', e);
272
- return false;
273
- }
274
- };
275
-
276
- /**
277
- * getCookie
278
- * @desc 获取cookie中指定名称的值
279
- * @author huangbo
280
- * @param {string} [name] cookie名称
281
- **/
282
- var getCookie = function getCookie(name) {
283
- var cookies = document.cookie.split(';');
284
- for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
285
- var _ref;
286
-
287
- if (_isArray) {
288
- if (_i >= _iterator.length) break;
289
- _ref = _iterator[_i++];
290
- } else {
291
- _i = _iterator.next();
292
- if (_i.done) break;
293
- _ref = _i.value;
294
- }
295
-
296
- var cookie = _ref;
297
-
298
- var _cookie$trim$split = cookie.trim().split('='),
299
- cookieName = _cookie$trim$split[0],
300
- cookieValue = _cookie$trim$split[1];
301
-
302
- if (decodeURIComponent(cookieName) === name) {
303
- return decodeURIComponent(cookieValue);
304
- }
305
- }
306
- return null;
307
- };
308
-
309
- /**
310
- * removeCookie
311
- * @desc:删除cookie
312
- * @author huangbo
313
- * @date 2022年5月7日
314
- * @param {String, Array} [key] - 获取的名称
315
- **/
316
- var removeCookie = function removeCookie(key) {
317
- if (Array.isArray(key)) {
318
- for (var i = 0; i < key.length; i++) {
319
- document.cookie = encodeURIComponent(key[i]) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
320
- }
321
- } else {
322
- document.cookie = encodeURIComponent(key) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
323
- }
324
- };
325
-
326
- /***/ }),
327
-
328
- /***/ 1:
329
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
330
-
331
- "use strict";
332
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return noop; });
333
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return hasOwn; });
334
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return toObject; });
335
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getValueByPath; });
336
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return getPropByPath; });
337
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return generateId; });
338
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return valueEquals; });
339
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return escapeRegexpString; });
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", 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__, "X", 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; });
99
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return generateId; });
100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return valueEquals; });
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return escapeRegexpString; });
340
102
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return arrayFindIndex; });
341
103
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFind; });
342
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return coerceTruthyValueToArray; });
343
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return isIE; });
344
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return isEdge; });
345
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isFirefox; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return coerceTruthyValueToArray; });
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; });
346
108
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return autoprefixer; });
347
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return kebabCase; });
109
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return kebabCase; });
348
110
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return capitalize; });
349
111
  /* unused harmony export looseEqual */
350
112
  /* unused harmony export arrayEquals */
351
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return isEqual; });
352
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", 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; });
353
115
  /* unused harmony export objToArray */
354
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return requestAnimationFrame; });
116
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return requestAnimationFrame; });
355
117
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return cancelAnimationFrame; });
356
118
  /* unused harmony export debounce */
357
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return throttle; });
119
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return throttle; });
358
120
  /* unused harmony export guid */
359
121
  /* unused harmony export uid */
360
122
  /* unused harmony export get */
361
123
  /* unused harmony export set */
362
- /* unused harmony export cloneDeep */
124
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return cloneDeep; });
363
125
  /* unused harmony export grouping */
364
126
  /* unused harmony export pager */
365
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return getWinTop; });
127
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return getWinTop; });
366
128
  /* unused harmony export getFileType */
367
129
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrUnique; });
368
130
  /* unused harmony export average */
369
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return formatFileSize; });
131
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return formatFileSize; });
370
132
  /* unused harmony export browser */
371
133
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return busEmit; });
372
134
  /* unused harmony export chunkToChinese */
373
135
  /* unused harmony export concatenate */
374
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return delUrlParam; });
136
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return delUrlParam; });
375
137
  /* unused harmony export domEval */
376
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return downloadFile; });
377
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return encode; });
378
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return decode; });
379
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return exclAttribute; });
138
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return downloadFile; });
139
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return encode; });
140
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return decode; });
141
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return exclAttribute; });
380
142
  /* unused harmony export exportXls */
381
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return extend; });
143
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return extend; });
382
144
  /* unused harmony export getObjectType */
383
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return getParams; });
145
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return getParams; });
384
146
  /* unused harmony export getScript */
385
147
  /* unused harmony export getStyle */
386
148
  /* unused harmony export getTypeName */
387
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return getTypePrefix; });
149
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getTypePrefix; });
388
150
  /* unused harmony export getValues */
389
151
  /* unused harmony export getZoom */
390
152
  /* unused harmony export getLength */
391
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return timestampUrl; });
153
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return timestampUrl; });
392
154
  /* unused harmony export hasChars */
393
155
  /* unused harmony export identical */
394
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return indexOfObj; });
395
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return isEmpty; });
396
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isExist; });
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; });
397
159
  /* unused harmony export isFunction */
398
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return isObjectEqual; });
399
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return joinUrl; });
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; });
400
162
  /* unused harmony export getHorizontalMargin */
401
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return layoutWaterfall; });
163
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return layoutWaterfall; });
402
164
  /* unused harmony export loadJs */
403
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return loading; });
165
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return loading; });
404
166
  /* unused harmony export lowerCase */
405
167
  /* unused harmony export overbrim */
406
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return queryParams; });
168
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return queryParams; });
407
169
  /* unused harmony export receiveMessage */
408
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return renderIcon; });
170
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return renderIcon; });
409
171
  /* unused harmony export replenish */
410
172
  /* unused harmony export rmbToCapital */
411
173
  /* unused harmony export setScale */
412
174
  /* unused harmony export sendMessage */
413
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return setFavicon; });
175
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return setFavicon; });
414
176
  /* unused harmony export sum */
415
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return startWith; });
177
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return startWith; });
416
178
  /* unused harmony export takeLeft */
417
179
  /* unused harmony export takeRight */
418
180
  /* unused harmony export trimWhitespace */
419
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return toFixed; });
181
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return toFixed; });
420
182
  /* unused harmony export toFunction */
421
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return updateTheme; });
183
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return updateTheme; });
422
184
  /* unused harmony export upperType */
423
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return urlJoinParams; });
424
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return uuid; });
425
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return watermark; });
185
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return urlJoinParams; });
186
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return uuid; });
187
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return watermark; });
426
188
  /* unused harmony export winTopOpen */
427
189
  /* unused harmony export confirm */
428
- /* unused harmony export success */
429
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return error; });
430
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return warning; });
190
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return success; });
191
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return error; });
192
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return warning; });
193
+ /* unused harmony export base64 */
194
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return renderUrl; });
431
195
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
432
196
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
433
197
  /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
434
198
  /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
435
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
199
+ /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
436
200
  /* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
437
201
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
438
202
 
@@ -3282,10 +3046,290 @@ var warning = function warning(content, _callback3) {
3282
3046
  }
3283
3047
  return MessageBox.alert(content, '提示', config);
3284
3048
  };
3049
+ /**
3050
+ * @desc 基于 Unicode 的 base64 编码,兼容中文等非 Latin1 字符
3051
+ * @param {any} val 任意值,null/undefined 返回空串
3052
+ * @return {string}
3053
+ **/
3054
+ var base64 = function base64(val) {
3055
+ if (val === null || val === undefined) return '';
3056
+ try {
3057
+ return window.btoa(unescape(encodeURIComponent(String(val))));
3058
+ } catch (e) {
3059
+ return '';
3060
+ }
3061
+ };
3062
+
3063
+ /**
3064
+ * @desc URL 渲染,将 userInfo 中的值替换到 URL 中的占位符
3065
+ * @param {string} url 需要渲染的 URL
3066
+ * @param {object} userInfo 用户信息
3067
+ * @return {string}
3068
+ **/
3069
+ var renderUrl = function renderUrl(url) {
3070
+ var userInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3071
+
3072
+ if (!url || typeof url !== 'string') return url;
3073
+ // const userInfo = this.$main.userInfo || this.$main.userModel || {};
3074
+ Object.keys(userInfo).forEach(function (key) {
3075
+ var val = userInfo[key];
3076
+ if (val === null || val === undefined) return;
3077
+ var safeKey = escapeRegexpString(key);
3078
+ var rawVal = String(val);
3079
+ var b64Val = base64(rawVal);
3080
+ // {base64-xxx} 与 {xxx} 两种占位符都要替换;
3081
+ // 使用函数式 replacement,避免值中的 $& / $1 等被特殊解释
3082
+ url = url.replace(new RegExp('\\{base64-' + safeKey + '\\}', 'g'), function () {
3083
+ return b64Val;
3084
+ });
3085
+ url = url.replace(new RegExp('\\{' + safeKey + '\\}', 'g'), function () {
3086
+ return rawVal;
3087
+ });
3088
+ });
3089
+ return url;
3090
+ };
3285
3091
 
3286
3092
  /***/ }),
3287
3093
 
3288
- /***/ 10:
3094
+ /***/ 1:
3095
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3096
+
3097
+ "use strict";
3098
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return setStorage; });
3099
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getStorage; });
3100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeStorage; });
3101
+ /* unused harmony export setCookie */
3102
+ /* unused harmony export getCookie */
3103
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3104
+
3105
+ /**
3106
+ * setStorage
3107
+ * @desc:设置本地储存数据
3108
+ * @author huangbo
3109
+ * @date 2022年5月7日
3110
+ * @param {String|Object} [key] - 数据的名称或包含type、key、value的对象
3111
+ * @param {String} [value] - 数据的值(当第一个参数为字符串时使用)
3112
+ **/
3113
+ var setStorage = function setStorage(key, value) {
3114
+ // 解析参数,支持两种调用方式:setStorage(key, value) 和 setStorage({type, key, value})
3115
+ var type = void 0,
3116
+ finalKey = void 0,
3117
+ finalValue = void 0;
3118
+
3119
+ if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object' && key !== null) {
3120
+ // 对象调用方式:setStorage({type, key, value})
3121
+ type = key.type;
3122
+ finalKey = key.key;
3123
+ finalValue = key.value;
3124
+ } else {
3125
+ // 字符串调用方式:setStorage(key, value)
3126
+ type = getStorage('storageType');
3127
+ finalKey = key;
3128
+ finalValue = value;
3129
+ }
3130
+
3131
+ // 使用默认存储类型如果未指定
3132
+ type = type || getStorage('storageType');
3133
+
3134
+ // 获取存储对象
3135
+ var storage = type === 'localStorage' ? localStorage : sessionStorage;
3136
+
3137
+ // 处理不同类型的key
3138
+ if (typeof finalKey === 'string') {
3139
+ // 单个字符串key
3140
+ var storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
3141
+ storage.setItem(finalKey, storedValue);
3142
+ if (finalKey === 'token') {
3143
+ setCookie('token', storedValue);
3144
+ }
3145
+ } else if (Array.isArray(finalKey)) {
3146
+ // 数组key,为多个key设置同一个value
3147
+ var _storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
3148
+ for (var i = 0; i < finalKey.length; i++) {
3149
+ storage.setItem(finalKey[i], _storedValue);
3150
+ if (finalKey[i] === 'token') {
3151
+ setCookie('token', _storedValue);
3152
+ }
3153
+ }
3154
+ } else if ((typeof finalKey === 'undefined' ? 'undefined' : _typeof(finalKey)) === 'object' && finalKey !== null) {
3155
+ // 对象key,对象的属性名称作为key,属性值作为value
3156
+ for (var k in finalKey) {
3157
+ if (Object.prototype.hasOwnProperty.call(finalKey, k)) {
3158
+ var _storedValue2 = _typeof(finalKey[k]) === 'object' ? JSON.stringify(finalKey[k]) : finalKey[k];
3159
+ storage.setItem(k, _storedValue2);
3160
+ if (k === 'token') {
3161
+ setCookie('token', _storedValue2);
3162
+ }
3163
+ }
3164
+ }
3165
+ }
3166
+ };
3167
+
3168
+ /**
3169
+ * getStorage
3170
+ * @desc:获取本地储存数据
3171
+ * @author huangbo
3172
+ * @date 2022年5月7日
3173
+ * @param {String} [key] - 获取的名称
3174
+ **/
3175
+ var getStorage = function getStorage(key) {
3176
+ if (key) {
3177
+ var res = sessionStorage.getItem(key) || localStorage.getItem(key);
3178
+ if (!res && key === 'token') {
3179
+ res = getCookie('token');
3180
+ }
3181
+ if (key === 'host' && !res) {
3182
+ res = '';
3183
+ }
3184
+ return res;
3185
+ }
3186
+ var defaults = {};
3187
+ var token = sessionStorage.getItem('token') || localStorage.getItem('token') || getCookie('token');
3188
+ var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || getCookie('ssId');
3189
+
3190
+ var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || getCookie('deviceUnique');
3191
+ if (token) {
3192
+ defaults.Authorization = token;
3193
+ }
3194
+ if (ssId) {
3195
+ defaults.ssId = ssId;
3196
+ }
3197
+ if (deviceUnique) {
3198
+ defaults.deviceUnique = deviceUnique;
3199
+ }
3200
+ return defaults;
3201
+ };
3202
+
3203
+ /**
3204
+ * removeStorage
3205
+ * @desc:删除本地储存数据
3206
+ * @author huangbo
3207
+ * @date 2022年5月7日
3208
+ * @param {String, Array} [key] - 获取的名称
3209
+ **/
3210
+ var removeStorage = function removeStorage(key) {
3211
+ if (Array.isArray(key)) {
3212
+ for (var i = 0; i < key.length; i++) {
3213
+ sessionStorage.removeItem(key[i]);
3214
+ localStorage.removeItem(key[i]);
3215
+ if (key[i] === 'token') {
3216
+ removeCookie('token');
3217
+ }
3218
+ }
3219
+ } else if (key) {
3220
+ sessionStorage.removeItem(key);
3221
+ localStorage.removeItem(key);
3222
+ if (key === 'token') {
3223
+ removeCookie('token');
3224
+ }
3225
+ } else {
3226
+ sessionStorage.clear();
3227
+ localStorage.clear();
3228
+ removeCookie('token');
3229
+ }
3230
+ };
3231
+
3232
+ /**
3233
+ * setCookie
3234
+ * @desc 设置cookie
3235
+ * @author huangbo
3236
+ * @param {string} [name] cookie名称
3237
+ * @param {string} [value] cookie值
3238
+ * @param {boolean} [isSession] 是否是会话cookie
3239
+ **/
3240
+ var setCookie = function setCookie(name, value) {
3241
+ var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3242
+ var time = arguments[3];
3243
+
3244
+ try {
3245
+ var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
3246
+ ];
3247
+ // 会话/持久Cookie设置
3248
+ if (!isSession) {
3249
+ if (/MSIE|Trident/.test(navigator.userAgent)) {
3250
+ // IE使用expires
3251
+ var date = new Date();
3252
+ date.setTime(date.getTime() + (time || 7 * 24 * 60 * 60 * 1000));
3253
+ cookieParts.push('expires=' + date.toUTCString());
3254
+ } else {
3255
+ // 其他浏览器使用max-age
3256
+ cookieParts.push('max-age=' + (time || 7 * 24 * 60 * 60));
3257
+ }
3258
+ }
3259
+ // 内核兼容处理
3260
+ if (/MSIE|Trident/.test(navigator.userAgent)) {
3261
+ // IE特殊处理:添加P3P协议头
3262
+ cookieParts.push('P3P=CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
3263
+ } else {
3264
+ // 现代浏览器设置
3265
+ cookieParts.push('samesite=lax');
3266
+ if (window.location.protocol === 'https:') {
3267
+ cookieParts.push('secure');
3268
+ }
3269
+ }
3270
+
3271
+ // 设置Cookie
3272
+ document.cookie = cookieParts.join('; ');
3273
+ return true;
3274
+ } catch (e) {
3275
+ console.error('Cookie设置失败:', e);
3276
+ return false;
3277
+ }
3278
+ };
3279
+
3280
+ /**
3281
+ * getCookie
3282
+ * @desc 获取cookie中指定名称的值
3283
+ * @author huangbo
3284
+ * @param {string} [name] cookie名称
3285
+ **/
3286
+ var getCookie = function getCookie(name) {
3287
+ var cookies = document.cookie.split(';');
3288
+ for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
3289
+ var _ref;
3290
+
3291
+ if (_isArray) {
3292
+ if (_i >= _iterator.length) break;
3293
+ _ref = _iterator[_i++];
3294
+ } else {
3295
+ _i = _iterator.next();
3296
+ if (_i.done) break;
3297
+ _ref = _i.value;
3298
+ }
3299
+
3300
+ var cookie = _ref;
3301
+
3302
+ var _cookie$trim$split = cookie.trim().split('='),
3303
+ cookieName = _cookie$trim$split[0],
3304
+ cookieValue = _cookie$trim$split[1];
3305
+
3306
+ if (decodeURIComponent(cookieName) === name) {
3307
+ return decodeURIComponent(cookieValue);
3308
+ }
3309
+ }
3310
+ return null;
3311
+ };
3312
+
3313
+ /**
3314
+ * removeCookie
3315
+ * @desc:删除cookie
3316
+ * @author huangbo
3317
+ * @date 2022年5月7日
3318
+ * @param {String, Array} [key] - 获取的名称
3319
+ **/
3320
+ var removeCookie = function removeCookie(key) {
3321
+ if (Array.isArray(key)) {
3322
+ for (var i = 0; i < key.length; i++) {
3323
+ document.cookie = encodeURIComponent(key[i]) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
3324
+ }
3325
+ } else {
3326
+ document.cookie = encodeURIComponent(key) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
3327
+ }
3328
+ };
3329
+
3330
+ /***/ }),
3331
+
3332
+ /***/ 10:
3289
3333
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3290
3334
 
3291
3335
  "use strict";
@@ -3300,23 +3344,23 @@ var warning = function warning(content, _callback3) {
3300
3344
  /* unused harmony export downloadZip */
3301
3345
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
3302
3346
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
3303
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
3347
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26);
3304
3348
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
3305
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);
3349
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
3306
3350
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
3307
3351
  /* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20);
3308
- /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
3352
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28);
3309
3353
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
3310
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0);
3354
+ /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
3311
3355
  /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21);
3312
3356
  /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(fetch_request_source__WEBPACK_IMPORTED_MODULE_5__);
3313
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1);
3314
- /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6);
3357
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
3358
+ /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(5);
3315
3359
  /* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8);
3316
3360
  /* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__);
3317
3361
  /* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9);
3318
3362
  /* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__);
3319
- /* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(32);
3363
+ /* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29);
3320
3364
  /* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__);
3321
3365
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
3322
3366
 
@@ -3550,7 +3594,7 @@ var ajax = function ajax(_ref) {
3550
3594
  delete params[key];
3551
3595
  }
3552
3596
  }
3553
- url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "W"])({ url: url, param: encodedParams });
3597
+ url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Z"])({ url: url, param: encodedParams });
3554
3598
  }
3555
3599
  } else {
3556
3600
  params = {};
@@ -3908,7 +3952,7 @@ function redirectToLogin() {
3908
3952
 
3909
3953
  if (loginPage) {
3910
3954
  // 处理相对路径
3911
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "Q"])(loginPage, ['http', '/'], true)) {
3955
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "S"])(loginPage, ['http', '/'], true)) {
3912
3956
  var pathname = '';
3913
3957
  try {
3914
3958
  pathname = window.top.location.pathname;
@@ -3940,7 +3984,7 @@ function redirectToLogin() {
3940
3984
  * @returns {Promise} 认证完成后 resolve
3941
3985
  */
3942
3986
  var initAuth = function initAuth() {
3943
- var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])();
3987
+ var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "t"])();
3944
3988
  var token = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('token') || Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('Authorization');
3945
3989
 
3946
3990
  // 已有 token 或没有认证参数,直接返回
@@ -3948,7 +3992,7 @@ var initAuth = function initAuth() {
3948
3992
  return Promise.resolve();
3949
3993
  }
3950
3994
 
3951
- var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "J"])('页面加载中...');
3995
+ var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('页面加载中...');
3952
3996
 
3953
3997
  return ajax({
3954
3998
  method: 'post',
@@ -3969,13 +4013,13 @@ var initAuth = function initAuth() {
3969
4013
  });
3970
4014
  // 清理 URL 参数并刷新
3971
4015
  try {
3972
- var url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* delUrlParam */ "j"])({
4016
+ var url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* delUrlParam */ "k"])({
3973
4017
  url: window.top.location.href,
3974
4018
  key: ['serverId', 'authType', 'code', 'sessionId']
3975
4019
  });
3976
4020
  window.top.location.href = url;
3977
4021
  } catch (e) {
3978
- var _url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* delUrlParam */ "j"])({
4022
+ var _url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* delUrlParam */ "k"])({
3979
4023
  url: window.location.href,
3980
4024
  key: ['serverId', 'authType', 'code', 'sessionId']
3981
4025
  });
@@ -4027,7 +4071,7 @@ var isLogined = function isLogined(_ref3) {
4027
4071
 
4028
4072
  // 处理cookie参数
4029
4073
  if (cookie === undefined) {
4030
- cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])({ name: 'cookie' });
4074
+ cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "t"])({ name: 'cookie' });
4031
4075
  }
4032
4076
 
4033
4077
  // 处理登录页面路径
@@ -4042,7 +4086,7 @@ var isLogined = function isLogined(_ref3) {
4042
4086
  sessionStorage.setItem('loginPage', loginPage);
4043
4087
 
4044
4088
  // 处理相对路径
4045
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "Q"])(loginPage, ['http', '/'], true)) {
4089
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "S"])(loginPage, ['http', '/'], true)) {
4046
4090
  if (pathname !== '/') {
4047
4091
  var pathParts = pathname.split('/');
4048
4092
  pathParts.splice(pathParts.length - 1);
@@ -4067,7 +4111,7 @@ var isLogined = function isLogined(_ref3) {
4067
4111
 
4068
4112
  // 处理重定向
4069
4113
  if (redirect && (to.path === '/main' || to.path === '/login')) {
4070
- window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "W"])({ url: '.' + to.path + '.html', param: to.query }));
4114
+ window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Z"])({ url: '.' + to.path + '.html', param: to.query }));
4071
4115
  } else {
4072
4116
  next();
4073
4117
  }
@@ -4120,7 +4164,7 @@ function redirectToLoginPage(loginPage, next) {
4120
4164
  * @param {function} callback - 回调函数
4121
4165
  **/
4122
4166
  var getMainConfig = function getMainConfig(callback) {
4123
- ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "wb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
4167
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "Cb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
4124
4168
  if (res && res.rCode === 0) {
4125
4169
  callback(res.results);
4126
4170
  }
@@ -4143,7 +4187,7 @@ var getSysCodeList = function getSysCodeList(_ref4) {
4143
4187
  method = _ref4$method === undefined ? 'POST' : _ref4$method,
4144
4188
  service = _ref4.service,
4145
4189
  _ref4$url = _ref4.url,
4146
- url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "D"] : _ref4$url,
4190
+ url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "H"] : _ref4$url,
4147
4191
  sysCode = _ref4.sysCode,
4148
4192
  _ref4$param = _ref4.param,
4149
4193
  param = _ref4$param === undefined ? {} : _ref4$param,
@@ -4253,7 +4297,7 @@ var downloadFile = function downloadFile(_ref6) {
4253
4297
  file = _ref6.file,
4254
4298
  withToken = _ref6.withToken;
4255
4299
 
4256
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "y"] };
4300
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "C"] };
4257
4301
 
4258
4302
  var downloadUrl = '';
4259
4303
  if (file.adjunctId || file.response && file.response.adjunctId) {
@@ -4270,7 +4314,7 @@ var downloadFile = function downloadFile(_ref6) {
4270
4314
 
4271
4315
  // 拼接URL参数
4272
4316
  if (Object.keys(params).length > 0) {
4273
- downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "W"])({ url: downloadUrl, param: params });
4317
+ downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Z"])({ url: downloadUrl, param: params });
4274
4318
  }
4275
4319
  } else if (file.raw) {
4276
4320
  downloadUrl = URL.createObjectURL(file.raw);
@@ -4316,7 +4360,7 @@ var downloadZip = function downloadZip(_ref7) {
4316
4360
  code = _ref7.code,
4317
4361
  option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
4318
4362
 
4319
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Wc"] };
4363
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "md"] };
4320
4364
 
4321
4365
  // 处理URL和参数
4322
4366
  var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
@@ -4332,7 +4376,7 @@ var downloadZip = function downloadZip(_ref7) {
4332
4376
 
4333
4377
  // 拼接URL参数
4334
4378
  if (Object.keys(params).length > 0) {
4335
- downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "W"])({ url: downloadUrl, param: params });
4379
+ downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Z"])({ url: downloadUrl, param: params });
4336
4380
  }
4337
4381
 
4338
4382
  // 创建a标签
@@ -4368,7 +4412,7 @@ var deleteFile = function deleteFile(_ref8) {
4368
4412
  onSuccess = _ref8.onSuccess,
4369
4413
  onError = _ref8.onError;
4370
4414
 
4371
- var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "p"] + '\' }');
4415
+ var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "q"] + '\' }');
4372
4416
 
4373
4417
  // 处理URL和参数
4374
4418
  var deleteUrl = url ? url : dochubConfig.deleteDocumentUrl;
@@ -4437,7 +4481,7 @@ var getTableData = function getTableData(_ref9) {
4437
4481
  onSuccess = _ref9.onSuccess,
4438
4482
  onError = _ref9.onError;
4439
4483
 
4440
- var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "J"])('数据加载中...');
4484
+ var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('数据加载中...');
4441
4485
  return new Promise(function (resolve, reject) {
4442
4486
  ajax({
4443
4487
  method: method,
@@ -4479,7 +4523,7 @@ var getTableData = function getTableData(_ref9) {
4479
4523
  /* unused harmony export hsvTorgb */
4480
4524
  /* unused harmony export mixColor */
4481
4525
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getRgb; });
4482
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
4526
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
4483
4527
 
4484
4528
  var $hueStep = 2;
4485
4529
  var $saturationStep1 = 0.16;
@@ -4530,7 +4574,7 @@ var getColor = function getColor($color, $n) {
4530
4574
  var getLightness = function getLightness($v, $i, $isLight) {
4531
4575
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
4532
4576
  $value = $value < 1 ? $value : 1;
4533
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "T"])($value, 2);
4577
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "W"])($value, 2);
4534
4578
  };
4535
4579
 
4536
4580
  /**
@@ -4554,7 +4598,7 @@ var getSaturation = function getSaturation($s, $i, $isLight) {
4554
4598
  $saturation = 0.1;
4555
4599
  }
4556
4600
  $saturation = $saturation > 0.06 ? $saturation : 0.06;
4557
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "T"])($saturation, 2);
4601
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "W"])($saturation, 2);
4558
4602
  };
4559
4603
 
4560
4604
  /**
@@ -4709,7 +4753,7 @@ module.exports = require("vue");
4709
4753
  "use strict";
4710
4754
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
4711
4755
  /* unused harmony export doDecrypt */
4712
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
4756
+ /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
4713
4757
  var sm2 = __webpack_require__(42).sm2;
4714
4758
 
4715
4759
 
@@ -4769,14 +4813,28 @@ module.exports = require("fetch-request-source");
4769
4813
 
4770
4814
  /***/ }),
4771
4815
 
4772
- /***/ 266:
4816
+ /***/ 26:
4817
+ /***/ (function(module, exports) {
4818
+
4819
+ module.exports = require("qs");
4820
+
4821
+ /***/ }),
4822
+
4823
+ /***/ 27:
4824
+ /***/ (function(module, exports) {
4825
+
4826
+ module.exports = require("axios");
4827
+
4828
+ /***/ }),
4829
+
4830
+ /***/ 270:
4773
4831
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4774
4832
 
4775
4833
  "use strict";
4776
4834
  // ESM COMPAT FLAG
4777
4835
  __webpack_require__.r(__webpack_exports__);
4778
4836
 
4779
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/retrial-auth/src/main.vue?vue&type=template&id=e99dbca6&
4837
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/retrial-auth/src/main.vue?vue&type=template&id=1b44e823&
4780
4838
  var render = function () {
4781
4839
  var _vm = this
4782
4840
  var _h = _vm.$createElement
@@ -4806,14 +4864,14 @@ var render = function () {
4806
4864
  },
4807
4865
  })
4808
4866
  : _c(
4809
- "el-form",
4867
+ "es-form",
4810
4868
  {
4811
4869
  ref: "auth",
4812
4870
  staticClass: "es-retrial-auth-form",
4813
4871
  attrs: { model: _vm.formData },
4814
4872
  },
4815
4873
  [
4816
- _c("el-form-item", [
4874
+ _c("es-form-item", [
4817
4875
  _c("div", [
4818
4876
  _vm._v(
4819
4877
  "\n 验证码将发送至" +
@@ -4827,7 +4885,7 @@ var render = function () {
4827
4885
  ]),
4828
4886
  ]),
4829
4887
  _c(
4830
- "el-form-item",
4888
+ "es-form-item",
4831
4889
  {
4832
4890
  attrs: {
4833
4891
  size: "large",
@@ -4843,7 +4901,7 @@ var render = function () {
4843
4901
  },
4844
4902
  [
4845
4903
  _c(
4846
- "el-input",
4904
+ "es-input",
4847
4905
  {
4848
4906
  staticClass: "es-label-image-code",
4849
4907
  attrs: {
@@ -4867,7 +4925,7 @@ var render = function () {
4867
4925
  { slot: "suffix" },
4868
4926
  [
4869
4927
  _c(
4870
- "el-button",
4928
+ "es-button",
4871
4929
  {
4872
4930
  staticClass: "es-get-code",
4873
4931
  attrs: {
@@ -4893,7 +4951,7 @@ var render = function () {
4893
4951
  1
4894
4952
  ),
4895
4953
  _c(
4896
- "el-button",
4954
+ "es-button",
4897
4955
  {
4898
4956
  staticClass: "es-button-submit",
4899
4957
  attrs: { type: "primary" },
@@ -4930,19 +4988,19 @@ var staticRenderFns = []
4930
4988
  render._withStripped = true
4931
4989
 
4932
4990
 
4933
- // CONCATENATED MODULE: ./packages/retrial-auth/src/main.vue?vue&type=template&id=e99dbca6&
4991
+ // CONCATENATED MODULE: ./packages/retrial-auth/src/main.vue?vue&type=template&id=1b44e823&
4934
4992
 
4935
4993
  // EXTERNAL MODULE: ./src/utils/util.js
4936
- var utils_util = __webpack_require__(1);
4994
+ var utils_util = __webpack_require__(0);
4937
4995
 
4938
4996
  // EXTERNAL MODULE: ./src/utils/storage.js
4939
- var storage = __webpack_require__(0);
4997
+ var storage = __webpack_require__(1);
4940
4998
 
4941
4999
  // EXTERNAL MODULE: ./src/utils/ajax.js
4942
5000
  var ajax = __webpack_require__(10);
4943
5001
 
4944
5002
  // EXTERNAL MODULE: ./src/config/api.js
4945
- var api = __webpack_require__(6);
5003
+ var api = __webpack_require__(5);
4946
5004
 
4947
5005
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/retrial-auth/src/main.vue?vue&type=script&lang=js&
4948
5006
  //
@@ -5077,7 +5135,7 @@ var api = __webpack_require__(6);
5077
5135
  var mainConfig = Object(storage["a" /* getStorage */])('mainConfig');
5078
5136
  mainConfig && (this.userModel = JSON.parse(mainConfig).userModel);
5079
5137
  Object(ajax["a" /* ajax */])({
5080
- url: api["pb" /* initRetrialAuth */]
5138
+ url: api["ub" /* initRetrialAuth */]
5081
5139
  }).then(function (res) {
5082
5140
  var rCode = res.rCode,
5083
5141
  results = res.results;
@@ -5108,7 +5166,7 @@ var api = __webpack_require__(6);
5108
5166
  verificationCode: _this3.formData.verificationCode
5109
5167
  };
5110
5168
  util.ajax({
5111
- url: api["l" /* codeRetrialAuth */],
5169
+ url: api["m" /* codeRetrialAuth */],
5112
5170
  method: 'post',
5113
5171
  data: params
5114
5172
  }).then(function (res) {
@@ -5121,7 +5179,7 @@ var api = __webpack_require__(6);
5121
5179
  type: 'success'
5122
5180
  });
5123
5181
  _this3.msgBox.handleClose();
5124
- var topWin = Object(utils_util["w" /* getWinTop */])();
5182
+ var topWin = Object(utils_util["x" /* getWinTop */])();
5125
5183
  try {
5126
5184
  if (_this3.reload) {
5127
5185
  topWin.location.reload();
@@ -5169,7 +5227,7 @@ var api = __webpack_require__(6);
5169
5227
  }
5170
5228
  }, 1000);
5171
5229
  util.ajax({
5172
- url: api["ab" /* getRetrialAuthCode */],
5230
+ url: api["fb" /* getRetrialAuthCode */],
5173
5231
  method: 'post',
5174
5232
  data: params,
5175
5233
  params: params
@@ -5194,7 +5252,7 @@ var api = __webpack_require__(6);
5194
5252
  uuid: this.uuid
5195
5253
  };
5196
5254
  util.ajax({
5197
- url: api["hc" /* scanCodeRetrialAuth */],
5255
+ url: api["tc" /* scanCodeRetrialAuth */],
5198
5256
  method: 'post',
5199
5257
  data: params,
5200
5258
  params: params
@@ -5209,7 +5267,7 @@ var api = __webpack_require__(6);
5209
5267
  type: 'success'
5210
5268
  });
5211
5269
  _this5.msgBox.handleClose();
5212
- var topWin = Object(utils_util["w" /* getWinTop */])();
5270
+ var topWin = Object(utils_util["x" /* getWinTop */])();
5213
5271
  try {
5214
5272
  if (_this5.reload) {
5215
5273
  topWin.location.reload();
@@ -5276,15 +5334,22 @@ main.install = function (Vue) {
5276
5334
 
5277
5335
  /***/ }),
5278
5336
 
5279
- /***/ 29:
5337
+ /***/ 28:
5280
5338
  /***/ (function(module, exports) {
5281
5339
 
5282
- module.exports = require("qs");
5340
+ module.exports = require("json-bigint");
5283
5341
 
5284
5342
  /***/ }),
5285
5343
 
5286
- /***/ 3:
5287
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5344
+ /***/ 29:
5345
+ /***/ (function(module, exports) {
5346
+
5347
+ module.exports = require("eoss/lib/retrial-auth");
5348
+
5349
+ /***/ }),
5350
+
5351
+ /***/ 3:
5352
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5288
5353
 
5289
5354
  "use strict";
5290
5355
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
@@ -5350,27 +5415,6 @@ function isDefined(val) {
5350
5415
 
5351
5416
  /***/ }),
5352
5417
 
5353
- /***/ 30:
5354
- /***/ (function(module, exports) {
5355
-
5356
- module.exports = require("axios");
5357
-
5358
- /***/ }),
5359
-
5360
- /***/ 31:
5361
- /***/ (function(module, exports) {
5362
-
5363
- module.exports = require("json-bigint");
5364
-
5365
- /***/ }),
5366
-
5367
- /***/ 32:
5368
- /***/ (function(module, exports) {
5369
-
5370
- module.exports = require("eoss/lib/retrial-auth");
5371
-
5372
- /***/ }),
5373
-
5374
5418
  /***/ 4:
5375
5419
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5376
5420
 
@@ -5483,151 +5527,155 @@ module.exports = require("sm-crypto");
5483
5527
 
5484
5528
  /***/ }),
5485
5529
 
5486
- /***/ 6:
5530
+ /***/ 5:
5487
5531
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5488
5532
 
5489
5533
  "use strict";
5490
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCaLogin; });
5491
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return doUserLogin; });
5492
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doQrLogin; });
5493
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return logout; });
5494
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initLogin; });
5495
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return switchUserTo; });
5534
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return doCaLogin; });
5535
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return doUserLogin; });
5536
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return doQrLogin; });
5537
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return logout; });
5538
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return initLogin; });
5539
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return switchUserTo; });
5496
5540
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
5497
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getLoginCode; });
5498
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doCodeLogin; });
5541
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getLoginCode; });
5542
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return doCodeLogin; });
5499
5543
  /* unused harmony export updateCode */
5500
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getModifyPassCode; });
5501
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
5502
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return loginModifyPassword; });
5544
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getModifyPassCode; });
5545
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return codeModifyPass; });
5546
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return loginModifyPassword; });
5503
5547
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
5504
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return initModifyPassword; });
5548
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return initModifyPassword; });
5505
5549
  /* unused harmony export doWechatQrLogin */
5506
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getTwoFactorLoginCode; });
5550
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return getTwoFactorLoginCode; });
5507
5551
  /* unused harmony export doTwoFactorLogin */
5508
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return initRetrialAuth; });
5509
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getRetrialAuthCode; });
5510
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return scanCodeRetrialAuth; });
5511
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return codeRetrialAuth; });
5512
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doAssistanceQrLogin; });
5513
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zc", function() { return userOnline; });
5514
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return getUserAppWithTag; });
5515
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return recordUserApp; });
5516
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return getUserRecordApp; });
5517
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return mainConfig; });
5518
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return initUserSet; });
5519
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return updateUserInfo; });
5552
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return initRetrialAuth; });
5553
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getRetrialAuthCode; });
5554
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return scanCodeRetrialAuth; });
5555
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return codeRetrialAuth; });
5556
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return doAssistanceQrLogin; });
5557
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pd", function() { return userOnline; });
5558
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return getUserAppWithTag; });
5559
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return recordUserApp; });
5560
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return getUserRecordApp; });
5561
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return mainConfig; });
5562
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return initUserSet; });
5563
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ld", function() { return updateUserInfo; });
5520
5564
  /* unused harmony export getUserImgUrl */
5521
5565
  /* unused harmony export getDoorIndex */
5522
5566
  /* unused harmony export refreshOnlineUsers */
5523
5567
  /* unused harmony export getQuickMenuIds */
5524
5568
  /* unused harmony export getApplicationIdArray */
5525
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplications; });
5526
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getComplexApplicationsNew; });
5527
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getMainAppWithTag; });
5528
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getByType; });
5569
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getComplexApplications; });
5570
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getComplexApplicationsNew; });
5571
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getMainAppWithTag; });
5572
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getByType; });
5529
5573
  /* unused harmony export getUserCustomInfo */
5530
5574
  /* unused harmony export updateUserCustomInfo */
5531
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return saveOrUpdate; });
5532
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return sysMsgPage; });
5533
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return ignoreSysMsg; });
5534
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return ignoreAllSysMsg; });
5535
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return searchType; });
5536
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getSysParam; });
5537
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getAdjunctProperties; });
5538
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yc", function() { return uploads; });
5539
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xc", function() { return uploadOnlyOne; });
5540
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctFileInfos; });
5575
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return saveOrUpdate; });
5576
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return sysMsgPage; });
5577
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return ignoreSysMsg; });
5578
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return ignoreAllSysMsg; });
5579
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return searchType; });
5580
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return getSysParam; });
5581
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getAdjunctProperties; });
5582
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "od", function() { return uploads; });
5583
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nd", function() { return uploadOnlyOne; });
5584
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getAdjunctFileInfos; });
5541
5585
  /* unused harmony export uploadSort */
5542
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return downloadByAdjunctId; });
5543
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return uploadDownloads; });
5544
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return previewAdjunct; });
5545
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return previewAdjunct2; });
5546
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return previewAdjunctOffice; });
5547
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return delAdjunct; });
5586
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return downloadByAdjunctId; });
5587
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "md", function() { return uploadDownloads; });
5588
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return previewAdjunct; });
5589
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return previewAdjunct2; });
5590
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return previewAdjunctOffice; });
5591
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return delAdjunct; });
5548
5592
  /* unused harmony export upload_updateClassify */
5549
5593
  /* unused harmony export getDeleteAdjunctFileInfos */
5550
5594
  /* unused harmony export getPictureBase64 */
5551
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSelectorOrgTree; });
5552
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSelectorOrgDetail; });
5553
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getOrgMainTree; });
5595
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return getSelectorOrgTree; });
5596
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getSelectorOrgDetail; });
5597
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getOrgMainTree; });
5554
5598
  /* unused harmony export getSelectOrgsubids */
5555
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCode; });
5599
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return findSysCode; });
5556
5600
  /* unused harmony export getDictList */
5557
5601
  /* unused harmony export findUserBaseInfo */
5558
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return gethelpdoc; });
5602
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return gethelpdoc; });
5559
5603
  /* unused harmony export getCurrentuser */
5560
5604
  /* unused harmony export mainDetail */
5561
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toStartFlow; });
5562
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return tempSave; });
5563
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return commonOpion; });
5605
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return toStartFlow; });
5606
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return tempSave; });
5607
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return commonOpion; });
5564
5608
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
5565
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return editCommonOpion; });
5566
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return saveCommonOpinion; });
5567
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return updateCommonOpinion; });
5568
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteCommonOpion; });
5569
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getProcessDefList; });
5570
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfo; });
5571
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findCodeValues; });
5572
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return findSysParam; });
5573
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysCodes; });
5574
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getNotificationMsg; });
5575
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getHandleInfoHtml; });
5576
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskHandleHtml; });
5609
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return editCommonOpion; });
5610
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return saveCommonOpinion; });
5611
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jd", function() { return updateCommonOpinion; });
5612
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return deleteCommonOpion; });
5613
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getProcessDefList; });
5614
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getNodeInfo; });
5615
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return findCodeValues; });
5616
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return findSysParam; });
5617
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return findSysCodes; });
5618
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getNotificationMsg; });
5619
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getHandleInfoHtml; });
5620
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return taskHandleHtml; });
5577
5621
  /* unused harmony export getView */
5578
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return register; });
5579
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return pendedhistoryList; });
5580
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskRejectHtml; });
5581
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskRejectHtml; });
5582
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toStartTaskRead; });
5583
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toStartTaskReadIndex; });
5584
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskReadHtml; });
5585
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return rejectAndEnd; });
5586
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toSendMsg; });
5587
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sendMsg; });
5588
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return endFlowHtml; });
5589
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return handleInfo; });
5590
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return loginUserInfo; });
5591
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ad", function() { return wss; });
5592
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return topic; });
5593
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetCustomInfo; });
5594
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getPresetNodeInfo; });
5595
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return toTaskTransferIndex; });
5596
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return taskTransfer; });
5597
- /* unused harmony export toPresetInfoListIndex */
5598
- /* unused harmony export deletePresetInfo */
5622
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return register; });
5623
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return pendedhistoryList; });
5624
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xc", function() { return toTaskRejectHtml; });
5625
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return taskRejectHtml; });
5626
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return toStartTaskRead; });
5627
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return toStartTaskReadIndex; });
5628
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return taskReadHtml; });
5629
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return rejectAndEnd; });
5630
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return toSendMsg; });
5631
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return sendMsg; });
5632
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return endFlowHtml; });
5633
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return handleInfo; });
5634
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return loginUserInfo; });
5635
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qd", function() { return wss; });
5636
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hd", function() { return topic; });
5637
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getPresetCustomInfo; });
5638
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getPresetNodeInfo; });
5639
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dd", function() { return toTaskTransferIndex; });
5640
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return taskTransfer; });
5641
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return toPresetInfoListIndex; });
5642
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return deletePresetInfo; });
5599
5643
  /* unused harmony export historyListJson */
5600
- /* unused harmony export pendedhistoryListJson */
5601
- /* unused harmony export pressListJson */
5602
- /* unused harmony export deleteFlow */
5603
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return isCanStartSubFlow; });
5604
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return toTaskUnionExamine; });
5605
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return taskUnionExamine; });
5606
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTaskTakeAdvice; });
5607
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return taskTakeAdvice; });
5608
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskStartDraft; });
5609
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskSupervise; });
5610
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskSuperviseSub; });
5611
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskStartDraft; });
5612
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskReview; });
5613
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskReview; });
5614
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return toTaskUnionSeal; });
5615
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return taskUnionSeal; });
5616
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return toTwoOfficesDispatch; });
5617
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return twoOfficesDispatch; });
5618
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toResetProcessIndex; });
5619
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return resetProcess; });
5620
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskContinuationIndex; });
5621
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskContinuation; });
5622
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getFreeStartFlowParams; });
5623
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeStartFlowWithSubmitTask; });
5644
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return pendedhistoryListJson; });
5645
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return pressListJson; });
5646
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return deleteFlow; });
5647
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return isCanStartSubFlow; });
5648
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ed", function() { return toTaskUnionExamine; });
5649
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return taskUnionExamine; });
5650
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cd", function() { return toTaskTakeAdvice; });
5651
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return taskTakeAdvice; });
5652
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zc", function() { return toTaskStartDraft; });
5653
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ad", function() { return toTaskSupervise; });
5654
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bd", function() { return toTaskSuperviseSub; });
5655
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return taskStartDraft; });
5656
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yc", function() { return toTaskReview; });
5657
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return taskReview; });
5658
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fd", function() { return toTaskUnionSeal; });
5659
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return taskUnionSeal; });
5660
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gd", function() { return toTwoOfficesDispatch; });
5661
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "id", function() { return twoOfficesDispatch; });
5662
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return toResetProcessIndex; });
5663
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return resetProcess; });
5664
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return toTaskContinuationIndex; });
5665
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return taskContinuation; });
5666
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getFreeStartFlowParams; });
5667
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return freeStartFlowWithSubmitTask; });
5624
5668
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
5625
- /* unused harmony export pendedhistoryListWithCircularReadJson */
5626
- /* unused harmony export fyListJson */
5627
- /* unused harmony export circularReadWithdraw */
5628
- /* unused harmony export taskReadWithDraw */
5629
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
5669
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return pendedhistoryListWithCircularReadJson; });
5670
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return fyListJson; });
5671
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return circularReadWithdraw; });
5672
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return taskReadWithDraw; });
5673
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
5630
5674
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
5675
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return resetJson; });
5676
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return deletedListJson; });
5677
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return restoredHistory; });
5678
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return modifyFlow; });
5631
5679
  /* unused harmony export sendList */
5632
5680
  /* unused harmony export sendInfo */
5633
5681
  /* unused harmony export sendSave */
@@ -5635,58 +5683,61 @@ module.exports = require("sm-crypto");
5635
5683
  /* unused harmony export sendDelete */
5636
5684
  /* unused harmony export sendBatch */
5637
5685
  /* unused harmony export formContents */
5638
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return directStartTaskCircularRead; });
5639
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowAndStartTaskCircularRead; });
5640
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNodeInfoForStart; });
5641
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlow; });
5642
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUrgencyLevelChangedNotificationType; });
5643
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toFreeTaskCircularRead; });
5644
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return freeTaskCircularRead; });
5645
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pageLists; });
5686
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return directStartTaskCircularRead; });
5687
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return endFlowAndStartTaskCircularRead; });
5688
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getNodeInfoForStart; });
5689
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return freeStartFlow; });
5690
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return getUrgencyLevelChangedNotificationType; });
5691
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return toFreeTaskCircularRead; });
5692
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return freeTaskCircularRead; });
5693
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return pageLists; });
5646
5694
  /* unused harmony export publishedLists */
5647
5695
  /* unused harmony export pageInfo */
5648
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageGroup; });
5649
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return pageSave; });
5650
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return pageUpdate; });
5651
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageDelete; });
5696
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return pageGroup; });
5697
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return pageSave; });
5698
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return pageUpdate; });
5699
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return pageDelete; });
5652
5700
  /* unused harmony export pageTargetDelete */
5653
5701
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
5654
5702
  /* unused harmony export batchUpdate */
5655
5703
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
5656
5704
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
5657
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return processListJson; });
5658
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processInfo; });
5659
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processDeleteJson; });
5660
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return processSave; });
5661
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return processUpdate; });
5662
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return nodeListJson; });
5663
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeDeleteJson; });
5664
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return nodeSave; });
5665
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return nodeUpdate; });
5666
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeInfo; });
5667
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return moduleListJson; });
5668
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleInfo; });
5669
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleDelete; });
5670
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return moduleSave; });
5671
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return moduleUpdate; });
5672
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleListJson; });
5673
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleEdit; });
5674
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return ruleRead; });
5675
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return ruleSave; });
5705
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return processListJson; });
5706
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return processInfo; });
5707
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return processDeleteJson; });
5708
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return processSave; });
5709
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return processUpdate; });
5710
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return nodeListJson; });
5711
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return nodeDeleteJson; });
5712
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return nodeSave; });
5713
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return nodeUpdate; });
5714
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return nodeInfo; });
5715
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return moduleListJson; });
5716
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return moduleInfo; });
5717
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return moduleDelete; });
5718
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return moduleSave; });
5719
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return moduleUpdate; });
5720
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return ruleListJson; });
5721
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return ruleEdit; });
5722
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return ruleRead; });
5723
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return ruleSave; });
5676
5724
  /* unused harmony export ruleSupplement */
5677
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return ruleUndore; });
5678
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleAdd; });
5679
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyDetail; });
5725
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return ruleUndore; });
5726
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return ruleAdd; });
5727
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return companyDetail; });
5680
5728
  /* unused harmony export issueDetailList */
5681
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return deleteRule; });
5682
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getSysParamV1; });
5683
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return companyList; });
5684
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return supplement; });
5685
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return isAddSource; });
5686
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return tiggerInTime; });
5687
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return updateHistory; });
5729
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return deleteRule; });
5730
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return getSysParamV1; });
5731
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return companyList; });
5732
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return supplement; });
5733
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return isAddSource; });
5734
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return tiggerInTime; });
5735
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kd", function() { return updateHistory; });
5688
5736
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
5689
5737
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
5738
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return toDefinitionChangeSort; });
5739
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return setSort; });
5740
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return isCancelSecondConfirmation; });
5690
5741
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
5691
5742
  // 登录
5692
5743
  var doCaLogin = '/sso2/signIn/auth/doCaLogin'; // ca登录认证
@@ -5937,6 +5988,15 @@ var taskReadWithDraw = '/bpm/bpmBackend/taskReadWithDraw';
5937
5988
  var startReadTransferHandleFlowWithTaskReadEnd = '/bpm/bpmBackend/startReadTransferHandleFlowWithTaskReadEnd';
5938
5989
  // 阅转办校验接口
5939
5990
  var checkBusinessIdStartedReadTransferHandle = '/bpm/bpmBackend/checkBusinessIdStartedReadTransferHandle';
5991
+ // 获取重设记录列表
5992
+ var resetJson = '/bpm/wfResetRecord/listJson.dhtml';
5993
+ // 获取删除记录列表
5994
+ var deletedListJson = '/bpm/pendedhistoryManager/deletedListJson.dhtml';
5995
+ // 恢复删除记录
5996
+ var restoredHistory = '/bpm/pendedhistoryManager/restoredHistory.dhtml';
5997
+ // 修改流程列表意见
5998
+ var modifyFlow = flowPendingPrefix + '/pendedhistoryManager/modify.dhtml';
5999
+
5940
6000
  // notifySend 消息发送
5941
6001
  var sendList = '/notify2/notifySendRecord/listJson';
5942
6002
  var sendInfo = '/notify2/notifySendRecord/info';
@@ -6054,6 +6114,13 @@ var auditTrajectory = '/baseOperationRecords/listJson';
6054
6114
  // 暂停定时任务
6055
6115
  var changeInTime = '/baseIssueRules/changeInTime';
6056
6116
 
6117
+ // 流程排序
6118
+ var toDefinitionChangeSort = '/bpm/bpmBackend/toDefinitionChangeSort';
6119
+ var setSort = '/bpm/bpmBackend/setSort';
6120
+
6121
+ // 是否取消二次确认
6122
+ var isCancelSecondConfirmation = '/bpm/bpmBackend/isCancelSecondConfirmation';
6123
+
6057
6124
  /***/ }),
6058
6125
 
6059
6126
  /***/ 7:
@@ -6106,736 +6173,759 @@ var changeInTime = '/baseIssueRules/changeInTime';
6106
6173
  /* unused harmony export getSecond */
6107
6174
  /* unused harmony export getWeekday */
6108
6175
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
6109
-
6110
-
6176
+ /* Modified from https://github.com/taylorhakes/fecha
6177
+ *
6178
+ * The MIT License (MIT)
6179
+ *
6180
+ * Copyright (c) 2015 Taylor Hakes
6181
+ *
6182
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
6183
+ * of this software and associated documentation files (the "Software"), to deal
6184
+ * in the Software without restriction, including without limitation the rights
6185
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6186
+ * copies of the Software, and to permit persons to whom the Software is
6187
+ * furnished to do so, subject to the following conditions:
6188
+ *
6189
+ * The above copyright notice and this permission notice shall be included in all
6190
+ * copies or substantial portions of the Software.
6191
+ *
6192
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6193
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6194
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6195
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6196
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
6197
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6198
+ * SOFTWARE.
6199
+ */
6200
+
6201
+ /*eslint-disable*/
6202
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
6203
+
6204
+
6111
6205
  /**
6112
6206
  * Parse or format dates
6113
6207
  * @class fecha
6114
- */
6115
- var fecha = {};
6116
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6117
- var twoDigits = '\\d\\d?';
6118
- var threeDigits = '\\d{3}';
6119
- var fourDigits = '\\d{4}';
6120
- var word = '[^\\s]+';
6121
- var literal = /\[([^]*?)\]/gm;
6122
- var noop = function noop() {};
6123
-
6124
- function regexEscape(str) {
6125
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6126
- }
6127
-
6128
- function shorten(arr, sLen) {
6129
- var newArr = [];
6130
- for (var i = 0, len = arr.length; i < len; i++) {
6131
- newArr.push(arr[i].substr(0, sLen));
6132
- }
6133
- return newArr;
6134
- }
6135
-
6136
- function monthUpdate() {
6137
- return function (d, v) {
6138
- var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6139
- if (~index) {
6140
- d.month = index;
6141
- }
6142
- };
6143
- }
6144
-
6145
- function pad(val, len) {
6146
- val = String(val);
6147
- len = len || 2;
6148
- while (val.length < len) {
6149
- val = '0' + val;
6150
- }
6151
- return val;
6152
- }
6153
-
6154
- // 直接使用中文日期名称常量
6155
- var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6156
- var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6157
- var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6158
- var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6159
- var amPm = ['上午', '下午'];
6160
- var DoFn = function DoFn(D) {
6161
- return D + '日';
6162
- };
6163
-
6164
- var formatFlags = {
6165
- D: function D(dateObj) {
6166
- return dateObj.getDay();
6167
- },
6168
- DD: function DD(dateObj) {
6169
- return pad(dateObj.getDay());
6170
- },
6171
- Do: function Do(dateObj) {
6172
- return DoFn(dateObj.getDate());
6173
- },
6174
- d: function d(dateObj) {
6175
- return dateObj.getDate();
6176
- },
6177
- dd: function dd(dateObj) {
6178
- return pad(dateObj.getDate());
6179
- },
6180
- ddd: function ddd(dateObj) {
6181
- return dayNamesShort[dateObj.getDay()];
6182
- },
6183
- dddd: function dddd(dateObj) {
6184
- return dayNames[dateObj.getDay()];
6185
- },
6186
- M: function M(dateObj) {
6187
- return dateObj.getMonth() + 1;
6188
- },
6189
- MM: function MM(dateObj) {
6190
- return pad(dateObj.getMonth() + 1);
6191
- },
6192
- MMM: function MMM(dateObj) {
6193
- return monthNamesShort[dateObj.getMonth()];
6194
- },
6195
- MMMM: function MMMM(dateObj) {
6196
- return monthNames[dateObj.getMonth()];
6197
- },
6198
- yy: function yy(dateObj) {
6199
- return pad(String(dateObj.getFullYear()), 4).substr(2);
6200
- },
6201
- yyyy: function yyyy(dateObj) {
6202
- return pad(dateObj.getFullYear(), 4);
6203
- },
6204
- h: function h(dateObj) {
6205
- return dateObj.getHours() % 12 || 12;
6206
- },
6207
- hh: function hh(dateObj) {
6208
- return pad(dateObj.getHours() % 12 || 12);
6209
- },
6210
- H: function H(dateObj) {
6211
- return dateObj.getHours();
6212
- },
6213
- HH: function HH(dateObj) {
6214
- return pad(dateObj.getHours());
6215
- },
6216
- m: function m(dateObj) {
6217
- return dateObj.getMinutes();
6218
- },
6219
- mm: function mm(dateObj) {
6220
- return pad(dateObj.getMinutes());
6221
- },
6222
- s: function s(dateObj) {
6223
- return dateObj.getSeconds();
6224
- },
6225
- ss: function ss(dateObj) {
6226
- return pad(dateObj.getSeconds());
6227
- },
6228
- S: function S(dateObj) {
6229
- return Math.round(dateObj.getMilliseconds() / 100);
6230
- },
6231
- SS: function SS(dateObj) {
6232
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
6233
- },
6234
- SSS: function SSS(dateObj) {
6235
- return pad(dateObj.getMilliseconds(), 3);
6236
- },
6237
- a: function a(dateObj) {
6238
- return dateObj.getHours() < 12 ? '上午' : '下午';
6239
- },
6240
- A: function A(dateObj) {
6241
- return dateObj.getHours() < 12 ? '上午' : '下午';
6242
- },
6243
- ZZ: function ZZ(dateObj) {
6244
- var o = dateObj.getTimezoneOffset();
6245
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
6246
- }
6247
- };
6248
-
6249
- var parseFlags = {
6250
- d: [twoDigits, function (d, v) {
6251
- d.day = v;
6252
- }],
6253
- Do: [twoDigits + word, function (d, v) {
6254
- d.day = parseInt(v, 10);
6255
- }],
6256
- M: [twoDigits, function (d, v) {
6257
- d.month = v - 1;
6258
- }],
6259
- yy: [twoDigits, function (d, v) {
6260
- var da = new Date(),
6261
- cent = +('' + da.getFullYear()).substr(0, 2);
6262
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
6263
- }],
6264
- h: [twoDigits, function (d, v) {
6265
- d.hour = v;
6266
- }],
6267
- m: [twoDigits, function (d, v) {
6268
- d.minute = v;
6269
- }],
6270
- s: [twoDigits, function (d, v) {
6271
- d.second = v;
6272
- }],
6273
- yyyy: [fourDigits, function (d, v) {
6274
- d.year = v;
6275
- }],
6276
- S: ['\\d', function (d, v) {
6277
- d.millisecond = v * 100;
6278
- }],
6279
- SS: ['\\d{2}', function (d, v) {
6280
- d.millisecond = v * 10;
6281
- }],
6282
- SSS: [threeDigits, function (d, v) {
6283
- d.millisecond = v;
6284
- }],
6285
- D: [twoDigits, noop],
6286
- ddd: [word, noop],
6287
- MMM: [word, monthUpdate('monthNamesShort')],
6288
- MMMM: [word, monthUpdate('monthNames')],
6289
- a: [word, function (d, v) {
6290
- var val = v.toLowerCase();
6291
- if (val === '上午') {
6292
- d.isPm = false;
6293
- } else if (val === '下午') {
6294
- d.isPm = true;
6295
- }
6296
- }],
6297
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
6298
- var parts = (v + '').match(/([+-]|\d\d)/gi),
6299
- minutes = void 0;
6300
-
6301
- if (parts) {
6302
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
6303
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
6304
- }
6305
- }]
6306
- };
6307
- parseFlags.dd = parseFlags.d;
6308
- parseFlags.dddd = parseFlags.ddd;
6309
- parseFlags.DD = parseFlags.D;
6310
- parseFlags.mm = parseFlags.m;
6311
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
6312
- parseFlags.MM = parseFlags.M;
6313
- parseFlags.ss = parseFlags.s;
6314
- parseFlags.A = parseFlags.a;
6315
-
6316
- // Some common format strings
6317
- fecha.masks = {
6318
- default: 'ddd MMM dd yyyy HH:mm:ss',
6319
- shortDate: 'M/D/yy',
6320
- mediumDate: 'MMM d, yyyy',
6321
- longDate: 'MMMM d, yyyy',
6322
- fullDate: 'dddd, MMMM d, yyyy',
6323
- shortTime: 'HH:mm',
6324
- mediumTime: 'HH:mm:ss',
6325
- longTime: 'HH:mm:ss.SSS'
6326
- };
6327
-
6208
+ */
6209
+ const fecha = {};
6210
+ const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6211
+ const twoDigits = '\\d\\d?';
6212
+ const threeDigits = '\\d{3}';
6213
+ const fourDigits = '\\d{4}';
6214
+ const word = '[^\\s]+';
6215
+ const literal = /\[([^]*?)\]/gm;
6216
+ const noop = function () {};
6217
+
6218
+ function regexEscape(str) {
6219
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6220
+ }
6221
+
6222
+ function shorten(arr, sLen) {
6223
+ const newArr = [];
6224
+ for (let i = 0, len = arr.length; i < len; i++) {
6225
+ newArr.push(arr[i].substr(0, sLen));
6226
+ }
6227
+ return newArr;
6228
+ }
6229
+
6230
+ function monthUpdate() {
6231
+ return function (d, v) {
6232
+ const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6233
+ if (~index) {
6234
+ d.month = index;
6235
+ }
6236
+ };
6237
+ }
6238
+
6239
+ function pad(val, len) {
6240
+ val = String(val);
6241
+ len = len || 2;
6242
+ while (val.length < len) {
6243
+ val = '0' + val;
6244
+ }
6245
+ return val;
6246
+ }
6247
+
6248
+ // 直接使用中文日期名称常量
6249
+ const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6250
+ const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6251
+ const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6252
+ const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6253
+ const amPm = ['上午', '下午'];
6254
+ const DoFn = function DoFn(D) {
6255
+ return D + '日';
6256
+ };
6257
+
6258
+ const formatFlags = {
6259
+ D: function(dateObj) {
6260
+ return dateObj.getDay();
6261
+ },
6262
+ DD: function(dateObj) {
6263
+ return pad(dateObj.getDay());
6264
+ },
6265
+ Do: function(dateObj) {
6266
+ return DoFn(dateObj.getDate());
6267
+ },
6268
+ d: function(dateObj) {
6269
+ return dateObj.getDate();
6270
+ },
6271
+ dd: function(dateObj) {
6272
+ return pad(dateObj.getDate());
6273
+ },
6274
+ ddd: function(dateObj) {
6275
+ return dayNamesShort[dateObj.getDay()];
6276
+ },
6277
+ dddd: function(dateObj) {
6278
+ return dayNames[dateObj.getDay()];
6279
+ },
6280
+ M: function(dateObj) {
6281
+ return dateObj.getMonth() + 1;
6282
+ },
6283
+ MM: function(dateObj) {
6284
+ return pad(dateObj.getMonth() + 1);
6285
+ },
6286
+ MMM: function(dateObj) {
6287
+ return monthNamesShort[dateObj.getMonth()];
6288
+ },
6289
+ MMMM: function(dateObj) {
6290
+ return monthNames[dateObj.getMonth()];
6291
+ },
6292
+ yy: function(dateObj) {
6293
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
6294
+ },
6295
+ yyyy: function(dateObj) {
6296
+ return pad(dateObj.getFullYear(), 4);
6297
+ },
6298
+ h: function(dateObj) {
6299
+ return dateObj.getHours() % 12 || 12;
6300
+ },
6301
+ hh: function(dateObj) {
6302
+ return pad(dateObj.getHours() % 12 || 12);
6303
+ },
6304
+ H: function(dateObj) {
6305
+ return dateObj.getHours();
6306
+ },
6307
+ HH: function(dateObj) {
6308
+ return pad(dateObj.getHours());
6309
+ },
6310
+ m: function(dateObj) {
6311
+ return dateObj.getMinutes();
6312
+ },
6313
+ mm: function(dateObj) {
6314
+ return pad(dateObj.getMinutes());
6315
+ },
6316
+ s: function(dateObj) {
6317
+ return dateObj.getSeconds();
6318
+ },
6319
+ ss: function(dateObj) {
6320
+ return pad(dateObj.getSeconds());
6321
+ },
6322
+ S: function(dateObj) {
6323
+ return Math.round(dateObj.getMilliseconds() / 100);
6324
+ },
6325
+ SS: function(dateObj) {
6326
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
6327
+ },
6328
+ SSS: function(dateObj) {
6329
+ return pad(dateObj.getMilliseconds(), 3);
6330
+ },
6331
+ a: function(dateObj) {
6332
+ return dateObj.getHours() < 12 ? '上午' : '下午';
6333
+ },
6334
+ A: function(dateObj) {
6335
+ return dateObj.getHours() < 12 ? '上午' : '下午';
6336
+ },
6337
+ ZZ: function(dateObj) {
6338
+ const o = dateObj.getTimezoneOffset();
6339
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
6340
+ }
6341
+ };
6342
+
6343
+ const parseFlags = {
6344
+ d: [twoDigits, function (d, v) {
6345
+ d.day = v;
6346
+ }],
6347
+ Do: [twoDigits + word, function (d, v) {
6348
+ d.day = parseInt(v, 10);
6349
+ }],
6350
+ M: [twoDigits, function (d, v) {
6351
+ d.month = v - 1;
6352
+ }],
6353
+ yy: [twoDigits, function (d, v) {
6354
+ const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
6355
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
6356
+ }],
6357
+ h: [twoDigits, function (d, v) {
6358
+ d.hour = v;
6359
+ }],
6360
+ m: [twoDigits, function (d, v) {
6361
+ d.minute = v;
6362
+ }],
6363
+ s: [twoDigits, function (d, v) {
6364
+ d.second = v;
6365
+ }],
6366
+ yyyy: [fourDigits, function (d, v) {
6367
+ d.year = v;
6368
+ }],
6369
+ S: ['\\d', function (d, v) {
6370
+ d.millisecond = v * 100;
6371
+ }],
6372
+ SS: ['\\d{2}', function (d, v) {
6373
+ d.millisecond = v * 10;
6374
+ }],
6375
+ SSS: [threeDigits, function (d, v) {
6376
+ d.millisecond = v;
6377
+ }],
6378
+ D: [twoDigits, noop],
6379
+ ddd: [word, noop],
6380
+ MMM: [word, monthUpdate('monthNamesShort')],
6381
+ MMMM: [word, monthUpdate('monthNames')],
6382
+ a: [word, function (d, v) {
6383
+ const val = v.toLowerCase();
6384
+ if (val === '上午') {
6385
+ d.isPm = false;
6386
+ } else if (val === '下午') {
6387
+ d.isPm = true;
6388
+ }
6389
+ }],
6390
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
6391
+ let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
6392
+
6393
+ if (parts) {
6394
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
6395
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
6396
+ }
6397
+ }]
6398
+ };
6399
+ parseFlags.dd = parseFlags.d;
6400
+ parseFlags.dddd = parseFlags.ddd;
6401
+ parseFlags.DD = parseFlags.D;
6402
+ parseFlags.mm = parseFlags.m;
6403
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
6404
+ parseFlags.MM = parseFlags.M;
6405
+ parseFlags.ss = parseFlags.s;
6406
+ parseFlags.A = parseFlags.a;
6407
+
6408
+
6409
+ // Some common format strings
6410
+ fecha.masks = {
6411
+ default: 'ddd MMM dd yyyy HH:mm:ss',
6412
+ shortDate: 'M/D/yy',
6413
+ mediumDate: 'MMM d, yyyy',
6414
+ longDate: 'MMMM d, yyyy',
6415
+ fullDate: 'dddd, MMMM d, yyyy',
6416
+ shortTime: 'HH:mm',
6417
+ mediumTime: 'HH:mm:ss',
6418
+ longTime: 'HH:mm:ss.SSS'
6419
+ };
6420
+
6328
6421
  /***
6329
6422
  * Format a date
6330
6423
  * @method format
6331
6424
  * @param {Date|number} dateObj
6332
6425
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
6333
- */
6334
- fecha.format = function (dateObj, mask) {
6335
- if (typeof dateObj === 'number') {
6336
- dateObj = new Date(dateObj);
6337
- }
6338
-
6339
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
6340
- throw new Error('Invalid Date in fecha.format');
6341
- }
6342
-
6343
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
6344
-
6345
- var literals = [];
6346
-
6347
- // Make literals inactive by replacing them with ??
6348
- mask = mask.replace(literal, function ($0, $1) {
6349
- literals.push($1);
6350
- return '@@@';
6351
- });
6352
- // Apply formatting rules
6353
- mask = mask.replace(token, function ($0) {
6354
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
6355
- });
6356
- // Inline literal values back into the formatted value
6357
- return mask.replace(/@@@/g, function () {
6358
- return literals.shift();
6359
- });
6360
- };
6361
-
6426
+ */
6427
+ fecha.format = function (dateObj, mask) {
6428
+ if (typeof dateObj === 'number') {
6429
+ dateObj = new Date(dateObj);
6430
+ }
6431
+
6432
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
6433
+ throw new Error('Invalid Date in fecha.format');
6434
+ }
6435
+
6436
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
6437
+
6438
+ const literals = [];
6439
+
6440
+ // Make literals inactive by replacing them with ??
6441
+ mask = mask.replace(literal, function($0, $1) {
6442
+ literals.push($1);
6443
+ return '@@@';
6444
+ });
6445
+ // Apply formatting rules
6446
+ mask = mask.replace(token, function ($0) {
6447
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
6448
+ });
6449
+ // Inline literal values back into the formatted value
6450
+ return mask.replace(/@@@/g, function() {
6451
+ return literals.shift();
6452
+ });
6453
+ };
6454
+
6362
6455
  /**
6363
6456
  * Parse a date string into an object, changes - into /
6364
6457
  * @method parse
6365
6458
  * @param {string} dateStr Date string
6366
6459
  * @param {string} format Date parse format
6367
6460
  * @returns {Date|boolean}
6368
- */
6369
- fecha.parse = function (dateStr, format) {
6370
- if (typeof format !== 'string') {
6371
- throw new Error('Invalid format in fecha.parse');
6372
- }
6373
-
6374
- format = fecha.masks[format] || format;
6375
-
6376
- // Avoid regular expression denial of service, fail early for really long strings
6377
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
6378
- if (dateStr.length > 1000) {
6379
- return null;
6380
- }
6381
-
6382
- var dateInfo = {};
6383
- var parseInfo = [];
6384
- var literals = [];
6385
- format = format.replace(literal, function ($0, $1) {
6386
- literals.push($1);
6387
- return '@@@';
6388
- });
6389
- var newFormat = regexEscape(format).replace(token, function ($0) {
6390
- if (parseFlags[$0]) {
6391
- var info = parseFlags[$0];
6392
- parseInfo.push(info[1]);
6393
- return '(' + info[0] + ')';
6394
- }
6395
-
6396
- return $0;
6397
- });
6398
- newFormat = newFormat.replace(/@@@/g, function () {
6399
- return literals.shift();
6400
- });
6401
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
6402
- if (!matches) {
6403
- return null;
6404
- }
6405
-
6406
- for (var i = 1; i < matches.length; i++) {
6407
- parseInfo[i - 1](dateInfo, matches[i]);
6408
- }
6409
-
6410
- var today = new Date();
6411
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
6412
- dateInfo.hour = +dateInfo.hour + 12;
6413
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
6414
- dateInfo.hour = 0;
6415
- }
6416
-
6417
- var date = void 0;
6418
- if (dateInfo.timezoneOffset != null) {
6419
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
6420
- 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));
6421
- } else {
6422
- 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);
6423
- }
6424
- return date;
6425
- };
6426
-
6427
- // 导出fecha对象
6428
-
6429
-
6430
- // 以下是从date-util.js合并的函数
6431
- var newArray = function newArray(start, end) {
6432
- var result = [];
6433
- for (var i = start; i <= end; i++) {
6434
- result.push(i);
6435
- }
6436
- return result;
6437
- };
6438
-
6439
- var getSettings = function getSettings() {
6440
- return {
6441
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
6442
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
6443
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
6444
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
6445
- amPm: ['上午', '下午']
6446
- };
6447
- };
6448
-
6449
- var toDate = function toDate(date) {
6450
- return isDate(date) ? new Date(date) : null;
6451
- };
6452
-
6453
- var isDate = function isDate(date) {
6454
- if (date === null || date === undefined) return false;
6455
- if (isNaN(new Date(date).getTime())) return false;
6456
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
6457
- return true;
6458
- };
6459
-
6460
- var isDateObject = function isDateObject(val) {
6461
- return val instanceof Date;
6462
- };
6463
-
6464
- var formatDate = function formatDate(date) {
6465
- var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
6466
-
6467
- // 处理多种输入类型
6468
- if (!date) return '';
6469
-
6470
- // 如果是时间戳,转成日期对象
6471
- if (typeof date === 'number') {
6472
- date = new Date(date);
6473
- }
6474
- // 如果是字符串,转成日期对象
6475
- if (typeof date === 'string') {
6476
- date = new Date(date);
6477
- }
6478
-
6479
- // 调用toDate进一步验证和转换
6480
- date = toDate(date);
6481
- if (!date) return '';
6482
-
6483
- // 兼容大写和小写的格式标记
6484
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
6485
- var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
6486
-
6487
- // 使用fecha库进行格式化,支持中文配置
6488
- var str = fecha.format(date, lowercaseFormat, getSettings());
6489
- return str;
6490
- };
6491
-
6492
- var parseDate = function parseDate(string, format) {
6493
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
6494
- };
6495
-
6496
- var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
6497
- if (month === 3 || month === 5 || month === 8 || month === 10) {
6498
- return 30;
6499
- }
6500
-
6501
- if (month === 1) {
6502
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
6503
- return 29;
6504
- } else {
6505
- return 28;
6506
- }
6507
- }
6508
-
6509
- return 31;
6510
- };
6511
-
6512
- var getDayCountOfYear = function getDayCountOfYear(year) {
6513
- var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
6514
- return isLeapYear ? 366 : 365;
6515
- };
6516
-
6517
- var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
6518
- var temp = new Date(date.getTime());
6519
- temp.setDate(1);
6520
- return temp.getDay();
6521
- };
6522
-
6523
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
6524
- // {prev, next} Date should work for Daylight Saving Time
6525
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
6526
- var prevDate = function prevDate(date) {
6527
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6528
-
6529
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
6530
- };
6531
-
6532
- var nextDate = function nextDate(date) {
6533
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6534
-
6535
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
6536
- };
6537
-
6538
- var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
6539
- var result = new Date(year, month, 1);
6540
- var day = result.getDay();
6541
-
6542
- if (day === 0) {
6543
- return prevDate(result, 7);
6544
- } else {
6545
- return prevDate(result, day);
6546
- }
6547
- };
6548
-
6549
- var getWeekNumber = function getWeekNumber(date) {
6550
- // 支持多种输入类型
6551
- if (!date || !isDate(date)) {
6552
- date = new Date();
6553
- }
6554
- if (typeof date === 'string') {
6555
- date = new Date(date);
6556
- }
6557
-
6558
- // 验证日期有效性
6559
- if (!isDate(date)) return null;
6560
-
6561
- var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
6562
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
6563
- // 将星期日的星期数设为7
6564
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
6565
- // 获取当年的第一天
6566
- var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
6567
- // 计算到最近的星期四的完整周数
6568
- var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
6569
- // 返回周数
6570
- return weekNo;
6571
- };
6572
-
6573
- var getRangeHours = function getRangeHours(ranges) {
6574
- var hours = [];
6575
- var disabledHours = [];
6576
-
6577
- (ranges || []).forEach(function (range) {
6578
- var value = range.map(function (date) {
6579
- return date.getHours();
6580
- });
6581
-
6582
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
6583
- });
6584
-
6585
- if (disabledHours.length) {
6586
- for (var i = 0; i < 24; i++) {
6587
- hours[i] = disabledHours.indexOf(i) === -1;
6588
- }
6589
- } else {
6590
- for (var _i = 0; _i < 24; _i++) {
6591
- hours[_i] = false;
6592
- }
6593
- }
6594
-
6595
- return hours;
6596
- };
6597
-
6598
- var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
6599
- if (amount <= 0) return [];
6600
- var temp = new Date(date.getTime());
6601
- temp.setDate(0);
6602
- var lastDay = temp.getDate();
6603
- return range(amount).map(function (_, index) {
6604
- return lastDay - (amount - index - 1);
6605
- });
6606
- };
6607
-
6608
- var getMonthDays = function getMonthDays(date) {
6609
- var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
6610
- var days = temp.getDate();
6611
- return range(days).map(function (_, index) {
6612
- return index + 1;
6613
- });
6614
- };
6615
-
6616
- function setRangeData(arr, start, end, value) {
6617
- for (var i = start; i < end; i++) {
6618
- arr[i] = value;
6619
- }
6620
- }
6621
-
6622
- var getRangeMinutes = function getRangeMinutes(ranges, hour) {
6623
- var minutes = new Array(60);
6624
-
6625
- if (ranges.length > 0) {
6626
- ranges.forEach(function (range) {
6627
- var start = range[0];
6628
- var end = range[1];
6629
- var startHour = start.getHours();
6630
- var startMinute = start.getMinutes();
6631
- var endHour = end.getHours();
6632
- var endMinute = end.getMinutes();
6633
- if (startHour === hour && endHour !== hour) {
6634
- setRangeData(minutes, startMinute, 60, true);
6635
- } else if (startHour === hour && endHour === hour) {
6636
- setRangeData(minutes, startMinute, endMinute + 1, true);
6637
- } else if (startHour !== hour && endHour === hour) {
6638
- setRangeData(minutes, 0, endMinute + 1, true);
6639
- } else if (startHour < hour && endHour > hour) {
6640
- setRangeData(minutes, 0, 60, true);
6641
- }
6642
- });
6643
- } else {
6644
- setRangeData(minutes, 0, 60, true);
6645
- }
6646
- return minutes;
6647
- };
6648
-
6649
- var range = function range(n) {
6650
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
6651
- return Array.apply(null, { length: n }).map(function (_, n) {
6652
- return n;
6653
- });
6654
- };
6655
-
6656
- var modifyDate = function modifyDate(date, y, m, d) {
6657
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
6658
- };
6659
-
6660
- var modifyTime = function modifyTime(date, h, m, s) {
6661
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
6662
- };
6663
-
6664
- var modifyWithTimeString = function modifyWithTimeString(date, time) {
6665
- if (date == null || !time) {
6666
- return date;
6667
- }
6668
- time = parseDate(time, 'HH:mm:ss');
6669
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
6670
- };
6671
-
6672
- var clearTime = function clearTime(date) {
6673
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
6674
- };
6675
-
6676
- var clearMilliseconds = function clearMilliseconds(date) {
6677
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
6678
- };
6679
-
6680
- var limitTimeRange = function limitTimeRange(date, ranges) {
6681
- var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
6682
-
6683
- // TODO: refactory a more elegant solution
6684
- if (ranges.length === 0) return date;
6685
- var normalizeDate = function normalizeDate(date) {
6686
- return fecha.parse(fecha.format(date, format), format);
6687
- };
6688
- var ndate = normalizeDate(date);
6689
- var nranges = ranges.map(function (range) {
6690
- return range.map(normalizeDate);
6691
- });
6692
- if (nranges.some(function (nrange) {
6693
- return ndate >= nrange[0] && ndate <= nrange[1];
6694
- })) return date;
6695
-
6696
- var minDate = nranges[0][0];
6697
- var maxDate = nranges[0][0];
6698
-
6699
- nranges.forEach(function (nrange) {
6700
- minDate = new Date(Math.min(nrange[0], minDate));
6701
- maxDate = new Date(Math.max(nrange[1], minDate));
6702
- });
6703
-
6704
- var ret = ndate < minDate ? minDate : maxDate;
6705
- // preserve Year/Month/Date
6706
- return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
6707
- };
6708
-
6709
- var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
6710
- var limitedDate = limitTimeRange(date, selectableRange, format);
6711
- return limitedDate.getTime() === date.getTime();
6712
- };
6713
-
6714
- var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
6715
- // clamp date to the number of days in `year`, `month`
6716
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
6717
- var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
6718
- return modifyDate(date, year, month, monthDate);
6719
- };
6720
-
6721
- var prevMonth = function prevMonth(date) {
6722
- var year = date.getFullYear();
6723
- var month = date.getMonth();
6724
- return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
6725
- };
6726
-
6727
- var nextMonth = function nextMonth(date) {
6728
- var year = date.getFullYear();
6729
- var month = date.getMonth();
6730
- return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
6731
- };
6732
-
6733
- var prevYear = function prevYear(date) {
6734
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6735
-
6736
- var year = date.getFullYear();
6737
- var month = date.getMonth();
6738
- return changeYearMonthAndClampDate(date, year - amount, month);
6739
- };
6740
-
6741
- var nextYear = function nextYear(date) {
6742
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6743
-
6744
- var year = date.getFullYear();
6745
- var month = date.getMonth();
6746
- return changeYearMonthAndClampDate(date, year + amount, month);
6747
- };
6748
-
6749
- var extractDateFormat = function extractDateFormat(format) {
6750
- return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
6751
- };
6752
-
6753
- var extractTimeFormat = function extractTimeFormat(format) {
6754
- return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
6755
- };
6756
-
6757
- var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
6758
- return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
6759
- };
6760
-
6461
+ */
6462
+ fecha.parse = function (dateStr, format) {
6463
+ if (typeof format !== 'string') {
6464
+ throw new Error('Invalid format in fecha.parse');
6465
+ }
6466
+
6467
+ format = fecha.masks[format] || format;
6468
+
6469
+ // Avoid regular expression denial of service, fail early for really long strings
6470
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
6471
+ if (dateStr.length > 1000) {
6472
+ return null;
6473
+ }
6474
+
6475
+ const dateInfo = {};
6476
+ const parseInfo = [];
6477
+ const literals = [];
6478
+ format = format.replace(literal, function($0, $1) {
6479
+ literals.push($1);
6480
+ return '@@@';
6481
+ });
6482
+ let newFormat = regexEscape(format).replace(token, function ($0) {
6483
+ if (parseFlags[$0]) {
6484
+ const info = parseFlags[$0];
6485
+ parseInfo.push(info[1]);
6486
+ return '(' + info[0] + ')';
6487
+ }
6488
+
6489
+ return $0;
6490
+ });
6491
+ newFormat = newFormat.replace(/@@@/g, function() {
6492
+ return literals.shift();
6493
+ });
6494
+ const matches = dateStr.match(new RegExp(newFormat, 'i'));
6495
+ if (!matches) {
6496
+ return null;
6497
+ }
6498
+
6499
+ for (let i = 1; i < matches.length; i++) {
6500
+ parseInfo[i - 1](dateInfo, matches[i]);
6501
+ }
6502
+
6503
+ const today = new Date();
6504
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
6505
+ dateInfo.hour = +dateInfo.hour + 12;
6506
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
6507
+ dateInfo.hour = 0;
6508
+ }
6509
+
6510
+ let date;
6511
+ if (dateInfo.timezoneOffset != null) {
6512
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
6513
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
6514
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
6515
+ } else {
6516
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
6517
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
6518
+ }
6519
+ return date;
6520
+ };
6521
+
6522
+ // 导出fecha对象
6523
+
6524
+
6525
+ // 以下是从date-util.js合并的函数
6526
+ const newArray = function(start, end) {
6527
+ let result = [];
6528
+ for (let i = start; i <= end; i++) {
6529
+ result.push(i);
6530
+ }
6531
+ return result;
6532
+ };
6533
+
6534
+ const getSettings = () => {
6535
+ return {
6536
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
6537
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
6538
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
6539
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
6540
+ amPm: ['上午', '下午']
6541
+ };
6542
+ };
6543
+
6544
+ const toDate = function(date) {
6545
+ return isDate(date) ? new Date(date) : null;
6546
+ };
6547
+
6548
+ const isDate = function(date) {
6549
+ if (date === null || date === undefined) return false;
6550
+ if (isNaN(new Date(date).getTime())) return false;
6551
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
6552
+ return true;
6553
+ };
6554
+
6555
+ const isDateObject = function(val) {
6556
+ return val instanceof Date;
6557
+ };
6558
+
6559
+ const formatDate = function (date, format = 'yyyy-MM-dd') {
6560
+ // 处理多种输入类型
6561
+ if (!date) return '';
6562
+
6563
+ // 如果是时间戳,转成日期对象
6564
+ if (typeof date === 'number') {
6565
+ date = new Date(date);
6566
+ }
6567
+ // 如果是字符串,转成日期对象
6568
+ if (typeof date === 'string') {
6569
+ date = new Date(date);
6570
+ }
6571
+
6572
+ // 调用toDate进一步验证和转换
6573
+ date = toDate(date);
6574
+ if (!date) return '';
6575
+
6576
+ // 兼容大写和小写的格式标记
6577
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
6578
+ const lowercaseFormat = format
6579
+ .replace(/YYYY/g, 'yyyy')
6580
+ .replace(/D/g, 'd')
6581
+
6582
+ // 使用fecha库进行格式化,支持中文配置
6583
+ const str = fecha.format(date, lowercaseFormat, getSettings());
6584
+ return str;
6585
+ };
6586
+
6587
+ const parseDate = function(string, format) {
6588
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
6589
+ };
6590
+
6591
+ const getDayCountOfMonth = function(year, month) {
6592
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
6593
+ return 30;
6594
+ }
6595
+
6596
+ if (month === 1) {
6597
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
6598
+ return 29;
6599
+ } else {
6600
+ return 28;
6601
+ }
6602
+ }
6603
+
6604
+ return 31;
6605
+ };
6606
+
6607
+ const getDayCountOfYear = function(year) {
6608
+ const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
6609
+ return isLeapYear ? 366 : 365;
6610
+ };
6611
+
6612
+ const getFirstDayOfMonth = function(date) {
6613
+ const temp = new Date(date.getTime());
6614
+ temp.setDate(1);
6615
+ return temp.getDay();
6616
+ };
6617
+
6618
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
6619
+ // {prev, next} Date should work for Daylight Saving Time
6620
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
6621
+ const prevDate = function(date, amount = 1) {
6622
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
6623
+ };
6624
+
6625
+ const nextDate = function(date, amount = 1) {
6626
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
6627
+ };
6628
+
6629
+ const getStartDateOfMonth = function(year, month) {
6630
+ const result = new Date(year, month, 1);
6631
+ const day = result.getDay();
6632
+
6633
+ if (day === 0) {
6634
+ return prevDate(result, 7);
6635
+ } else {
6636
+ return prevDate(result, day);
6637
+ }
6638
+ };
6639
+
6640
+ const getWeekNumber = function(date) {
6641
+ // 支持多种输入类型
6642
+ if (!date||!isDate(date)) {
6643
+ date = new Date();
6644
+ }
6645
+ if (typeof date === 'string') {
6646
+ date = new Date(date);
6647
+ }
6648
+
6649
+ // 验证日期有效性
6650
+ if (!isDate(date)) return null;
6651
+
6652
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
6653
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
6654
+ // 将星期日的星期数设为7
6655
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
6656
+ // 获取当年的第一天
6657
+ const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
6658
+ // 计算到最近的星期四的完整周数
6659
+ const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
6660
+ // 返回周数
6661
+ return weekNo;
6662
+ };
6663
+
6664
+ const getRangeHours = function(ranges) {
6665
+ const hours = [];
6666
+ let disabledHours = [];
6667
+
6668
+ (ranges || []).forEach(range => {
6669
+ const value = range.map(date => date.getHours());
6670
+
6671
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
6672
+ });
6673
+
6674
+ if (disabledHours.length) {
6675
+ for (let i = 0; i < 24; i++) {
6676
+ hours[i] = disabledHours.indexOf(i) === -1;
6677
+ }
6678
+ } else {
6679
+ for (let i = 0; i < 24; i++) {
6680
+ hours[i] = false;
6681
+ }
6682
+ }
6683
+
6684
+ return hours;
6685
+ };
6686
+
6687
+ const getPrevMonthLastDays = (date, amount) => {
6688
+ if (amount <= 0) return [];
6689
+ const temp = new Date(date.getTime());
6690
+ temp.setDate(0);
6691
+ const lastDay = temp.getDate();
6692
+ return range(amount).map((_, index) => lastDay - (amount - index - 1));
6693
+ };
6694
+
6695
+ const getMonthDays = (date) => {
6696
+ const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
6697
+ const days = temp.getDate();
6698
+ return range(days).map((_, index) => index + 1);
6699
+ };
6700
+
6701
+ function setRangeData(arr, start, end, value) {
6702
+ for (let i = start; i < end; i++) {
6703
+ arr[i] = value;
6704
+ }
6705
+ }
6706
+
6707
+ const getRangeMinutes = function(ranges, hour) {
6708
+ const minutes = new Array(60);
6709
+
6710
+ if (ranges.length > 0) {
6711
+ ranges.forEach(range => {
6712
+ const start = range[0];
6713
+ const end = range[1];
6714
+ const startHour = start.getHours();
6715
+ const startMinute = start.getMinutes();
6716
+ const endHour = end.getHours();
6717
+ const endMinute = end.getMinutes();
6718
+ if (startHour === hour && endHour !== hour) {
6719
+ setRangeData(minutes, startMinute, 60, true);
6720
+ } else if (startHour === hour && endHour === hour) {
6721
+ setRangeData(minutes, startMinute, endMinute + 1, true);
6722
+ } else if (startHour !== hour && endHour === hour) {
6723
+ setRangeData(minutes, 0, endMinute + 1, true);
6724
+ } else if (startHour < hour && endHour > hour) {
6725
+ setRangeData(minutes, 0, 60, true);
6726
+ }
6727
+ });
6728
+ } else {
6729
+ setRangeData(minutes, 0, 60, true);
6730
+ }
6731
+ return minutes;
6732
+ };
6733
+
6734
+ const range = function(n) {
6735
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
6736
+ return Array.apply(null, {length: n}).map((_, n) => n);
6737
+ };
6738
+
6739
+ const modifyDate = function(date, y, m, d) {
6740
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
6741
+ };
6742
+
6743
+ const modifyTime = function(date, h, m, s) {
6744
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
6745
+ };
6746
+
6747
+ const modifyWithTimeString = (date, time) => {
6748
+ if (date == null || !time) {
6749
+ return date;
6750
+ }
6751
+ time = parseDate(time, 'HH:mm:ss');
6752
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
6753
+ };
6754
+
6755
+ const clearTime = function(date) {
6756
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
6757
+ };
6758
+
6759
+ const clearMilliseconds = function(date) {
6760
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
6761
+ };
6762
+
6763
+ const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
6764
+ // TODO: refactory a more elegant solution
6765
+ if (ranges.length === 0) return date;
6766
+ const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
6767
+ const ndate = normalizeDate(date);
6768
+ const nranges = ranges.map(range => range.map(normalizeDate));
6769
+ if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
6770
+
6771
+ let minDate = nranges[0][0];
6772
+ let maxDate = nranges[0][0];
6773
+
6774
+ nranges.forEach(nrange => {
6775
+ minDate = new Date(Math.min(nrange[0], minDate));
6776
+ maxDate = new Date(Math.max(nrange[1], minDate));
6777
+ });
6778
+
6779
+ const ret = ndate < minDate ? minDate : maxDate;
6780
+ // preserve Year/Month/Date
6781
+ return modifyDate(
6782
+ ret,
6783
+ date.getFullYear(),
6784
+ date.getMonth(),
6785
+ date.getDate()
6786
+ );
6787
+ };
6788
+
6789
+ const timeWithinRange = function(date, selectableRange, format) {
6790
+ const limitedDate = limitTimeRange(date, selectableRange, format);
6791
+ return limitedDate.getTime() === date.getTime();
6792
+ };
6793
+
6794
+ const changeYearMonthAndClampDate = function(date, year, month) {
6795
+ // clamp date to the number of days in `year`, `month`
6796
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
6797
+ const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
6798
+ return modifyDate(date, year, month, monthDate);
6799
+ };
6800
+
6801
+ const prevMonth = function(date) {
6802
+ const year = date.getFullYear();
6803
+ const month = date.getMonth();
6804
+ return month === 0
6805
+ ? changeYearMonthAndClampDate(date, year - 1, 11)
6806
+ : changeYearMonthAndClampDate(date, year, month - 1);
6807
+ };
6808
+
6809
+ const nextMonth = function(date) {
6810
+ const year = date.getFullYear();
6811
+ const month = date.getMonth();
6812
+ return month === 11
6813
+ ? changeYearMonthAndClampDate(date, year + 1, 0)
6814
+ : changeYearMonthAndClampDate(date, year, month + 1);
6815
+ };
6816
+
6817
+ const prevYear = function(date, amount = 1) {
6818
+ const year = date.getFullYear();
6819
+ const month = date.getMonth();
6820
+ return changeYearMonthAndClampDate(date, year - amount, month);
6821
+ };
6822
+
6823
+ const nextYear = function(date, amount = 1) {
6824
+ const year = date.getFullYear();
6825
+ const month = date.getMonth();
6826
+ return changeYearMonthAndClampDate(date, year + amount, month);
6827
+ };
6828
+
6829
+ const extractDateFormat = function(format) {
6830
+ return format
6831
+ .replace(/\W?m{1,2}|\W?ZZ/g, '')
6832
+ .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
6833
+ .trim();
6834
+ };
6835
+
6836
+ const extractTimeFormat = function(format) {
6837
+ return format
6838
+ .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
6839
+ .trim();
6840
+ };
6841
+
6842
+ const validateRangeInOneMonth = function(start, end) {
6843
+ return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
6844
+ };
6845
+
6761
6846
  /**
6762
6847
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
6763
6848
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
6764
6849
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
6765
6850
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
6766
6851
  * @returns {number} 工作日数量
6767
- */
6768
- var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
6769
- var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
6770
-
6771
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
6772
- throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
6773
- }
6774
-
6775
- var startDateObj = new Date(start_date);
6776
- var endDateObj = new Date(end_date);
6777
-
6778
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
6779
- throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
6780
- }
6781
-
6782
- if (startDateObj > endDateObj) {
6783
- throw new Error('Start date should be earlier than or equal to end date.');
6784
- }
6785
-
6786
- var workdays = 0;
6787
-
6788
- // Iterate through each day in the date range
6789
-
6790
- var _loop = function _loop(currentDate) {
6791
- // Check if the current day is a weekend (Saturday or Sunday)
6792
- var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
6793
-
6794
- // Check if the current day is a holiday
6795
- var isHoliday = holidays.some(function (holiday) {
6796
- var holidayDate = new Date(holiday);
6797
- return currentDate.toDateString() === holidayDate.toDateString();
6798
- });
6799
-
6800
- // If it's a workday (not a weekend or holiday), increment the workdays count
6801
- if (!isWeekend && !isHoliday) {
6802
- workdays++;
6803
- }
6804
- };
6805
-
6806
- for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
6807
- _loop(currentDate);
6808
- }
6809
-
6810
- return workdays;
6811
- };
6812
-
6852
+ */
6853
+ const calculateNetworkDays = function (start_date, end_date, holidays = []) {
6854
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
6855
+ throw new Error(
6856
+ "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
6857
+ );
6858
+ }
6859
+
6860
+ const startDateObj = new Date(start_date);
6861
+ const endDateObj = new Date(end_date);
6862
+
6863
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
6864
+ throw new Error(
6865
+ "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
6866
+ );
6867
+ }
6868
+
6869
+ if (startDateObj > endDateObj) {
6870
+ throw new Error('Start date should be earlier than or equal to end date.');
6871
+ }
6872
+
6873
+ let workdays = 0;
6874
+
6875
+ // Iterate through each day in the date range
6876
+ for (
6877
+ let currentDate = new Date(startDateObj);
6878
+ currentDate <= endDateObj;
6879
+ currentDate.setDate(currentDate.getDate() + 1)
6880
+ ) {
6881
+ // Check if the current day is a weekend (Saturday or Sunday)
6882
+ const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
6883
+
6884
+ // Check if the current day is a holiday
6885
+ const isHoliday = holidays.some((holiday) => {
6886
+ const holidayDate = new Date(holiday);
6887
+ return currentDate.toDateString() === holidayDate.toDateString();
6888
+ });
6889
+
6890
+ // If it's a workday (not a weekend or holiday), increment the workdays count
6891
+ if (!isWeekend && !isHoliday) {
6892
+ workdays++;
6893
+ }
6894
+ }
6895
+
6896
+ return workdays;
6897
+ };
6898
+
6813
6899
  /**
6814
6900
  * 日期加减天数
6815
6901
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
6816
6902
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
6817
6903
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
6818
- */
6819
- var dateAddDays = function dateAddDays(start_date, days) {
6820
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
6821
- 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.");
6822
- }
6823
-
6824
- var startDateObj = new Date(start_date);
6825
- if (isNaN(startDateObj.getTime())) {
6826
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6827
- }
6828
-
6829
- var resultDateObj = new Date(startDateObj);
6830
- resultDateObj.setDate(resultDateObj.getDate() + days);
6831
-
6832
- var resultYear = resultDateObj.getFullYear();
6833
- var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
6834
- var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
6835
-
6836
- return resultYear + '-' + resultMonth + '-' + resultDay;
6837
- };
6838
-
6904
+ */
6905
+ const dateAddDays = function (start_date, days) {
6906
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
6907
+ throw new Error(
6908
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
6909
+ );
6910
+ }
6911
+
6912
+ const startDateObj = new Date(start_date);
6913
+ if (isNaN(startDateObj.getTime())) {
6914
+ throw new Error(
6915
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
6916
+ );
6917
+ }
6918
+
6919
+ const resultDateObj = new Date(startDateObj);
6920
+ resultDateObj.setDate(resultDateObj.getDate() + days);
6921
+
6922
+ const resultYear = resultDateObj.getFullYear();
6923
+ const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
6924
+ const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
6925
+
6926
+ return `${resultYear}-${resultMonth}-${resultDay}`;
6927
+ };
6928
+
6839
6929
  /**
6840
6930
  * 计算两个日期之间的差值
6841
6931
  * @date 2023年12月14日
@@ -6843,180 +6933,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
6843
6933
  * @param {String} end_date - 结束日期字符串
6844
6934
  * @param {String} unit - 单位:year/month/day
6845
6935
  * @returns {Number} 差值
6846
- */
6847
- var dateDiff = function dateDiff(start_date, end_date) {
6848
- var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
6849
-
6850
- // Assuming date strings are in "YYYY-MM-DD" format
6851
- var startDate = new Date(start_date);
6852
- var endDate = new Date(end_date);
6853
-
6854
- // If the date is invalid, return 0
6855
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6856
- return 0;
6857
- }
6858
-
6859
- if (unit === 'year') {
6860
- return endDate.getFullYear() - startDate.getFullYear();
6861
- } else if (unit === 'month') {
6862
- return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
6863
- } else {
6864
- // Default to day
6865
- var timeDifference = endDate - startDate;
6866
- // Calculate days (86400000 milliseconds per day)
6867
- return Math.floor(timeDifference / 86400000);
6868
- }
6869
- };
6870
-
6936
+ */
6937
+ const dateDiff = function (start_date, end_date, unit = 'day') {
6938
+ // Assuming date strings are in "YYYY-MM-DD" format
6939
+ var startDate = new Date(start_date);
6940
+ var endDate = new Date(end_date);
6941
+
6942
+ // If the date is invalid, return 0
6943
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6944
+ return 0;
6945
+ }
6946
+
6947
+ if (unit === 'year') {
6948
+ return endDate.getFullYear() - startDate.getFullYear();
6949
+ } else if (unit === 'month') {
6950
+ return (
6951
+ (endDate.getFullYear() - startDate.getFullYear()) * 12 +
6952
+ (endDate.getMonth() - startDate.getMonth())
6953
+ );
6954
+ } else {
6955
+ // Default to day
6956
+ var timeDifference = endDate - startDate;
6957
+ // Calculate days (86400000 milliseconds per day)
6958
+ return Math.floor(timeDifference / 86400000);
6959
+ }
6960
+ };
6961
+
6871
6962
  /**
6872
6963
  * 获取月份中的日期
6873
6964
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
6874
6965
  * @returns {number} 月份中的日期(1-31)
6875
- */
6876
- var dayOfMonth = function dayOfMonth(date) {
6877
- if (typeof date !== 'string') {
6878
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6879
- }
6880
-
6881
- var dateObj = new Date(date);
6882
- if (isNaN(dateObj.getTime())) {
6883
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6884
- }
6885
-
6886
- return dateObj.getDate();
6887
- };
6888
-
6966
+ */
6967
+ const dayOfMonth = function (date) {
6968
+ if (typeof date !== 'string') {
6969
+ throw new Error(
6970
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
6971
+ );
6972
+ }
6973
+
6974
+ const dateObj = new Date(date);
6975
+ if (isNaN(dateObj.getTime())) {
6976
+ throw new Error(
6977
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
6978
+ );
6979
+ }
6980
+
6981
+ return dateObj.getDate();
6982
+ };
6983
+
6889
6984
  /**
6890
6985
  * 获取当前日期
6891
6986
  * @date 2022年5月7日
6892
6987
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
6893
6988
  * @returns {string} 当前日期的格式化字符串
6894
- */
6895
- var getCurrentDate = function getCurrentDate() {
6896
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
6897
-
6898
- return formatDate(new Date(), format);
6899
- };
6900
-
6989
+ */
6990
+ const getCurrentDate = function (format = 'YYYY-MM-DD') {
6991
+ return formatDate(new Date(), format);
6992
+ };
6993
+
6901
6994
  /**
6902
6995
  * 获取当前日期时间
6903
6996
  * @date 2022年5月7日
6904
6997
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
6905
6998
  * @returns {string} 当前日期时间的格式化字符串
6906
- */
6907
- var getCurrentDateTime = function getCurrentDateTime() {
6908
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
6909
-
6910
- return formatDate(new Date(), format);
6911
- };
6912
-
6999
+ */
7000
+ const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
7001
+ return formatDate(new Date(), format);
7002
+ };
7003
+
6913
7004
  /**
6914
7005
  * 获取小时
6915
7006
  * @date 2022年5月7日
6916
7007
  * @param {Date|string} [date] - 日期对象或日期字符串
6917
7008
  * @returns {number} 小时数(0-23)
6918
- */
6919
- var getHour = function getHour(date) {
6920
- if (!date) {
6921
- return new Date().getHours();
6922
- }
6923
- if (typeof date === 'string') {
6924
- date = new Date(date);
6925
- }
6926
- return date.getHours();
6927
- };
6928
-
7009
+ */
7010
+ const getHour = function (date) {
7011
+ if (!date) {
7012
+ return new Date().getHours();
7013
+ }
7014
+ if (typeof date === 'string') {
7015
+ date = new Date(date);
7016
+ }
7017
+ return date.getHours();
7018
+ };
7019
+
6929
7020
  /**
6930
7021
  * 获取分钟
6931
7022
  * @date 2022年5月7日
6932
7023
  * @param {Date|string} [date] - 日期对象或日期字符串
6933
7024
  * @returns {number} 分钟数(0-59)
6934
- */
6935
- var getMinute = function getMinute(date) {
6936
- if (!date) {
6937
- return new Date().getMinutes();
6938
- }
6939
- if (typeof date === 'string') {
6940
- date = new Date(date);
6941
- }
6942
- return date.getMinutes();
6943
- };
6944
-
7025
+ */
7026
+ const getMinute = function (date) {
7027
+ if (!date) {
7028
+ return new Date().getMinutes();
7029
+ }
7030
+ if (typeof date === 'string') {
7031
+ date = new Date(date);
7032
+ }
7033
+ return date.getMinutes();
7034
+ };
7035
+
6945
7036
  /**
6946
7037
  * 获取月份
6947
7038
  * @date 2022年5月7日
6948
7039
  * @param {Date|string} [date] - 日期对象或日期字符串
6949
7040
  * @returns {number} 月份数(1-12)
6950
- */
6951
- var getMonth = function getMonth(date) {
6952
- if (!date) {
6953
- return new Date().getMonth() + 1;
6954
- }
6955
- if (typeof date === 'string') {
6956
- date = new Date(date);
6957
- }
6958
- return date.getMonth() + 1;
6959
- };
6960
-
7041
+ */
7042
+ const getMonth = function (date) {
7043
+ if (!date) {
7044
+ return new Date().getMonth() + 1;
7045
+ }
7046
+ if (typeof date === 'string') {
7047
+ date = new Date(date);
7048
+ }
7049
+ return date.getMonth() + 1;
7050
+ };
7051
+
6961
7052
  /**
6962
7053
  * 获取秒
6963
7054
  * @date 2022年5月7日
6964
7055
  * @param {Date|string} [date] - 日期对象或日期字符串
6965
7056
  * @returns {number} 秒数(0-59)
6966
- */
6967
- var getSecond = function getSecond(date) {
6968
- if (!date) {
6969
- return new Date().getSeconds();
6970
- }
6971
- if (typeof date === 'string') {
6972
- date = new Date(date);
6973
- }
6974
- return date.getSeconds();
6975
- };
6976
-
7057
+ */
7058
+ const getSecond = function (date) {
7059
+ if (!date) {
7060
+ return new Date().getSeconds();
7061
+ }
7062
+ if (typeof date === 'string') {
7063
+ date = new Date(date);
7064
+ }
7065
+ return date.getSeconds();
7066
+ };
7067
+
6977
7068
  /**
6978
7069
  * 获取星期几
6979
7070
  * @date 2022年5月7日
6980
7071
  * @param {Date|string} [date] - 日期对象或日期字符串
6981
7072
  * @returns {number} 星期几(0-6,0表示星期日)
6982
- */
6983
- var getWeekday = function getWeekday(date) {
6984
- if (!date) {
6985
- return new Date().getDay();
6986
- }
6987
- if (typeof date === 'string') {
6988
- date = new Date(date);
6989
- }
6990
- return date.getDay();
6991
- };
6992
-
7073
+ */
7074
+ const getWeekday = function (date) {
7075
+ if (!date) {
7076
+ return new Date().getDay();
7077
+ }
7078
+ if (typeof date === 'string') {
7079
+ date = new Date(date);
7080
+ }
7081
+ return date.getDay();
7082
+ };
7083
+
7084
+
6993
7085
  /**
6994
7086
  * @desc 获取上午/下午/晚上
6995
7087
  * @author huangbo
6996
7088
  * @date 2022年5月7日
6997
7089
  * @param {String} [time] - 时间
6998
- **/
6999
- var timeCycle = function timeCycle(time) {
7000
- var hour = 0;
7001
- if (!time) {
7002
- hour = new Date().getHours();
7003
- } else if (typeof time === 'string') {
7004
- // 从时间字符串中提取小时
7005
- var match = time.match(/^(\d{1,2})/);
7006
- if (match) {
7007
- hour = parseInt(match[1], 10);
7008
- }
7009
- } else if (typeof time === 'number') {
7010
- hour = time;
7011
- }
7012
- // 判断时间段
7013
- if (hour >= 5 && hour < 12) {
7014
- return '上午';
7015
- } else if (hour >= 12 && hour < 18) {
7016
- return '下午';
7017
- } else {
7018
- return '晚上';
7019
- }
7090
+ **/
7091
+ const timeCycle = function (time) {
7092
+ let hour = 0;
7093
+ if (!time) {
7094
+ hour = new Date().getHours();
7095
+ } else if (typeof time === 'string') {
7096
+ // 从时间字符串中提取小时
7097
+ const match = time.match(/^(\d{1,2})/);
7098
+ if (match) {
7099
+ hour = parseInt(match[1], 10);
7100
+ }
7101
+ } else if (typeof time === 'number') {
7102
+ hour = time;
7103
+ }
7104
+ // 判断时间段
7105
+ if (hour >= 5 && hour < 12) {
7106
+ return '上午';
7107
+ } else if (hour >= 12 && hour < 18) {
7108
+ return '下午';
7109
+ } else {
7110
+ return '晚上';
7111
+ }
7020
7112
  };
7021
7113
 
7022
7114
  /***/ }),