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 = 248);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 252);
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
  /**
@@ -4723,7 +4767,7 @@ module.exports = require("vue");
4723
4767
  "use strict";
4724
4768
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
4725
4769
  /* unused harmony export doDecrypt */
4726
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
4770
+ /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
4727
4771
  var sm2 = __webpack_require__(42).sm2;
4728
4772
 
4729
4773
 
@@ -4783,14 +4827,14 @@ module.exports = require("fetch-request-source");
4783
4827
 
4784
4828
  /***/ }),
4785
4829
 
4786
- /***/ 23:
4830
+ /***/ 22:
4787
4831
  /***/ (function(module, exports) {
4788
4832
 
4789
4833
  module.exports = require("eoss/lib/form");
4790
4834
 
4791
4835
  /***/ }),
4792
4836
 
4793
- /***/ 248:
4837
+ /***/ 252:
4794
4838
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4795
4839
 
4796
4840
  "use strict";
@@ -4932,24 +4976,24 @@ render._withStripped = true
4932
4976
  // CONCATENATED MODULE: ./packages/email-login/src/email-login.vue?vue&type=template&id=f1ae2338&
4933
4977
 
4934
4978
  // EXTERNAL MODULE: ./src/config/api.js
4935
- var api = __webpack_require__(6);
4979
+ var api = __webpack_require__(5);
4936
4980
 
4937
4981
  // EXTERNAL MODULE: ./src/utils/ajax.js
4938
4982
  var ajax = __webpack_require__(10);
4939
4983
 
4940
4984
  // EXTERNAL MODULE: ./src/utils/util.js
4941
- var util = __webpack_require__(1);
4985
+ var util = __webpack_require__(0);
4942
4986
 
4943
4987
  // EXTERNAL MODULE: external "eoss/lib/button"
4944
4988
  var button_ = __webpack_require__(13);
4945
4989
  var button_default = /*#__PURE__*/__webpack_require__.n(button_);
4946
4990
 
4947
4991
  // EXTERNAL MODULE: external "eoss/lib/form"
4948
- var form_ = __webpack_require__(23);
4992
+ var form_ = __webpack_require__(22);
4949
4993
  var form_default = /*#__PURE__*/__webpack_require__.n(form_);
4950
4994
 
4951
4995
  // EXTERNAL MODULE: external "eoss/lib/form-item"
4952
- var form_item_ = __webpack_require__(35);
4996
+ var form_item_ = __webpack_require__(32);
4953
4997
  var form_item_default = /*#__PURE__*/__webpack_require__.n(form_item_);
4954
4998
 
4955
4999
  // EXTERNAL MODULE: external "eoss/lib/input"
@@ -5053,7 +5097,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5053
5097
  */
5054
5098
  codeAction: {
5055
5099
  type: String,
5056
- default: api["Q" /* getLoginCode */]
5100
+ default: api["V" /* getLoginCode */]
5057
5101
  },
5058
5102
  /**
5059
5103
  * 登录接口地址
@@ -5231,7 +5275,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5231
5275
  this.$refs.loginForm && this.$refs.loginForm.validate().then(function () {
5232
5276
  _this2.submit = true;
5233
5277
  if (_this2.action) {
5234
- var loadingInstance = Object(util["J" /* loading */])('登录中...');
5278
+ var loadingInstance = Object(util["K" /* loading */])('登录中...');
5235
5279
  Object(ajax["a" /* ajax */])({
5236
5280
  method: 'POST',
5237
5281
  url: _this2.action,
@@ -5317,29 +5361,50 @@ email_login.install = function (Vue) {
5317
5361
 
5318
5362
  /***/ }),
5319
5363
 
5320
- /***/ 29:
5364
+ /***/ 26:
5321
5365
  /***/ (function(module, exports) {
5322
5366
 
5323
5367
  module.exports = require("qs");
5324
5368
 
5325
5369
  /***/ }),
5326
5370
 
5327
- /***/ 3:
5328
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5371
+ /***/ 27:
5372
+ /***/ (function(module, exports) {
5329
5373
 
5330
- "use strict";
5331
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
5332
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
5333
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
5334
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
5335
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
5336
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
5337
- /**
5338
- * 检查一个值是否为字符串类型
5339
- * @param {*} obj 要检查的值
5340
- * @returns {boolean} 如果值为字符串则返回true,否则返回false
5341
- */
5342
- function isString(obj) {
5374
+ module.exports = require("axios");
5375
+
5376
+ /***/ }),
5377
+
5378
+ /***/ 28:
5379
+ /***/ (function(module, exports) {
5380
+
5381
+ module.exports = require("json-bigint");
5382
+
5383
+ /***/ }),
5384
+
5385
+ /***/ 29:
5386
+ /***/ (function(module, exports) {
5387
+
5388
+ module.exports = require("eoss/lib/retrial-auth");
5389
+
5390
+ /***/ }),
5391
+
5392
+ /***/ 3:
5393
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5394
+
5395
+ "use strict";
5396
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
5397
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
5398
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
5399
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
5400
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
5401
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
5402
+ /**
5403
+ * 检查一个值是否为字符串类型
5404
+ * @param {*} obj 要检查的值
5405
+ * @returns {boolean} 如果值为字符串则返回true,否则返回false
5406
+ */
5407
+ function isString(obj) {
5343
5408
  return Object.prototype.toString.call(obj) === '[object String]';
5344
5409
  }
5345
5410
 
@@ -5391,30 +5456,9 @@ function isDefined(val) {
5391
5456
 
5392
5457
  /***/ }),
5393
5458
 
5394
- /***/ 30:
5395
- /***/ (function(module, exports) {
5396
-
5397
- module.exports = require("axios");
5398
-
5399
- /***/ }),
5400
-
5401
- /***/ 31:
5402
- /***/ (function(module, exports) {
5403
-
5404
- module.exports = require("json-bigint");
5405
-
5406
- /***/ }),
5407
-
5408
5459
  /***/ 32:
5409
5460
  /***/ (function(module, exports) {
5410
5461
 
5411
- module.exports = require("eoss/lib/retrial-auth");
5412
-
5413
- /***/ }),
5414
-
5415
- /***/ 35:
5416
- /***/ (function(module, exports) {
5417
-
5418
5462
  module.exports = require("eoss/lib/form-item");
5419
5463
 
5420
5464
  /***/ }),
@@ -5531,151 +5575,155 @@ module.exports = require("sm-crypto");
5531
5575
 
5532
5576
  /***/ }),
5533
5577
 
5534
- /***/ 6:
5578
+ /***/ 5:
5535
5579
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5536
5580
 
5537
5581
  "use strict";
5538
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCaLogin; });
5539
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return doUserLogin; });
5540
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doQrLogin; });
5541
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return logout; });
5542
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initLogin; });
5543
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return switchUserTo; });
5582
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return doCaLogin; });
5583
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return doUserLogin; });
5584
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return doQrLogin; });
5585
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return logout; });
5586
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return initLogin; });
5587
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return switchUserTo; });
5544
5588
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
5545
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getLoginCode; });
5546
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doCodeLogin; });
5589
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getLoginCode; });
5590
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return doCodeLogin; });
5547
5591
  /* unused harmony export updateCode */
5548
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getModifyPassCode; });
5549
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
5550
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return loginModifyPassword; });
5592
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getModifyPassCode; });
5593
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return codeModifyPass; });
5594
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return loginModifyPassword; });
5551
5595
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
5552
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return initModifyPassword; });
5596
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return initModifyPassword; });
5553
5597
  /* unused harmony export doWechatQrLogin */
5554
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getTwoFactorLoginCode; });
5598
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return getTwoFactorLoginCode; });
5555
5599
  /* unused harmony export doTwoFactorLogin */
5556
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return initRetrialAuth; });
5557
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getRetrialAuthCode; });
5558
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return scanCodeRetrialAuth; });
5559
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return codeRetrialAuth; });
5560
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doAssistanceQrLogin; });
5561
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zc", function() { return userOnline; });
5562
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return getUserAppWithTag; });
5563
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return recordUserApp; });
5564
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return getUserRecordApp; });
5565
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return mainConfig; });
5566
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return initUserSet; });
5567
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return updateUserInfo; });
5600
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return initRetrialAuth; });
5601
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getRetrialAuthCode; });
5602
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return scanCodeRetrialAuth; });
5603
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return codeRetrialAuth; });
5604
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return doAssistanceQrLogin; });
5605
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pd", function() { return userOnline; });
5606
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return getUserAppWithTag; });
5607
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return recordUserApp; });
5608
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return getUserRecordApp; });
5609
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return mainConfig; });
5610
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return initUserSet; });
5611
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ld", function() { return updateUserInfo; });
5568
5612
  /* unused harmony export getUserImgUrl */
5569
5613
  /* unused harmony export getDoorIndex */
5570
5614
  /* unused harmony export refreshOnlineUsers */
5571
5615
  /* unused harmony export getQuickMenuIds */
5572
5616
  /* unused harmony export getApplicationIdArray */
5573
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplications; });
5574
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getComplexApplicationsNew; });
5575
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getMainAppWithTag; });
5576
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getByType; });
5617
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getComplexApplications; });
5618
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getComplexApplicationsNew; });
5619
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getMainAppWithTag; });
5620
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getByType; });
5577
5621
  /* unused harmony export getUserCustomInfo */
5578
5622
  /* unused harmony export updateUserCustomInfo */
5579
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return saveOrUpdate; });
5580
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return sysMsgPage; });
5581
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return ignoreSysMsg; });
5582
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return ignoreAllSysMsg; });
5583
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return searchType; });
5584
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getSysParam; });
5585
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getAdjunctProperties; });
5586
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yc", function() { return uploads; });
5587
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xc", function() { return uploadOnlyOne; });
5588
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctFileInfos; });
5623
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return saveOrUpdate; });
5624
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return sysMsgPage; });
5625
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return ignoreSysMsg; });
5626
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return ignoreAllSysMsg; });
5627
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return searchType; });
5628
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return getSysParam; });
5629
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getAdjunctProperties; });
5630
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "od", function() { return uploads; });
5631
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nd", function() { return uploadOnlyOne; });
5632
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getAdjunctFileInfos; });
5589
5633
  /* unused harmony export uploadSort */
