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 = 199);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 202);
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
  /**
@@ -4696,17 +4740,83 @@ module.exports = require("lodash/cloneDeep");
4696
4740
 
4697
4741
  /***/ }),
4698
4742
 
4699
- /***/ 199:
4743
+ /***/ 2:
4744
+ /***/ (function(module, exports) {
4745
+
4746
+ module.exports = require("vue");
4747
+
4748
+ /***/ }),
4749
+
4750
+ /***/ 20:
4700
4751
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4701
4752
 
4702
4753
  "use strict";
4703
- // ESM COMPAT FLAG
4704
- __webpack_require__.r(__webpack_exports__);
4754
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
4755
+ /* unused harmony export doDecrypt */
4756
+ /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
4757
+ var sm2 = __webpack_require__(42).sm2;
4705
4758
 
4706
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-config/src/main.vue?vue&type=template&id=d01d3956&
4707
- var render = function () {
4708
- var _vm = this
4709
- var _h = _vm.$createElement
4759
+
4760
+ /**
4761
+ * doEncrypt
4762
+ * @desc:sm2加密
4763
+ * @author huangbo
4764
+ * @date 2022年5月7日
4765
+ * @param {string} [data] - 被加密的字符串
4766
+ * @param {string} [key] - 公钥
4767
+ **/
4768
+ var doEncrypt = function doEncrypt(_ref) {
4769
+ var data = _ref.data,
4770
+ key = _ref.key,
4771
+ mode = _ref.mode;
4772
+
4773
+ if (!key) {
4774
+ key = Object(_storage__WEBPACK_IMPORTED_MODULE_0__[/* getStorage */ "a"])('secretKey');
4775
+ }
4776
+ if (!mode) {
4777
+ mode = 1;
4778
+ }
4779
+ if (!new RegExp('^04').test(key)) {
4780
+ key = '04' + key;
4781
+ }
4782
+ var result = sm2.doEncrypt(data, key, mode);
4783
+ return result;
4784
+ };
4785
+
4786
+ /**
4787
+ * doDecrypt
4788
+ * @desc:sm2解密
4789
+ * @author huangbo
4790
+ * @date 2022年5月7日
4791
+ * @param {string} [data] - 被解密的加密字符串
4792
+ * @param {string} [key] - 私钥
4793
+ **/
4794
+ var doDecrypt = function doDecrypt(_ref2) {
4795
+ var data = _ref2.data,
4796
+ key = _ref2.key,
4797
+ mode = _ref2.mode;
4798
+
4799
+ var cipherMode = mode ? mode : 1;
4800
+ if (new RegExp('^04').test(key)) {
4801
+ key = key.slice(2);
4802
+ }
4803
+ var result = sm2.doDecrypt(data, key, cipherMode);
4804
+ return result;
4805
+ };
4806
+
4807
+ /***/ }),
4808
+
4809
+ /***/ 202:
4810
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4811
+
4812
+ "use strict";
4813
+ // ESM COMPAT FLAG
4814
+ __webpack_require__.r(__webpack_exports__);
4815
+
4816
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-config/src/main.vue?vue&type=template&id=d01d3956&
4817
+ var render = function () {
4818
+ var _vm = this
4819
+ var _h = _vm.$createElement
4710
4820
  var _c = _vm._self._c || _h
4711
4821
  return _c(
4712
4822
  "es-data-table",
@@ -4799,16 +4909,16 @@ render._withStripped = true
4799
4909
  // CONCATENATED MODULE: ./packages/process-config/src/main.vue?vue&type=template&id=d01d3956&
4800
4910
 
4801
4911
  // EXTERNAL MODULE: ./src/utils/util.js
4802
- var util = __webpack_require__(1);
4912
+ var util = __webpack_require__(0);
4803
4913
 
4804
4914
  // EXTERNAL MODULE: ./src/utils/ajax.js
4805
4915
  var ajax = __webpack_require__(10);
4806
4916
 
4807
4917
  // EXTERNAL MODULE: ./src/utils/storage.js
4808
- var storage = __webpack_require__(0);
4918
+ var storage = __webpack_require__(1);
4809
4919
 
4810
4920
  // EXTERNAL MODULE: ./src/config/api.js
4811
- var api = __webpack_require__(6);
4921
+ var api = __webpack_require__(5);
4812
4922
 
4813
4923
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-config/src/FormList.vue?vue&type=template&id=2d9c0476&
4814
4924
  var FormListvue_type_template_id_2d9c0476_render = function () {
@@ -4839,7 +4949,7 @@ FormListvue_type_template_id_2d9c0476_render._withStripped = true
4839
4949
  // CONCATENATED MODULE: ./packages/process-config/src/FormList.vue?vue&type=template&id=2d9c0476&
4840
4950
 
4841
4951
  // EXTERNAL MODULE: external "eoss/lib/form"
4842
- var form_ = __webpack_require__(23);
4952
+ var form_ = __webpack_require__(22);
4843
4953
  var form_default = /*#__PURE__*/__webpack_require__.n(form_);
4844
4954
 
4845
4955
  // EXTERNAL MODULE: external "eoss/lib/message"
@@ -5001,7 +5111,7 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message_);
5001
5111
  getData: function getData() {
5002
5112
  var _this2 = this;
5003
5113
 
5004
- var loadingInstance = Object(util["J" /* loading */])('数据加载中...');
5114
+ var loadingInstance = Object(util["K" /* loading */])('数据加载中...');
5005
5115
  Object(ajax["a" /* ajax */])({
5006
5116
  url: this.url,
5007
5117
  params: { id: this.id }
@@ -5305,7 +5415,7 @@ NodeFormvue_type_template_id_32408e2d_render._withStripped = true
5305
5415
  getData: function getData() {
5306
5416
  var _this2 = this;
5307
5417
 
5308
- var loadingInstance = Object(util["J" /* loading */])('加载中...');
5418
+ var loadingInstance = Object(util["K" /* loading */])('加载中...');
5309
5419
  Object(ajax["a" /* ajax */])({
5310
5420
  url: this.url,
5311
5421
  params: { id: this.id }
@@ -5366,7 +5476,7 @@ var data_table_ = __webpack_require__(48);
5366
5476
  var data_table_default = /*#__PURE__*/__webpack_require__.n(data_table_);
5367
5477
 
5368
5478
  // EXTERNAL MODULE: external "eoss/lib/dialog"
5369
- var dialog_ = __webpack_require__(36);
5479
+ var dialog_ = __webpack_require__(31);
5370
5480
  var dialog_default = /*#__PURE__*/__webpack_require__.n(dialog_);
5371
5481
 
5372
5482
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-config/src/NodeConfig.vue?vue&type=script&lang=js&
@@ -5424,13 +5534,13 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5424
5534
  },
5425
5535
  computed: {
5426
5536
  url: function url() {
5427
- return '/' + this.bootName + api["Eb" /* nodeListJson */];
5537
+ return '/' + this.bootName + api["Lb" /* nodeListJson */];
5428
5538
  },
5429
5539
  params: function params() {
5430
5540
  return { mainid: this.mainid };
5431
5541
  },
5432
5542
  info: function info() {
5433
- return '/' + this.bootName + api["Db" /* nodeInfo */];
5543
+ return '/' + this.bootName + api["Kb" /* nodeInfo */];
5434
5544
  }
5435
5545
  },
5436
5546
  data: function data() {
@@ -5507,11 +5617,11 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5507
5617
  handleSubmit: function handleSubmit(data) {
5508
5618
  var _this2 = this;
5509
5619
 
5510
- var loadingInstance = Object(util["J" /* loading */])('提交中...');
5620
+ var loadingInstance = Object(util["K" /* loading */])('提交中...');
5511
5621
  if (this.title === '新增') {
5512
5622
  Object(ajax["a" /* ajax */])({
5513
5623
  method: 'post',
5514
- url: '/' + this.bootName + api["Fb" /* nodeSave */],
5624
+ url: '/' + this.bootName + api["Mb" /* nodeSave */],
5515
5625
  data: _extends({}, data, { mainId: this.mainid })
5516
5626
  }).then(function (res) {
5517
5627
  loadingInstance.close();
@@ -5533,7 +5643,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5533
5643
  delete data.updateTime;
5534
5644
  Object(ajax["a" /* ajax */])({
5535
5645
  method: 'post',
5536
- url: '/' + this.bootName + api["Gb" /* nodeUpdate */],
5646
+ url: '/' + this.bootName + api["Nb" /* nodeUpdate */],
5537
5647
  params: _extends({}, data, { mainId: this.mainid })
5538
5648
  }).then(function (res) {
5539
5649
  loadingInstance.close();
@@ -5555,10 +5665,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5555
5665
  handleDelete: function handleDelete(id) {
5556
5666
  var _this3 = this;
5557
5667
 
5558
- var loadingInstance = Object(util["J" /* loading */])('删除中...');
5668
+ var loadingInstance = Object(util["K" /* loading */])('删除中...');
5559
5669
  Object(ajax["a" /* ajax */])({
5560
5670
  method: 'post',
5561
- url: '/' + this.bootName + api["Cb" /* nodeDeleteJson */],
5671
+ url: '/' + this.bootName + api["Jb" /* nodeDeleteJson */],
5562
5672
  data: { id: id }
5563
5673
  }).then(function (res) {
5564
5674
  loadingInstance.close();
@@ -5728,10 +5838,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5728
5838
 
5729
5839
  computed: {
5730
5840
  url: function url() {
5731
- return '/' + this.bootName + api["Sb" /* processListJson */];
5841
+ return '/' + this.bootName + api["cc" /* processListJson */];
5732
5842
  },
5733
5843
  info: function info() {
5734
- return '/' + this.bootName + api["Rb" /* processInfo */];
5844
+ return '/' + this.bootName + api["bc" /* processInfo */];
5735
5845
  },
5736
5846
  computedParam: function computedParam() {
5737
5847
  return mainvue_type_script_lang_js_extends({}, this.param);
@@ -5772,12 +5882,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5772
5882
  handleSubmit: function handleSubmit(data) {
5773
5883
  var _this3 = this;
5774
5884
 
5775
- var loadingInstance = Object(util["J" /* loading */])('提交中...');
5885
+ var loadingInstance = Object(util["K" /* loading */])('提交中...');
5776
5886
  if (this.title === '新增') {
5777
5887
  delete data.id;
5778
5888
  Object(ajax["a" /* ajax */])({
5779
5889
  method: 'post',
5780
- url: '/' + this.bootName + api["Tb" /* processSave */],
5890
+ url: '/' + this.bootName + api["dc" /* processSave */],
5781
5891
  data: mainvue_type_script_lang_js_extends({
5782
5892
  fillUsername: Object(storage["a" /* getStorage */])('userName'),
5783
5893
  fillUserid: Object(storage["a" /* getStorage */])('userId'),
@@ -5804,7 +5914,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5804
5914
  delete data.updateTime;
5805
5915
  Object(ajax["a" /* ajax */])({
5806
5916
  method: 'post',
5807
- url: '/' + this.bootName + api["Ub" /* processUpdate */],
5917
+ url: '/' + this.bootName + api["ec" /* processUpdate */],
5808
5918
  params: data
5809
5919
  }).then(function (res) {
5810
5920
  loadingInstance.close();
@@ -5826,10 +5936,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5826
5936
  handleDelete: function handleDelete(id) {
5827
5937
  var _this4 = this;
5828
5938
 
5829
- var loadingInstance = Object(util["J" /* loading */])('提交中...');
5939
+ var loadingInstance = Object(util["K" /* loading */])('提交中...');
5830
5940
  Object(ajax["a" /* ajax */])({
5831
5941
  method: 'post',
5832
- url: '/' + this.bootName + api["Qb" /* processDeleteJson */],
5942
+ url: '/' + this.bootName + api["ac" /* processDeleteJson */],
5833
5943
  data: { id: id }
5834
5944
  }).then(function (res) {
5835
5945
  loadingInstance.close();
@@ -5881,90 +5991,45 @@ main.install = function (Vue) {
5881
5991
 
5882
5992
  /***/ }),
5883
5993
 
5884
- /***/ 2:
5994
+ /***/ 21:
5885
5995
  /***/ (function(module, exports) {
5886
5996
 
5887
- module.exports = require("vue");
5997
+ module.exports = require("fetch-request-source");
5888
5998
 
5889
5999
  /***/ }),
5890
6000
 
5891
- /***/ 20:
5892
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5893
-
5894
- "use strict";
5895
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
5896
- /* unused harmony export doDecrypt */
5897
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
5898
- var sm2 = __webpack_require__(42).sm2;
5899
-
6001
+ /***/ 22:
6002
+ /***/ (function(module, exports) {
5900
6003
 
5901
- /**
5902
- * doEncrypt
5903
- * @desc:sm2加密
5904
- * @author huangbo
5905
- * @date 2022年5月7日
5906
- * @param {string} [data] - 被加密的字符串
5907
- * @param {string} [key] - 公钥
5908
- **/
5909
- var doEncrypt = function doEncrypt(_ref) {
5910
- var data = _ref.data,
5911
- key = _ref.key,
5912
- mode = _ref.mode;
6004
+ module.exports = require("eoss/lib/form");
5913
6005
 
5914
- if (!key) {
5915
- key = Object(_storage__WEBPACK_IMPORTED_MODULE_0__[/* getStorage */ "a"])('secretKey');
5916
- }
5917
- if (!mode) {
5918
- mode = 1;
5919
- }
5920
- if (!new RegExp('^04').test(key)) {
5921
- key = '04' + key;
5922
- }
5923
- var result = sm2.doEncrypt(data, key, mode);
5924
- return result;
5925
- };
6006
+ /***/ }),
5926
6007
 
5927
- /**
5928
- * doDecrypt
5929
- * @desc:sm2解密
5930
- * @author huangbo
5931
- * @date 2022年5月7日
5932
- * @param {string} [data] - 被解密的加密字符串
5933
- * @param {string} [key] - 私钥
5934
- **/
5935
- var doDecrypt = function doDecrypt(_ref2) {
5936
- var data = _ref2.data,
5937
- key = _ref2.key,
5938
- mode = _ref2.mode;
6008
+ /***/ 26:
6009
+ /***/ (function(module, exports) {
5939
6010
 
5940
- var cipherMode = mode ? mode : 1;
5941
- if (new RegExp('^04').test(key)) {
5942
- key = key.slice(2);
5943
- }
5944
- var result = sm2.doDecrypt(data, key, cipherMode);
5945
- return result;
5946
- };
6011
+ module.exports = require("qs");
5947
6012
 
5948
6013
  /***/ }),
5949
6014
 
5950
- /***/ 21:
6015
+ /***/ 27:
5951
6016
  /***/ (function(module, exports) {
5952
6017
 
5953
- module.exports = require("fetch-request-source");
6018
+ module.exports = require("axios");
5954
6019
 
5955
6020
  /***/ }),
5956
6021
 
5957
- /***/ 23:
6022
+ /***/ 28:
5958
6023
  /***/ (function(module, exports) {
5959
6024
 
5960
- module.exports = require("eoss/lib/form");
6025
+ module.exports = require("json-bigint");
5961
6026
 
5962
6027
  /***/ }),
5963
6028
 
5964
6029
  /***/ 29:
5965
6030
  /***/ (function(module, exports) {
5966
6031
 
5967
- module.exports = require("qs");
6032
+ module.exports = require("eoss/lib/retrial-auth");
5968
6033
 
5969
6034
  /***/ }),
5970
6035
 
@@ -6035,30 +6100,9 @@ function isDefined(val) {
6035
6100
 
6036
6101
  /***/ }),
6037
6102
 
6038
- /***/ 30:
6039
- /***/ (function(module, exports) {
6040
-
6041
- module.exports = require("axios");
6042
-
6043
- /***/ }),
6044
-
6045
6103
  /***/ 31:
6046
6104
  /***/ (function(module, exports) {
6047
6105
 
6048
- module.exports = require("json-bigint");
6049
-
6050
- /***/ }),
6051
-
6052
- /***/ 32:
6053
- /***/ (function(module, exports) {
6054
-
6055
- module.exports = require("eoss/lib/retrial-auth");
6056
-
6057
- /***/ }),
6058
-
6059
- /***/ 36:
6060
- /***/ (function(module, exports) {
6061
-
6062
6106
  module.exports = require("eoss/lib/dialog");
6063
6107
 
6064
6108
  /***/ }),
@@ -6182,151 +6226,155 @@ module.exports = require("eoss/lib/data-table");
6182
6226
 
6183
6227
  /***/ }),
6184
6228
 
6185
- /***/ 6:
6229
+ /***/ 5:
6186
6230
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6187
6231
 
6188
6232
  "use strict";
6189
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCaLogin; });
6190
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return doUserLogin; });
6191
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doQrLogin; });
6192
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return logout; });
6193
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initLogin; });
6194
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return switchUserTo; });
6233
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return doCaLogin; });
6234
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return doUserLogin; });
6235
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return doQrLogin; });
6236
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return logout; });
6237
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return initLogin; });
6238
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return switchUserTo; });
6195
6239
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
6196
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getLoginCode; });
6197
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doCodeLogin; });
6240
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getLoginCode; });
6241
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return doCodeLogin; });
6198
6242
  /* unused harmony export updateCode */