5590
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return downloadByAdjunctId; });
5591
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return uploadDownloads; });
5592
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return previewAdjunct; });
5593
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return previewAdjunct2; });
5594
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return previewAdjunctOffice; });
5595
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return delAdjunct; });
5634
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return downloadByAdjunctId; });
5635
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "md", function() { return uploadDownloads; });
5636
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return previewAdjunct; });
5637
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return previewAdjunct2; });
5638
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return previewAdjunctOffice; });
5639
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return delAdjunct; });
5596
5640
  /* unused harmony export upload_updateClassify */
5597
5641
  /* unused harmony export getDeleteAdjunctFileInfos */
5598
5642
  /* unused harmony export getPictureBase64 */
5599
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSelectorOrgTree; });
5600
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSelectorOrgDetail; });
5601
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getOrgMainTree; });
5643
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return getSelectorOrgTree; });
5644
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getSelectorOrgDetail; });
5645
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getOrgMainTree; });
5602
5646
  /* unused harmony export getSelectOrgsubids */
5603
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCode; });
5647
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return findSysCode; });
5604
5648
  /* unused harmony export getDictList */
5605
5649
  /* unused harmony export findUserBaseInfo */
5606
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return gethelpdoc; });
5650
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return gethelpdoc; });
5607
5651
  /* unused harmony export getCurrentuser */
5608
5652
  /* unused harmony export mainDetail */
5609
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toStartFlow; });
5610
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return tempSave; });
5611
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return commonOpion; });
5653
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return toStartFlow; });
5654
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return tempSave; });
5655
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return commonOpion; });
5612
5656
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
5613
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return editCommonOpion; });
5614
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return saveCommonOpinion; });
5615
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return updateCommonOpinion; });
5616
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteCommonOpion; });
5617
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getProcessDefList; });
5618
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfo; });
5619
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findCodeValues; });
5620
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return findSysParam; });
5621
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysCodes; });
5622
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getNotificationMsg; });
5623
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getHandleInfoHtml; });
5624
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskHandleHtml; });
5657
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return editCommonOpion; });
5658
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return saveCommonOpinion; });
5659
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jd", function() { return updateCommonOpinion; });
5660
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return deleteCommonOpion; });
5661
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getProcessDefList; });
5662
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getNodeInfo; });
5663
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return findCodeValues; });
5664
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return findSysParam; });
5665
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return findSysCodes; });
5666
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getNotificationMsg; });
5667
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getHandleInfoHtml; });
5668
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return taskHandleHtml; });
5625
5669
  /* unused harmony export getView */
5626
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return register; });
5627
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return pendedhistoryList; });
5628
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskRejectHtml; });
5629
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskRejectHtml; });
5630
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toStartTaskRead; });
5631
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toStartTaskReadIndex; });
5632
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskReadHtml; });
5633
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return rejectAndEnd; });
5634
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toSendMsg; });
5635
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sendMsg; });
5636
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return endFlowHtml; });
5637
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return handleInfo; });
5638
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return loginUserInfo; });
5639
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ad", function() { return wss; });
5640
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return topic; });
5641
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetCustomInfo; });
5642
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getPresetNodeInfo; });
5643
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return toTaskTransferIndex; });
5644
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return taskTransfer; });
5645
- /* unused harmony export toPresetInfoListIndex */
5646
- /* unused harmony export deletePresetInfo */
5670
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return register; });
5671
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return pendedhistoryList; });
5672
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xc", function() { return toTaskRejectHtml; });
5673
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return taskRejectHtml; });
5674
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return toStartTaskRead; });
5675
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return toStartTaskReadIndex; });
5676
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return taskReadHtml; });
5677
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return rejectAndEnd; });
5678
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return toSendMsg; });
5679
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return sendMsg; });
5680
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return endFlowHtml; });
5681
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return handleInfo; });
5682
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return loginUserInfo; });
5683
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qd", function() { return wss; });
5684
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hd", function() { return topic; });
5685
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getPresetCustomInfo; });
5686
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getPresetNodeInfo; });
5687
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dd", function() { return toTaskTransferIndex; });
5688
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return taskTransfer; });
5689
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return toPresetInfoListIndex; });
5690
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return deletePresetInfo; });
5647
5691
  /* unused harmony export historyListJson */
5648
- /* unused harmony export pendedhistoryListJson */
5649
- /* unused harmony export pressListJson */
5650
- /* unused harmony export deleteFlow */
5651
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return isCanStartSubFlow; });
5652
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return toTaskUnionExamine; });
5653
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return taskUnionExamine; });
5654
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTaskTakeAdvice; });
5655
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return taskTakeAdvice; });
5656
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskStartDraft; });
5657
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskSupervise; });
5658
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskSuperviseSub; });
5659
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskStartDraft; });
5660
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskReview; });
5661
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskReview; });
5662
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return toTaskUnionSeal; });
5663
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return taskUnionSeal; });
5664
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return toTwoOfficesDispatch; });
5665
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return twoOfficesDispatch; });
5666
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toResetProcessIndex; });
5667
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return resetProcess; });
5668
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskContinuationIndex; });
5669
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskContinuation; });
5670
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getFreeStartFlowParams; });
5671
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeStartFlowWithSubmitTask; });
5692
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return pendedhistoryListJson; });
5693
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return pressListJson; });
5694
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return deleteFlow; });
5695
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return isCanStartSubFlow; });
5696
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ed", function() { return toTaskUnionExamine; });
5697
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return taskUnionExamine; });
5698
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cd", function() { return toTaskTakeAdvice; });
5699
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return taskTakeAdvice; });
5700
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zc", function() { return toTaskStartDraft; });
5701
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ad", function() { return toTaskSupervise; });
5702
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bd", function() { return toTaskSuperviseSub; });
5703
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return taskStartDraft; });
5704
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yc", function() { return toTaskReview; });
5705
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return taskReview; });
5706
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fd", function() { return toTaskUnionSeal; });
5707
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return taskUnionSeal; });
5708
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gd", function() { return toTwoOfficesDispatch; });
5709
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "id", function() { return twoOfficesDispatch; });
5710
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return toResetProcessIndex; });
5711
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return resetProcess; });
5712
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return toTaskContinuationIndex; });
5713
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return taskContinuation; });
5714
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getFreeStartFlowParams; });
5715
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return freeStartFlowWithSubmitTask; });
5672
5716
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
5673
- /* unused harmony export pendedhistoryListWithCircularReadJson */
5674
- /* unused harmony export fyListJson */
5675
- /* unused harmony export circularReadWithdraw */
5676
- /* unused harmony export taskReadWithDraw */
5677
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
5717
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return pendedhistoryListWithCircularReadJson; });
5718
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return fyListJson; });
5719
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return circularReadWithdraw; });
5720
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return taskReadWithDraw; });
5721
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
5678
5722
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
5723
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return resetJson; });
5724
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return deletedListJson; });
5725
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return restoredHistory; });
5726
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return modifyFlow; });
5679
5727
  /* unused harmony export sendList */
5680
5728
  /* unused harmony export sendInfo */
5681
5729
  /* unused harmony export sendSave */
@@ -5683,58 +5731,61 @@ module.exports = require("sm-crypto");
5683
5731
  /* unused harmony export sendDelete */
5684
5732
  /* unused harmony export sendBatch */
5685
5733
  /* unused harmony export formContents */
5686
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return directStartTaskCircularRead; });
5687
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowAndStartTaskCircularRead; });
5688
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNodeInfoForStart; });
5689
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlow; });
5690
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUrgencyLevelChangedNotificationType; });
5691
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toFreeTaskCircularRead; });
5692
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return freeTaskCircularRead; });
5693
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pageLists; });
5734
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return directStartTaskCircularRead; });
5735
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return endFlowAndStartTaskCircularRead; });
5736
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getNodeInfoForStart; });
5737
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return freeStartFlow; });
5738
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return getUrgencyLevelChangedNotificationType; });
5739
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return toFreeTaskCircularRead; });
5740
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return freeTaskCircularRead; });
5741
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return pageLists; });
5694
5742
  /* unused harmony export publishedLists */
5695
5743
  /* unused harmony export pageInfo */
5696
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageGroup; });
5697
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return pageSave; });
5698
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return pageUpdate; });
5699
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageDelete; });
5744
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return pageGroup; });
5745
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return pageSave; });
5746
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return pageUpdate; });
5747
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return pageDelete; });
5700
5748
  /* unused harmony export pageTargetDelete */
5701
5749
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
5702
5750
  /* unused harmony export batchUpdate */
5703
5751
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
5704
5752
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
5705
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return processListJson; });
5706
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processInfo; });
5707
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processDeleteJson; });
5708
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return processSave; });
5709
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return processUpdate; });
5710
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return nodeListJson; });
5711
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeDeleteJson; });
5712
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return nodeSave; });
5713
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return nodeUpdate; });
5714
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeInfo; });
5715
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return moduleListJson; });
5716
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleInfo; });
5717
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleDelete; });
5718
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return moduleSave; });
5719
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return moduleUpdate; });
5720
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleListJson; });
5721
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleEdit; });
5722
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return ruleRead; });
5723
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return ruleSave; });
5753
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return processListJson; });
5754
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return processInfo; });
5755
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return processDeleteJson; });
5756
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return processSave; });
5757
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return processUpdate; });
5758
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return nodeListJson; });
5759
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return nodeDeleteJson; });
5760
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return nodeSave; });
5761
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return nodeUpdate; });
5762
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return nodeInfo; });
5763
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return moduleListJson; });
5764
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return moduleInfo; });
5765
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return moduleDelete; });
5766
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return moduleSave; });
5767
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return moduleUpdate; });
5768
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return ruleListJson; });
5769
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return ruleEdit; });
5770
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return ruleRead; });
5771
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return ruleSave; });
5724
5772
  /* unused harmony export ruleSupplement */
5725
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return ruleUndore; });
5726
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleAdd; });
5727
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyDetail; });
5773
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return ruleUndore; });
5774
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return ruleAdd; });
5775
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return companyDetail; });
5728
5776
  /* unused harmony export issueDetailList */
5729
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return deleteRule; });
5730
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getSysParamV1; });
5731
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return companyList; });
5732
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return supplement; });
5733
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return isAddSource; });
5734
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return tiggerInTime; });
5735
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return updateHistory; });
5777
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return deleteRule; });
5778
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return getSysParamV1; });
5779
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return companyList; });
5780
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return supplement; });
5781
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return isAddSource; });
5782
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return tiggerInTime; });
5783
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kd", function() { return updateHistory; });
5736
5784
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
5737
5785
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
5786
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return toDefinitionChangeSort; });
5787
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return setSort; });
5788
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return isCancelSecondConfirmation; });
5738
5789
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
5739
5790
  // 登录
5740
5791
  var doCaLogin = '/sso2/signIn/auth/doCaLogin'; // ca登录认证
@@ -5985,6 +6036,15 @@ var taskReadWithDraw = '/bpm/bpmBackend/taskReadWithDraw';
5985
6036
  var startReadTransferHandleFlowWithTaskReadEnd = '/bpm/bpmBackend/startReadTransferHandleFlowWithTaskReadEnd';
5986
6037
  // 阅转办校验接口
5987
6038
  var checkBusinessIdStartedReadTransferHandle = '/bpm/bpmBackend/checkBusinessIdStartedReadTransferHandle';
6039
+ // 获取重设记录列表
6040
+ var resetJson = '/bpm/wfResetRecord/listJson.dhtml';
6041
+ // 获取删除记录列表
6042
+ var deletedListJson = '/bpm/pendedhistoryManager/deletedListJson.dhtml';
6043
+ // 恢复删除记录
6044
+ var restoredHistory = '/bpm/pendedhistoryManager/restoredHistory.dhtml';
6045
+ // 修改流程列表意见
6046
+ var modifyFlow = flowPendingPrefix + '/pendedhistoryManager/modify.dhtml';
6047
+
5988
6048
  // notifySend 消息发送
5989
6049
  var sendList = '/notify2/notifySendRecord/listJson';
5990
6050
  var sendInfo = '/notify2/notifySendRecord/info';
@@ -6102,6 +6162,13 @@ var auditTrajectory = '/baseOperationRecords/listJson';
6102
6162
  // 暂停定时任务
6103
6163
  var changeInTime = '/baseIssueRules/changeInTime';
6104
6164
 
6165
+ // 流程排序
6166
+ var toDefinitionChangeSort = '/bpm/bpmBackend/toDefinitionChangeSort';
6167
+ var setSort = '/bpm/bpmBackend/setSort';
6168
+
6169
+ // 是否取消二次确认
6170
+ var isCancelSecondConfirmation = '/bpm/bpmBackend/isCancelSecondConfirmation';
6171
+
6105
6172
  /***/ }),
6106
6173
 
6107
6174
  /***/ 7:
@@ -6154,736 +6221,759 @@ var changeInTime = '/baseIssueRules/changeInTime';
6154
6221
  /* unused harmony export getSecond */
6155
6222
  /* unused harmony export getWeekday */