6199
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getModifyPassCode; });
6200
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
6201
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return loginModifyPassword; });
6243
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getModifyPassCode; });
6244
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return codeModifyPass; });
6245
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return loginModifyPassword; });
6202
6246
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
6203
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return initModifyPassword; });
6247
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return initModifyPassword; });
6204
6248
  /* unused harmony export doWechatQrLogin */
6205
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getTwoFactorLoginCode; });
6249
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return getTwoFactorLoginCode; });
6206
6250
  /* unused harmony export doTwoFactorLogin */
6207
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return initRetrialAuth; });
6208
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getRetrialAuthCode; });
6209
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return scanCodeRetrialAuth; });
6210
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return codeRetrialAuth; });
6211
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doAssistanceQrLogin; });
6212
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zc", function() { return userOnline; });
6213
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return getUserAppWithTag; });
6214
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return recordUserApp; });
6215
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return getUserRecordApp; });
6216
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return mainConfig; });
6217
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return initUserSet; });
6218
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return updateUserInfo; });
6251
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return initRetrialAuth; });
6252
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getRetrialAuthCode; });
6253
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return scanCodeRetrialAuth; });
6254
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return codeRetrialAuth; });
6255
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return doAssistanceQrLogin; });
6256
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pd", function() { return userOnline; });
6257
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return getUserAppWithTag; });
6258
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return recordUserApp; });
6259
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return getUserRecordApp; });
6260
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return mainConfig; });
6261
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return initUserSet; });
6262
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ld", function() { return updateUserInfo; });
6219
6263
  /* unused harmony export getUserImgUrl */
6220
6264
  /* unused harmony export getDoorIndex */
6221
6265
  /* unused harmony export refreshOnlineUsers */
6222
6266
  /* unused harmony export getQuickMenuIds */
6223
6267
  /* unused harmony export getApplicationIdArray */
6224
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplications; });
6225
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getComplexApplicationsNew; });
6226
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getMainAppWithTag; });
6227
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getByType; });
6268
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getComplexApplications; });
6269
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getComplexApplicationsNew; });
6270
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getMainAppWithTag; });
6271
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getByType; });
6228
6272
  /* unused harmony export getUserCustomInfo */
6229
6273
  /* unused harmony export updateUserCustomInfo */
6230
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return saveOrUpdate; });
6231
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return sysMsgPage; });
6232
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return ignoreSysMsg; });
6233
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return ignoreAllSysMsg; });
6234
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return searchType; });
6235
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getSysParam; });
6236
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getAdjunctProperties; });
6237
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yc", function() { return uploads; });
6238
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xc", function() { return uploadOnlyOne; });
6239
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctFileInfos; });
6274
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return saveOrUpdate; });
6275
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return sysMsgPage; });
6276
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return ignoreSysMsg; });
6277
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return ignoreAllSysMsg; });
6278
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return searchType; });
6279
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return getSysParam; });
6280
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getAdjunctProperties; });
6281
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "od", function() { return uploads; });
6282
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nd", function() { return uploadOnlyOne; });
6283
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getAdjunctFileInfos; });
6240
6284
  /* unused harmony export uploadSort */
6241
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return downloadByAdjunctId; });
6242
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return uploadDownloads; });
6243
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return previewAdjunct; });
6244
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return previewAdjunct2; });
6245
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return previewAdjunctOffice; });
6246
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return delAdjunct; });
6285
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return downloadByAdjunctId; });
6286
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "md", function() { return uploadDownloads; });
6287
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return previewAdjunct; });
6288
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return previewAdjunct2; });
6289
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return previewAdjunctOffice; });
6290
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return delAdjunct; });
6247
6291
  /* unused harmony export upload_updateClassify */
6248
6292
  /* unused harmony export getDeleteAdjunctFileInfos */
6249
6293
  /* unused harmony export getPictureBase64 */
6250
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSelectorOrgTree; });
6251
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSelectorOrgDetail; });
6252
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getOrgMainTree; });
6294
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return getSelectorOrgTree; });
6295
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getSelectorOrgDetail; });
6296
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getOrgMainTree; });
6253
6297
  /* unused harmony export getSelectOrgsubids */
6254
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCode; });
6298
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return findSysCode; });
6255
6299
  /* unused harmony export getDictList */
6256
6300
  /* unused harmony export findUserBaseInfo */
6257
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return gethelpdoc; });
6301
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return gethelpdoc; });
6258
6302
  /* unused harmony export getCurrentuser */
6259
6303
  /* unused harmony export mainDetail */
6260
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toStartFlow; });
6261
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return tempSave; });
6262
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return commonOpion; });
6304
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return toStartFlow; });
6305
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return tempSave; });
6306
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return commonOpion; });
6263
6307
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
6264
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return editCommonOpion; });
6265
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return saveCommonOpinion; });
6266
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return updateCommonOpinion; });
6267
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteCommonOpion; });
6268
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getProcessDefList; });
6269
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfo; });
6270
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findCodeValues; });
6271
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return findSysParam; });
6272
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysCodes; });
6273
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getNotificationMsg; });
6274
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getHandleInfoHtml; });
6275
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskHandleHtml; });
6308
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return editCommonOpion; });
6309
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return saveCommonOpinion; });
6310
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jd", function() { return updateCommonOpinion; });
6311
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return deleteCommonOpion; });
6312
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getProcessDefList; });
6313
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getNodeInfo; });
6314
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return findCodeValues; });
6315
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return findSysParam; });
6316
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return findSysCodes; });
6317
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getNotificationMsg; });
6318
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getHandleInfoHtml; });
6319
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return taskHandleHtml; });
6276
6320
  /* unused harmony export getView */