6156
6223
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
6157
-
6158
-
6224
+ /* Modified from https://github.com/taylorhakes/fecha
6225
+ *
6226
+ * The MIT License (MIT)
6227
+ *
6228
+ * Copyright (c) 2015 Taylor Hakes
6229
+ *
6230
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
6231
+ * of this software and associated documentation files (the "Software"), to deal
6232
+ * in the Software without restriction, including without limitation the rights
6233
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6234
+ * copies of the Software, and to permit persons to whom the Software is
6235
+ * furnished to do so, subject to the following conditions:
6236
+ *
6237
+ * The above copyright notice and this permission notice shall be included in all
6238
+ * copies or substantial portions of the Software.
6239
+ *
6240
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6241
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6242
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6243
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6244
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
6245
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6246
+ * SOFTWARE.
6247
+ */
6248
+
6249
+ /*eslint-disable*/
6250
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
6251
+
6252
+
6159
6253
  /**
6160
6254
  * Parse or format dates
6161
6255
  * @class fecha
6162
- */
6163
- var fecha = {};
6164
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6165
- var twoDigits = '\\d\\d?';
6166
- var threeDigits = '\\d{3}';
6167
- var fourDigits = '\\d{4}';
6168
- var word = '[^\\s]+';
6169
- var literal = /\[([^]*?)\]/gm;
6170
- var noop = function noop() {};
6171
-
6172
- function regexEscape(str) {
6173
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6174
- }
6175
-
6176
- function shorten(arr, sLen) {
6177
- var newArr = [];
6178
- for (var i = 0, len = arr.length; i < len; i++) {
6179
- newArr.push(arr[i].substr(0, sLen));
6180
- }
6181
- return newArr;
6182
- }
6183
-
6184
- function monthUpdate() {
6185
- return function (d, v) {
6186
- var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6187
- if (~index) {
6188
- d.month = index;
6189
- }
6190
- };
6191
- }
6192
-
6193
- function pad(val, len) {
6194
- val = String(val);
6195
- len = len || 2;
6196
- while (val.length < len) {
6197
- val = '0' + val;
6198
- }
6199
- return val;
6200
- }
6201
-
6202
- // 直接使用中文日期名称常量
6203
- var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6204
- var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6205
- var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6206
- var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6207
- var amPm = ['上午', '下午'];
6208
- var DoFn = function DoFn(D) {
6209
- return D + '日';
6210
- };
6211
-
6212
- var formatFlags = {
6213
- D: function D(dateObj) {
6214
- return dateObj.getDay();
6215
- },
6216
- DD: function DD(dateObj) {
6217
- return pad(dateObj.getDay());
6218
- },
6219
- Do: function Do(dateObj) {
6220
- return DoFn(dateObj.getDate());
6221
- },
6222
- d: function d(dateObj) {
6223
- return dateObj.getDate();
6224
- },
6225
- dd: function dd(dateObj) {
6226
- return pad(dateObj.getDate());
6227
- },
6228
- ddd: function ddd(dateObj) {
6229
- return dayNamesShort[dateObj.getDay()];
6230
- },
6231
- dddd: function dddd(dateObj) {
6232
- return dayNames[dateObj.getDay()];
6233
- },
6234
- M: function M(dateObj) {
6235
- return dateObj.getMonth() + 1;
6236
- },
6237
- MM: function MM(dateObj) {
6238
- return pad(dateObj.getMonth() + 1);
6239
- },
6240
- MMM: function MMM(dateObj) {
6241
- return monthNamesShort[dateObj.getMonth()];
6242
- },
6243
- MMMM: function MMMM(dateObj) {
6244
- return monthNames[dateObj.getMonth()];
6245
- },
6246
- yy: function yy(dateObj) {
6247
- return pad(String(dateObj.getFullYear()), 4).substr(2);
6248
- },
6249
- yyyy: function yyyy(dateObj) {
6250
- return pad(dateObj.getFullYear(), 4);
6251
- },
6252
- h: function h(dateObj) {
6253
- return dateObj.getHours() % 12 || 12;
6254
- },
6255
- hh: function hh(dateObj) {
6256
- return pad(dateObj.getHours() % 12 || 12);
6257
- },
6258
- H: function H(dateObj) {
6259
- return dateObj.getHours();
6260
- },
6261
- HH: function HH(dateObj) {
6262
- return pad(dateObj.getHours());
6263
- },
6264
- m: function m(dateObj) {
6265
- return dateObj.getMinutes();
6266
- },
6267
- mm: function mm(dateObj) {
6268
- return pad(dateObj.getMinutes());
6269
- },
6270
- s: function s(dateObj) {
6271
- return dateObj.getSeconds();
6272
- },
6273
- ss: function ss(dateObj) {
6274
- return pad(dateObj.getSeconds());
6275
- },
6276
- S: function S(dateObj) {
6277
- return Math.round(dateObj.getMilliseconds() / 100);
6278
- },
6279
- SS: function SS(dateObj) {
6280
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
6281
- },
6282
- SSS: function SSS(dateObj) {
6283
- return pad(dateObj.getMilliseconds(), 3);
6284
- },
6285
- a: function a(dateObj) {
6286
- return dateObj.getHours() < 12 ? '上午' : '下午';
6287
- },
6288
- A: function A(dateObj) {
6289
- return dateObj.getHours() < 12 ? '上午' : '下午';
6290
- },
6291
- ZZ: function ZZ(dateObj) {
6292
- var o = dateObj.getTimezoneOffset();
6293
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
6294
- }
6295
- };
6296
-
6297
- var parseFlags = {
6298
- d: [twoDigits, function (d, v) {
6299
- d.day = v;
6300
- }],
6301
- Do: [twoDigits + word, function (d, v) {
6302
- d.day = parseInt(v, 10);
6303
- }],
6304
- M: [twoDigits, function (d, v) {
6305
- d.month = v - 1;
6306
- }],
6307
- yy: [twoDigits, function (d, v) {
6308
- var da = new Date(),
6309
- cent = +('' + da.getFullYear()).substr(0, 2);
6310
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
6311
- }],
6312
- h: [twoDigits, function (d, v) {
6313
- d.hour = v;
6314
- }],
6315
- m: [twoDigits, function (d, v) {
6316
- d.minute = v;
6317
- }],
6318
- s: [twoDigits, function (d, v) {
6319
- d.second = v;
6320
- }],
6321
- yyyy: [fourDigits, function (d, v) {
6322
- d.year = v;
6323
- }],
6324
- S: ['\\d', function (d, v) {
6325
- d.millisecond = v * 100;
6326
- }],
6327
- SS: ['\\d{2}', function (d, v) {
6328
- d.millisecond = v * 10;
6329
- }],
6330
- SSS: [threeDigits, function (d, v) {
6331
- d.millisecond = v;
6332
- }],
6333
- D: [twoDigits, noop],
6334
- ddd: [word, noop],
6335
- MMM: [word, monthUpdate('monthNamesShort')],
6336
- MMMM: [word, monthUpdate('monthNames')],
6337
- a: [word, function (d, v) {
6338
- var val = v.toLowerCase();
6339
- if (val === '上午') {
6340
- d.isPm = false;
6341
- } else if (val === '下午') {
6342
- d.isPm = true;
6343
- }
6344
- }],
6345
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
6346
- var parts = (v + '').match(/([+-]|\d\d)/gi),
6347
- minutes = void 0;
6348
-
6349
- if (parts) {
6350
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
6351
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
6352
- }
6353
- }]
6354
- };
6355
- parseFlags.dd = parseFlags.d;
6356
- parseFlags.dddd = parseFlags.ddd;
6357
- parseFlags.DD = parseFlags.D;
6358
- parseFlags.mm = parseFlags.m;
6359
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
6360
- parseFlags.MM = parseFlags.M;
6361
- parseFlags.ss = parseFlags.s;
6362
- parseFlags.A = parseFlags.a;
6363
-
6364
- // Some common format strings
6365
- fecha.masks = {
6366
- default: 'ddd MMM dd yyyy HH:mm:ss',
6367
- shortDate: 'M/D/yy',
6368
- mediumDate: 'MMM d, yyyy',
6369
- longDate: 'MMMM d, yyyy',
6370
- fullDate: 'dddd, MMMM d, yyyy',
6371
- shortTime: 'HH:mm',
6372
- mediumTime: 'HH:mm:ss',
6373
- longTime: 'HH:mm:ss.SSS'
6374
- };
6375
-
6256
+ */
6257
+ const fecha = {};
6258
+ const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6259
+ const twoDigits = '\\d\\d?';
6260
+ const threeDigits = '\\d{3}';
6261
+ const fourDigits = '\\d{4}';
6262
+ const word = '[^\\s]+';
6263
+ const literal = /\[([^]*?)\]/gm;
6264
+ const noop = function () {};
6265
+
6266
+ function regexEscape(str) {
6267
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6268
+ }
6269
+
6270
+ function shorten(arr, sLen) {
6271
+ const newArr = [];
6272
+ for (let i = 0, len = arr.length; i < len; i++) {
6273
+ newArr.push(arr[i].substr(0, sLen));
6274
+ }
6275
+ return newArr;
6276
+ }
6277
+
6278
+ function monthUpdate() {
6279
+ return function (d, v) {
6280
+ const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6281
+ if (~index) {
6282
+ d.month = index;
6283
+ }
6284
+ };
6285
+ }
6286
+
6287
+ function pad(val, len) {
6288
+ val = String(val);
6289
+ len = len || 2;
6290
+ while (val.length < len) {
6291
+ val = '0' + val;
6292
+ }
6293
+ return val;
6294
+ }
6295
+
6296
+ // 直接使用中文日期名称常量
6297
+ const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6298
+ const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6299
+ const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6300
+ const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6301
+ const amPm = ['上午', '下午'];
6302
+ const DoFn = function DoFn(D) {
6303
+ return D + '日';
6304
+ };
6305
+
6306
+ const formatFlags = {
6307
+ D: function(dateObj) {
6308
+ return dateObj.getDay();
6309
+ },
6310
+ DD: function(dateObj) {
6311
+ return pad(dateObj.getDay());
6312
+ },
6313
+ Do: function(dateObj) {
6314
+ return DoFn(dateObj.getDate());
6315
+ },
6316
+ d: function(dateObj) {
6317
+ return dateObj.getDate();
6318
+ },
6319
+ dd: function(dateObj) {
6320
+ return pad(dateObj.getDate());
6321
+ },
6322
+ ddd: function(dateObj) {
6323
+ return dayNamesShort[dateObj.getDay()];
6324
+ },
6325
+ dddd: function(dateObj) {
6326
+ return dayNames[dateObj.getDay()];
6327
+ },
6328
+ M: function(dateObj) {
6329
+ return dateObj.getMonth() + 1;
6330
+ },
6331
+ MM: function(dateObj) {
6332
+ return pad(dateObj.getMonth() + 1);
6333
+ },
6334
+ MMM: function(dateObj) {
6335
+ return monthNamesShort[dateObj.getMonth()];
6336
+ },
6337
+ MMMM: function(dateObj) {
6338
+ return monthNames[dateObj.getMonth()];
6339
+ },
6340
+ yy: function(dateObj) {
6341
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
6342
+ },
6343
+ yyyy: function(dateObj) {
6344
+ return pad(dateObj.getFullYear(), 4);
6345
+ },
6346
+ h: function(dateObj) {
6347
+ return dateObj.getHours() % 12 || 12;
6348
+ },
6349
+ hh: function(dateObj) {
6350
+ return pad(dateObj.getHours() % 12 || 12);
6351
+ },
6352
+ H: function(dateObj) {
6353
+ return dateObj.getHours();
6354
+ },
6355
+ HH: function(dateObj) {
6356
+ return pad(dateObj.getHours());
6357
+ },
6358
+ m: function(dateObj) {
6359
+ return dateObj.getMinutes();
6360
+ },
6361
+ mm: function(dateObj) {
6362
+ return pad(dateObj.getMinutes());
6363
+ },
6364
+ s: function(dateObj) {
6365
+ return dateObj.getSeconds();
6366
+ },
6367
+ ss: function(dateObj) {
6368
+ return pad(dateObj.getSeconds());
6369
+ },
6370
+ S: function(dateObj) {
6371
+ return Math.round(dateObj.getMilliseconds() / 100);
6372
+ },
6373
+ SS: function(dateObj) {
6374
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
6375
+ },
6376
+ SSS: function(dateObj) {
6377
+ return pad(dateObj.getMilliseconds(), 3);
6378
+ },
6379
+ a: function(dateObj) {
6380
+ return dateObj.getHours() < 12 ? '上午' : '下午';
6381
+ },
6382
+ A: function(dateObj) {
6383
+ return dateObj.getHours() < 12 ? '上午' : '下午';
6384
+ },
6385
+ ZZ: function(dateObj) {
6386
+ const o = dateObj.getTimezoneOffset();
6387
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
6388
+ }
6389
+ };
6390
+
6391
+ const parseFlags = {
6392
+ d: [twoDigits, function (d, v) {
6393
+ d.day = v;
6394
+ }],
6395
+ Do: [twoDigits + word, function (d, v) {
6396
+ d.day = parseInt(v, 10);
6397
+ }],
6398
+ M: [twoDigits, function (d, v) {
6399
+ d.month = v - 1;
6400
+ }],
6401
+ yy: [twoDigits, function (d, v) {
6402
+ const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
6403
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
6404
+ }],
6405
+ h: [twoDigits, function (d, v) {
6406
+ d.hour = v;
6407
+ }],
6408
+ m: [twoDigits, function (d, v) {
6409
+ d.minute = v;
6410
+ }],
6411
+ s: [twoDigits, function (d, v) {
6412
+ d.second = v;
6413
+ }],
6414
+ yyyy: [fourDigits, function (d, v) {
6415
+ d.year = v;
6416
+ }],
6417
+ S: ['\\d', function (d, v) {
6418
+ d.millisecond = v * 100;
6419
+ }],
6420
+ SS: ['\\d{2}', function (d, v) {
6421
+ d.millisecond = v * 10;
6422
+ }],
6423
+ SSS: [threeDigits, function (d, v) {
6424
+ d.millisecond = v;
6425
+ }],
6426
+ D: [twoDigits, noop],
6427
+ ddd: [word, noop],
6428
+ MMM: [word, monthUpdate('monthNamesShort')],
6429
+ MMMM: [word, monthUpdate('monthNames')],
6430
+ a: [word, function (d, v) {
6431
+ const val = v.toLowerCase();
6432
+ if (val === '上午') {
6433
+ d.isPm = false;
6434
+ } else if (val === '下午') {
6435
+ d.isPm = true;
6436
+ }
6437
+ }],
6438
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
6439
+ let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
6440
+
6441
+ if (parts) {
6442
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
6443
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
6444
+ }
6445
+ }]
6446
+ };
6447
+ parseFlags.dd = parseFlags.d;
6448
+ parseFlags.dddd = parseFlags.ddd;
6449
+ parseFlags.DD = parseFlags.D;
6450
+ parseFlags.mm = parseFlags.m;
6451
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
6452
+ parseFlags.MM = parseFlags.M;
6453
+ parseFlags.ss = parseFlags.s;
6454
+ parseFlags.A = parseFlags.a;
6455
+
6456
+
6457
+ // Some common format strings
6458
+ fecha.masks = {
6459
+ default: 'ddd MMM dd yyyy HH:mm:ss',
6460
+ shortDate: 'M/D/yy',
6461
+ mediumDate: 'MMM d, yyyy',
6462
+ longDate: 'MMMM d, yyyy',
6463
+ fullDate: 'dddd, MMMM d, yyyy',
6464
+ shortTime: 'HH:mm',
6465
+ mediumTime: 'HH:mm:ss',
6466
+ longTime: 'HH:mm:ss.SSS'
6467
+ };
6468
+
6376
6469
  /***
6377
6470
  * Format a date
6378
6471
  * @method format
6379
6472
  * @param {Date|number} dateObj
6380
6473
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
6381
- */
6382
- fecha.format = function (dateObj, mask) {
6383
- if (typeof dateObj === 'number') {
6384
- dateObj = new Date(dateObj);
6385
- }
6386
-
6387
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
6388
- throw new Error('Invalid Date in fecha.format');
6389
- }
6390
-
6391
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
6392
-
6393
- var literals = [];
6394
-
6395
- // Make literals inactive by replacing them with ??
6396
- mask = mask.replace(literal, function ($0, $1) {
6397
- literals.push($1);
6398
- return '@@@';
6399
- });
6400
- // Apply formatting rules
6401
- mask = mask.replace(token, function ($0) {
6402
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
6403
- });
6404
- // Inline literal values back into the formatted value
6405
- return mask.replace(/@@@/g, function () {
6406
- return literals.shift();
6407
- });
6408
- };
6409
-
6474
+ */
6475
+ fecha.format = function (dateObj, mask) {
6476
+ if (typeof dateObj === 'number') {
6477
+ dateObj = new Date(dateObj);
6478
+ }
6479
+
6480
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
6481
+ throw new Error('Invalid Date in fecha.format');
6482
+ }
6483
+
6484
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
6485
+
6486
+ const literals = [];
6487
+
6488
+ // Make literals inactive by replacing them with ??
6489
+ mask = mask.replace(literal, function($0, $1) {
6490
+ literals.push($1);
6491
+ return '@@@';
6492
+ });
6493
+ // Apply formatting rules
6494
+ mask = mask.replace(token, function ($0) {
6495
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
6496
+ });
6497
+ // Inline literal values back into the formatted value
6498
+ return mask.replace(/@@@/g, function() {
6499
+ return literals.shift();
6500
+ });
6501
+ };
6502
+
6410
6503
  /**
6411
6504
  * Parse a date string into an object, changes - into /
6412
6505
  * @method parse
6413
6506
  * @param {string} dateStr Date string
6414
6507
  * @param {string} format Date parse format
6415
6508
  * @returns {Date|boolean}
6416
- */
6417
- fecha.parse = function (dateStr, format) {
6418
- if (typeof format !== 'string') {
6419
- throw new Error('Invalid format in fecha.parse');
6420
- }
6421
-
6422
- format = fecha.masks[format] || format;
6423
-
6424
- // Avoid regular expression denial of service, fail early for really long strings
6425
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
6426
- if (dateStr.length > 1000) {
6427
- return null;
6428
- }
6429
-
6430
- var dateInfo = {};
6431
- var parseInfo = [];
6432
- var literals = [];
6433
- format = format.replace(literal, function ($0, $1) {
6434
- literals.push($1);
6435
- return '@@@';
6436
- });
6437
- var newFormat = regexEscape(format).replace(token, function ($0) {
6438
- if (parseFlags[$0]) {
6439
- var info = parseFlags[$0];
6440
- parseInfo.push(info[1]);
6441
- return '(' + info[0] + ')';
6442
- }
6443
-
6444
- return $0;
6445
- });
6446
- newFormat = newFormat.replace(/@@@/g, function () {
6447
- return literals.shift();
6448
- });
6449
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
6450
- if (!matches) {
6451
- return null;
6452
- }
6453
-
6454
- for (var i = 1; i < matches.length; i++) {
6455
- parseInfo[i - 1](dateInfo, matches[i]);
6456
- }
6457
-
6458
- var today = new Date();
6459
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
6460
- dateInfo.hour = +dateInfo.hour + 12;
6461
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
6462
- dateInfo.hour = 0;
6463
- }
6464
-
6465
- var date = void 0;
6466
- if (dateInfo.timezoneOffset != null) {
6467
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
6468
- 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));
6469
- } else {
6470
- 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);
6471
- }
6472
- return date;
6473
- };
6474
-
6475
- // 导出fecha对象
6476
-
6477
-
6478
- // 以下是从date-util.js合并的函数
6479
- var newArray = function newArray(start, end) {
6480
- var result = [];
6481
- for (var i = start; i <= end; i++) {
6482
- result.push(i);
6483
- }
6484
- return result;
6485
- };
6486
-
6487
- var getSettings = function getSettings() {
6488
- return {
6489
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
6490
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
6491
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
6492
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
6493
- amPm: ['上午', '下午']
6494
- };
6495
- };
6496
-
6497
- var toDate = function toDate(date) {
6498
- return isDate(date) ? new Date(date) : null;
6499
- };
6500
-
6501
- var isDate = function isDate(date) {
6502
- if (date === null || date === undefined) return false;
6503
- if (isNaN(new Date(date).getTime())) return false;
6504
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
6505
- return true;
6506
- };
6507
-
6508
- var isDateObject = function isDateObject(val) {
6509
- return val instanceof Date;
6510
- };
6511
-
6512
- var formatDate = function formatDate(date) {
6513
- var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
6514
-
6515
- // 处理多种输入类型
6516
- if (!date) return '';
6517
-
6518
- // 如果是时间戳,转成日期对象
6519
- if (typeof date === 'number') {
6520
- date = new Date(date);
6521
- }
6522
- // 如果是字符串,转成日期对象
6523
- if (typeof date === 'string') {
6524
- date = new Date(date);
6525
- }
6526
-
6527
- // 调用toDate进一步验证和转换
6528
- date = toDate(date);
6529
- if (!date) return '';
6530
-
6531
- // 兼容大写和小写的格式标记
6532
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
6533
- var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
6534
-
6535
- // 使用fecha库进行格式化,支持中文配置
6536
- var str = fecha.format(date, lowercaseFormat, getSettings());
6537
- return str;
6538
- };
6539
-
6540
- var parseDate = function parseDate(string, format) {
6541
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
6542
- };
6543
-
6544
- var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
6545
- if (month === 3 || month === 5 || month === 8 || month === 10) {
6546
- return 30;
6547
- }
6548
-
6549
- if (month === 1) {
6550
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
6551
- return 29;
6552
- } else {
6553
- return 28;
6554
- }
6555
- }
6556
-
6557
- return 31;
6558
- };
6559
-
6560
- var getDayCountOfYear = function getDayCountOfYear(year) {
6561
- var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
6562
- return isLeapYear ? 366 : 365;
6563
- };
6564
-
6565
- var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
6566
- var temp = new Date(date.getTime());
6567
- temp.setDate(1);
6568
- return temp.getDay();
6569
- };
6570
-
6571
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
6572
- // {prev, next} Date should work for Daylight Saving Time
6573
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
6574
- var prevDate = function prevDate(date) {
6575
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6576
-
6577
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
6578
- };
6579
-
6580
- var nextDate = function nextDate(date) {
6581
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6582
-
6583
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
6584
- };
6585
-
6586
- var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
6587
- var result = new Date(year, month, 1);
6588
- var day = result.getDay();
6589
-
6590
- if (day === 0) {
6591
- return prevDate(result, 7);
6592
- } else {
6593
- return prevDate(result, day);
6594
- }
6595
- };
6596
-
6597
- var getWeekNumber = function getWeekNumber(date) {
6598
- // 支持多种输入类型
6599
- if (!date || !isDate(date)) {
6600
- date = new Date();
6601
- }
6602
- if (typeof date === 'string') {
6603
- date = new Date(date);
6604
- }
6605
-
6606
- // 验证日期有效性
6607
- if (!isDate(date)) return null;
6608
-
6609
- var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
6610
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
6611
- // 将星期日的星期数设为7
6612
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
6613
- // 获取当年的第一天
6614
- var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
6615
- // 计算到最近的星期四的完整周数
6616
- var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
6617
- // 返回周数
6618
- return weekNo;
6619
- };
6620
-
6621
- var getRangeHours = function getRangeHours(ranges) {
6622
- var hours = [];
6623
- var disabledHours = [];
6624
-
6625
- (ranges || []).forEach(function (range) {
6626
- var value = range.map(function (date) {
6627
- return date.getHours();
6628
- });
6629
-
6630
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
6631
- });
6632
-
6633
- if (disabledHours.length) {
6634
- for (var i = 0; i < 24; i++) {
6635
- hours[i] = disabledHours.indexOf(i) === -1;
6636
- }
6637
- } else {
6638
- for (var _i = 0; _i < 24; _i++) {
6639
- hours[_i] = false;
6640
- }
6641
- }
6642
-
6643
- return hours;
6644
- };
6645
-
6646
- var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
6647
- if (amount <= 0) return [];
6648
- var temp = new Date(date.getTime());
6649
- temp.setDate(0);
6650
- var lastDay = temp.getDate();
6651
- return range(amount).map(function (_, index) {
6652
- return lastDay - (amount - index - 1);
6653
- });
6654
- };
6655
-
6656
- var getMonthDays = function getMonthDays(date) {
6657
- var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
6658
- var days = temp.getDate();
6659
- return range(days).map(function (_, index) {
6660
- return index + 1;
6661
- });
6662
- };
6663
-
6664
- function setRangeData(arr, start, end, value) {
6665
- for (var i = start; i < end; i++) {
6666
- arr[i] = value;
6667
- }
6668
- }
6669
-
6670
- var getRangeMinutes = function getRangeMinutes(ranges, hour) {
6671
- var minutes = new Array(60);
6672
-
6673
- if (ranges.length > 0) {
6674
- ranges.forEach(function (range) {
6675
- var start = range[0];
6676
- var end = range[1];
6677
- var startHour = start.getHours();
6678
- var startMinute = start.getMinutes();
6679
- var endHour = end.getHours();
6680
- var endMinute = end.getMinutes();
6681
- if (startHour === hour && endHour !== hour) {
6682
- setRangeData(minutes, startMinute, 60, true);
6683
- } else if (startHour === hour && endHour === hour) {
6684
- setRangeData(minutes, startMinute, endMinute + 1, true);
6685
- } else if (startHour !== hour && endHour === hour) {
6686
- setRangeData(minutes, 0, endMinute + 1, true);
6687
- } else if (startHour < hour && endHour > hour) {
6688
- setRangeData(minutes, 0, 60, true);
6689
- }
6690
- });
6691
- } else {
6692
- setRangeData(minutes, 0, 60, true);
6693
- }
6694
- return minutes;
6695
- };
6696
-
6697
- var range = function range(n) {
6698
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
6699
- return Array.apply(null, { length: n }).map(function (_, n) {
6700
- return n;
6701
- });
6702
- };
6703
-
6704
- var modifyDate = function modifyDate(date, y, m, d) {
6705
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
6706
- };
6707
-
6708
- var modifyTime = function modifyTime(date, h, m, s) {
6709
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
6710
- };
6711
-
6712
- var modifyWithTimeString = function modifyWithTimeString(date, time) {
6713
- if (date == null || !time) {
6714
- return date;
6715
- }
6716
- time = parseDate(time, 'HH:mm:ss');
6717
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
6718
- };
6719
-
6720
- var clearTime = function clearTime(date) {
6721
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
6722
- };
6723
-
6724
- var clearMilliseconds = function clearMilliseconds(date) {
6725
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
6726
- };
6727
-
6728
- var limitTimeRange = function limitTimeRange(date, ranges) {
6729
- var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
6730
-
6731
- // TODO: refactory a more elegant solution
6732
- if (ranges.length === 0) return date;
6733
- var normalizeDate = function normalizeDate(date) {
6734
- return fecha.parse(fecha.format(date, format), format);
6735
- };
6736
- var ndate = normalizeDate(date);
6737
- var nranges = ranges.map(function (range) {
6738
- return range.map(normalizeDate);
6739
- });
6740
- if (nranges.some(function (nrange) {
6741
- return ndate >= nrange[0] && ndate <= nrange[1];
6742
- })) return date;
6743
-
6744
- var minDate = nranges[0][0];
6745
- var maxDate = nranges[0][0];
6746
-
6747
- nranges.forEach(function (nrange) {
6748
- minDate = new Date(Math.min(nrange[0], minDate));
6749
- maxDate = new Date(Math.max(nrange[1], minDate));
6750
- });
6751
-
6752
- var ret = ndate < minDate ? minDate : maxDate;
6753
- // preserve Year/Month/Date
6754
- return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
6755
- };
6756
-
6757
- var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
6758
- var limitedDate = limitTimeRange(date, selectableRange, format);
6759
- return limitedDate.getTime() === date.getTime();
6760
- };
6761
-
6762
- var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
6763
- // clamp date to the number of days in `year`, `month`
6764
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
6765
- var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
6766
- return modifyDate(date, year, month, monthDate);
6767
- };
6768
-
6769
- var prevMonth = function prevMonth(date) {
6770
- var year = date.getFullYear();
6771
- var month = date.getMonth();
6772
- return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
6773
- };
6774
-
6775
- var nextMonth = function nextMonth(date) {
6776
- var year = date.getFullYear();
6777
- var month = date.getMonth();
6778
- return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
6779
- };
6780
-
6781
- var prevYear = function prevYear(date) {
6782
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6783
-
6784
- var year = date.getFullYear();
6785
- var month = date.getMonth();
6786
- return changeYearMonthAndClampDate(date, year - amount, month);
6787
- };
6788
-
6789
- var nextYear = function nextYear(date) {
6790
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6791
-
6792
- var year = date.getFullYear();
6793
- var month = date.getMonth();
6794
- return changeYearMonthAndClampDate(date, year + amount, month);
6795
- };
6796
-
6797
- var extractDateFormat = function extractDateFormat(format) {
6798
- return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
6799
- };
6800
-
6801
- var extractTimeFormat = function extractTimeFormat(format) {
6802
- return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
6803
- };
6804
-
6805
- var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
6806
- return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
6807
- };
6808
-
6509
+ */
6510
+ fecha.parse = function (dateStr, format) {
6511
+ if (typeof format !== 'string') {
6512
+ throw new Error('Invalid format in fecha.parse');
6513
+ }
6514
+
6515
+ format = fecha.masks[format] || format;
6516
+
6517
+ // Avoid regular expression denial of service, fail early for really long strings
6518
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
6519
+ if (dateStr.length > 1000) {
6520
+ return null;
6521
+ }
6522
+
6523
+ const dateInfo = {};
6524
+ const parseInfo = [];
6525
+ const literals = [];
6526
+ format = format.replace(literal, function($0, $1) {
6527
+ literals.push($1);
6528
+ return '@@@';
6529
+ });
6530
+ let newFormat = regexEscape(format).replace(token, function ($0) {
6531
+ if (parseFlags[$0]) {
6532
+ const info = parseFlags[$0];
6533
+ parseInfo.push(info[1]);
6534
+ return '(' + info[0] + ')';
6535
+ }
6536
+
6537
+ return $0;
6538
+ });
6539
+ newFormat = newFormat.replace(/@@@/g, function() {
6540
+ return literals.shift();
6541
+ });
6542
+ const matches = dateStr.match(new RegExp(newFormat, 'i'));
6543
+ if (!matches) {
6544
+ return null;
6545
+ }
6546
+
6547
+ for (let i = 1; i < matches.length; i++) {
6548
+ parseInfo[i - 1](dateInfo, matches[i]);
6549
+ }
6550
+
6551
+ const today = new Date();
6552
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
6553
+ dateInfo.hour = +dateInfo.hour + 12;
6554
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
6555
+ dateInfo.hour = 0;
6556
+ }
6557
+
6558
+ let date;
6559
+ if (dateInfo.timezoneOffset != null) {
6560
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
6561
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
6562
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
6563
+ } else {
6564
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
6565
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
6566
+ }
6567
+ return date;
6568
+ };
6569
+
6570
+ // 导出fecha对象
6571
+
6572
+
6573
+ // 以下是从date-util.js合并的函数
6574
+ const newArray = function(start, end) {
6575
+ let result = [];
6576
+ for (let i = start; i <= end; i++) {
6577
+ result.push(i);
6578
+ }
6579
+ return result;
6580
+ };
6581
+
6582
+ const getSettings = () => {
6583
+ return {
6584
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
6585
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
6586
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
6587
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
6588
+ amPm: ['上午', '下午']
6589
+ };
6590
+ };
6591
+
6592
+ const toDate = function(date) {
6593
+ return isDate(date) ? new Date(date) : null;
6594
+ };
6595
+
6596
+ const isDate = function(date) {
6597
+ if (date === null || date === undefined) return false;
6598
+ if (isNaN(new Date(date).getTime())) return false;
6599
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
6600
+ return true;
6601
+ };
6602
+
6603
+ const isDateObject = function(val) {
6604
+ return val instanceof Date;
6605
+ };
6606
+
6607
+ const formatDate = function (date, format = 'yyyy-MM-dd') {
6608
+ // 处理多种输入类型
6609
+ if (!date) return '';
6610
+
6611
+ // 如果是时间戳,转成日期对象
6612
+ if (typeof date === 'number') {
6613
+ date = new Date(date);
6614
+ }
6615
+ // 如果是字符串,转成日期对象
6616
+ if (typeof date === 'string') {
6617
+ date = new Date(date);
6618
+ }
6619
+
6620
+ // 调用toDate进一步验证和转换
6621
+ date = toDate(date);
6622
+ if (!date) return '';
6623
+
6624
+ // 兼容大写和小写的格式标记
6625
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
6626
+ const lowercaseFormat = format
6627
+ .replace(/YYYY/g, 'yyyy')
6628
+ .replace(/D/g, 'd')
6629
+
6630
+ // 使用fecha库进行格式化,支持中文配置
6631
+ const str = fecha.format(date, lowercaseFormat, getSettings());
6632
+ return str;
6633
+ };
6634
+
6635
+ const parseDate = function(string, format) {
6636
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
6637
+ };
6638
+
6639
+ const getDayCountOfMonth = function(year, month) {
6640
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
6641
+ return 30;
6642
+ }
6643
+
6644
+ if (month === 1) {
6645
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
6646
+ return 29;
6647
+ } else {
6648
+ return 28;
6649
+ }
6650
+ }
6651
+
6652
+ return 31;
6653
+ };
6654
+
6655
+ const getDayCountOfYear = function(year) {
6656
+ const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
6657
+ return isLeapYear ? 366 : 365;
6658
+ };
6659
+
6660
+ const getFirstDayOfMonth = function(date) {
6661
+ const temp = new Date(date.getTime());
6662
+ temp.setDate(1);
6663
+ return temp.getDay();
6664
+ };
6665
+
6666
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
6667
+ // {prev, next} Date should work for Daylight Saving Time
6668
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
6669
+ const prevDate = function(date, amount = 1) {
6670
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
6671
+ };
6672
+
6673
+ const nextDate = function(date, amount = 1) {
6674
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
6675
+ };
6676
+
6677
+ const getStartDateOfMonth = function(year, month) {
6678
+ const result = new Date(year, month, 1);
6679
+ const day = result.getDay();
6680
+
6681
+ if (day === 0) {
6682
+ return prevDate(result, 7);
6683
+ } else {
6684
+ return prevDate(result, day);
6685
+ }
6686
+ };
6687
+
6688
+ const getWeekNumber = function(date) {
6689
+ // 支持多种输入类型
6690
+ if (!date||!isDate(date)) {
6691
+ date = new Date();
6692
+ }
6693
+ if (typeof date === 'string') {
6694
+ date = new Date(date);
6695
+ }
6696
+
6697
+ // 验证日期有效性
6698
+ if (!isDate(date)) return null;
6699
+
6700
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
6701
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
6702
+ // 将星期日的星期数设为7
6703
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
6704
+ // 获取当年的第一天
6705
+ const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
6706
+ // 计算到最近的星期四的完整周数
6707
+ const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
6708
+ // 返回周数
6709
+ return weekNo;
6710
+ };
6711
+
6712
+ const getRangeHours = function(ranges) {
6713
+ const hours = [];
6714
+ let disabledHours = [];
6715
+
6716
+ (ranges || []).forEach(range => {
6717
+ const value = range.map(date => date.getHours());
6718
+
6719
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
6720
+ });
6721
+
6722
+ if (disabledHours.length) {
6723
+ for (let i = 0; i < 24; i++) {
6724
+ hours[i] = disabledHours.indexOf(i) === -1;
6725
+ }
6726
+ } else {
6727
+ for (let i = 0; i < 24; i++) {
6728
+ hours[i] = false;
6729
+ }
6730
+ }
6731
+
6732
+ return hours;
6733
+ };
6734
+
6735
+ const getPrevMonthLastDays = (date, amount) => {
6736
+ if (amount <= 0) return [];
6737
+ const temp = new Date(date.getTime());
6738
+ temp.setDate(0);
6739
+ const lastDay = temp.getDate();
6740
+ return range(amount).map((_, index) => lastDay - (amount - index - 1));
6741
+ };
6742
+
6743
+ const getMonthDays = (date) => {
6744
+ const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
6745
+ const days = temp.getDate();
6746
+ return range(days).map((_, index) => index + 1);
6747
+ };
6748
+
6749
+ function setRangeData(arr, start, end, value) {
6750
+ for (let i = start; i < end; i++) {
6751
+ arr[i] = value;
6752
+ }
6753
+ }
6754
+
6755
+ const getRangeMinutes = function(ranges, hour) {
6756
+ const minutes = new Array(60);
6757
+
6758
+ if (ranges.length > 0) {
6759
+ ranges.forEach(range => {
6760
+ const start = range[0];
6761
+ const end = range[1];
6762
+ const startHour = start.getHours();
6763
+ const startMinute = start.getMinutes();
6764
+ const endHour = end.getHours();
6765
+ const endMinute = end.getMinutes();
6766
+ if (startHour === hour && endHour !== hour) {
6767
+ setRangeData(minutes, startMinute, 60, true);
6768
+ } else if (startHour === hour && endHour === hour) {
6769
+ setRangeData(minutes, startMinute, endMinute + 1, true);
6770
+ } else if (startHour !== hour && endHour === hour) {
6771
+ setRangeData(minutes, 0, endMinute + 1, true);
6772
+ } else if (startHour < hour && endHour > hour) {
6773
+ setRangeData(minutes, 0, 60, true);
6774
+ }
6775
+ });
6776
+ } else {
6777
+ setRangeData(minutes, 0, 60, true);
6778
+ }
6779
+ return minutes;
6780
+ };
6781
+
6782
+ const range = function(n) {
6783
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
6784
+ return Array.apply(null, {length: n}).map((_, n) => n);
6785
+ };
6786
+
6787
+ const modifyDate = function(date, y, m, d) {
6788
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
6789
+ };
6790
+
6791
+ const modifyTime = function(date, h, m, s) {
6792
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
6793
+ };
6794
+
6795
+ const modifyWithTimeString = (date, time) => {
6796
+ if (date == null || !time) {
6797
+ return date;
6798
+ }
6799
+ time = parseDate(time, 'HH:mm:ss');
6800
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
6801
+ };
6802
+
6803
+ const clearTime = function(date) {
6804
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
6805
+ };
6806
+
6807
+ const clearMilliseconds = function(date) {
6808
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
6809
+ };
6810
+
6811
+ const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
6812
+ // TODO: refactory a more elegant solution
6813
+ if (ranges.length === 0) return date;
6814
+ const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
6815
+ const ndate = normalizeDate(date);
6816
+ const nranges = ranges.map(range => range.map(normalizeDate));
6817
+ if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
6818
+
6819
+ let minDate = nranges[0][0];
6820
+ let maxDate = nranges[0][0];
6821
+
6822
+ nranges.forEach(nrange => {
6823
+ minDate = new Date(Math.min(nrange[0], minDate));
6824
+ maxDate = new Date(Math.max(nrange[1], minDate));
6825
+ });
6826
+
6827
+ const ret = ndate < minDate ? minDate : maxDate;
6828
+ // preserve Year/Month/Date
6829
+ return modifyDate(
6830
+ ret,
6831
+ date.getFullYear(),
6832
+ date.getMonth(),
6833
+ date.getDate()
6834
+ );
6835
+ };
6836
+
6837
+ const timeWithinRange = function(date, selectableRange, format) {
6838
+ const limitedDate = limitTimeRange(date, selectableRange, format);
6839
+ return limitedDate.getTime() === date.getTime();
6840
+ };
6841
+
6842
+ const changeYearMonthAndClampDate = function(date, year, month) {
6843
+ // clamp date to the number of days in `year`, `month`
6844
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
6845
+ const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
6846
+ return modifyDate(date, year, month, monthDate);
6847
+ };
6848
+
6849
+ const prevMonth = function(date) {
6850
+ const year = date.getFullYear();
6851
+ const month = date.getMonth();
6852
+ return month === 0
6853
+ ? changeYearMonthAndClampDate(date, year - 1, 11)
6854
+ : changeYearMonthAndClampDate(date, year, month - 1);
6855
+ };
6856
+
6857
+ const nextMonth = function(date) {
6858
+ const year = date.getFullYear();
6859
+ const month = date.getMonth();
6860
+ return month === 11
6861
+ ? changeYearMonthAndClampDate(date, year + 1, 0)
6862
+ : changeYearMonthAndClampDate(date, year, month + 1);
6863
+ };
6864
+
6865
+ const prevYear = function(date, amount = 1) {
6866
+ const year = date.getFullYear();
6867
+ const month = date.getMonth();
6868
+ return changeYearMonthAndClampDate(date, year - amount, month);
6869
+ };
6870
+
6871
+ const nextYear = function(date, amount = 1) {
6872
+ const year = date.getFullYear();
6873
+ const month = date.getMonth();
6874
+ return changeYearMonthAndClampDate(date, year + amount, month);
6875
+ };
6876
+
6877
+ const extractDateFormat = function(format) {
6878
+ return format
6879
+ .replace(/\W?m{1,2}|\W?ZZ/g, '')
6880
+ .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
6881
+ .trim();
6882
+ };
6883
+
6884
+ const extractTimeFormat = function(format) {
6885
+ return format
6886
+ .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
6887
+ .trim();
6888
+ };
6889
+
6890
+ const validateRangeInOneMonth = function(start, end) {
6891
+ return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
6892
+ };
6893
+
6809
6894
  /**
6810
6895
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
6811
6896
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
6812
6897
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
6813
6898
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
6814
6899
  * @returns {number} 工作日数量
6815
- */
6816
- var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
6817
- var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
6818
-
6819
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
6820
- throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
6821
- }
6822
-
6823
- var startDateObj = new Date(start_date);
6824
- var endDateObj = new Date(end_date);
6825
-
6826
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
6827
- throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
6828
- }
6829
-
6830
- if (startDateObj > endDateObj) {
6831
- throw new Error('Start date should be earlier than or equal to end date.');
6832
- }
6833
-
6834
- var workdays = 0;
6835
-
6836
- // Iterate through each day in the date range
6837
-
6838
- var _loop = function _loop(currentDate) {
6839
- // Check if the current day is a weekend (Saturday or Sunday)
6840
- var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
6841
-
6842
- // Check if the current day is a holiday
6843
- var isHoliday = holidays.some(function (holiday) {
6844
- var holidayDate = new Date(holiday);
6845
- return currentDate.toDateString() === holidayDate.toDateString();
6846
- });
6847
-
6848
- // If it's a workday (not a weekend or holiday), increment the workdays count
6849
- if (!isWeekend && !isHoliday) {
6850
- workdays++;
6851
- }
6852
- };
6853
-
6854
- for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
6855
- _loop(currentDate);
6856
- }
6857
-
6858
- return workdays;
6859
- };
6860
-
6900
+ */
6901
+ const calculateNetworkDays = function (start_date, end_date, holidays = []) {
6902
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
6903
+ throw new Error(
6904
+ "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
6905
+ );
6906
+ }
6907
+
6908
+ const startDateObj = new Date(start_date);
6909
+ const endDateObj = new Date(end_date);
6910
+
6911
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
6912
+ throw new Error(
6913
+ "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
6914
+ );
6915
+ }
6916
+
6917
+ if (startDateObj > endDateObj) {
6918
+ throw new Error('Start date should be earlier than or equal to end date.');
6919
+ }
6920
+
6921
+ let workdays = 0;
6922
+
6923
+ // Iterate through each day in the date range
6924
+ for (
6925
+ let currentDate = new Date(startDateObj);
6926
+ currentDate <= endDateObj;
6927
+ currentDate.setDate(currentDate.getDate() + 1)
6928
+ ) {
6929
+ // Check if the current day is a weekend (Saturday or Sunday)
6930
+ const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
6931
+
6932
+ // Check if the current day is a holiday
6933
+ const isHoliday = holidays.some((holiday) => {
6934
+ const holidayDate = new Date(holiday);
6935
+ return currentDate.toDateString() === holidayDate.toDateString();
6936
+ });
6937
+
6938
+ // If it's a workday (not a weekend or holiday), increment the workdays count
6939
+ if (!isWeekend && !isHoliday) {
6940
+ workdays++;
6941
+ }
6942
+ }
6943
+
6944
+ return workdays;
6945
+ };
6946
+
6861
6947
  /**
6862
6948
  * 日期加减天数
6863
6949
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
6864
6950
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
6865
6951
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
6866
- */
6867
- var dateAddDays = function dateAddDays(start_date, days) {
6868
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
6869
- 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.");
6870
- }
6871
-
6872
- var startDateObj = new Date(start_date);
6873
- if (isNaN(startDateObj.getTime())) {
6874
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6875
- }
6876
-
6877
- var resultDateObj = new Date(startDateObj);
6878
- resultDateObj.setDate(resultDateObj.getDate() + days);
6879
-
6880
- var resultYear = resultDateObj.getFullYear();
6881
- var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
6882
- var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
6883
-
6884
- return resultYear + '-' + resultMonth + '-' + resultDay;
6885
- };
6886
-
6952
+ */
6953
+ const dateAddDays = function (start_date, days) {
6954
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
6955
+ throw new Error(
6956
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
6957
+ );
6958
+ }
6959
+
6960
+ const startDateObj = new Date(start_date);
6961
+ if (isNaN(startDateObj.getTime())) {
6962
+ throw new Error(
6963
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
6964
+ );
6965
+ }
6966
+
6967
+ const resultDateObj = new Date(startDateObj);
6968
+ resultDateObj.setDate(resultDateObj.getDate() + days);
6969
+
6970
+ const resultYear = resultDateObj.getFullYear();
6971
+ const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
6972
+ const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
6973
+
6974
+ return `${resultYear}-${resultMonth}-${resultDay}`;
6975
+ };
6976
+
6887
6977
  /**
6888
6978
  * 计算两个日期之间的差值
6889
6979
  * @date 2023年12月14日
@@ -6891,180 +6981,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
6891
6981
  * @param {String} end_date - 结束日期字符串
6892
6982
  * @param {String} unit - 单位:year/month/day
6893
6983
  * @returns {Number} 差值
6894
- */
6895
- var dateDiff = function dateDiff(start_date, end_date) {
6896
- var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
6897
-
6898
- // Assuming date strings are in "YYYY-MM-DD" format
6899
- var startDate = new Date(start_date);
6900
- var endDate = new Date(end_date);
6901
-
6902
- // If the date is invalid, return 0
6903
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6904
- return 0;
6905
- }
6906
-
6907
- if (unit === 'year') {
6908
- return endDate.getFullYear() - startDate.getFullYear();
6909
- } else if (unit === 'month') {
6910
- return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
6911
- } else {
6912
- // Default to day
6913
- var timeDifference = endDate - startDate;
6914
- // Calculate days (86400000 milliseconds per day)
6915
- return Math.floor(timeDifference / 86400000);
6916
- }
6917
- };
6918
-
6984
+ */
6985
+ const dateDiff = function (start_date, end_date, unit = 'day') {
6986
+ // Assuming date strings are in "YYYY-MM-DD" format
6987
+ var startDate = new Date(start_date);
6988
+ var endDate = new Date(end_date);
6989
+
6990
+ // If the date is invalid, return 0
6991
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6992
+ return 0;
6993
+ }
6994
+
6995
+ if (unit === 'year') {
6996
+ return endDate.getFullYear() - startDate.getFullYear();
6997
+ } else if (unit === 'month') {
6998
+ return (
6999
+ (endDate.getFullYear() - startDate.getFullYear()) * 12 +
7000
+ (endDate.getMonth() - startDate.getMonth())
7001
+ );
7002
+ } else {
7003
+ // Default to day
7004
+ var timeDifference = endDate - startDate;
7005
+ // Calculate days (86400000 milliseconds per day)
7006
+ return Math.floor(timeDifference / 86400000);
7007
+ }
7008
+ };
7009
+
6919
7010
  /**
6920
7011
  * 获取月份中的日期
6921
7012
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
6922
7013
  * @returns {number} 月份中的日期(1-31)
6923
- */
6924
- var dayOfMonth = function dayOfMonth(date) {
6925
- if (typeof date !== 'string') {
6926
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6927
- }
6928
-
6929
- var dateObj = new Date(date);
6930
- if (isNaN(dateObj.getTime())) {
6931
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6932
- }
6933
-
6934
- return dateObj.getDate();
6935
- };
6936
-
7014
+ */
7015
+ const dayOfMonth = function (date) {
7016
+ if (typeof date !== 'string') {
7017
+ throw new Error(
7018
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
7019
+ );
7020
+ }
7021
+
7022
+ const dateObj = new Date(date);
7023
+ if (isNaN(dateObj.getTime())) {
7024
+ throw new Error(
7025
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
7026
+ );
7027
+ }
7028
+
7029
+ return dateObj.getDate();
7030
+ };
7031
+
6937
7032
  /**
6938
7033
  * 获取当前日期
6939
7034
  * @date 2022年5月7日
6940
7035
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
6941
7036
  * @returns {string} 当前日期的格式化字符串
6942
- */
6943
- var getCurrentDate = function getCurrentDate() {
6944
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
6945
-
6946
- return formatDate(new Date(), format);
6947
- };
6948
-
7037
+ */
7038
+ const getCurrentDate = function (format = 'YYYY-MM-DD') {
7039
+ return formatDate(new Date(), format);
7040
+ };
7041
+
6949
7042
  /**
6950
7043
  * 获取当前日期时间
6951
7044
  * @date 2022年5月7日
6952
7045
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
6953
7046
  * @returns {string} 当前日期时间的格式化字符串
6954
- */
6955
- var getCurrentDateTime = function getCurrentDateTime() {
6956
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
6957
-
6958
- return formatDate(new Date(), format);
6959
- };
6960
-
7047
+ */
7048
+ const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
7049
+ return formatDate(new Date(), format);
7050
+ };
7051
+
6961
7052
  /**
6962
7053
  * 获取小时
6963
7054
  * @date 2022年5月7日
6964
7055
  * @param {Date|string} [date] - 日期对象或日期字符串
6965
7056
  * @returns {number} 小时数(0-23)
6966
- */
6967
- var getHour = function getHour(date) {
6968
- if (!date) {
6969
- return new Date().getHours();
6970
- }
6971
- if (typeof date === 'string') {
6972
- date = new Date(date);
6973
- }
6974
- return date.getHours();
6975
- };
6976
-
7057
+ */
7058
+ const getHour = function (date) {
7059
+ if (!date) {
7060
+ return new Date().getHours();
7061
+ }
7062
+ if (typeof date === 'string') {
7063
+ date = new Date(date);
7064
+ }
7065
+ return date.getHours();
7066
+ };
7067
+
6977
7068
  /**
6978
7069
  * 获取分钟
6979
7070
  * @date 2022年5月7日
6980
7071
  * @param {Date|string} [date] - 日期对象或日期字符串
6981
7072
  * @returns {number} 分钟数(0-59)
6982
- */
6983
- var getMinute = function getMinute(date) {
6984
- if (!date) {
6985
- return new Date().getMinutes();
6986
- }
6987
- if (typeof date === 'string') {
6988
- date = new Date(date);
6989
- }
6990
- return date.getMinutes();
6991
- };
6992
-
7073
+ */
7074
+ const getMinute = function (date) {
7075
+ if (!date) {
7076
+ return new Date().getMinutes();
7077
+ }
7078
+ if (typeof date === 'string') {
7079
+ date = new Date(date);
7080
+ }
7081
+ return date.getMinutes();
7082
+ };
7083
+
6993
7084
  /**
6994
7085
  * 获取月份
6995
7086
  * @date 2022年5月7日
6996
7087
  * @param {Date|string} [date] - 日期对象或日期字符串
6997
7088
  * @returns {number} 月份数(1-12)
6998
- */
6999
- var getMonth = function getMonth(date) {
7000
- if (!date) {
7001
- return new Date().getMonth() + 1;
7002
- }
7003
- if (typeof date === 'string') {
7004
- date = new Date(date);
7005
- }
7006
- return date.getMonth() + 1;
7007
- };
7008
-
7089
+ */
7090
+ const getMonth = function (date) {
7091
+ if (!date) {
7092
+ return new Date().getMonth() + 1;
7093
+ }
7094
+ if (typeof date === 'string') {
7095
+ date = new Date(date);
7096
+ }
7097
+ return date.getMonth() + 1;
7098
+ };
7099
+
7009
7100
  /**
7010
7101
  * 获取秒
7011
7102
  * @date 2022年5月7日
7012
7103
  * @param {Date|string} [date] - 日期对象或日期字符串
7013
7104
  * @returns {number} 秒数(0-59)
7014
- */
7015
- var getSecond = function getSecond(date) {
7016
- if (!date) {
7017
- return new Date().getSeconds();
7018
- }
7019
- if (typeof date === 'string') {
7020
- date = new Date(date);
7021
- }
7022
- return date.getSeconds();
7023
- };
7024
-
7105
+ */
7106
+ const getSecond = function (date) {
7107
+ if (!date) {
7108
+ return new Date().getSeconds();
7109
+ }
7110
+ if (typeof date === 'string') {
7111
+ date = new Date(date);
7112
+ }
7113
+ return date.getSeconds();
7114
+ };
7115
+
7025
7116
  /**
7026
7117
  * 获取星期几
7027
7118
  * @date 2022年5月7日
7028
7119
  * @param {Date|string} [date] - 日期对象或日期字符串
7029
7120
  * @returns {number} 星期几(0-6,0表示星期日)
7030
- */
7031
- var getWeekday = function getWeekday(date) {
7032
- if (!date) {
7033
- return new Date().getDay();
7034
- }
7035
- if (typeof date === 'string') {
7036
- date = new Date(date);
7037
- }
7038
- return date.getDay();
7039
- };
7040
-
7121
+ */
7122
+ const getWeekday = function (date) {
7123
+ if (!date) {
7124
+ return new Date().getDay();
7125
+ }
7126
+ if (typeof date === 'string') {
7127
+ date = new Date(date);
7128
+ }
7129
+ return date.getDay();
7130
+ };
7131
+
7132
+
7041
7133
  /**
7042
7134
  * @desc 获取上午/下午/晚上
7043
7135
  * @author huangbo
7044
7136
  * @date 2022年5月7日
7045
7137
  * @param {String} [time] - 时间
7046
- **/
7047
- var timeCycle = function timeCycle(time) {
7048
- var hour = 0;
7049
- if (!time) {
7050
- hour = new Date().getHours();
7051
- } else if (typeof time === 'string') {
7052
- // 从时间字符串中提取小时
7053
- var match = time.match(/^(\d{1,2})/);
7054
- if (match) {
7055
- hour = parseInt(match[1], 10);
7056
- }
7057
- } else if (typeof time === 'number') {
7058
- hour = time;
7059
- }
7060
- // 判断时间段
7061
- if (hour >= 5 && hour < 12) {
7062
- return '上午';
7063
- } else if (hour >= 12 && hour < 18) {
7064
- return '下午';
7065
- } else {
7066
- return '晚上';
7067
- }
7138
+ **/
7139
+ const timeCycle = function (time) {
7140
+ let hour = 0;
7141
+ if (!time) {
7142
+ hour = new Date().getHours();
7143
+ } else if (typeof time === 'string') {
7144
+ // 从时间字符串中提取小时
7145
+ const match = time.match(/^(\d{1,2})/);
7146
+ if (match) {
7147
+ hour = parseInt(match[1], 10);
7148
+ }
7149
+ } else if (typeof time === 'number') {
7150
+ hour = time;
7151
+ }
7152
+ // 判断时间段
7153
+ if (hour >= 5 && hour < 12) {
7154
+ return '上午';
7155
+ } else if (hour >= 12 && hour < 18) {
7156
+ return '下午';
7157
+ } else {
7158
+ return '晚上';
7159
+ }
7068
7160
  };
7069
7161
 
7070
7162
  /***/ }),