6277
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return register; });
6278
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return pendedhistoryList; });
6279
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskRejectHtml; });
6280
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskRejectHtml; });
6281
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toStartTaskRead; });
6282
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toStartTaskReadIndex; });
6283
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskReadHtml; });
6284
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return rejectAndEnd; });
6285
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toSendMsg; });
6286
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sendMsg; });
6287
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return endFlowHtml; });
6288
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return handleInfo; });
6289
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return loginUserInfo; });
6290
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ad", function() { return wss; });
6291
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return topic; });
6292
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetCustomInfo; });
6293
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getPresetNodeInfo; });
6294
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return toTaskTransferIndex; });
6295
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return taskTransfer; });
6296
- /* unused harmony export toPresetInfoListIndex */
6297
- /* unused harmony export deletePresetInfo */
6321
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return register; });
6322
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return pendedhistoryList; });
6323
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xc", function() { return toTaskRejectHtml; });
6324
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return taskRejectHtml; });
6325
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return toStartTaskRead; });
6326
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return toStartTaskReadIndex; });
6327
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return taskReadHtml; });
6328
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return rejectAndEnd; });
6329
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return toSendMsg; });
6330
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return sendMsg; });
6331
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return endFlowHtml; });
6332
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return handleInfo; });
6333
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return loginUserInfo; });
6334
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qd", function() { return wss; });
6335
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hd", function() { return topic; });
6336
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getPresetCustomInfo; });
6337
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getPresetNodeInfo; });
6338
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dd", function() { return toTaskTransferIndex; });
6339
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return taskTransfer; });
6340
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return toPresetInfoListIndex; });
6341
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return deletePresetInfo; });
6298
6342
  /* unused harmony export historyListJson */
6299
- /* unused harmony export pendedhistoryListJson */
6300
- /* unused harmony export pressListJson */
6301
- /* unused harmony export deleteFlow */
6302
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return isCanStartSubFlow; });
6303
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return toTaskUnionExamine; });
6304
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return taskUnionExamine; });
6305
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTaskTakeAdvice; });
6306
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return taskTakeAdvice; });
6307
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskStartDraft; });
6308
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskSupervise; });
6309
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskSuperviseSub; });
6310
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskStartDraft; });
6311
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskReview; });
6312
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskReview; });
6313
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return toTaskUnionSeal; });
6314
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return taskUnionSeal; });
6315
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return toTwoOfficesDispatch; });
6316
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return twoOfficesDispatch; });
6317
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toResetProcessIndex; });
6318
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return resetProcess; });
6319
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskContinuationIndex; });
6320
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskContinuation; });
6321
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getFreeStartFlowParams; });
6322
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeStartFlowWithSubmitTask; });
6343
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return pendedhistoryListJson; });
6344
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return pressListJson; });
6345
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return deleteFlow; });
6346
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return isCanStartSubFlow; });
6347
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ed", function() { return toTaskUnionExamine; });
6348
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return taskUnionExamine; });
6349
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cd", function() { return toTaskTakeAdvice; });
6350
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return taskTakeAdvice; });
6351
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zc", function() { return toTaskStartDraft; });
6352
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ad", function() { return toTaskSupervise; });
6353
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bd", function() { return toTaskSuperviseSub; });
6354
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return taskStartDraft; });
6355
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yc", function() { return toTaskReview; });
6356
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return taskReview; });
6357
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fd", function() { return toTaskUnionSeal; });
6358
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return taskUnionSeal; });
6359
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gd", function() { return toTwoOfficesDispatch; });
6360
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "id", function() { return twoOfficesDispatch; });
6361
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return toResetProcessIndex; });
6362
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return resetProcess; });
6363
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return toTaskContinuationIndex; });
6364
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return taskContinuation; });
6365
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getFreeStartFlowParams; });
6366
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return freeStartFlowWithSubmitTask; });
6323
6367
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
6324
- /* unused harmony export pendedhistoryListWithCircularReadJson */
6325
- /* unused harmony export fyListJson */
6326
- /* unused harmony export circularReadWithdraw */
6327
- /* unused harmony export taskReadWithDraw */
6328
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
6368
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return pendedhistoryListWithCircularReadJson; });
6369
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return fyListJson; });
6370
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return circularReadWithdraw; });
6371
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return taskReadWithDraw; });
6372
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
6329
6373
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
6374
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return resetJson; });
6375
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return deletedListJson; });
6376
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return restoredHistory; });
6377
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return modifyFlow; });
6330
6378
  /* unused harmony export sendList */
6331
6379
  /* unused harmony export sendInfo */
6332
6380
  /* unused harmony export sendSave */
@@ -6334,58 +6382,61 @@ module.exports = require("eoss/lib/data-table");
6334
6382
  /* unused harmony export sendDelete */
6335
6383
  /* unused harmony export sendBatch */
6336
6384
  /* unused harmony export formContents */
6337
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return directStartTaskCircularRead; });
6338
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowAndStartTaskCircularRead; });
6339
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNodeInfoForStart; });
6340
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlow; });
6341
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUrgencyLevelChangedNotificationType; });
6342
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toFreeTaskCircularRead; });
6343
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return freeTaskCircularRead; });
6344
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pageLists; });
6385
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return directStartTaskCircularRead; });
6386
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return endFlowAndStartTaskCircularRead; });
6387
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getNodeInfoForStart; });
6388
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return freeStartFlow; });
6389
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return getUrgencyLevelChangedNotificationType; });
6390
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return toFreeTaskCircularRead; });
6391
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return freeTaskCircularRead; });
6392
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return pageLists; });
6345
6393
  /* unused harmony export publishedLists */
6346
6394
  /* unused harmony export pageInfo */
6347
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageGroup; });
6348
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return pageSave; });
6349
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return pageUpdate; });
6350
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageDelete; });
6395
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return pageGroup; });
6396
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return pageSave; });
6397
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return pageUpdate; });
6398
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return pageDelete; });
6351
6399
  /* unused harmony export pageTargetDelete */
6352
6400
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
6353
6401
  /* unused harmony export batchUpdate */
6354
6402
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
6355
6403
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
6356
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return processListJson; });
6357
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processInfo; });
6358
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processDeleteJson; });
6359
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return processSave; });
6360
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return processUpdate; });
6361
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return nodeListJson; });
6362
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeDeleteJson; });
6363
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return nodeSave; });
6364
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return nodeUpdate; });
6365
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeInfo; });
6366
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return moduleListJson; });
6367
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleInfo; });
6368
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleDelete; });
6369
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return moduleSave; });
6370
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return moduleUpdate; });
6371
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleListJson; });
6372
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleEdit; });
6373
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return ruleRead; });
6374
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return ruleSave; });
6404
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return processListJson; });
6405
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return processInfo; });
6406
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return processDeleteJson; });
6407
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return processSave; });
6408
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return processUpdate; });
6409
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return nodeListJson; });
6410
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return nodeDeleteJson; });
6411
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return nodeSave; });
6412
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return nodeUpdate; });
6413
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return nodeInfo; });
6414
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return moduleListJson; });
6415
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return moduleInfo; });
6416
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return moduleDelete; });
6417
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return moduleSave; });
6418
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return moduleUpdate; });
6419
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return ruleListJson; });
6420
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return ruleEdit; });
6421
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return ruleRead; });
6422
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return ruleSave; });
6375
6423
  /* unused harmony export ruleSupplement */
6376
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return ruleUndore; });
6377
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleAdd; });
6378
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyDetail; });
6424
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return ruleUndore; });
6425
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return ruleAdd; });
6426
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return companyDetail; });
6379
6427
  /* unused harmony export issueDetailList */
6380
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return deleteRule; });
6381
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getSysParamV1; });
6382
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return companyList; });
6383
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return supplement; });
6384
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return isAddSource; });
6385
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return tiggerInTime; });
6386
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return updateHistory; });
6428
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return deleteRule; });
6429
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return getSysParamV1; });
6430
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return companyList; });
6431
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return supplement; });
6432
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return isAddSource; });
6433
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return tiggerInTime; });
6434
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kd", function() { return updateHistory; });
6387
6435
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
6388
6436
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
6437
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return toDefinitionChangeSort; });
6438
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return setSort; });
6439
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return isCancelSecondConfirmation; });
6389
6440
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
6390
6441
  // 登录
6391
6442
  var doCaLogin = '/sso2/signIn/auth/doCaLogin'; // ca登录认证
@@ -6636,6 +6687,15 @@ var taskReadWithDraw = '/bpm/bpmBackend/taskReadWithDraw';
6636
6687
  var startReadTransferHandleFlowWithTaskReadEnd = '/bpm/bpmBackend/startReadTransferHandleFlowWithTaskReadEnd';
6637
6688
  // 阅转办校验接口
6638
6689
  var checkBusinessIdStartedReadTransferHandle = '/bpm/bpmBackend/checkBusinessIdStartedReadTransferHandle';
6690
+ // 获取重设记录列表
6691
+ var resetJson = '/bpm/wfResetRecord/listJson.dhtml';
6692
+ // 获取删除记录列表
6693
+ var deletedListJson = '/bpm/pendedhistoryManager/deletedListJson.dhtml';
6694
+ // 恢复删除记录
6695
+ var restoredHistory = '/bpm/pendedhistoryManager/restoredHistory.dhtml';
6696
+ // 修改流程列表意见
6697
+ var modifyFlow = flowPendingPrefix + '/pendedhistoryManager/modify.dhtml';
6698
+
6639
6699
  // notifySend 消息发送
6640
6700
  var sendList = '/notify2/notifySendRecord/listJson';
6641
6701
  var sendInfo = '/notify2/notifySendRecord/info';
@@ -6753,6 +6813,13 @@ var auditTrajectory = '/baseOperationRecords/listJson';
6753
6813
  // 暂停定时任务
6754
6814
  var changeInTime = '/baseIssueRules/changeInTime';
6755
6815
 
6816
+ // 流程排序
6817
+ var toDefinitionChangeSort = '/bpm/bpmBackend/toDefinitionChangeSort';
6818
+ var setSort = '/bpm/bpmBackend/setSort';
6819
+
6820
+ // 是否取消二次确认
6821
+ var isCancelSecondConfirmation = '/bpm/bpmBackend/isCancelSecondConfirmation';
6822
+
6756
6823
  /***/ }),
6757
6824
 
6758
6825
  /***/ 7:
@@ -6805,736 +6872,759 @@ var changeInTime = '/baseIssueRules/changeInTime';
6805
6872
  /* unused harmony export getSecond */
6806
6873
  /* unused harmony export getWeekday */
6807
6874
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
6808
-
6809
-
6875
+ /* Modified from https://github.com/taylorhakes/fecha
6876
+ *
6877
+ * The MIT License (MIT)
6878
+ *
6879
+ * Copyright (c) 2015 Taylor Hakes
6880
+ *
6881
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
6882
+ * of this software and associated documentation files (the "Software"), to deal
6883
+ * in the Software without restriction, including without limitation the rights
6884
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6885
+ * copies of the Software, and to permit persons to whom the Software is
6886
+ * furnished to do so, subject to the following conditions:
6887
+ *
6888
+ * The above copyright notice and this permission notice shall be included in all
6889
+ * copies or substantial portions of the Software.
6890
+ *
6891
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6892
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6893
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6894
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6895
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
6896
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
6897
+ * SOFTWARE.
6898
+ */
6899
+
6900
+ /*eslint-disable*/
6901
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
6902
+
6903
+
6810
6904
  /**
6811
6905
  * Parse or format dates
6812
6906
  * @class fecha
6813
- */
6814
- var fecha = {};
6815
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6816
- var twoDigits = '\\d\\d?';
6817
- var threeDigits = '\\d{3}';
6818
- var fourDigits = '\\d{4}';
6819
- var word = '[^\\s]+';
6820
- var literal = /\[([^]*?)\]/gm;
6821
- var noop = function noop() {};
6822
-
6823
- function regexEscape(str) {
6824
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6825
- }
6826
-
6827
- function shorten(arr, sLen) {
6828
- var newArr = [];
6829
- for (var i = 0, len = arr.length; i < len; i++) {
6830
- newArr.push(arr[i].substr(0, sLen));
6831
- }
6832
- return newArr;
6833
- }
6834
-
6835
- function monthUpdate() {
6836
- return function (d, v) {
6837
- var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6838
- if (~index) {
6839
- d.month = index;
6840
- }
6841
- };
6842
- }
6843
-
6844
- function pad(val, len) {
6845
- val = String(val);
6846
- len = len || 2;
6847
- while (val.length < len) {
6848
- val = '0' + val;
6849
- }
6850
- return val;
6851
- }
6852
-
6853
- // 直接使用中文日期名称常量
6854
- var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6855
- var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6856
- var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6857
- var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6858
- var amPm = ['上午', '下午'];
6859
- var DoFn = function DoFn(D) {
6860
- return D + '日';
6861
- };
6862
-
6863
- var formatFlags = {
6864
- D: function D(dateObj) {
6865
- return dateObj.getDay();
6866
- },
6867
- DD: function DD(dateObj) {
6868
- return pad(dateObj.getDay());
6869
- },
6870
- Do: function Do(dateObj) {
6871
- return DoFn(dateObj.getDate());
6872
- },
6873
- d: function d(dateObj) {
6874
- return dateObj.getDate();
6875
- },
6876
- dd: function dd(dateObj) {
6877
- return pad(dateObj.getDate());
6878
- },
6879
- ddd: function ddd(dateObj) {
6880
- return dayNamesShort[dateObj.getDay()];
6881
- },
6882
- dddd: function dddd(dateObj) {
6883
- return dayNames[dateObj.getDay()];
6884
- },
6885
- M: function M(dateObj) {
6886
- return dateObj.getMonth() + 1;
6887
- },
6888
- MM: function MM(dateObj) {
6889
- return pad(dateObj.getMonth() + 1);
6890
- },
6891
- MMM: function MMM(dateObj) {
6892
- return monthNamesShort[dateObj.getMonth()];
6893
- },
6894
- MMMM: function MMMM(dateObj) {
6895
- return monthNames[dateObj.getMonth()];
6896
- },
6897
- yy: function yy(dateObj) {
6898
- return pad(String(dateObj.getFullYear()), 4).substr(2);
6899
- },
6900
- yyyy: function yyyy(dateObj) {
6901
- return pad(dateObj.getFullYear(), 4);
6902
- },
6903
- h: function h(dateObj) {
6904
- return dateObj.getHours() % 12 || 12;
6905
- },
6906
- hh: function hh(dateObj) {
6907
- return pad(dateObj.getHours() % 12 || 12);
6908
- },
6909
- H: function H(dateObj) {
6910
- return dateObj.getHours();
6911
- },
6912
- HH: function HH(dateObj) {
6913
- return pad(dateObj.getHours());
6914
- },
6915
- m: function m(dateObj) {
6916
- return dateObj.getMinutes();
6917
- },
6918
- mm: function mm(dateObj) {
6919
- return pad(dateObj.getMinutes());
6920
- },
6921
- s: function s(dateObj) {
6922
- return dateObj.getSeconds();
6923
- },
6924
- ss: function ss(dateObj) {
6925
- return pad(dateObj.getSeconds());
6926
- },
6927
- S: function S(dateObj) {
6928
- return Math.round(dateObj.getMilliseconds() / 100);
6929
- },
6930
- SS: function SS(dateObj) {
6931
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
6932
- },
6933
- SSS: function SSS(dateObj) {
6934
- return pad(dateObj.getMilliseconds(), 3);
6935
- },
6936
- a: function a(dateObj) {
6937
- return dateObj.getHours() < 12 ? '上午' : '下午';
6938
- },
6939
- A: function A(dateObj) {
6940
- return dateObj.getHours() < 12 ? '上午' : '下午';
6941
- },
6942
- ZZ: function ZZ(dateObj) {
6943
- var o = dateObj.getTimezoneOffset();
6944
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
6945
- }
6946
- };
6947
-
6948
- var parseFlags = {
6949
- d: [twoDigits, function (d, v) {
6950
- d.day = v;
6951
- }],
6952
- Do: [twoDigits + word, function (d, v) {
6953
- d.day = parseInt(v, 10);
6954
- }],
6955
- M: [twoDigits, function (d, v) {
6956
- d.month = v - 1;
6957
- }],
6958
- yy: [twoDigits, function (d, v) {
6959
- var da = new Date(),
6960
- cent = +('' + da.getFullYear()).substr(0, 2);
6961
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
6962
- }],
6963
- h: [twoDigits, function (d, v) {
6964
- d.hour = v;
6965
- }],
6966
- m: [twoDigits, function (d, v) {
6967
- d.minute = v;
6968
- }],
6969
- s: [twoDigits, function (d, v) {
6970
- d.second = v;
6971
- }],
6972
- yyyy: [fourDigits, function (d, v) {
6973
- d.year = v;
6974
- }],
6975
- S: ['\\d', function (d, v) {
6976
- d.millisecond = v * 100;
6977
- }],
6978
- SS: ['\\d{2}', function (d, v) {
6979
- d.millisecond = v * 10;
6980
- }],
6981
- SSS: [threeDigits, function (d, v) {
6982
- d.millisecond = v;
6983
- }],
6984
- D: [twoDigits, noop],
6985
- ddd: [word, noop],
6986
- MMM: [word, monthUpdate('monthNamesShort')],
6987
- MMMM: [word, monthUpdate('monthNames')],
6988
- a: [word, function (d, v) {
6989
- var val = v.toLowerCase();
6990
- if (val === '上午') {
6991
- d.isPm = false;
6992
- } else if (val === '下午') {
6993
- d.isPm = true;
6994
- }
6995
- }],
6996
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
6997
- var parts = (v + '').match(/([+-]|\d\d)/gi),
6998
- minutes = void 0;
6999
-
7000
- if (parts) {
7001
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
7002
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
7003
- }
7004
- }]
7005
- };
7006
- parseFlags.dd = parseFlags.d;
7007
- parseFlags.dddd = parseFlags.ddd;
7008
- parseFlags.DD = parseFlags.D;
7009
- parseFlags.mm = parseFlags.m;
7010
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
7011
- parseFlags.MM = parseFlags.M;
7012
- parseFlags.ss = parseFlags.s;
7013
- parseFlags.A = parseFlags.a;
7014
-
7015
- // Some common format strings
7016
- fecha.masks = {
7017
- default: 'ddd MMM dd yyyy HH:mm:ss',
7018
- shortDate: 'M/D/yy',
7019
- mediumDate: 'MMM d, yyyy',
7020
- longDate: 'MMMM d, yyyy',
7021
- fullDate: 'dddd, MMMM d, yyyy',
7022
- shortTime: 'HH:mm',
7023
- mediumTime: 'HH:mm:ss',
7024
- longTime: 'HH:mm:ss.SSS'
7025
- };
7026
-
6907
+ */
6908
+ const fecha = {};
6909
+ const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
6910
+ const twoDigits = '\\d\\d?';
6911
+ const threeDigits = '\\d{3}';
6912
+ const fourDigits = '\\d{4}';
6913
+ const word = '[^\\s]+';
6914
+ const literal = /\[([^]*?)\]/gm;
6915
+ const noop = function () {};
6916
+
6917
+ function regexEscape(str) {
6918
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
6919
+ }
6920
+
6921
+ function shorten(arr, sLen) {
6922
+ const newArr = [];
6923
+ for (let i = 0, len = arr.length; i < len; i++) {
6924
+ newArr.push(arr[i].substr(0, sLen));
6925
+ }
6926
+ return newArr;
6927
+ }
6928
+
6929
+ function monthUpdate() {
6930
+ return function (d, v) {
6931
+ const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
6932
+ if (~index) {
6933
+ d.month = index;
6934
+ }
6935
+ };
6936
+ }
6937
+
6938
+ function pad(val, len) {
6939
+ val = String(val);
6940
+ len = len || 2;
6941
+ while (val.length < len) {
6942
+ val = '0' + val;
6943
+ }
6944
+ return val;
6945
+ }
6946
+
6947
+ // 直接使用中文日期名称常量
6948
+ const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
6949
+ const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
6950
+ const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
6951
+ const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
6952
+ const amPm = ['上午', '下午'];
6953
+ const DoFn = function DoFn(D) {
6954
+ return D + '日';
6955
+ };
6956
+
6957
+ const formatFlags = {
6958
+ D: function(dateObj) {
6959
+ return dateObj.getDay();
6960
+ },
6961
+ DD: function(dateObj) {
6962
+ return pad(dateObj.getDay());
6963
+ },
6964
+ Do: function(dateObj) {
6965
+ return DoFn(dateObj.getDate());
6966
+ },
6967
+ d: function(dateObj) {
6968
+ return dateObj.getDate();
6969
+ },
6970
+ dd: function(dateObj) {
6971
+ return pad(dateObj.getDate());
6972
+ },
6973
+ ddd: function(dateObj) {
6974
+ return dayNamesShort[dateObj.getDay()];
6975
+ },
6976
+ dddd: function(dateObj) {
6977
+ return dayNames[dateObj.getDay()];
6978
+ },
6979
+ M: function(dateObj) {
6980
+ return dateObj.getMonth() + 1;
6981
+ },
6982
+ MM: function(dateObj) {
6983
+ return pad(dateObj.getMonth() + 1);
6984
+ },
6985
+ MMM: function(dateObj) {
6986
+ return monthNamesShort[dateObj.getMonth()];
6987
+ },
6988
+ MMMM: function(dateObj) {
6989
+ return monthNames[dateObj.getMonth()];
6990
+ },
6991
+ yy: function(dateObj) {
6992
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
6993
+ },
6994
+ yyyy: function(dateObj) {
6995
+ return pad(dateObj.getFullYear(), 4);
6996
+ },
6997
+ h: function(dateObj) {
6998
+ return dateObj.getHours() % 12 || 12;
6999
+ },
7000
+ hh: function(dateObj) {
7001
+ return pad(dateObj.getHours() % 12 || 12);
7002
+ },
7003
+ H: function(dateObj) {
7004
+ return dateObj.getHours();
7005
+ },
7006
+ HH: function(dateObj) {
7007
+ return pad(dateObj.getHours());
7008
+ },
7009
+ m: function(dateObj) {
7010
+ return dateObj.getMinutes();
7011
+ },
7012
+ mm: function(dateObj) {
7013
+ return pad(dateObj.getMinutes());
7014
+ },
7015
+ s: function(dateObj) {
7016
+ return dateObj.getSeconds();
7017
+ },
7018
+ ss: function(dateObj) {
7019
+ return pad(dateObj.getSeconds());
7020
+ },
7021
+ S: function(dateObj) {
7022
+ return Math.round(dateObj.getMilliseconds() / 100);
7023
+ },
7024
+ SS: function(dateObj) {
7025
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
7026
+ },
7027
+ SSS: function(dateObj) {
7028
+ return pad(dateObj.getMilliseconds(), 3);
7029
+ },
7030
+ a: function(dateObj) {
7031
+ return dateObj.getHours() < 12 ? '上午' : '下午';
7032
+ },
7033
+ A: function(dateObj) {
7034
+ return dateObj.getHours() < 12 ? '上午' : '下午';
7035
+ },
7036
+ ZZ: function(dateObj) {
7037
+ const o = dateObj.getTimezoneOffset();
7038
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
7039
+ }
7040
+ };
7041
+
7042
+ const parseFlags = {
7043
+ d: [twoDigits, function (d, v) {
7044
+ d.day = v;
7045
+ }],
7046
+ Do: [twoDigits + word, function (d, v) {
7047
+ d.day = parseInt(v, 10);
7048
+ }],
7049
+ M: [twoDigits, function (d, v) {
7050
+ d.month = v - 1;
7051
+ }],
7052
+ yy: [twoDigits, function (d, v) {
7053
+ const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
7054
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
7055
+ }],
7056
+ h: [twoDigits, function (d, v) {
7057
+ d.hour = v;
7058
+ }],
7059
+ m: [twoDigits, function (d, v) {
7060
+ d.minute = v;
7061
+ }],
7062
+ s: [twoDigits, function (d, v) {
7063
+ d.second = v;
7064
+ }],
7065
+ yyyy: [fourDigits, function (d, v) {
7066
+ d.year = v;
7067
+ }],
7068
+ S: ['\\d', function (d, v) {
7069
+ d.millisecond = v * 100;
7070
+ }],
7071
+ SS: ['\\d{2}', function (d, v) {
7072
+ d.millisecond = v * 10;
7073
+ }],
7074
+ SSS: [threeDigits, function (d, v) {
7075
+ d.millisecond = v;
7076
+ }],
7077
+ D: [twoDigits, noop],
7078
+ ddd: [word, noop],
7079
+ MMM: [word, monthUpdate('monthNamesShort')],
7080
+ MMMM: [word, monthUpdate('monthNames')],
7081
+ a: [word, function (d, v) {
7082
+ const val = v.toLowerCase();
7083
+ if (val === '上午') {
7084
+ d.isPm = false;
7085
+ } else if (val === '下午') {
7086
+ d.isPm = true;
7087
+ }
7088
+ }],
7089
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
7090
+ let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
7091
+
7092
+ if (parts) {
7093
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
7094
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
7095
+ }
7096
+ }]
7097
+ };
7098
+ parseFlags.dd = parseFlags.d;
7099
+ parseFlags.dddd = parseFlags.ddd;
7100
+ parseFlags.DD = parseFlags.D;
7101
+ parseFlags.mm = parseFlags.m;
7102
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
7103
+ parseFlags.MM = parseFlags.M;
7104
+ parseFlags.ss = parseFlags.s;
7105
+ parseFlags.A = parseFlags.a;
7106
+
7107
+
7108
+ // Some common format strings
7109
+ fecha.masks = {
7110
+ default: 'ddd MMM dd yyyy HH:mm:ss',
7111
+ shortDate: 'M/D/yy',
7112
+ mediumDate: 'MMM d, yyyy',
7113
+ longDate: 'MMMM d, yyyy',
7114
+ fullDate: 'dddd, MMMM d, yyyy',
7115
+ shortTime: 'HH:mm',
7116
+ mediumTime: 'HH:mm:ss',
7117
+ longTime: 'HH:mm:ss.SSS'
7118
+ };
7119
+
7027
7120
  /***
7028
7121
  * Format a date
7029
7122
  * @method format
7030
7123
  * @param {Date|number} dateObj
7031
7124
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
7032
- */
7033
- fecha.format = function (dateObj, mask) {
7034
- if (typeof dateObj === 'number') {
7035
- dateObj = new Date(dateObj);
7036
- }
7037
-
7038
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
7039
- throw new Error('Invalid Date in fecha.format');
7040
- }
7041
-
7042
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
7043
-
7044
- var literals = [];
7045
-
7046
- // Make literals inactive by replacing them with ??
7047
- mask = mask.replace(literal, function ($0, $1) {
7048
- literals.push($1);
7049
- return '@@@';
7050
- });
7051
- // Apply formatting rules
7052
- mask = mask.replace(token, function ($0) {
7053
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
7054
- });
7055
- // Inline literal values back into the formatted value
7056
- return mask.replace(/@@@/g, function () {
7057
- return literals.shift();
7058
- });
7059
- };
7060
-
7125
+ */
7126
+ fecha.format = function (dateObj, mask) {
7127
+ if (typeof dateObj === 'number') {
7128
+ dateObj = new Date(dateObj);
7129
+ }
7130
+
7131
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
7132
+ throw new Error('Invalid Date in fecha.format');
7133
+ }
7134
+
7135
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
7136
+
7137
+ const literals = [];
7138
+
7139
+ // Make literals inactive by replacing them with ??
7140
+ mask = mask.replace(literal, function($0, $1) {
7141
+ literals.push($1);
7142
+ return '@@@';
7143
+ });
7144
+ // Apply formatting rules
7145
+ mask = mask.replace(token, function ($0) {
7146
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
7147
+ });
7148
+ // Inline literal values back into the formatted value
7149
+ return mask.replace(/@@@/g, function() {
7150
+ return literals.shift();
7151
+ });
7152
+ };
7153
+
7061
7154
  /**
7062
7155
  * Parse a date string into an object, changes - into /
7063
7156
  * @method parse
7064
7157
  * @param {string} dateStr Date string
7065
7158
  * @param {string} format Date parse format
7066
7159
  * @returns {Date|boolean}
7067
- */
7068
- fecha.parse = function (dateStr, format) {
7069
- if (typeof format !== 'string') {
7070
- throw new Error('Invalid format in fecha.parse');
7071
- }
7072
-
7073
- format = fecha.masks[format] || format;
7074
-
7075
- // Avoid regular expression denial of service, fail early for really long strings
7076
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
7077
- if (dateStr.length > 1000) {
7078
- return null;
7079
- }
7080
-
7081
- var dateInfo = {};
7082
- var parseInfo = [];
7083
- var literals = [];
7084
- format = format.replace(literal, function ($0, $1) {
7085
- literals.push($1);
7086
- return '@@@';
7087
- });
7088
- var newFormat = regexEscape(format).replace(token, function ($0) {
7089
- if (parseFlags[$0]) {
7090
- var info = parseFlags[$0];
7091
- parseInfo.push(info[1]);
7092
- return '(' + info[0] + ')';
7093
- }
7094
-
7095
- return $0;
7096
- });
7097
- newFormat = newFormat.replace(/@@@/g, function () {
7098
- return literals.shift();
7099
- });
7100
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
7101
- if (!matches) {
7102
- return null;
7103
- }
7104
-
7105
- for (var i = 1; i < matches.length; i++) {
7106
- parseInfo[i - 1](dateInfo, matches[i]);
7107
- }
7108
-
7109
- var today = new Date();
7110
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
7111
- dateInfo.hour = +dateInfo.hour + 12;
7112
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
7113
- dateInfo.hour = 0;
7114
- }
7115
-
7116
- var date = void 0;
7117
- if (dateInfo.timezoneOffset != null) {
7118
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
7119
- 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));
7120
- } else {
7121
- 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);
7122
- }
7123
- return date;
7124
- };
7125
-
7126
- // 导出fecha对象
7127
-
7128
-
7129
- // 以下是从date-util.js合并的函数
7130
- var newArray = function newArray(start, end) {
7131
- var result = [];
7132
- for (var i = start; i <= end; i++) {
7133
- result.push(i);
7134
- }
7135
- return result;
7136
- };
7137
-
7138
- var getSettings = function getSettings() {
7139
- return {
7140
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
7141
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
7142
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
7143
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
7144
- amPm: ['上午', '下午']
7145
- };
7146
- };
7147
-
7148
- var toDate = function toDate(date) {
7149
- return isDate(date) ? new Date(date) : null;
7150
- };
7151
-
7152
- var isDate = function isDate(date) {
7153
- if (date === null || date === undefined) return false;
7154
- if (isNaN(new Date(date).getTime())) return false;
7155
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
7156
- return true;
7157
- };
7158
-
7159
- var isDateObject = function isDateObject(val) {
7160
- return val instanceof Date;
7161
- };
7162
-
7163
- var formatDate = function formatDate(date) {
7164
- var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
7165
-
7166
- // 处理多种输入类型
7167
- if (!date) return '';
7168
-
7169
- // 如果是时间戳,转成日期对象
7170
- if (typeof date === 'number') {
7171
- date = new Date(date);
7172
- }
7173
- // 如果是字符串,转成日期对象
7174
- if (typeof date === 'string') {
7175
- date = new Date(date);
7176
- }
7177
-
7178
- // 调用toDate进一步验证和转换
7179
- date = toDate(date);
7180
- if (!date) return '';
7181
-
7182
- // 兼容大写和小写的格式标记
7183
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
7184
- var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
7185
-
7186
- // 使用fecha库进行格式化,支持中文配置
7187
- var str = fecha.format(date, lowercaseFormat, getSettings());
7188
- return str;
7189
- };
7190
-
7191
- var parseDate = function parseDate(string, format) {
7192
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
7193
- };
7194
-
7195
- var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
7196
- if (month === 3 || month === 5 || month === 8 || month === 10) {
7197
- return 30;
7198
- }
7199
-
7200
- if (month === 1) {
7201
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
7202
- return 29;
7203
- } else {
7204
- return 28;
7205
- }
7206
- }
7207
-
7208
- return 31;
7209
- };
7210
-
7211
- var getDayCountOfYear = function getDayCountOfYear(year) {
7212
- var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
7213
- return isLeapYear ? 366 : 365;
7214
- };
7215
-
7216
- var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
7217
- var temp = new Date(date.getTime());
7218
- temp.setDate(1);
7219
- return temp.getDay();
7220
- };
7221
-
7222
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
7223
- // {prev, next} Date should work for Daylight Saving Time
7224
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
7225
- var prevDate = function prevDate(date) {
7226
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7227
-
7228
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
7229
- };
7230
-
7231
- var nextDate = function nextDate(date) {
7232
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7233
-
7234
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
7235
- };
7236
-
7237
- var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
7238
- var result = new Date(year, month, 1);
7239
- var day = result.getDay();
7240
-
7241
- if (day === 0) {
7242
- return prevDate(result, 7);
7243
- } else {
7244
- return prevDate(result, day);
7245
- }
7246
- };
7247
-
7248
- var getWeekNumber = function getWeekNumber(date) {
7249
- // 支持多种输入类型
7250
- if (!date || !isDate(date)) {
7251
- date = new Date();
7252
- }
7253
- if (typeof date === 'string') {
7254
- date = new Date(date);
7255
- }
7256
-
7257
- // 验证日期有效性
7258
- if (!isDate(date)) return null;
7259
-
7260
- var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
7261
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
7262
- // 将星期日的星期数设为7
7263
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
7264
- // 获取当年的第一天
7265
- var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
7266
- // 计算到最近的星期四的完整周数
7267
- var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
7268
- // 返回周数
7269
- return weekNo;
7270
- };
7271
-
7272
- var getRangeHours = function getRangeHours(ranges) {
7273
- var hours = [];
7274
- var disabledHours = [];
7275
-
7276
- (ranges || []).forEach(function (range) {
7277
- var value = range.map(function (date) {
7278
- return date.getHours();
7279
- });
7280
-
7281
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
7282
- });
7283
-
7284
- if (disabledHours.length) {
7285
- for (var i = 0; i < 24; i++) {
7286
- hours[i] = disabledHours.indexOf(i) === -1;
7287
- }
7288
- } else {
7289
- for (var _i = 0; _i < 24; _i++) {
7290
- hours[_i] = false;
7291
- }
7292
- }
7293
-
7294
- return hours;
7295
- };
7296
-
7297
- var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
7298
- if (amount <= 0) return [];
7299
- var temp = new Date(date.getTime());
7300
- temp.setDate(0);
7301
- var lastDay = temp.getDate();
7302
- return range(amount).map(function (_, index) {
7303
- return lastDay - (amount - index - 1);
7304
- });
7305
- };
7306
-
7307
- var getMonthDays = function getMonthDays(date) {
7308
- var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
7309
- var days = temp.getDate();
7310
- return range(days).map(function (_, index) {
7311
- return index + 1;
7312
- });
7313
- };
7314
-
7315
- function setRangeData(arr, start, end, value) {
7316
- for (var i = start; i < end; i++) {
7317
- arr[i] = value;
7318
- }
7319
- }
7320
-
7321
- var getRangeMinutes = function getRangeMinutes(ranges, hour) {
7322
- var minutes = new Array(60);
7323
-
7324
- if (ranges.length > 0) {
7325
- ranges.forEach(function (range) {
7326
- var start = range[0];
7327
- var end = range[1];
7328
- var startHour = start.getHours();
7329
- var startMinute = start.getMinutes();
7330
- var endHour = end.getHours();
7331
- var endMinute = end.getMinutes();
7332
- if (startHour === hour && endHour !== hour) {
7333
- setRangeData(minutes, startMinute, 60, true);
7334
- } else if (startHour === hour && endHour === hour) {
7335
- setRangeData(minutes, startMinute, endMinute + 1, true);
7336
- } else if (startHour !== hour && endHour === hour) {
7337
- setRangeData(minutes, 0, endMinute + 1, true);
7338
- } else if (startHour < hour && endHour > hour) {
7339
- setRangeData(minutes, 0, 60, true);
7340
- }
7341
- });
7342
- } else {
7343
- setRangeData(minutes, 0, 60, true);
7344
- }
7345
- return minutes;
7346
- };
7347
-
7348
- var range = function range(n) {
7349
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
7350
- return Array.apply(null, { length: n }).map(function (_, n) {
7351
- return n;
7352
- });
7353
- };
7354
-
7355
- var modifyDate = function modifyDate(date, y, m, d) {
7356
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
7357
- };
7358
-
7359
- var modifyTime = function modifyTime(date, h, m, s) {
7360
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
7361
- };
7362
-
7363
- var modifyWithTimeString = function modifyWithTimeString(date, time) {
7364
- if (date == null || !time) {
7365
- return date;
7366
- }
7367
- time = parseDate(time, 'HH:mm:ss');
7368
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
7369
- };
7370
-
7371
- var clearTime = function clearTime(date) {
7372
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
7373
- };
7374
-
7375
- var clearMilliseconds = function clearMilliseconds(date) {
7376
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
7377
- };
7378
-
7379
- var limitTimeRange = function limitTimeRange(date, ranges) {
7380
- var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
7381
-
7382
- // TODO: refactory a more elegant solution
7383
- if (ranges.length === 0) return date;
7384
- var normalizeDate = function normalizeDate(date) {
7385
- return fecha.parse(fecha.format(date, format), format);
7386
- };
7387
- var ndate = normalizeDate(date);
7388
- var nranges = ranges.map(function (range) {
7389
- return range.map(normalizeDate);
7390
- });
7391
- if (nranges.some(function (nrange) {
7392
- return ndate >= nrange[0] && ndate <= nrange[1];
7393
- })) return date;
7394
-
7395
- var minDate = nranges[0][0];
7396
- var maxDate = nranges[0][0];
7397
-
7398
- nranges.forEach(function (nrange) {
7399
- minDate = new Date(Math.min(nrange[0], minDate));
7400
- maxDate = new Date(Math.max(nrange[1], minDate));
7401
- });
7402
-
7403
- var ret = ndate < minDate ? minDate : maxDate;
7404
- // preserve Year/Month/Date
7405
- return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
7406
- };
7407
-
7408
- var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
7409
- var limitedDate = limitTimeRange(date, selectableRange, format);
7410
- return limitedDate.getTime() === date.getTime();
7411
- };
7412
-
7413
- var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
7414
- // clamp date to the number of days in `year`, `month`
7415
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
7416
- var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
7417
- return modifyDate(date, year, month, monthDate);
7418
- };
7419
-
7420
- var prevMonth = function prevMonth(date) {
7421
- var year = date.getFullYear();
7422
- var month = date.getMonth();
7423
- return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
7424
- };
7425
-
7426
- var nextMonth = function nextMonth(date) {
7427
- var year = date.getFullYear();
7428
- var month = date.getMonth();
7429
- return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
7430
- };
7431
-
7432
- var prevYear = function prevYear(date) {
7433
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7434
-
7435
- var year = date.getFullYear();
7436
- var month = date.getMonth();
7437
- return changeYearMonthAndClampDate(date, year - amount, month);
7438
- };
7439
-
7440
- var nextYear = function nextYear(date) {
7441
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7442
-
7443
- var year = date.getFullYear();
7444
- var month = date.getMonth();
7445
- return changeYearMonthAndClampDate(date, year + amount, month);
7446
- };
7447
-
7448
- var extractDateFormat = function extractDateFormat(format) {
7449
- return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
7450
- };
7451
-
7452
- var extractTimeFormat = function extractTimeFormat(format) {
7453
- return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
7454
- };
7455
-
7456
- var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
7457
- return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
7458
- };
7459
-
7160
+ */
7161
+ fecha.parse = function (dateStr, format) {
7162
+ if (typeof format !== 'string') {
7163
+ throw new Error('Invalid format in fecha.parse');
7164
+ }
7165
+
7166
+ format = fecha.masks[format] || format;
7167
+
7168
+ // Avoid regular expression denial of service, fail early for really long strings
7169
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
7170
+ if (dateStr.length > 1000) {
7171
+ return null;
7172
+ }
7173
+
7174
+ const dateInfo = {};
7175
+ const parseInfo = [];
7176
+ const literals = [];
7177
+ format = format.replace(literal, function($0, $1) {
7178
+ literals.push($1);
7179
+ return '@@@';
7180
+ });
7181
+ let newFormat = regexEscape(format).replace(token, function ($0) {
7182
+ if (parseFlags[$0]) {
7183
+ const info = parseFlags[$0];
7184
+ parseInfo.push(info[1]);
7185
+ return '(' + info[0] + ')';
7186
+ }
7187
+
7188
+ return $0;
7189
+ });
7190
+ newFormat = newFormat.replace(/@@@/g, function() {
7191
+ return literals.shift();
7192
+ });
7193
+ const matches = dateStr.match(new RegExp(newFormat, 'i'));
7194
+ if (!matches) {
7195
+ return null;
7196
+ }
7197
+
7198
+ for (let i = 1; i < matches.length; i++) {
7199
+ parseInfo[i - 1](dateInfo, matches[i]);
7200
+ }
7201
+
7202
+ const today = new Date();
7203
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
7204
+ dateInfo.hour = +dateInfo.hour + 12;
7205
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
7206
+ dateInfo.hour = 0;
7207
+ }
7208
+
7209
+ let date;
7210
+ if (dateInfo.timezoneOffset != null) {
7211
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
7212
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
7213
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
7214
+ } else {
7215
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
7216
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
7217
+ }
7218
+ return date;
7219
+ };
7220
+
7221
+ // 导出fecha对象
7222
+
7223
+
7224
+ // 以下是从date-util.js合并的函数
7225
+ const newArray = function(start, end) {
7226
+ let result = [];
7227
+ for (let i = start; i <= end; i++) {
7228
+ result.push(i);
7229
+ }
7230
+ return result;
7231
+ };
7232
+
7233
+ const getSettings = () => {
7234
+ return {
7235
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
7236
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
7237
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
7238
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
7239
+ amPm: ['上午', '下午']
7240
+ };
7241
+ };
7242
+
7243
+ const toDate = function(date) {
7244
+ return isDate(date) ? new Date(date) : null;
7245
+ };
7246
+
7247
+ const isDate = function(date) {
7248
+ if (date === null || date === undefined) return false;
7249
+ if (isNaN(new Date(date).getTime())) return false;
7250
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
7251
+ return true;
7252
+ };
7253
+
7254
+ const isDateObject = function(val) {
7255
+ return val instanceof Date;
7256
+ };
7257
+
7258
+ const formatDate = function (date, format = 'yyyy-MM-dd') {
7259
+ // 处理多种输入类型
7260
+ if (!date) return '';
7261
+
7262
+ // 如果是时间戳,转成日期对象
7263
+ if (typeof date === 'number') {
7264
+ date = new Date(date);
7265
+ }
7266
+ // 如果是字符串,转成日期对象
7267
+ if (typeof date === 'string') {
7268
+ date = new Date(date);
7269
+ }
7270
+
7271
+ // 调用toDate进一步验证和转换
7272
+ date = toDate(date);
7273
+ if (!date) return '';
7274
+
7275
+ // 兼容大写和小写的格式标记
7276
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
7277
+ const lowercaseFormat = format
7278
+ .replace(/YYYY/g, 'yyyy')
7279
+ .replace(/D/g, 'd')
7280
+
7281
+ // 使用fecha库进行格式化,支持中文配置
7282
+ const str = fecha.format(date, lowercaseFormat, getSettings());
7283
+ return str;
7284
+ };
7285
+
7286
+ const parseDate = function(string, format) {
7287
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
7288
+ };
7289
+
7290
+ const getDayCountOfMonth = function(year, month) {
7291
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
7292
+ return 30;
7293
+ }
7294
+
7295
+ if (month === 1) {
7296
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
7297
+ return 29;
7298
+ } else {
7299
+ return 28;
7300
+ }
7301
+ }
7302
+
7303
+ return 31;
7304
+ };
7305
+
7306
+ const getDayCountOfYear = function(year) {
7307
+ const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
7308
+ return isLeapYear ? 366 : 365;
7309
+ };
7310
+
7311
+ const getFirstDayOfMonth = function(date) {
7312
+ const temp = new Date(date.getTime());
7313
+ temp.setDate(1);
7314
+ return temp.getDay();
7315
+ };
7316
+
7317
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
7318
+ // {prev, next} Date should work for Daylight Saving Time
7319
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
7320
+ const prevDate = function(date, amount = 1) {
7321
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
7322
+ };
7323
+
7324
+ const nextDate = function(date, amount = 1) {
7325
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
7326
+ };
7327
+
7328
+ const getStartDateOfMonth = function(year, month) {
7329
+ const result = new Date(year, month, 1);
7330
+ const day = result.getDay();
7331
+
7332
+ if (day === 0) {
7333
+ return prevDate(result, 7);
7334
+ } else {
7335
+ return prevDate(result, day);
7336
+ }
7337
+ };
7338
+
7339
+ const getWeekNumber = function(date) {
7340
+ // 支持多种输入类型
7341
+ if (!date||!isDate(date)) {
7342
+ date = new Date();
7343
+ }
7344
+ if (typeof date === 'string') {
7345
+ date = new Date(date);
7346
+ }
7347
+
7348
+ // 验证日期有效性
7349
+ if (!isDate(date)) return null;
7350
+
7351
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
7352
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
7353
+ // 将星期日的星期数设为7
7354
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
7355
+ // 获取当年的第一天
7356
+ const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
7357
+ // 计算到最近的星期四的完整周数
7358
+ const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
7359
+ // 返回周数
7360
+ return weekNo;
7361
+ };
7362
+
7363
+ const getRangeHours = function(ranges) {
7364
+ const hours = [];
7365
+ let disabledHours = [];
7366
+
7367
+ (ranges || []).forEach(range => {
7368
+ const value = range.map(date => date.getHours());
7369
+
7370
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
7371
+ });
7372
+
7373
+ if (disabledHours.length) {
7374
+ for (let i = 0; i < 24; i++) {
7375
+ hours[i] = disabledHours.indexOf(i) === -1;
7376
+ }
7377
+ } else {
7378
+ for (let i = 0; i < 24; i++) {
7379
+ hours[i] = false;
7380
+ }
7381
+ }
7382
+
7383
+ return hours;
7384
+ };
7385
+
7386
+ const getPrevMonthLastDays = (date, amount) => {
7387
+ if (amount <= 0) return [];
7388
+ const temp = new Date(date.getTime());
7389
+ temp.setDate(0);
7390
+ const lastDay = temp.getDate();
7391
+ return range(amount).map((_, index) => lastDay - (amount - index - 1));
7392
+ };
7393
+
7394
+ const getMonthDays = (date) => {
7395
+ const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
7396
+ const days = temp.getDate();
7397
+ return range(days).map((_, index) => index + 1);
7398
+ };
7399
+
7400
+ function setRangeData(arr, start, end, value) {
7401
+ for (let i = start; i < end; i++) {
7402
+ arr[i] = value;
7403
+ }
7404
+ }
7405
+
7406
+ const getRangeMinutes = function(ranges, hour) {
7407
+ const minutes = new Array(60);
7408
+
7409
+ if (ranges.length > 0) {
7410
+ ranges.forEach(range => {
7411
+ const start = range[0];
7412
+ const end = range[1];
7413
+ const startHour = start.getHours();
7414
+ const startMinute = start.getMinutes();
7415
+ const endHour = end.getHours();
7416
+ const endMinute = end.getMinutes();
7417
+ if (startHour === hour && endHour !== hour) {
7418
+ setRangeData(minutes, startMinute, 60, true);
7419
+ } else if (startHour === hour && endHour === hour) {
7420
+ setRangeData(minutes, startMinute, endMinute + 1, true);
7421
+ } else if (startHour !== hour && endHour === hour) {
7422
+ setRangeData(minutes, 0, endMinute + 1, true);
7423
+ } else if (startHour < hour && endHour > hour) {
7424
+ setRangeData(minutes, 0, 60, true);
7425
+ }
7426
+ });
7427
+ } else {
7428
+ setRangeData(minutes, 0, 60, true);
7429
+ }
7430
+ return minutes;
7431
+ };
7432
+
7433
+ const range = function(n) {
7434
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
7435
+ return Array.apply(null, {length: n}).map((_, n) => n);
7436
+ };
7437
+
7438
+ const modifyDate = function(date, y, m, d) {
7439
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
7440
+ };
7441
+
7442
+ const modifyTime = function(date, h, m, s) {
7443
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
7444
+ };
7445
+
7446
+ const modifyWithTimeString = (date, time) => {
7447
+ if (date == null || !time) {
7448
+ return date;
7449
+ }
7450
+ time = parseDate(time, 'HH:mm:ss');
7451
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
7452
+ };
7453
+
7454
+ const clearTime = function(date) {
7455
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
7456
+ };
7457
+
7458
+ const clearMilliseconds = function(date) {
7459
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
7460
+ };
7461
+
7462
+ const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
7463
+ // TODO: refactory a more elegant solution
7464
+ if (ranges.length === 0) return date;
7465
+ const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
7466
+ const ndate = normalizeDate(date);
7467
+ const nranges = ranges.map(range => range.map(normalizeDate));
7468
+ if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
7469
+
7470
+ let minDate = nranges[0][0];
7471
+ let maxDate = nranges[0][0];
7472
+
7473
+ nranges.forEach(nrange => {
7474
+ minDate = new Date(Math.min(nrange[0], minDate));
7475
+ maxDate = new Date(Math.max(nrange[1], minDate));
7476
+ });
7477
+
7478
+ const ret = ndate < minDate ? minDate : maxDate;
7479
+ // preserve Year/Month/Date
7480
+ return modifyDate(
7481
+ ret,
7482
+ date.getFullYear(),
7483
+ date.getMonth(),
7484
+ date.getDate()
7485
+ );
7486
+ };
7487
+
7488
+ const timeWithinRange = function(date, selectableRange, format) {
7489
+ const limitedDate = limitTimeRange(date, selectableRange, format);
7490
+ return limitedDate.getTime() === date.getTime();
7491
+ };
7492
+
7493
+ const changeYearMonthAndClampDate = function(date, year, month) {
7494
+ // clamp date to the number of days in `year`, `month`
7495
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
7496
+ const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
7497
+ return modifyDate(date, year, month, monthDate);
7498
+ };
7499
+
7500
+ const prevMonth = function(date) {
7501
+ const year = date.getFullYear();
7502
+ const month = date.getMonth();
7503
+ return month === 0
7504
+ ? changeYearMonthAndClampDate(date, year - 1, 11)
7505
+ : changeYearMonthAndClampDate(date, year, month - 1);
7506
+ };
7507
+
7508
+ const nextMonth = function(date) {
7509
+ const year = date.getFullYear();
7510
+ const month = date.getMonth();
7511
+ return month === 11
7512
+ ? changeYearMonthAndClampDate(date, year + 1, 0)
7513
+ : changeYearMonthAndClampDate(date, year, month + 1);
7514
+ };
7515
+
7516
+ const prevYear = function(date, amount = 1) {
7517
+ const year = date.getFullYear();
7518
+ const month = date.getMonth();
7519
+ return changeYearMonthAndClampDate(date, year - amount, month);
7520
+ };
7521
+
7522
+ const nextYear = function(date, amount = 1) {
7523
+ const year = date.getFullYear();
7524
+ const month = date.getMonth();
7525
+ return changeYearMonthAndClampDate(date, year + amount, month);
7526
+ };
7527
+
7528
+ const extractDateFormat = function(format) {
7529
+ return format
7530
+ .replace(/\W?m{1,2}|\W?ZZ/g, '')
7531
+ .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
7532
+ .trim();
7533
+ };
7534
+
7535
+ const extractTimeFormat = function(format) {
7536
+ return format
7537
+ .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
7538
+ .trim();
7539
+ };
7540
+
7541
+ const validateRangeInOneMonth = function(start, end) {
7542
+ return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
7543
+ };
7544
+
7460
7545
  /**
7461
7546
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
7462
7547
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
7463
7548
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
7464
7549
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
7465
7550
  * @returns {number} 工作日数量
7466
- */
7467
- var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
7468
- var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
7469
-
7470
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
7471
- throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
7472
- }
7473
-
7474
- var startDateObj = new Date(start_date);
7475
- var endDateObj = new Date(end_date);
7476
-
7477
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
7478
- throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
7479
- }
7480
-
7481
- if (startDateObj > endDateObj) {
7482
- throw new Error('Start date should be earlier than or equal to end date.');
7483
- }
7484
-
7485
- var workdays = 0;
7486
-
7487
- // Iterate through each day in the date range
7488
-
7489
- var _loop = function _loop(currentDate) {
7490
- // Check if the current day is a weekend (Saturday or Sunday)
7491
- var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
7492
-
7493
- // Check if the current day is a holiday
7494
- var isHoliday = holidays.some(function (holiday) {
7495
- var holidayDate = new Date(holiday);
7496
- return currentDate.toDateString() === holidayDate.toDateString();
7497
- });
7498
-
7499
- // If it's a workday (not a weekend or holiday), increment the workdays count
7500
- if (!isWeekend && !isHoliday) {
7501
- workdays++;
7502
- }
7503
- };
7504
-
7505
- for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
7506
- _loop(currentDate);
7507
- }
7508
-
7509
- return workdays;
7510
- };
7511
-
7551
+ */
7552
+ const calculateNetworkDays = function (start_date, end_date, holidays = []) {
7553
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
7554
+ throw new Error(
7555
+ "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
7556
+ );
7557
+ }
7558
+
7559
+ const startDateObj = new Date(start_date);
7560
+ const endDateObj = new Date(end_date);
7561
+
7562
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
7563
+ throw new Error(
7564
+ "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
7565
+ );
7566
+ }
7567
+
7568
+ if (startDateObj > endDateObj) {
7569
+ throw new Error('Start date should be earlier than or equal to end date.');
7570
+ }
7571
+
7572
+ let workdays = 0;
7573
+
7574
+ // Iterate through each day in the date range
7575
+ for (
7576
+ let currentDate = new Date(startDateObj);
7577
+ currentDate <= endDateObj;
7578
+ currentDate.setDate(currentDate.getDate() + 1)
7579
+ ) {
7580
+ // Check if the current day is a weekend (Saturday or Sunday)
7581
+ const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
7582
+
7583
+ // Check if the current day is a holiday
7584
+ const isHoliday = holidays.some((holiday) => {
7585
+ const holidayDate = new Date(holiday);
7586
+ return currentDate.toDateString() === holidayDate.toDateString();
7587
+ });
7588
+
7589
+ // If it's a workday (not a weekend or holiday), increment the workdays count
7590
+ if (!isWeekend && !isHoliday) {
7591
+ workdays++;
7592
+ }
7593
+ }
7594
+
7595
+ return workdays;
7596
+ };
7597
+
7512
7598
  /**
7513
7599
  * 日期加减天数
7514
7600
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
7515
7601
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
7516
7602
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
7517
- */
7518
- var dateAddDays = function dateAddDays(start_date, days) {
7519
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
7520
- 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.");
7521
- }
7522
-
7523
- var startDateObj = new Date(start_date);
7524
- if (isNaN(startDateObj.getTime())) {
7525
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
7526
- }
7527
-
7528
- var resultDateObj = new Date(startDateObj);
7529
- resultDateObj.setDate(resultDateObj.getDate() + days);
7530
-
7531
- var resultYear = resultDateObj.getFullYear();
7532
- var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
7533
- var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
7534
-
7535
- return resultYear + '-' + resultMonth + '-' + resultDay;
7536
- };
7537
-
7603
+ */
7604
+ const dateAddDays = function (start_date, days) {
7605
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
7606
+ throw new Error(
7607
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
7608
+ );
7609
+ }
7610
+
7611
+ const startDateObj = new Date(start_date);
7612
+ if (isNaN(startDateObj.getTime())) {
7613
+ throw new Error(
7614
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
7615
+ );
7616
+ }
7617
+
7618
+ const resultDateObj = new Date(startDateObj);
7619
+ resultDateObj.setDate(resultDateObj.getDate() + days);
7620
+
7621
+ const resultYear = resultDateObj.getFullYear();
7622
+ const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
7623
+ const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
7624
+
7625
+ return `${resultYear}-${resultMonth}-${resultDay}`;
7626
+ };
7627
+
7538
7628
  /**
7539
7629
  * 计算两个日期之间的差值
7540
7630
  * @date 2023年12月14日
@@ -7542,180 +7632,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
7542
7632
  * @param {String} end_date - 结束日期字符串
7543
7633
  * @param {String} unit - 单位:year/month/day
7544
7634
  * @returns {Number} 差值
7545
- */
7546
- var dateDiff = function dateDiff(start_date, end_date) {
7547
- var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
7548
-
7549
- // Assuming date strings are in "YYYY-MM-DD" format
7550
- var startDate = new Date(start_date);
7551
- var endDate = new Date(end_date);
7552
-
7553
- // If the date is invalid, return 0
7554
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
7555
- return 0;
7556
- }
7557
-
7558
- if (unit === 'year') {
7559
- return endDate.getFullYear() - startDate.getFullYear();
7560
- } else if (unit === 'month') {
7561
- return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
7562
- } else {
7563
- // Default to day
7564
- var timeDifference = endDate - startDate;
7565
- // Calculate days (86400000 milliseconds per day)
7566
- return Math.floor(timeDifference / 86400000);
7567
- }
7568
- };
7569
-
7635
+ */
7636
+ const dateDiff = function (start_date, end_date, unit = 'day') {
7637
+ // Assuming date strings are in "YYYY-MM-DD" format
7638
+ var startDate = new Date(start_date);
7639
+ var endDate = new Date(end_date);
7640
+
7641
+ // If the date is invalid, return 0
7642
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
7643
+ return 0;
7644
+ }
7645
+
7646
+ if (unit === 'year') {
7647
+ return endDate.getFullYear() - startDate.getFullYear();
7648
+ } else if (unit === 'month') {
7649
+ return (
7650
+ (endDate.getFullYear() - startDate.getFullYear()) * 12 +
7651
+ (endDate.getMonth() - startDate.getMonth())
7652
+ );
7653
+ } else {
7654
+ // Default to day
7655
+ var timeDifference = endDate - startDate;
7656
+ // Calculate days (86400000 milliseconds per day)
7657
+ return Math.floor(timeDifference / 86400000);
7658
+ }
7659
+ };
7660
+
7570
7661
  /**
7571
7662
  * 获取月份中的日期
7572
7663
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
7573
7664
  * @returns {number} 月份中的日期(1-31)
7574
- */
7575
- var dayOfMonth = function dayOfMonth(date) {
7576
- if (typeof date !== 'string') {
7577
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
7578
- }
7579
-
7580
- var dateObj = new Date(date);
7581
- if (isNaN(dateObj.getTime())) {
7582
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
7583
- }
7584
-
7585
- return dateObj.getDate();
7586
- };
7587
-
7665
+ */
7666
+ const dayOfMonth = function (date) {
7667
+ if (typeof date !== 'string') {
7668
+ throw new Error(
7669
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
7670
+ );
7671
+ }
7672
+
7673
+ const dateObj = new Date(date);
7674
+ if (isNaN(dateObj.getTime())) {
7675
+ throw new Error(
7676
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
7677
+ );
7678
+ }
7679
+
7680
+ return dateObj.getDate();
7681
+ };
7682
+
7588
7683
  /**
7589
7684
  * 获取当前日期
7590
7685
  * @date 2022年5月7日
7591
7686
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
7592
7687
  * @returns {string} 当前日期的格式化字符串
7593
- */
7594
- var getCurrentDate = function getCurrentDate() {
7595
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
7596
-
7597
- return formatDate(new Date(), format);
7598
- };
7599
-
7688
+ */
7689
+ const getCurrentDate = function (format = 'YYYY-MM-DD') {
7690
+ return formatDate(new Date(), format);
7691
+ };
7692
+
7600
7693
  /**
7601
7694
  * 获取当前日期时间
7602
7695
  * @date 2022年5月7日
7603
7696
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
7604
7697
  * @returns {string} 当前日期时间的格式化字符串
7605
- */
7606
- var getCurrentDateTime = function getCurrentDateTime() {
7607
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
7608
-
7609
- return formatDate(new Date(), format);
7610
- };
7611
-
7698
+ */
7699
+ const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
7700
+ return formatDate(new Date(), format);
7701
+ };
7702
+
7612
7703
  /**
7613
7704
  * 获取小时
7614
7705
  * @date 2022年5月7日
7615
7706
  * @param {Date|string} [date] - 日期对象或日期字符串
7616
7707
  * @returns {number} 小时数(0-23)
7617
- */
7618
- var getHour = function getHour(date) {
7619
- if (!date) {
7620
- return new Date().getHours();
7621
- }
7622
- if (typeof date === 'string') {
7623
- date = new Date(date);
7624
- }
7625
- return date.getHours();
7626
- };
7627
-
7708
+ */
7709
+ const getHour = function (date) {
7710
+ if (!date) {
7711
+ return new Date().getHours();
7712
+ }
7713
+ if (typeof date === 'string') {
7714
+ date = new Date(date);
7715
+ }
7716
+ return date.getHours();
7717
+ };
7718
+
7628
7719
  /**
7629
7720
  * 获取分钟
7630
7721
  * @date 2022年5月7日
7631
7722
  * @param {Date|string} [date] - 日期对象或日期字符串
7632
7723
  * @returns {number} 分钟数(0-59)
7633
- */
7634
- var getMinute = function getMinute(date) {
7635
- if (!date) {
7636
- return new Date().getMinutes();
7637
- }
7638
- if (typeof date === 'string') {
7639
- date = new Date(date);
7640
- }
7641
- return date.getMinutes();
7642
- };
7643
-
7724
+ */
7725
+ const getMinute = function (date) {
7726
+ if (!date) {
7727
+ return new Date().getMinutes();
7728
+ }
7729
+ if (typeof date === 'string') {
7730
+ date = new Date(date);
7731
+ }
7732
+ return date.getMinutes();
7733
+ };
7734
+
7644
7735
  /**
7645
7736
  * 获取月份
7646
7737
  * @date 2022年5月7日
7647
7738
  * @param {Date|string} [date] - 日期对象或日期字符串
7648
7739
  * @returns {number} 月份数(1-12)
7649
- */
7650
- var getMonth = function getMonth(date) {
7651
- if (!date) {
7652
- return new Date().getMonth() + 1;
7653
- }
7654
- if (typeof date === 'string') {
7655
- date = new Date(date);
7656
- }
7657
- return date.getMonth() + 1;
7658
- };
7659
-
7740
+ */
7741
+ const getMonth = function (date) {
7742
+ if (!date) {
7743
+ return new Date().getMonth() + 1;
7744
+ }
7745
+ if (typeof date === 'string') {
7746
+ date = new Date(date);
7747
+ }
7748
+ return date.getMonth() + 1;
7749
+ };
7750
+
7660
7751
  /**
7661
7752
  * 获取秒
7662
7753
  * @date 2022年5月7日
7663
7754
  * @param {Date|string} [date] - 日期对象或日期字符串
7664
7755
  * @returns {number} 秒数(0-59)
7665
- */
7666
- var getSecond = function getSecond(date) {
7667
- if (!date) {
7668
- return new Date().getSeconds();
7669
- }
7670
- if (typeof date === 'string') {
7671
- date = new Date(date);
7672
- }
7673
- return date.getSeconds();
7674
- };
7675
-
7756
+ */
7757
+ const getSecond = function (date) {
7758
+ if (!date) {
7759
+ return new Date().getSeconds();
7760
+ }
7761
+ if (typeof date === 'string') {
7762
+ date = new Date(date);
7763
+ }
7764
+ return date.getSeconds();
7765
+ };
7766
+
7676
7767
  /**
7677
7768
  * 获取星期几
7678
7769
  * @date 2022年5月7日
7679
7770
  * @param {Date|string} [date] - 日期对象或日期字符串
7680
7771
  * @returns {number} 星期几(0-6,0表示星期日)
7681
- */
7682
- var getWeekday = function getWeekday(date) {
7683
- if (!date) {
7684
- return new Date().getDay();
7685
- }
7686
- if (typeof date === 'string') {
7687
- date = new Date(date);
7688
- }
7689
- return date.getDay();
7690
- };
7691
-
7772
+ */
7773
+ const getWeekday = function (date) {
7774
+ if (!date) {
7775
+ return new Date().getDay();
7776
+ }
7777
+ if (typeof date === 'string') {
7778
+ date = new Date(date);
7779
+ }
7780
+ return date.getDay();
7781
+ };
7782
+
7783
+
7692
7784
  /**
7693
7785
  * @desc 获取上午/下午/晚上
7694
7786
  * @author huangbo
7695
7787
  * @date 2022年5月7日
7696
7788
  * @param {String} [time] - 时间
7697
- **/
7698
- var timeCycle = function timeCycle(time) {
7699
- var hour = 0;
7700
- if (!time) {
7701
- hour = new Date().getHours();
7702
- } else if (typeof time === 'string') {
7703
- // 从时间字符串中提取小时
7704
- var match = time.match(/^(\d{1,2})/);
7705
- if (match) {
7706
- hour = parseInt(match[1], 10);
7707
- }
7708
- } else if (typeof time === 'number') {
7709
- hour = time;
7710
- }
7711
- // 判断时间段
7712
- if (hour >= 5 && hour < 12) {
7713
- return '上午';
7714
- } else if (hour >= 12 && hour < 18) {
7715
- return '下午';
7716
- } else {
7717
- return '晚上';
7718
- }
7789
+ **/
7790
+ const timeCycle = function (time) {
7791
+ let hour = 0;
7792
+ if (!time) {
7793
+ hour = new Date().getHours();
7794
+ } else if (typeof time === 'string') {
7795
+ // 从时间字符串中提取小时
7796
+ const match = time.match(/^(\d{1,2})/);
7797
+ if (match) {
7798
+ hour = parseInt(match[1], 10);
7799
+ }
7800
+ } else if (typeof time === 'number') {
7801
+ hour = time;
7802
+ }
7803
+ // 判断时间段
7804
+ if (hour >= 5 && hour < 12) {
7805
+ return '上午';
7806
+ } else if (hour >= 12 && hour < 18) {
7807
+ return '下午';
7808
+ } else {
7809
+ return '晚上';
7810
+ }
7719
7811
  };
7720
7812
 
7721
7813
  /***/ }),