eoss 0.1.0-alpha.24 → 0.1.0-alpha.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) 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 +1554 -1437
  83. package/lib/alert.js +2 -2
  84. package/lib/aside.js +2 -2
  85. package/lib/audit-trajectory.js +928 -0
  86. package/lib/autocomplete.js +1506 -1506
  87. package/lib/avatar.js +2 -2
  88. package/lib/backtop.js +2 -2
  89. package/lib/badge.js +2 -2
  90. package/lib/breadcrumb-item.js +4 -4
  91. package/lib/breadcrumb.js +4 -4
  92. package/lib/button-group.js +9 -9
  93. package/lib/button.js +2 -2
  94. package/lib/ca-login.js +1290 -1290
  95. package/lib/calendar.js +999 -999
  96. package/lib/card.js +2 -2
  97. package/lib/carousel-item.js +1275 -1275
  98. package/lib/carousel.js +515 -515
  99. package/lib/cascader-panel.js +1302 -1302
  100. package/lib/cascader.js +1561 -1561
  101. package/lib/checkbox-button.js +2 -2
  102. package/lib/checkbox-group.js +1694 -1610
  103. package/lib/checkbox.js +9 -42
  104. package/lib/col.js +2 -2
  105. package/lib/collapse-item.js +1117 -1054
  106. package/lib/collapse.js +1122 -1054
  107. package/lib/color-picker.js +11 -11
  108. package/lib/config/api.js +80 -1
  109. package/lib/container.js +2 -2
  110. package/lib/cron.js +2 -2
  111. package/lib/data-table.js +1446 -1319
  112. package/lib/date-picker.js +1515 -1515
  113. package/lib/dialog.js +1796 -1794
  114. package/lib/divider.js +2 -2
  115. package/lib/drawer.js +4 -4
  116. package/lib/dropdown-item.js +4 -4
  117. package/lib/dropdown-menu.js +6 -6
  118. package/lib/dropdown.js +1477 -1477
  119. package/lib/email-login.js +1544 -1427
  120. package/lib/empty.js +2 -2
  121. package/lib/eoss.common.js +52567 -41727
  122. package/lib/flip.js +2 -2
  123. package/lib/flow-group.js +1278 -1278
  124. package/lib/flow.js +1716 -1599
  125. package/lib/flows.js +1561 -1444
  126. package/lib/footer.js +2 -2
  127. package/lib/form-item.js +1285 -1285
  128. package/lib/form.js +1144 -1067
  129. package/lib/guide.js +620 -0
  130. package/lib/header.js +2 -2
  131. package/lib/icon.js +1505 -1388
  132. package/lib/icons.js +2 -2
  133. package/lib/image-viewer.js +1376 -1376
  134. package/lib/image.js +73 -73
  135. package/lib/index.js +1 -1
  136. package/lib/infinite-scroll.js +71 -71
  137. package/lib/input-number.js +6 -6
  138. package/lib/input.js +1284 -1284
  139. package/lib/link.js +2 -2
  140. package/lib/loading.js +5 -5
  141. package/lib/login.js +1749 -1619
  142. package/lib/lowcode.js +12381 -5094
  143. package/lib/main.js +4049 -3653
  144. package/lib/marquee.js +1279 -1279
  145. package/lib/menu-item-group.js +2 -2
  146. package/lib/menu-item.js +2 -2
  147. package/lib/menu.js +1796 -1796
  148. package/lib/message-box.js +2993 -2993
  149. package/lib/message.js +1389 -1389
  150. package/lib/notification.js +1487 -1487
  151. package/lib/option-group.js +2 -2
  152. package/lib/option.js +1392 -1392
  153. package/lib/page-header.js +2 -2
  154. package/lib/pagination.js +1301 -1301
  155. package/lib/phone-login.js +1529 -1412
  156. package/lib/popconfirm.js +6 -6
  157. package/lib/popover.js +1425 -1425
  158. package/lib/process-config.js +7674 -0
  159. package/lib/process-module.js +7080 -0
  160. package/lib/process-rule.js +8246 -0
  161. package/lib/progress.js +5 -5
  162. package/lib/qr-code.js +7 -7
  163. package/lib/qrcode-login.js +1609 -1492
  164. package/lib/radio-button.js +10 -21
  165. package/lib/radio-group.js +1714 -1626
  166. package/lib/radio.js +10 -25
  167. package/lib/rate.js +1387 -1387
  168. package/lib/row.js +2 -2
  169. package/lib/scrollbar.js +1374 -1374
  170. package/lib/select.js +2376 -2257
  171. package/lib/selector-panel.js +1706 -1651
  172. package/lib/selector.js +1241 -1134
  173. package/lib/slider.js +2 -2
  174. package/lib/step.js +1119 -1051
  175. package/lib/steps.js +1276 -1276
  176. package/lib/submenu.js +530 -530
  177. package/lib/switch.js +1277 -1277
  178. package/lib/tab-pane.js +2 -2
  179. package/lib/table-column.js +1278 -1278
  180. package/lib/table.js +1953 -1836
  181. package/lib/tabs.js +1283 -1283
  182. package/lib/tag.js +2 -2
  183. package/lib/theme-chalk/audit-trajectory.css +0 -0
  184. package/lib/theme-chalk/base.css +1 -1
  185. package/lib/theme-chalk/button-group.css +1 -1
  186. package/lib/theme-chalk/calendar.css +1 -1
  187. package/lib/theme-chalk/guide.css +1 -0
  188. package/lib/theme-chalk/icon.css +1 -1
  189. package/lib/theme-chalk/icons.css +1 -1
  190. package/lib/theme-chalk/index.css +1 -1
  191. package/lib/theme-chalk/lowcode-view.css +1 -0
  192. package/lib/theme-chalk/lowcode.css +1 -1
  193. package/lib/theme-chalk/main.css +1 -1
  194. package/lib/theme-chalk/pagination.css +1 -1
  195. package/lib/theme-chalk/process-config.css +0 -0
  196. package/lib/theme-chalk/process-module.css +0 -0
  197. package/lib/theme-chalk/process-rule.css +1 -0
  198. package/lib/theme-chalk/select-dropdown.css +1 -1
  199. package/lib/theme-chalk/select.css +1 -1
  200. package/lib/theme-chalk/tree.css +1 -1
  201. package/lib/theme-chalk/update-history.css +0 -0
  202. package/lib/theme-chalk/wujie.css +1 -0
  203. package/lib/time-picker.js +1302 -1302
  204. package/lib/time-select.js +1298 -1298
  205. package/lib/timeline-item.js +2 -2
  206. package/lib/timeline.js +2 -2
  207. package/lib/tips.js +1613 -1496
  208. package/lib/toolbar.js +6 -6
  209. package/lib/tooltip.js +1363 -1363
  210. package/lib/transfer.js +1293 -1293
  211. package/lib/tree-group.js +1505 -1388
  212. package/lib/tree.js +1637 -1520
  213. package/lib/update-history.js +883 -0
  214. package/lib/upload.js +1689 -1572
  215. package/lib/utils/ajax.js +3 -5
  216. package/lib/utils/frame.js +133 -0
  217. package/lib/wujie.js +5037 -0
  218. package/package.json +3 -2
  219. package/packages/audit-trajectory/index.js +5 -0
  220. package/packages/audit-trajectory/src/main.vue +99 -0
  221. package/packages/button/src/button-group.vue +1 -1
  222. package/packages/cascader/src/cascader.vue +1 -1
  223. package/packages/checkbox/src/checkbox.vue +9 -14
  224. package/packages/data-table/src/data-table.vue +13 -4
  225. package/packages/date-picker/src/picker.vue +1 -1
  226. package/packages/dialog/src/dialog.vue +2 -0
  227. package/packages/form/src/form-item-render.vue +14 -6
  228. package/packages/form/src/form.vue +2 -2
  229. package/packages/guide/index.js +8 -0
  230. package/packages/guide/src/directive.js +47 -0
  231. package/packages/guide/src/guide.vue +89 -0
  232. package/packages/guide/src/manager.js +133 -0
  233. package/packages/input/src/input.vue +1 -1
  234. package/packages/login/src/login.vue +47 -46
  235. package/packages/lowcode/src/aside.vue +43 -8
  236. package/packages/lowcode/src/attribute/bind.vue +447 -236
  237. package/packages/lowcode/src/attribute/dependency.vue +474 -267
  238. package/packages/lowcode/src/attribute/function.vue +389 -51
  239. package/packages/lowcode/src/attribute/javascript.vue +311 -0
  240. package/packages/lowcode/src/attribute/property.vue +257 -166
  241. package/packages/lowcode/src/attribute/styles.vue +116 -15
  242. package/packages/lowcode/src/attribute.vue +654 -46
  243. package/packages/lowcode/src/canvas.vue +361 -60
  244. package/packages/lowcode/src/editor.vue +15 -2
  245. package/packages/lowcode/src/iframe.vue +60 -0
  246. package/packages/lowcode/src/lowcode.vue +233 -21
  247. package/packages/lowcode/src/mixins/history.js +132 -0
  248. package/packages/lowcode/src/pages.vue +1 -53
  249. package/packages/lowcode/src/render.vue +381 -56
  250. package/packages/lowcode/src/source.vue +12 -5
  251. package/packages/lowcode/src/toolbar.vue +43 -20
  252. package/packages/lowcode/src/util/source-generator.js +531 -0
  253. package/packages/lowcode/src/{source-parser.js → util/source-parser.js} +86 -32
  254. package/packages/lowcode-view/index.js +5 -0
  255. package/packages/lowcode-view/src/Iframe.vue +55 -0
  256. package/packages/lowcode-view/src/Modulels.vue +239 -0
  257. package/packages/lowcode-view/src/render.vue +337 -0
  258. package/packages/lowcode-view/src/view.vue +763 -0
  259. package/packages/main/src/components/pages.vue +11 -2
  260. package/packages/main/src/event-center.js +160 -0
  261. package/packages/main/src/minxs.js +60 -90
  262. package/packages/process-config/index.js +5 -0
  263. package/packages/process-config/src/FormList.vue +180 -0
  264. package/packages/process-config/src/NodeConfig.vue +212 -0
  265. package/packages/process-config/src/NodeForm.vue +237 -0
  266. package/packages/process-config/src/main.vue +257 -0
  267. package/packages/process-module/index.js +5 -0
  268. package/packages/process-module/src/FormList.vue +177 -0
  269. package/packages/process-module/src/main.vue +233 -0
  270. package/packages/process-rule/index.js +5 -0
  271. package/packages/process-rule/src/FormList.vue +614 -0
  272. package/packages/process-rule/src/companyReportDetail.vue +92 -0
  273. package/packages/process-rule/src/main.vue +749 -0
  274. package/packages/progress/src/progress.vue +1 -1
  275. package/packages/radio/src/radio-button.vue +12 -9
  276. package/packages/radio/src/radio-group.vue +10 -14
  277. package/packages/radio/src/radio.vue +12 -11
  278. package/packages/select/src/option-tree.vue +4 -4
  279. package/packages/select/src/option.vue +2 -2
  280. package/packages/select/src/select.vue +34 -37
  281. package/packages/selector/src/selector.vue +10 -12
  282. package/packages/theme-chalk/src/audit-trajectory.scss +0 -0
  283. package/packages/theme-chalk/src/button-group.scss +7 -0
  284. package/packages/theme-chalk/src/common/var.scss +34 -10
  285. package/packages/theme-chalk/src/guide.scss +93 -0
  286. package/packages/theme-chalk/src/icon.scss +425 -426
  287. package/packages/theme-chalk/src/icons.scss +1 -1
  288. package/packages/theme-chalk/src/index.scss +7 -0
  289. package/packages/theme-chalk/src/lowcode-view.scss +288 -0
  290. package/packages/theme-chalk/src/lowcode.scss +59 -2
  291. package/packages/theme-chalk/src/process-config.scss +0 -0
  292. package/packages/theme-chalk/src/process-module.scss +0 -0
  293. package/packages/theme-chalk/src/process-rule.scss +57 -0
  294. package/packages/theme-chalk/src/select-dropdown.scss +1 -1
  295. package/packages/theme-chalk/src/tree.scss +1 -0
  296. package/packages/theme-chalk/src/update-history.scss +0 -0
  297. package/packages/theme-chalk/src/wujie.scss +5 -0
  298. package/packages/update-history/index.js +5 -0
  299. package/packages/update-history/src/main.vue +54 -0
  300. package/packages/wujie/index.js +10 -0
  301. package/packages/wujie/src/wujie.vue +205 -0
  302. package/src/components/field-render.vue +5 -0
  303. package/src/config/api.js +80 -0
  304. package/src/index.js +23 -2
  305. package/src/utils/ajax.js +2 -2
  306. package/src/utils/frame.js +102 -0
  307. package/packages/lowcode/src/source-generator.js +0 -316
  308. /package/packages/lowcode/src/{json-repair.js → util/json-repair.js} +0 -0
  309. /package/packages/lowcode/src/{monaco-vue-completions.js → util/monaco-vue-completions.js} +0 -0
package/lib/table.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 163);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 174);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -91,32 +91,32 @@ module.exports =
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return noop; });
95
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return hasOwn; });
96
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return toObject; });
97
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return getValueByPath; });
98
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return getPropByPath; });
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return noop; });
95
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return hasOwn; });
96
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return toObject; });
97
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getValueByPath; });
98
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return getPropByPath; });
99
99
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return generateId; });
100
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return valueEquals; });
100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return valueEquals; });
101
101
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return escapeRegexpString; });
102
102
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return arrayFindIndex; });
103
103
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFind; });
104
104
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return coerceTruthyValueToArray; });
105
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isIE; });
106
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return isEdge; });
107
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return isFirefox; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return isIE; });
106
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return isEdge; });
107
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return isFirefox; });
108
108
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return autoprefixer; });
109
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return kebabCase; });
109
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return kebabCase; });
110
110
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return capitalize; });
111
111
  /* unused harmony export looseEqual */
112
112
  /* unused harmony export arrayEquals */
113
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isEqual; });
114
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return rafThrottle; });
113
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isEqual; });
114
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return rafThrottle; });
115
115
  /* unused harmony export objToArray */
116
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return requestAnimationFrame; });
116
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return requestAnimationFrame; });
117
117
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return cancelAnimationFrame; });
118
118
  /* unused harmony export debounce */
119
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return throttle; });
119
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return throttle; });
120
120
  /* unused harmony export guid */
121
121
  /* unused harmony export uid */
122
122
  /* unused harmony export get */
@@ -124,7 +124,7 @@ module.exports =
124
124
  /* unused harmony export cloneDeep */
125
125
  /* unused harmony export grouping */
126
126
  /* unused harmony export pager */
127
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return getWinTop; });
127
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return getWinTop; });
128
128
  /* unused harmony export getFileType */
129
129
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrUnique; });
130
130
  /* unused harmony export average */
@@ -142,60 +142,60 @@ module.exports =
142
142
  /* unused harmony export exportXls */
143
143
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return extend; });
144
144
  /* unused harmony export getObjectType */
145
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return getParams; });
145
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return getParams; });
146
146
  /* unused harmony export getScript */
147
147
  /* unused harmony export getStyle */
148
148
  /* unused harmony export getTypeName */
149
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getTypePrefix; });
149
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return getTypePrefix; });
150
150
  /* unused harmony export getValues */
151
151
  /* unused harmony export getZoom */
152
152
  /* unused harmony export getLength */
153
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return timestampUrl; });
153
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return timestampUrl; });
154
154
  /* unused harmony export hasChars */
155
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return identical; });
156
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return indexOfObj; });
157
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isEmpty; });
158
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return isExist; });
155
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return identical; });
156
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return indexOfObj; });
157
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return isEmpty; });
158
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isExist; });
159
159
  /* unused harmony export isFunction */
160
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return isObjectEqual; });
161
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return joinUrl; });
162
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return getHorizontalMargin; });
163
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return layoutWaterfall; });
160
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isObjectEqual; });
161
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return joinUrl; });
162
+ /* unused harmony export getHorizontalMargin */
163
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return layoutWaterfall; });
164
164
  /* unused harmony export loadJs */
165
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return loading; });
165
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return loading; });
166
166
  /* unused harmony export lowerCase */
167
167
  /* unused harmony export overbrim */
168
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return queryParams; });
168
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return queryParams; });
169
169
  /* unused harmony export receiveMessage */
170
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return renderIcon; });
170
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return renderIcon; });
171
171
  /* unused harmony export replenish */
172
172
  /* unused harmony export rmbToCapital */
173
173
  /* unused harmony export setScale */
174
174
  /* unused harmony export sendMessage */
175
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return setFavicon; });
175
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return setFavicon; });
176
176
  /* unused harmony export sum */
177
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return startWith; });
177
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return startWith; });
178
178
  /* unused harmony export takeLeft */
179
179
  /* unused harmony export takeRight */
180
180
  /* unused harmony export trimWhitespace */
181
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return toFixed; });
181
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return toFixed; });
182
182
  /* unused harmony export toFunction */
183
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return updateTheme; });
183
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return updateTheme; });
184
184
  /* unused harmony export upperType */
185
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return urlJoinParams; });
186
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return uuid; });
187
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return watermark; });
185
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return urlJoinParams; });
186
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return uuid; });
187
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return watermark; });
188
188
  /* unused harmony export winTopOpen */
189
189
  /* unused harmony export confirm */
190
190
  /* unused harmony export success */
191
191
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return error; });
192
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return warning; });
192
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return warning; });
193
193
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
194
194
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
195
195
  /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
196
- /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
197
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2);
198
- /* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
196
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
197
+ /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
198
+ /* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
199
199
  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; };
200
200
 
201
201
  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; };
@@ -205,9 +205,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
205
205
 
206
206
 
207
207
 
208
- var _get = __webpack_require__(20);
209
- var _set = __webpack_require__(21);
210
- var _cloneDeep = __webpack_require__(22);
208
+ var _get = __webpack_require__(19);
209
+ var _set = __webpack_require__(20);
210
+ var _cloneDeep = __webpack_require__(21);
211
211
  var hasOwnProperty = Object.prototype.hasOwnProperty;
212
212
 
213
213
  // 导入date中的formatDate函数
@@ -2172,7 +2172,7 @@ var loadJs = function loadJs(url, callback) {
2172
2172
  var loading = function loading() {
2173
2173
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '请求中...';
2174
2174
 
2175
- var Loading = __webpack_require__(18).default;
2175
+ var Loading = __webpack_require__(17).default;
2176
2176
  return Loading.service({
2177
2177
  text: text,
2178
2178
  spinner: 'es-icon-jiazai',
@@ -3040,1003 +3040,244 @@ var warning = function warning(content, _callback3) {
3040
3040
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3041
3041
 
3042
3042
  "use strict";
3043
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return fecha; });
3044
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return getSettings; });
3045
- /* unused harmony export toDate */
3046
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return isDate; });
3047
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return isDateObject; });
3048
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return formatDate; });
3049
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return parseDate; });
3050
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getDayCountOfMonth; });
3051
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getDayCountOfYear; });
3052
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return getFirstDayOfMonth; });
3053
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return prevDate; });
3054
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return nextDate; });
3055
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return getStartDateOfMonth; });
3056
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return getWeekNumber; });
3057
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return getRangeHours; });
3058
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return getPrevMonthLastDays; });
3059
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return getMonthDays; });
3060
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return getRangeMinutes; });
3061
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return range; });
3062
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return modifyDate; });
3063
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return modifyTime; });
3064
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return modifyWithTimeString; });
3065
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return clearTime; });
3066
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return clearMilliseconds; });
3067
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return limitTimeRange; });
3068
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return timeWithinRange; });
3069
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return changeYearMonthAndClampDate; });
3070
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return prevMonth; });
3071
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return nextMonth; });
3072
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return prevYear; });
3073
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return nextYear; });
3074
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return extractDateFormat; });
3075
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return extractTimeFormat; });
3076
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return validateRangeInOneMonth; });
3077
- /* unused harmony export calculateNetworkDays */
3078
- /* unused harmony export dateAddDays */
3079
- /* unused harmony export dateDiff */
3080
- /* unused harmony export dayOfMonth */
3081
- /* unused harmony export getCurrentDate */
3082
- /* unused harmony export getCurrentDateTime */
3083
- /* unused harmony export getHour */
3084
- /* unused harmony export getMinute */
3085
- /* unused harmony export getMonth */
3086
- /* unused harmony export getSecond */
3087
- /* unused harmony export getWeekday */
3088
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
3089
- /* Modified from https://github.com/taylorhakes/fecha
3090
- *
3091
- * The MIT License (MIT)
3092
- *
3093
- * Copyright (c) 2015 Taylor Hakes
3094
- *
3095
- * Permission is hereby granted, free of charge, to any person obtaining a copy
3096
- * of this software and associated documentation files (the "Software"), to deal
3097
- * in the Software without restriction, including without limitation the rights
3098
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3099
- * copies of the Software, and to permit persons to whom the Software is
3100
- * furnished to do so, subject to the following conditions:
3101
- *
3102
- * The above copyright notice and this permission notice shall be included in all
3103
- * copies or substantial portions of the Software.
3104
- *
3105
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3106
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3107
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3108
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3109
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3110
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3111
- * SOFTWARE.
3112
- */
3113
-
3114
- /*eslint-disable*/
3115
- // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
3116
-
3117
-
3118
- /**
3119
- * Parse or format dates
3120
- * @class fecha
3121
- */
3122
- const fecha = {};
3123
- const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
3124
- const twoDigits = '\\d\\d?';
3125
- const threeDigits = '\\d{3}';
3126
- const fourDigits = '\\d{4}';
3127
- const word = '[^\\s]+';
3128
- const literal = /\[([^]*?)\]/gm;
3129
- const noop = function () {};
3130
-
3131
- function regexEscape(str) {
3132
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
3133
- }
3134
-
3135
- function shorten(arr, sLen) {
3136
- const newArr = [];
3137
- for (let i = 0, len = arr.length; i < len; i++) {
3138
- newArr.push(arr[i].substr(0, sLen));
3139
- }
3140
- return newArr;
3141
- }
3142
-
3143
- function monthUpdate() {
3144
- return function (d, v) {
3145
- const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
3146
- if (~index) {
3147
- d.month = index;
3148
- }
3149
- };
3150
- }
3151
-
3152
- function pad(val, len) {
3153
- val = String(val);
3154
- len = len || 2;
3155
- while (val.length < len) {
3156
- val = '0' + val;
3157
- }
3158
- return val;
3159
- }
3160
-
3161
- // 直接使用中文日期名称常量
3162
- const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
3163
- const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
3164
- const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
3165
- const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
3166
- const amPm = ['上午', '下午'];
3167
- const DoFn = function DoFn(D) {
3168
- return D + '日';
3169
- };
3170
-
3171
- const formatFlags = {
3172
- D: function(dateObj) {
3173
- return dateObj.getDay();
3174
- },
3175
- DD: function(dateObj) {
3176
- return pad(dateObj.getDay());
3177
- },
3178
- Do: function(dateObj) {
3179
- return DoFn(dateObj.getDate());
3180
- },
3181
- d: function(dateObj) {
3182
- return dateObj.getDate();
3183
- },
3184
- dd: function(dateObj) {
3185
- return pad(dateObj.getDate());
3186
- },
3187
- ddd: function(dateObj) {
3188
- return dayNamesShort[dateObj.getDay()];
3189
- },
3190
- dddd: function(dateObj) {
3191
- return dayNames[dateObj.getDay()];
3192
- },
3193
- M: function(dateObj) {
3194
- return dateObj.getMonth() + 1;
3195
- },
3196
- MM: function(dateObj) {
3197
- return pad(dateObj.getMonth() + 1);
3198
- },
3199
- MMM: function(dateObj) {
3200
- return monthNamesShort[dateObj.getMonth()];
3201
- },
3202
- MMMM: function(dateObj) {
3203
- return monthNames[dateObj.getMonth()];
3204
- },
3205
- yy: function(dateObj) {
3206
- return pad(String(dateObj.getFullYear()), 4).substr(2);
3207
- },
3208
- yyyy: function(dateObj) {
3209
- return pad(dateObj.getFullYear(), 4);
3210
- },
3211
- h: function(dateObj) {
3212
- return dateObj.getHours() % 12 || 12;
3213
- },
3214
- hh: function(dateObj) {
3215
- return pad(dateObj.getHours() % 12 || 12);
3216
- },
3217
- H: function(dateObj) {
3218
- return dateObj.getHours();
3219
- },
3220
- HH: function(dateObj) {
3221
- return pad(dateObj.getHours());
3222
- },
3223
- m: function(dateObj) {
3224
- return dateObj.getMinutes();
3225
- },
3226
- mm: function(dateObj) {
3227
- return pad(dateObj.getMinutes());
3228
- },
3229
- s: function(dateObj) {
3230
- return dateObj.getSeconds();
3231
- },
3232
- ss: function(dateObj) {
3233
- return pad(dateObj.getSeconds());
3234
- },
3235
- S: function(dateObj) {
3236
- return Math.round(dateObj.getMilliseconds() / 100);
3237
- },
3238
- SS: function(dateObj) {
3239
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
3240
- },
3241
- SSS: function(dateObj) {
3242
- return pad(dateObj.getMilliseconds(), 3);
3243
- },
3244
- a: function(dateObj) {
3245
- return dateObj.getHours() < 12 ? '上午' : '下午';
3246
- },
3247
- A: function(dateObj) {
3248
- return dateObj.getHours() < 12 ? '上午' : '下午';
3249
- },
3250
- ZZ: function(dateObj) {
3251
- const o = dateObj.getTimezoneOffset();
3252
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
3253
- }
3254
- };
3255
-
3256
- const parseFlags = {
3257
- d: [twoDigits, function (d, v) {
3258
- d.day = v;
3259
- }],
3260
- Do: [twoDigits + word, function (d, v) {
3261
- d.day = parseInt(v, 10);
3262
- }],
3263
- M: [twoDigits, function (d, v) {
3264
- d.month = v - 1;
3265
- }],
3266
- yy: [twoDigits, function (d, v) {
3267
- const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
3268
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
3269
- }],
3270
- h: [twoDigits, function (d, v) {
3271
- d.hour = v;
3272
- }],
3273
- m: [twoDigits, function (d, v) {
3274
- d.minute = v;
3275
- }],
3276
- s: [twoDigits, function (d, v) {
3277
- d.second = v;
3278
- }],
3279
- yyyy: [fourDigits, function (d, v) {
3280
- d.year = v;
3281
- }],
3282
- S: ['\\d', function (d, v) {
3283
- d.millisecond = v * 100;
3284
- }],
3285
- SS: ['\\d{2}', function (d, v) {
3286
- d.millisecond = v * 10;
3287
- }],
3288
- SSS: [threeDigits, function (d, v) {
3289
- d.millisecond = v;
3290
- }],
3291
- D: [twoDigits, noop],
3292
- ddd: [word, noop],
3293
- MMM: [word, monthUpdate('monthNamesShort')],
3294
- MMMM: [word, monthUpdate('monthNames')],
3295
- a: [word, function (d, v) {
3296
- const val = v.toLowerCase();
3297
- if (val === '上午') {
3298
- d.isPm = false;
3299
- } else if (val === '下午') {
3300
- d.isPm = true;
3301
- }
3302
- }],
3303
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
3304
- let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
3305
-
3306
- if (parts) {
3307
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
3308
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
3309
- }
3310
- }]
3311
- };
3312
- parseFlags.dd = parseFlags.d;
3313
- parseFlags.dddd = parseFlags.ddd;
3314
- parseFlags.DD = parseFlags.D;
3315
- parseFlags.mm = parseFlags.m;
3316
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
3317
- parseFlags.MM = parseFlags.M;
3318
- parseFlags.ss = parseFlags.s;
3319
- parseFlags.A = parseFlags.a;
3320
-
3321
-
3322
- // Some common format strings
3323
- fecha.masks = {
3324
- default: 'ddd MMM dd yyyy HH:mm:ss',
3325
- shortDate: 'M/D/yy',
3326
- mediumDate: 'MMM d, yyyy',
3327
- longDate: 'MMMM d, yyyy',
3328
- fullDate: 'dddd, MMMM d, yyyy',
3329
- shortTime: 'HH:mm',
3330
- mediumTime: 'HH:mm:ss',
3331
- longTime: 'HH:mm:ss.SSS'
3332
- };
3333
-
3334
- /***
3335
- * Format a date
3336
- * @method format
3337
- * @param {Date|number} dateObj
3338
- * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
3339
- */
3340
- fecha.format = function (dateObj, mask) {
3341
- if (typeof dateObj === 'number') {
3342
- dateObj = new Date(dateObj);
3343
- }
3344
-
3345
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
3346
- throw new Error('Invalid Date in fecha.format');
3347
- }
3348
-
3349
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
3350
-
3351
- const literals = [];
3352
-
3353
- // Make literals inactive by replacing them with ??
3354
- mask = mask.replace(literal, function($0, $1) {
3355
- literals.push($1);
3356
- return '@@@';
3357
- });
3358
- // Apply formatting rules
3359
- mask = mask.replace(token, function ($0) {
3360
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
3361
- });
3362
- // Inline literal values back into the formatted value
3363
- return mask.replace(/@@@/g, function() {
3364
- return literals.shift();
3365
- });
3366
- };
3367
-
3368
- /**
3369
- * Parse a date string into an object, changes - into /
3370
- * @method parse
3371
- * @param {string} dateStr Date string
3372
- * @param {string} format Date parse format
3373
- * @returns {Date|boolean}
3374
- */
3375
- fecha.parse = function (dateStr, format) {
3376
- if (typeof format !== 'string') {
3377
- throw new Error('Invalid format in fecha.parse');
3378
- }
3379
-
3380
- format = fecha.masks[format] || format;
3381
-
3382
- // Avoid regular expression denial of service, fail early for really long strings
3383
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
3384
- if (dateStr.length > 1000) {
3385
- return null;
3386
- }
3387
-
3388
- const dateInfo = {};
3389
- const parseInfo = [];
3390
- const literals = [];
3391
- format = format.replace(literal, function($0, $1) {
3392
- literals.push($1);
3393
- return '@@@';
3394
- });
3395
- let newFormat = regexEscape(format).replace(token, function ($0) {
3396
- if (parseFlags[$0]) {
3397
- const info = parseFlags[$0];
3398
- parseInfo.push(info[1]);
3399
- return '(' + info[0] + ')';
3400
- }
3401
-
3402
- return $0;
3403
- });
3404
- newFormat = newFormat.replace(/@@@/g, function() {
3405
- return literals.shift();
3406
- });
3407
- const matches = dateStr.match(new RegExp(newFormat, 'i'));
3408
- if (!matches) {
3409
- return null;
3410
- }
3411
-
3412
- for (let i = 1; i < matches.length; i++) {
3413
- parseInfo[i - 1](dateInfo, matches[i]);
3414
- }
3415
-
3416
- const today = new Date();
3417
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
3418
- dateInfo.hour = +dateInfo.hour + 12;
3419
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
3420
- dateInfo.hour = 0;
3421
- }
3422
-
3423
- let date;
3424
- if (dateInfo.timezoneOffset != null) {
3425
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
3426
- date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
3427
- dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
3428
- } else {
3429
- date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
3430
- dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
3431
- }
3432
- return date;
3433
- };
3434
-
3435
- // 导出fecha对象
3436
-
3437
-
3438
- // 以下是从date-util.js合并的函数
3439
- const newArray = function(start, end) {
3440
- let result = [];
3441
- for (let i = start; i <= end; i++) {
3442
- result.push(i);
3443
- }
3444
- return result;
3445
- };
3446
-
3447
- const getSettings = () => {
3448
- return {
3449
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
3450
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
3451
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
3452
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
3453
- amPm: ['上午', '下午']
3454
- };
3455
- };
3456
-
3457
- const toDate = function(date) {
3458
- return isDate(date) ? new Date(date) : null;
3459
- };
3460
-
3461
- const isDate = function(date) {
3462
- if (date === null || date === undefined) return false;
3463
- if (isNaN(new Date(date).getTime())) return false;
3464
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
3465
- return true;
3466
- };
3467
-
3468
- const isDateObject = function(val) {
3469
- return val instanceof Date;
3470
- };
3471
-
3472
- const formatDate = function (date, format = 'yyyy-MM-dd') {
3473
- // 处理多种输入类型
3474
- if (!date) return '';
3475
-
3476
- // 如果是时间戳,转成日期对象
3477
- if (typeof date === 'number') {
3478
- date = new Date(date);
3479
- }
3480
- // 如果是字符串,转成日期对象
3481
- if (typeof date === 'string') {
3482
- date = new Date(date);
3483
- }
3484
-
3485
- // 调用toDate进一步验证和转换
3486
- date = toDate(date);
3487
- if (!date) return '';
3488
-
3489
- // 兼容大写和小写的格式标记
3490
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
3491
- const lowercaseFormat = format
3492
- .replace(/YYYY/g, 'yyyy')
3493
- .replace(/D/g, 'd')
3494
-
3495
- // 使用fecha库进行格式化,支持中文配置
3496
- const str = fecha.format(date, lowercaseFormat, getSettings());
3497
- return str;
3498
- };
3499
-
3500
- const parseDate = function(string, format) {
3501
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
3502
- };
3503
-
3504
- const getDayCountOfMonth = function(year, month) {
3505
- if (month === 3 || month === 5 || month === 8 || month === 10) {
3506
- return 30;
3507
- }
3508
-
3509
- if (month === 1) {
3510
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
3511
- return 29;
3512
- } else {
3513
- return 28;
3514
- }
3515
- }
3516
-
3517
- return 31;
3518
- };
3519
-
3520
- const getDayCountOfYear = function(year) {
3521
- const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
3522
- return isLeapYear ? 366 : 365;
3523
- };
3524
-
3525
- const getFirstDayOfMonth = function(date) {
3526
- const temp = new Date(date.getTime());
3527
- temp.setDate(1);
3528
- return temp.getDay();
3529
- };
3530
-
3531
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
3532
- // {prev, next} Date should work for Daylight Saving Time
3533
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
3534
- const prevDate = function(date, amount = 1) {
3535
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
3536
- };
3537
-
3538
- const nextDate = function(date, amount = 1) {
3539
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
3540
- };
3541
-
3542
- const getStartDateOfMonth = function(year, month) {
3543
- const result = new Date(year, month, 1);
3544
- const day = result.getDay();
3545
-
3546
- if (day === 0) {
3547
- return prevDate(result, 7);
3548
- } else {
3549
- return prevDate(result, day);
3550
- }
3551
- };
3552
-
3553
- const getWeekNumber = function(date) {
3554
- // 支持多种输入类型
3555
- if (!date||!isDate(date)) {
3556
- date = new Date();
3557
- }
3558
- if (typeof date === 'string') {
3559
- date = new Date(date);
3560
- }
3561
-
3562
- // 验证日期有效性
3563
- if (!isDate(date)) return null;
3564
-
3565
- const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
3566
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
3567
- // 将星期日的星期数设为7
3568
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
3569
- // 获取当年的第一天
3570
- const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
3571
- // 计算到最近的星期四的完整周数
3572
- const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
3573
- // 返回周数
3574
- return weekNo;
3575
- };
3576
-
3577
- const getRangeHours = function(ranges) {
3578
- const hours = [];
3579
- let disabledHours = [];
3580
-
3581
- (ranges || []).forEach(range => {
3582
- const value = range.map(date => date.getHours());
3583
-
3584
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
3585
- });
3586
-
3587
- if (disabledHours.length) {
3588
- for (let i = 0; i < 24; i++) {
3589
- hours[i] = disabledHours.indexOf(i) === -1;
3590
- }
3591
- } else {
3592
- for (let i = 0; i < 24; i++) {
3593
- hours[i] = false;
3594
- }
3595
- }
3596
-
3597
- return hours;
3598
- };
3599
-
3600
- const getPrevMonthLastDays = (date, amount) => {
3601
- if (amount <= 0) return [];
3602
- const temp = new Date(date.getTime());
3603
- temp.setDate(0);
3604
- const lastDay = temp.getDate();
3605
- return range(amount).map((_, index) => lastDay - (amount - index - 1));
3606
- };
3607
-
3608
- const getMonthDays = (date) => {
3609
- const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
3610
- const days = temp.getDate();
3611
- return range(days).map((_, index) => index + 1);
3612
- };
3613
-
3614
- function setRangeData(arr, start, end, value) {
3615
- for (let i = start; i < end; i++) {
3616
- arr[i] = value;
3617
- }
3618
- }
3619
-
3620
- const getRangeMinutes = function(ranges, hour) {
3621
- const minutes = new Array(60);
3622
-
3623
- if (ranges.length > 0) {
3624
- ranges.forEach(range => {
3625
- const start = range[0];
3626
- const end = range[1];
3627
- const startHour = start.getHours();
3628
- const startMinute = start.getMinutes();
3629
- const endHour = end.getHours();
3630
- const endMinute = end.getMinutes();
3631
- if (startHour === hour && endHour !== hour) {
3632
- setRangeData(minutes, startMinute, 60, true);
3633
- } else if (startHour === hour && endHour === hour) {
3634
- setRangeData(minutes, startMinute, endMinute + 1, true);
3635
- } else if (startHour !== hour && endHour === hour) {
3636
- setRangeData(minutes, 0, endMinute + 1, true);
3637
- } else if (startHour < hour && endHour > hour) {
3638
- setRangeData(minutes, 0, 60, true);
3639
- }
3640
- });
3641
- } else {
3642
- setRangeData(minutes, 0, 60, true);
3643
- }
3644
- return minutes;
3645
- };
3646
-
3647
- const range = function(n) {
3648
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
3649
- return Array.apply(null, {length: n}).map((_, n) => n);
3650
- };
3651
-
3652
- const modifyDate = function(date, y, m, d) {
3653
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
3654
- };
3655
-
3656
- const modifyTime = function(date, h, m, s) {
3657
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
3658
- };
3659
-
3660
- const modifyWithTimeString = (date, time) => {
3661
- if (date == null || !time) {
3662
- return date;
3663
- }
3664
- time = parseDate(time, 'HH:mm:ss');
3665
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
3666
- };
3667
-
3668
- const clearTime = function(date) {
3669
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
3670
- };
3671
-
3672
- const clearMilliseconds = function(date) {
3673
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
3674
- };
3675
-
3676
- const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
3677
- // TODO: refactory a more elegant solution
3678
- if (ranges.length === 0) return date;
3679
- const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
3680
- const ndate = normalizeDate(date);
3681
- const nranges = ranges.map(range => range.map(normalizeDate));
3682
- if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
3683
-
3684
- let minDate = nranges[0][0];
3685
- let maxDate = nranges[0][0];
3686
-
3687
- nranges.forEach(nrange => {
3688
- minDate = new Date(Math.min(nrange[0], minDate));
3689
- maxDate = new Date(Math.max(nrange[1], minDate));
3690
- });
3691
-
3692
- const ret = ndate < minDate ? minDate : maxDate;
3693
- // preserve Year/Month/Date
3694
- return modifyDate(
3695
- ret,
3696
- date.getFullYear(),
3697
- date.getMonth(),
3698
- date.getDate()
3699
- );
3700
- };
3701
-
3702
- const timeWithinRange = function(date, selectableRange, format) {
3703
- const limitedDate = limitTimeRange(date, selectableRange, format);
3704
- return limitedDate.getTime() === date.getTime();
3705
- };
3706
-
3707
- const changeYearMonthAndClampDate = function(date, year, month) {
3708
- // clamp date to the number of days in `year`, `month`
3709
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
3710
- const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
3711
- return modifyDate(date, year, month, monthDate);
3712
- };
3713
-
3714
- const prevMonth = function(date) {
3715
- const year = date.getFullYear();
3716
- const month = date.getMonth();
3717
- return month === 0
3718
- ? changeYearMonthAndClampDate(date, year - 1, 11)
3719
- : changeYearMonthAndClampDate(date, year, month - 1);
3720
- };
3721
-
3722
- const nextMonth = function(date) {
3723
- const year = date.getFullYear();
3724
- const month = date.getMonth();
3725
- return month === 11
3726
- ? changeYearMonthAndClampDate(date, year + 1, 0)
3727
- : changeYearMonthAndClampDate(date, year, month + 1);
3728
- };
3729
-
3730
- const prevYear = function(date, amount = 1) {
3731
- const year = date.getFullYear();
3732
- const month = date.getMonth();
3733
- return changeYearMonthAndClampDate(date, year - amount, month);
3734
- };
3735
-
3736
- const nextYear = function(date, amount = 1) {
3737
- const year = date.getFullYear();
3738
- const month = date.getMonth();
3739
- return changeYearMonthAndClampDate(date, year + amount, month);
3740
- };
3741
-
3742
- const extractDateFormat = function(format) {
3743
- return format
3744
- .replace(/\W?m{1,2}|\W?ZZ/g, '')
3745
- .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
3746
- .trim();
3747
- };
3748
-
3749
- const extractTimeFormat = function(format) {
3750
- return format
3751
- .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
3752
- .trim();
3753
- };
3754
-
3755
- const validateRangeInOneMonth = function(start, end) {
3756
- return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
3757
- };
3758
-
3759
- /**
3760
- * 计算两个日期之间的工作日数量(不包括周末和节假日)
3761
- * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
3762
- * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
3763
- * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
3764
- * @returns {number} 工作日数量
3765
- */
3766
- const calculateNetworkDays = function (start_date, end_date, holidays = []) {
3767
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
3768
- throw new Error(
3769
- "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
3770
- );
3771
- }
3772
-
3773
- const startDateObj = new Date(start_date);
3774
- const endDateObj = new Date(end_date);
3775
-
3776
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
3777
- throw new Error(
3778
- "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
3779
- );
3780
- }
3781
-
3782
- if (startDateObj > endDateObj) {
3783
- throw new Error('Start date should be earlier than or equal to end date.');
3784
- }
3785
-
3786
- let workdays = 0;
3787
-
3788
- // Iterate through each day in the date range
3789
- for (
3790
- let currentDate = new Date(startDateObj);
3791
- currentDate <= endDateObj;
3792
- currentDate.setDate(currentDate.getDate() + 1)
3793
- ) {
3794
- // Check if the current day is a weekend (Saturday or Sunday)
3795
- const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
3796
-
3797
- // Check if the current day is a holiday
3798
- const isHoliday = holidays.some((holiday) => {
3799
- const holidayDate = new Date(holiday);
3800
- return currentDate.toDateString() === holidayDate.toDateString();
3801
- });
3802
-
3803
- // If it's a workday (not a weekend or holiday), increment the workdays count
3804
- if (!isWeekend && !isHoliday) {
3805
- workdays++;
3806
- }
3807
- }
3808
-
3809
- return workdays;
3810
- };
3811
-
3812
- /**
3813
- * 日期加减天数
3814
- * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
3815
- * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
3816
- * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
3817
- */
3818
- const dateAddDays = function (start_date, days) {
3819
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
3820
- throw new Error(
3821
- "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
3822
- );
3823
- }
3824
-
3825
- const startDateObj = new Date(start_date);
3826
- if (isNaN(startDateObj.getTime())) {
3827
- throw new Error(
3828
- "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
3829
- );
3830
- }
3831
-
3832
- const resultDateObj = new Date(startDateObj);
3833
- resultDateObj.setDate(resultDateObj.getDate() + days);
3834
-
3835
- const resultYear = resultDateObj.getFullYear();
3836
- const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
3837
- const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
3838
-
3839
- return `${resultYear}-${resultMonth}-${resultDay}`;
3840
- };
3841
-
3842
- /**
3843
- * 计算两个日期之间的差值
3844
- * @date 2023年12月14日
3845
- * @param {String} start_date - 起始日期字符串
3846
- * @param {String} end_date - 结束日期字符串
3847
- * @param {String} unit - 单位:year/month/day
3848
- * @returns {Number} 差值
3849
- */
3850
- const dateDiff = function (start_date, end_date, unit = 'day') {
3851
- // Assuming date strings are in "YYYY-MM-DD" format
3852
- var startDate = new Date(start_date);
3853
- var endDate = new Date(end_date);
3854
-
3855
- // If the date is invalid, return 0
3856
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
3857
- return 0;
3858
- }
3859
-
3860
- if (unit === 'year') {
3861
- return endDate.getFullYear() - startDate.getFullYear();
3862
- } else if (unit === 'month') {
3863
- return (
3864
- (endDate.getFullYear() - startDate.getFullYear()) * 12 +
3865
- (endDate.getMonth() - startDate.getMonth())
3866
- );
3867
- } else {
3868
- // Default to day
3869
- var timeDifference = endDate - startDate;
3870
- // Calculate days (86400000 milliseconds per day)
3871
- return Math.floor(timeDifference / 86400000);
3872
- }
3873
- };
3874
-
3875
- /**
3876
- * 获取月份中的日期
3877
- * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
3878
- * @returns {number} 月份中的日期(1-31)
3879
- */
3880
- const dayOfMonth = function (date) {
3881
- if (typeof date !== 'string') {
3882
- throw new Error(
3883
- "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
3884
- );
3885
- }
3886
-
3887
- const dateObj = new Date(date);
3888
- if (isNaN(dateObj.getTime())) {
3889
- throw new Error(
3890
- "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
3891
- );
3892
- }
3893
-
3894
- return dateObj.getDate();
3895
- };
3896
-
3897
- /**
3898
- * 获取当前日期
3899
- * @date 2022年5月7日
3900
- * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
3901
- * @returns {string} 当前日期的格式化字符串
3902
- */
3903
- const getCurrentDate = function (format = 'YYYY-MM-DD') {
3904
- return formatDate(new Date(), format);
3905
- };
3906
-
3907
- /**
3908
- * 获取当前日期时间
3909
- * @date 2022年5月7日
3910
- * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
3911
- * @returns {string} 当前日期时间的格式化字符串
3912
- */
3913
- const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
3914
- return formatDate(new Date(), format);
3915
- };
3916
-
3917
- /**
3918
- * 获取小时
3919
- * @date 2022年5月7日
3920
- * @param {Date|string} [date] - 日期对象或日期字符串
3921
- * @returns {number} 小时数(0-23)
3922
- */
3923
- const getHour = function (date) {
3924
- if (!date) {
3925
- return new Date().getHours();
3926
- }
3927
- if (typeof date === 'string') {
3928
- date = new Date(date);
3929
- }
3930
- return date.getHours();
3931
- };
3932
-
3933
- /**
3934
- * 获取分钟
3935
- * @date 2022年5月7日
3936
- * @param {Date|string} [date] - 日期对象或日期字符串
3937
- * @returns {number} 分钟数(0-59)
3938
- */
3939
- const getMinute = function (date) {
3940
- if (!date) {
3941
- return new Date().getMinutes();
3942
- }
3943
- if (typeof date === 'string') {
3944
- date = new Date(date);
3945
- }
3946
- return date.getMinutes();
3947
- };
3948
-
3949
- /**
3950
- * 获取月份
3951
- * @date 2022年5月7日
3952
- * @param {Date|string} [date] - 日期对象或日期字符串
3953
- * @returns {number} 月份数(1-12)
3954
- */
3955
- const getMonth = function (date) {
3956
- if (!date) {
3957
- return new Date().getMonth() + 1;
3958
- }
3959
- if (typeof date === 'string') {
3960
- date = new Date(date);
3961
- }
3962
- return date.getMonth() + 1;
3963
- };
3964
-
3965
- /**
3966
- * 获取秒
3967
- * @date 2022年5月7日
3968
- * @param {Date|string} [date] - 日期对象或日期字符串
3969
- * @returns {number} 秒数(0-59)
3970
- */
3971
- const getSecond = function (date) {
3972
- if (!date) {
3973
- return new Date().getSeconds();
3974
- }
3975
- if (typeof date === 'string') {
3976
- date = new Date(date);
3977
- }
3978
- return date.getSeconds();
3979
- };
3980
-
3981
- /**
3982
- * 获取星期几
3983
- * @date 2022年5月7日
3984
- * @param {Date|string} [date] - 日期对象或日期字符串
3985
- * @returns {number} 星期几(0-6,0表示星期日)
3986
- */
3987
- const getWeekday = function (date) {
3988
- if (!date) {
3989
- return new Date().getDay();
3990
- }
3991
- if (typeof date === 'string') {
3992
- date = new Date(date);
3993
- }
3994
- return date.getDay();
3995
- };
3996
-
3997
-
3998
- /**
3999
- * @desc 获取上午/下午/晚上
4000
- * @author huangbo
4001
- * @date 2022年5月7日
4002
- * @param {String} [time] - 时间
4003
- **/
4004
- const timeCycle = function (time) {
4005
- let hour = 0;
4006
- if (!time) {
4007
- hour = new Date().getHours();
4008
- } else if (typeof time === 'string') {
4009
- // 从时间字符串中提取小时
4010
- const match = time.match(/^(\d{1,2})/);
4011
- if (match) {
4012
- hour = parseInt(match[1], 10);
4013
- }
4014
- } else if (typeof time === 'number') {
4015
- hour = time;
4016
- }
4017
- // 判断时间段
4018
- if (hour >= 5 && hour < 12) {
4019
- return '上午';
4020
- } else if (hour >= 12 && hour < 18) {
4021
- return '下午';
4022
- } else {
4023
- return '晚上';
4024
- }
3043
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return setStorage; });
3044
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getStorage; });
3045
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeStorage; });
3046
+ /* unused harmony export setCookie */
3047
+ /* unused harmony export getCookie */
3048
+ 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; };
3049
+
3050
+ /**
3051
+ * setStorage
3052
+ * @desc:设置本地储存数据
3053
+ * @author huangbo
3054
+ * @date 2022年5月7日
3055
+ * @param {String|Object} [key] - 数据的名称或包含type、key、value的对象
3056
+ * @param {String} [value] - 数据的值(当第一个参数为字符串时使用)
3057
+ **/
3058
+ var setStorage = function setStorage(key, value) {
3059
+ // 解析参数,支持两种调用方式:setStorage(key, value) 和 setStorage({type, key, value})
3060
+ var type = void 0,
3061
+ finalKey = void 0,
3062
+ finalValue = void 0;
3063
+
3064
+ if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object' && key !== null) {
3065
+ // 对象调用方式:setStorage({type, key, value})
3066
+ type = key.type;
3067
+ finalKey = key.key;
3068
+ finalValue = key.value;
3069
+ } else {
3070
+ // 字符串调用方式:setStorage(key, value)
3071
+ type = getStorage('storageType');
3072
+ finalKey = key;
3073
+ finalValue = value;
3074
+ }
3075
+
3076
+ // 使用默认存储类型如果未指定
3077
+ type = type || getStorage('storageType');
3078
+
3079
+ // 获取存储对象
3080
+ var storage = type === 'localStorage' ? localStorage : sessionStorage;
3081
+
3082
+ // 处理不同类型的key
3083
+ if (typeof finalKey === 'string') {
3084
+ // 单个字符串key
3085
+ var storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
3086
+ storage.setItem(finalKey, storedValue);
3087
+ if (finalKey === 'token') {
3088
+ setCookie('token', storedValue);
3089
+ }
3090
+ } else if (Array.isArray(finalKey)) {
3091
+ // 数组key,为多个key设置同一个value
3092
+ var _storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
3093
+ for (var i = 0; i < finalKey.length; i++) {
3094
+ storage.setItem(finalKey[i], _storedValue);
3095
+ if (finalKey[i] === 'token') {
3096
+ setCookie('token', _storedValue);
3097
+ }
3098
+ }
3099
+ } else if ((typeof finalKey === 'undefined' ? 'undefined' : _typeof(finalKey)) === 'object' && finalKey !== null) {
3100
+ // 对象key,对象的属性名称作为key,属性值作为value
3101
+ for (var k in finalKey) {
3102
+ if (Object.prototype.hasOwnProperty.call(finalKey, k)) {
3103
+ var _storedValue2 = _typeof(finalKey[k]) === 'object' ? JSON.stringify(finalKey[k]) : finalKey[k];
3104
+ storage.setItem(k, _storedValue2);
3105
+ if (k === 'token') {
3106
+ setCookie('token', _storedValue2);
3107
+ }
3108
+ }
3109
+ }
3110
+ }
4025
3111
  };
4026
3112
 
4027
- /***/ }),
3113
+ /**
3114
+ * getStorage
3115
+ * @desc:获取本地储存数据
3116
+ * @author huangbo
3117
+ * @date 2022年5月7日
3118
+ * @param {String} [key] - 获取的名称
3119
+ **/
3120
+ var getStorage = function getStorage(key) {
3121
+ if (key) {
3122
+ var res = sessionStorage.getItem(key) || localStorage.getItem(key);
3123
+ if (!res && key === 'token') {
3124
+ res = getCookie('token');
3125
+ }
3126
+ if (key === 'host' && !res) {
3127
+ res = '';
3128
+ }
3129
+ return res;
3130
+ }
3131
+ var defaults = {};
3132
+ var token = sessionStorage.getItem('token') || localStorage.getItem('token') || getCookie('token');
3133
+ var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || getCookie('ssId');
4028
3134
 
4029
- /***/ 11:
4030
- /***/ (function(module, exports) {
3135
+ var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || getCookie('deviceUnique');
3136
+ if (token) {
3137
+ defaults.Authorization = token;
3138
+ }
3139
+ if (ssId) {
3140
+ defaults.ssId = ssId;
3141
+ }
3142
+ if (deviceUnique) {
3143
+ defaults.deviceUnique = deviceUnique;
3144
+ }
3145
+ return defaults;
3146
+ };
4031
3147
 
4032
- module.exports = require("eoss/lib/message");
3148
+ /**
3149
+ * removeStorage
3150
+ * @desc:删除本地储存数据
3151
+ * @author huangbo
3152
+ * @date 2022年5月7日
3153
+ * @param {String, Array} [key] - 获取的名称
3154
+ **/
3155
+ var removeStorage = function removeStorage(key) {
3156
+ if (Array.isArray(key)) {
3157
+ for (var i = 0; i < key.length; i++) {
3158
+ sessionStorage.removeItem(key[i]);
3159
+ localStorage.removeItem(key[i]);
3160
+ if (key[i] === 'token') {
3161
+ removeCookie('token');
3162
+ }
3163
+ }
3164
+ } else if (key) {
3165
+ sessionStorage.removeItem(key);
3166
+ localStorage.removeItem(key);
3167
+ if (key === 'token') {
3168
+ removeCookie('token');
3169
+ }
3170
+ } else {
3171
+ sessionStorage.clear();
3172
+ localStorage.clear();
3173
+ removeCookie('token');
3174
+ }
3175
+ };
3176
+
3177
+ /**
3178
+ * setCookie
3179
+ * @desc 设置cookie
3180
+ * @author huangbo
3181
+ * @param {string} [name] cookie名称
3182
+ * @param {string} [value] cookie值
3183
+ * @param {boolean} [isSession] 是否是会话cookie
3184
+ **/
3185
+ var setCookie = function setCookie(name, value) {
3186
+ var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3187
+ var time = arguments[3];
3188
+
3189
+ try {
3190
+ var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
3191
+ ];
3192
+ // 会话/持久Cookie设置
3193
+ if (!isSession) {
3194
+ if (/MSIE|Trident/.test(navigator.userAgent)) {
3195
+ // IE使用expires
3196
+ var date = new Date();
3197
+ date.setTime(date.getTime() + (time || 7 * 24 * 60 * 60 * 1000));
3198
+ cookieParts.push('expires=' + date.toUTCString());
3199
+ } else {
3200
+ // 其他浏览器使用max-age
3201
+ cookieParts.push('max-age=' + (time || 7 * 24 * 60 * 60));
3202
+ }
3203
+ }
3204
+ // 内核兼容处理
3205
+ if (/MSIE|Trident/.test(navigator.userAgent)) {
3206
+ // IE特殊处理:添加P3P协议头
3207
+ cookieParts.push('P3P=CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
3208
+ } else {
3209
+ // 现代浏览器设置
3210
+ cookieParts.push('samesite=lax');
3211
+ if (window.location.protocol === 'https:') {
3212
+ cookieParts.push('secure');
3213
+ }
3214
+ }
3215
+
3216
+ // 设置Cookie
3217
+ document.cookie = cookieParts.join('; ');
3218
+ return true;
3219
+ } catch (e) {
3220
+ console.error('Cookie设置失败:', e);
3221
+ return false;
3222
+ }
3223
+ };
3224
+
3225
+ /**
3226
+ * getCookie
3227
+ * @desc 获取cookie中指定名称的值
3228
+ * @author huangbo
3229
+ * @param {string} [name] cookie名称
3230
+ **/
3231
+ var getCookie = function getCookie(name) {
3232
+ var cookies = document.cookie.split(';');
3233
+ for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
3234
+ var _ref;
3235
+
3236
+ if (_isArray) {
3237
+ if (_i >= _iterator.length) break;
3238
+ _ref = _iterator[_i++];
3239
+ } else {
3240
+ _i = _iterator.next();
3241
+ if (_i.done) break;
3242
+ _ref = _i.value;
3243
+ }
3244
+
3245
+ var cookie = _ref;
3246
+
3247
+ var _cookie$trim$split = cookie.trim().split('='),
3248
+ cookieName = _cookie$trim$split[0],
3249
+ cookieValue = _cookie$trim$split[1];
3250
+
3251
+ if (decodeURIComponent(cookieName) === name) {
3252
+ return decodeURIComponent(cookieValue);
3253
+ }
3254
+ }
3255
+ return null;
3256
+ };
3257
+
3258
+ /**
3259
+ * removeCookie
3260
+ * @desc:删除cookie
3261
+ * @author huangbo
3262
+ * @date 2022年5月7日
3263
+ * @param {String, Array} [key] - 获取的名称
3264
+ **/
3265
+ var removeCookie = function removeCookie(key) {
3266
+ if (Array.isArray(key)) {
3267
+ for (var i = 0; i < key.length; i++) {
3268
+ document.cookie = encodeURIComponent(key[i]) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
3269
+ }
3270
+ } else {
3271
+ document.cookie = encodeURIComponent(key) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
3272
+ }
3273
+ };
4033
3274
 
4034
3275
  /***/ }),
4035
3276
 
4036
- /***/ 118:
3277
+ /***/ 11:
4037
3278
  /***/ (function(module, exports) {
4038
3279
 
4039
- module.exports = require("normalize-wheel");
3280
+ module.exports = require("eoss/lib/message");
4040
3281
 
4041
3282
  /***/ }),
4042
3283
 
@@ -4103,7 +3344,7 @@ var getColor = function getColor($color, $n) {
4103
3344
  var getLightness = function getLightness($v, $i, $isLight) {
4104
3345
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
4105
3346
  $value = $value < 1 ? $value : 1;
4106
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "V"])($value, 2);
3347
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($value, 2);
4107
3348
  };
4108
3349
 
4109
3350
  /**
@@ -4127,7 +3368,7 @@ var getSaturation = function getSaturation($s, $i, $isLight) {
4127
3368
  $saturation = 0.1;
4128
3369
  }
4129
3370
  $saturation = $saturation > 0.06 ? $saturation : 0.06;
4130
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "V"])($saturation, 2);
3371
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($saturation, 2);
4131
3372
  };
4132
3373
 
4133
3374
  /**
@@ -4241,6 +3482,13 @@ var getRgb = function getRgb($color) {
4241
3482
 
4242
3483
  /***/ }),
4243
3484
 
3485
+ /***/ 127:
3486
+ /***/ (function(module, exports) {
3487
+
3488
+ module.exports = require("normalize-wheel");
3489
+
3490
+ /***/ }),
3491
+
4244
3492
  /***/ 13:
4245
3493
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4246
3494
 
@@ -4686,7 +3934,14 @@ module.exports = require("throttle-debounce");
4686
3934
 
4687
3935
  /***/ }),
4688
3936
 
4689
- /***/ 163:
3937
+ /***/ 17:
3938
+ /***/ (function(module, exports) {
3939
+
3940
+ module.exports = require("eoss/lib/loading");
3941
+
3942
+ /***/ }),
3943
+
3944
+ /***/ 174:
4690
3945
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4691
3946
 
4692
3947
  "use strict";
@@ -5274,10 +4529,10 @@ tablevue_type_template_id_da63ddc4_render._withStripped = true
5274
4529
  var external_throttle_debounce_ = __webpack_require__(15);
5275
4530
 
5276
4531
  // EXTERNAL MODULE: ./src/utils/resize-event.js
5277
- var resize_event = __webpack_require__(23);
4532
+ var resize_event = __webpack_require__(25);
5278
4533
 
5279
4534
  // EXTERNAL MODULE: external "normalize-wheel"
5280
- var external_normalize_wheel_ = __webpack_require__(118);
4535
+ var external_normalize_wheel_ = __webpack_require__(127);
5281
4536
  var external_normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(external_normalize_wheel_);
5282
4537
 
5283
4538
  // CONCATENATED MODULE: ./src/directives/mousewheel.js
@@ -5300,7 +4555,7 @@ var mousewheel_mousewheel = function mousewheel(element, callback) {
5300
4555
  }
5301
4556
  });
5302
4557
  // EXTERNAL MODULE: ./src/mixins/migrating.js
5303
- var migrating = __webpack_require__(27);
4558
+ var migrating = __webpack_require__(28);
5304
4559
 
5305
4560
  // EXTERNAL MODULE: external "vue"
5306
4561
  var external_vue_ = __webpack_require__(4);
@@ -5310,7 +4565,7 @@ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
5310
4565
  var merge = __webpack_require__(16);
5311
4566
 
5312
4567
  // EXTERNAL MODULE: ./packages/table/src/util.js
5313
- var util = __webpack_require__(29);
4568
+ var util = __webpack_require__(32);
5314
4569
 
5315
4570
  // CONCATENATED MODULE: ./packages/table/src/store/expand.js
5316
4571
  /**
@@ -7726,7 +6981,7 @@ var table_layout_TableLayout = function () {
7726
6981
 
7727
6982
  /* harmony default export */ var table_layout = (table_layout_TableLayout);
7728
6983
  // EXTERNAL MODULE: ./src/utils/dom.js
7729
- var dom = __webpack_require__(5);
6984
+ var dom = __webpack_require__(6);
7730
6985
 
7731
6986
  // EXTERNAL MODULE: external "eoss/lib/checkbox"
7732
6987
  var checkbox_ = __webpack_require__(39);
@@ -8194,7 +7449,7 @@ var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
8194
7449
  }
8195
7450
  });
8196
7451
  // EXTERNAL MODULE: external "sortablejs"
8197
- var external_sortablejs_ = __webpack_require__(44);
7452
+ var external_sortablejs_ = __webpack_require__(43);
8198
7453
  var external_sortablejs_default = /*#__PURE__*/__webpack_require__.n(external_sortablejs_);
8199
7454
 
8200
7455
  // CONCATENATED MODULE: ./packages/table/src/table-body.js
@@ -9371,7 +8626,7 @@ var vue_popper = __webpack_require__(13);
9371
8626
  var popup = __webpack_require__(26);
9372
8627
 
9373
8628
  // EXTERNAL MODULE: ./src/utils/clickoutside.js
9374
- var clickoutside = __webpack_require__(19);
8629
+ var clickoutside = __webpack_require__(22);
9375
8630
 
9376
8631
  // CONCATENATED MODULE: ./packages/table/src/dropdown.js
9377
8632
  var dropdown_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; };
@@ -9497,7 +8752,7 @@ var scrollbar_ = __webpack_require__(33);
9497
8752
  var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
9498
8753
 
9499
8754
  // EXTERNAL MODULE: external "eoss/lib/input"
9500
- var input_ = __webpack_require__(17);
8755
+ var input_ = __webpack_require__(18);
9501
8756
  var input_default = /*#__PURE__*/__webpack_require__.n(input_);
9502
8757
 
9503
8758
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/filter-panel.vue?vue&type=script&lang=js&
@@ -12999,31 +12254,1035 @@ src_table.install = function (Vue) {
12999
12254
  Vue.component(src_table.name, src_table);
13000
12255
  };
13001
12256
 
13002
- /* harmony default export */ var packages_table = __webpack_exports__["default"] = (src_table);
13003
-
12257
+ /* harmony default export */ var packages_table = __webpack_exports__["default"] = (src_table);
12258
+
12259
+ /***/ }),
12260
+
12261
+ /***/ 18:
12262
+ /***/ (function(module, exports) {
12263
+
12264
+ module.exports = require("eoss/lib/input");
12265
+
12266
+ /***/ }),
12267
+
12268
+ /***/ 19:
12269
+ /***/ (function(module, exports) {
12270
+
12271
+ module.exports = require("lodash/get");
12272
+
12273
+ /***/ }),
12274
+
12275
+ /***/ 2:
12276
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
12277
+
12278
+ "use strict";
12279
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return fecha; });
12280
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return getSettings; });
12281
+ /* unused harmony export toDate */
12282
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return isDate; });
12283
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return isDateObject; });
12284
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return formatDate; });
12285
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return parseDate; });
12286
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getDayCountOfMonth; });
12287
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getDayCountOfYear; });
12288
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return getFirstDayOfMonth; });
12289
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return prevDate; });
12290
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return nextDate; });
12291
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return getStartDateOfMonth; });
12292
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return getWeekNumber; });
12293
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return getRangeHours; });
12294
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return getPrevMonthLastDays; });
12295
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return getMonthDays; });
12296
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return getRangeMinutes; });
12297
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return range; });
12298
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return modifyDate; });
12299
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return modifyTime; });
12300
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return modifyWithTimeString; });
12301
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return clearTime; });
12302
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return clearMilliseconds; });
12303
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return limitTimeRange; });
12304
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return timeWithinRange; });
12305
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return changeYearMonthAndClampDate; });
12306
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return prevMonth; });
12307
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return nextMonth; });
12308
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return prevYear; });
12309
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return nextYear; });
12310
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return extractDateFormat; });
12311
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return extractTimeFormat; });
12312
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return validateRangeInOneMonth; });
12313
+ /* unused harmony export calculateNetworkDays */
12314
+ /* unused harmony export dateAddDays */
12315
+ /* unused harmony export dateDiff */
12316
+ /* unused harmony export dayOfMonth */
12317
+ /* unused harmony export getCurrentDate */
12318
+ /* unused harmony export getCurrentDateTime */
12319
+ /* unused harmony export getHour */
12320
+ /* unused harmony export getMinute */
12321
+ /* unused harmony export getMonth */
12322
+ /* unused harmony export getSecond */
12323
+ /* unused harmony export getWeekday */
12324
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
12325
+ /* Modified from https://github.com/taylorhakes/fecha
12326
+ *
12327
+ * The MIT License (MIT)
12328
+ *
12329
+ * Copyright (c) 2015 Taylor Hakes
12330
+ *
12331
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
12332
+ * of this software and associated documentation files (the "Software"), to deal
12333
+ * in the Software without restriction, including without limitation the rights
12334
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12335
+ * copies of the Software, and to permit persons to whom the Software is
12336
+ * furnished to do so, subject to the following conditions:
12337
+ *
12338
+ * The above copyright notice and this permission notice shall be included in all
12339
+ * copies or substantial portions of the Software.
12340
+ *
12341
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12342
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12343
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
12344
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
12345
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
12346
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
12347
+ * SOFTWARE.
12348
+ */
12349
+
12350
+ /*eslint-disable*/
12351
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
12352
+
12353
+
12354
+ /**
12355
+ * Parse or format dates
12356
+ * @class fecha
12357
+ */
12358
+ const fecha = {};
12359
+ const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
12360
+ const twoDigits = '\\d\\d?';
12361
+ const threeDigits = '\\d{3}';
12362
+ const fourDigits = '\\d{4}';
12363
+ const word = '[^\\s]+';
12364
+ const literal = /\[([^]*?)\]/gm;
12365
+ const noop = function () {};
12366
+
12367
+ function regexEscape(str) {
12368
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
12369
+ }
12370
+
12371
+ function shorten(arr, sLen) {
12372
+ const newArr = [];
12373
+ for (let i = 0, len = arr.length; i < len; i++) {
12374
+ newArr.push(arr[i].substr(0, sLen));
12375
+ }
12376
+ return newArr;
12377
+ }
12378
+
12379
+ function monthUpdate() {
12380
+ return function (d, v) {
12381
+ const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
12382
+ if (~index) {
12383
+ d.month = index;
12384
+ }
12385
+ };
12386
+ }
12387
+
12388
+ function pad(val, len) {
12389
+ val = String(val);
12390
+ len = len || 2;
12391
+ while (val.length < len) {
12392
+ val = '0' + val;
12393
+ }
12394
+ return val;
12395
+ }
12396
+
12397
+ // 直接使用中文日期名称常量
12398
+ const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
12399
+ const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
12400
+ const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
12401
+ const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
12402
+ const amPm = ['上午', '下午'];
12403
+ const DoFn = function DoFn(D) {
12404
+ return D + '日';
12405
+ };
12406
+
12407
+ const formatFlags = {
12408
+ D: function(dateObj) {
12409
+ return dateObj.getDay();
12410
+ },
12411
+ DD: function(dateObj) {
12412
+ return pad(dateObj.getDay());
12413
+ },
12414
+ Do: function(dateObj) {
12415
+ return DoFn(dateObj.getDate());
12416
+ },
12417
+ d: function(dateObj) {
12418
+ return dateObj.getDate();
12419
+ },
12420
+ dd: function(dateObj) {
12421
+ return pad(dateObj.getDate());
12422
+ },
12423
+ ddd: function(dateObj) {
12424
+ return dayNamesShort[dateObj.getDay()];
12425
+ },
12426
+ dddd: function(dateObj) {
12427
+ return dayNames[dateObj.getDay()];
12428
+ },
12429
+ M: function(dateObj) {
12430
+ return dateObj.getMonth() + 1;
12431
+ },
12432
+ MM: function(dateObj) {
12433
+ return pad(dateObj.getMonth() + 1);
12434
+ },
12435
+ MMM: function(dateObj) {
12436
+ return monthNamesShort[dateObj.getMonth()];
12437
+ },
12438
+ MMMM: function(dateObj) {
12439
+ return monthNames[dateObj.getMonth()];
12440
+ },
12441
+ yy: function(dateObj) {
12442
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
12443
+ },
12444
+ yyyy: function(dateObj) {
12445
+ return pad(dateObj.getFullYear(), 4);
12446
+ },
12447
+ h: function(dateObj) {
12448
+ return dateObj.getHours() % 12 || 12;
12449
+ },
12450
+ hh: function(dateObj) {
12451
+ return pad(dateObj.getHours() % 12 || 12);
12452
+ },
12453
+ H: function(dateObj) {
12454
+ return dateObj.getHours();
12455
+ },
12456
+ HH: function(dateObj) {
12457
+ return pad(dateObj.getHours());
12458
+ },
12459
+ m: function(dateObj) {
12460
+ return dateObj.getMinutes();
12461
+ },
12462
+ mm: function(dateObj) {
12463
+ return pad(dateObj.getMinutes());
12464
+ },
12465
+ s: function(dateObj) {
12466
+ return dateObj.getSeconds();
12467
+ },
12468
+ ss: function(dateObj) {
12469
+ return pad(dateObj.getSeconds());
12470
+ },
12471
+ S: function(dateObj) {
12472
+ return Math.round(dateObj.getMilliseconds() / 100);
12473
+ },
12474
+ SS: function(dateObj) {
12475
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
12476
+ },
12477
+ SSS: function(dateObj) {
12478
+ return pad(dateObj.getMilliseconds(), 3);
12479
+ },
12480
+ a: function(dateObj) {
12481
+ return dateObj.getHours() < 12 ? '上午' : '下午';
12482
+ },
12483
+ A: function(dateObj) {
12484
+ return dateObj.getHours() < 12 ? '上午' : '下午';
12485
+ },
12486
+ ZZ: function(dateObj) {
12487
+ const o = dateObj.getTimezoneOffset();
12488
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
12489
+ }
12490
+ };
12491
+
12492
+ const parseFlags = {
12493
+ d: [twoDigits, function (d, v) {
12494
+ d.day = v;
12495
+ }],
12496
+ Do: [twoDigits + word, function (d, v) {
12497
+ d.day = parseInt(v, 10);
12498
+ }],
12499
+ M: [twoDigits, function (d, v) {
12500
+ d.month = v - 1;
12501
+ }],
12502
+ yy: [twoDigits, function (d, v) {
12503
+ const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
12504
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
12505
+ }],
12506
+ h: [twoDigits, function (d, v) {
12507
+ d.hour = v;
12508
+ }],
12509
+ m: [twoDigits, function (d, v) {
12510
+ d.minute = v;
12511
+ }],
12512
+ s: [twoDigits, function (d, v) {
12513
+ d.second = v;
12514
+ }],
12515
+ yyyy: [fourDigits, function (d, v) {
12516
+ d.year = v;
12517
+ }],
12518
+ S: ['\\d', function (d, v) {
12519
+ d.millisecond = v * 100;
12520
+ }],
12521
+ SS: ['\\d{2}', function (d, v) {
12522
+ d.millisecond = v * 10;
12523
+ }],
12524
+ SSS: [threeDigits, function (d, v) {
12525
+ d.millisecond = v;
12526
+ }],
12527
+ D: [twoDigits, noop],
12528
+ ddd: [word, noop],
12529
+ MMM: [word, monthUpdate('monthNamesShort')],
12530
+ MMMM: [word, monthUpdate('monthNames')],
12531
+ a: [word, function (d, v) {
12532
+ const val = v.toLowerCase();
12533
+ if (val === '上午') {
12534
+ d.isPm = false;
12535
+ } else if (val === '下午') {
12536
+ d.isPm = true;
12537
+ }
12538
+ }],
12539
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
12540
+ let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
12541
+
12542
+ if (parts) {
12543
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
12544
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
12545
+ }
12546
+ }]
12547
+ };
12548
+ parseFlags.dd = parseFlags.d;
12549
+ parseFlags.dddd = parseFlags.ddd;
12550
+ parseFlags.DD = parseFlags.D;
12551
+ parseFlags.mm = parseFlags.m;
12552
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
12553
+ parseFlags.MM = parseFlags.M;
12554
+ parseFlags.ss = parseFlags.s;
12555
+ parseFlags.A = parseFlags.a;
12556
+
12557
+
12558
+ // Some common format strings
12559
+ fecha.masks = {
12560
+ default: 'ddd MMM dd yyyy HH:mm:ss',
12561
+ shortDate: 'M/D/yy',
12562
+ mediumDate: 'MMM d, yyyy',
12563
+ longDate: 'MMMM d, yyyy',
12564
+ fullDate: 'dddd, MMMM d, yyyy',
12565
+ shortTime: 'HH:mm',
12566
+ mediumTime: 'HH:mm:ss',
12567
+ longTime: 'HH:mm:ss.SSS'
12568
+ };
12569
+
12570
+ /***
12571
+ * Format a date
12572
+ * @method format
12573
+ * @param {Date|number} dateObj
12574
+ * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
12575
+ */
12576
+ fecha.format = function (dateObj, mask) {
12577
+ if (typeof dateObj === 'number') {
12578
+ dateObj = new Date(dateObj);
12579
+ }
12580
+
12581
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
12582
+ throw new Error('Invalid Date in fecha.format');
12583
+ }
12584
+
12585
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
12586
+
12587
+ const literals = [];
12588
+
12589
+ // Make literals inactive by replacing them with ??
12590
+ mask = mask.replace(literal, function($0, $1) {
12591
+ literals.push($1);
12592
+ return '@@@';
12593
+ });
12594
+ // Apply formatting rules
12595
+ mask = mask.replace(token, function ($0) {
12596
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
12597
+ });
12598
+ // Inline literal values back into the formatted value
12599
+ return mask.replace(/@@@/g, function() {
12600
+ return literals.shift();
12601
+ });
12602
+ };
12603
+
12604
+ /**
12605
+ * Parse a date string into an object, changes - into /
12606
+ * @method parse
12607
+ * @param {string} dateStr Date string
12608
+ * @param {string} format Date parse format
12609
+ * @returns {Date|boolean}
12610
+ */
12611
+ fecha.parse = function (dateStr, format) {
12612
+ if (typeof format !== 'string') {
12613
+ throw new Error('Invalid format in fecha.parse');
12614
+ }
12615
+
12616
+ format = fecha.masks[format] || format;
12617
+
12618
+ // Avoid regular expression denial of service, fail early for really long strings
12619
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
12620
+ if (dateStr.length > 1000) {
12621
+ return null;
12622
+ }
12623
+
12624
+ const dateInfo = {};
12625
+ const parseInfo = [];
12626
+ const literals = [];
12627
+ format = format.replace(literal, function($0, $1) {
12628
+ literals.push($1);
12629
+ return '@@@';
12630
+ });
12631
+ let newFormat = regexEscape(format).replace(token, function ($0) {
12632
+ if (parseFlags[$0]) {
12633
+ const info = parseFlags[$0];
12634
+ parseInfo.push(info[1]);
12635
+ return '(' + info[0] + ')';
12636
+ }
12637
+
12638
+ return $0;
12639
+ });
12640
+ newFormat = newFormat.replace(/@@@/g, function() {
12641
+ return literals.shift();
12642
+ });
12643
+ const matches = dateStr.match(new RegExp(newFormat, 'i'));
12644
+ if (!matches) {
12645
+ return null;
12646
+ }
12647
+
12648
+ for (let i = 1; i < matches.length; i++) {
12649
+ parseInfo[i - 1](dateInfo, matches[i]);
12650
+ }
12651
+
12652
+ const today = new Date();
12653
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
12654
+ dateInfo.hour = +dateInfo.hour + 12;
12655
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
12656
+ dateInfo.hour = 0;
12657
+ }
12658
+
12659
+ let date;
12660
+ if (dateInfo.timezoneOffset != null) {
12661
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
12662
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
12663
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
12664
+ } else {
12665
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
12666
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
12667
+ }
12668
+ return date;
12669
+ };
12670
+
12671
+ // 导出fecha对象
12672
+
12673
+
12674
+ // 以下是从date-util.js合并的函数
12675
+ const newArray = function(start, end) {
12676
+ let result = [];
12677
+ for (let i = start; i <= end; i++) {
12678
+ result.push(i);
12679
+ }
12680
+ return result;
12681
+ };
12682
+
12683
+ const getSettings = () => {
12684
+ return {
12685
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
12686
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
12687
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
12688
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
12689
+ amPm: ['上午', '下午']
12690
+ };
12691
+ };
12692
+
12693
+ const toDate = function(date) {
12694
+ return isDate(date) ? new Date(date) : null;
12695
+ };
12696
+
12697
+ const isDate = function(date) {
12698
+ if (date === null || date === undefined) return false;
12699
+ if (isNaN(new Date(date).getTime())) return false;
12700
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
12701
+ return true;
12702
+ };
12703
+
12704
+ const isDateObject = function(val) {
12705
+ return val instanceof Date;
12706
+ };
12707
+
12708
+ const formatDate = function (date, format = 'yyyy-MM-dd') {
12709
+ // 处理多种输入类型
12710
+ if (!date) return '';
12711
+
12712
+ // 如果是时间戳,转成日期对象
12713
+ if (typeof date === 'number') {
12714
+ date = new Date(date);
12715
+ }
12716
+ // 如果是字符串,转成日期对象
12717
+ if (typeof date === 'string') {
12718
+ date = new Date(date);
12719
+ }
12720
+
12721
+ // 调用toDate进一步验证和转换
12722
+ date = toDate(date);
12723
+ if (!date) return '';
12724
+
12725
+ // 兼容大写和小写的格式标记
12726
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
12727
+ const lowercaseFormat = format
12728
+ .replace(/YYYY/g, 'yyyy')
12729
+ .replace(/D/g, 'd')
12730
+
12731
+ // 使用fecha库进行格式化,支持中文配置
12732
+ const str = fecha.format(date, lowercaseFormat, getSettings());
12733
+ return str;
12734
+ };
12735
+
12736
+ const parseDate = function(string, format) {
12737
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
12738
+ };
12739
+
12740
+ const getDayCountOfMonth = function(year, month) {
12741
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
12742
+ return 30;
12743
+ }
12744
+
12745
+ if (month === 1) {
12746
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
12747
+ return 29;
12748
+ } else {
12749
+ return 28;
12750
+ }
12751
+ }
12752
+
12753
+ return 31;
12754
+ };
12755
+
12756
+ const getDayCountOfYear = function(year) {
12757
+ const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
12758
+ return isLeapYear ? 366 : 365;
12759
+ };
12760
+
12761
+ const getFirstDayOfMonth = function(date) {
12762
+ const temp = new Date(date.getTime());
12763
+ temp.setDate(1);
12764
+ return temp.getDay();
12765
+ };
12766
+
12767
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
12768
+ // {prev, next} Date should work for Daylight Saving Time
12769
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
12770
+ const prevDate = function(date, amount = 1) {
12771
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
12772
+ };
12773
+
12774
+ const nextDate = function(date, amount = 1) {
12775
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
12776
+ };
12777
+
12778
+ const getStartDateOfMonth = function(year, month) {
12779
+ const result = new Date(year, month, 1);
12780
+ const day = result.getDay();
12781
+
12782
+ if (day === 0) {
12783
+ return prevDate(result, 7);
12784
+ } else {
12785
+ return prevDate(result, day);
12786
+ }
12787
+ };
12788
+
12789
+ const getWeekNumber = function(date) {
12790
+ // 支持多种输入类型
12791
+ if (!date||!isDate(date)) {
12792
+ date = new Date();
12793
+ }
12794
+ if (typeof date === 'string') {
12795
+ date = new Date(date);
12796
+ }
12797
+
12798
+ // 验证日期有效性
12799
+ if (!isDate(date)) return null;
12800
+
12801
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
12802
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
12803
+ // 将星期日的星期数设为7
12804
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
12805
+ // 获取当年的第一天
12806
+ const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
12807
+ // 计算到最近的星期四的完整周数
12808
+ const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
12809
+ // 返回周数
12810
+ return weekNo;
12811
+ };
12812
+
12813
+ const getRangeHours = function(ranges) {
12814
+ const hours = [];
12815
+ let disabledHours = [];
12816
+
12817
+ (ranges || []).forEach(range => {
12818
+ const value = range.map(date => date.getHours());
12819
+
12820
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
12821
+ });
12822
+
12823
+ if (disabledHours.length) {
12824
+ for (let i = 0; i < 24; i++) {
12825
+ hours[i] = disabledHours.indexOf(i) === -1;
12826
+ }
12827
+ } else {
12828
+ for (let i = 0; i < 24; i++) {
12829
+ hours[i] = false;
12830
+ }
12831
+ }
12832
+
12833
+ return hours;
12834
+ };
12835
+
12836
+ const getPrevMonthLastDays = (date, amount) => {
12837
+ if (amount <= 0) return [];
12838
+ const temp = new Date(date.getTime());
12839
+ temp.setDate(0);
12840
+ const lastDay = temp.getDate();
12841
+ return range(amount).map((_, index) => lastDay - (amount - index - 1));
12842
+ };
12843
+
12844
+ const getMonthDays = (date) => {
12845
+ const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
12846
+ const days = temp.getDate();
12847
+ return range(days).map((_, index) => index + 1);
12848
+ };
12849
+
12850
+ function setRangeData(arr, start, end, value) {
12851
+ for (let i = start; i < end; i++) {
12852
+ arr[i] = value;
12853
+ }
12854
+ }
12855
+
12856
+ const getRangeMinutes = function(ranges, hour) {
12857
+ const minutes = new Array(60);
12858
+
12859
+ if (ranges.length > 0) {
12860
+ ranges.forEach(range => {
12861
+ const start = range[0];
12862
+ const end = range[1];
12863
+ const startHour = start.getHours();
12864
+ const startMinute = start.getMinutes();
12865
+ const endHour = end.getHours();
12866
+ const endMinute = end.getMinutes();
12867
+ if (startHour === hour && endHour !== hour) {
12868
+ setRangeData(minutes, startMinute, 60, true);
12869
+ } else if (startHour === hour && endHour === hour) {
12870
+ setRangeData(minutes, startMinute, endMinute + 1, true);
12871
+ } else if (startHour !== hour && endHour === hour) {
12872
+ setRangeData(minutes, 0, endMinute + 1, true);
12873
+ } else if (startHour < hour && endHour > hour) {
12874
+ setRangeData(minutes, 0, 60, true);
12875
+ }
12876
+ });
12877
+ } else {
12878
+ setRangeData(minutes, 0, 60, true);
12879
+ }
12880
+ return minutes;
12881
+ };
12882
+
12883
+ const range = function(n) {
12884
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
12885
+ return Array.apply(null, {length: n}).map((_, n) => n);
12886
+ };
12887
+
12888
+ const modifyDate = function(date, y, m, d) {
12889
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
12890
+ };
12891
+
12892
+ const modifyTime = function(date, h, m, s) {
12893
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
12894
+ };
12895
+
12896
+ const modifyWithTimeString = (date, time) => {
12897
+ if (date == null || !time) {
12898
+ return date;
12899
+ }
12900
+ time = parseDate(time, 'HH:mm:ss');
12901
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
12902
+ };
12903
+
12904
+ const clearTime = function(date) {
12905
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
12906
+ };
12907
+
12908
+ const clearMilliseconds = function(date) {
12909
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
12910
+ };
12911
+
12912
+ const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
12913
+ // TODO: refactory a more elegant solution
12914
+ if (ranges.length === 0) return date;
12915
+ const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
12916
+ const ndate = normalizeDate(date);
12917
+ const nranges = ranges.map(range => range.map(normalizeDate));
12918
+ if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
12919
+
12920
+ let minDate = nranges[0][0];
12921
+ let maxDate = nranges[0][0];
12922
+
12923
+ nranges.forEach(nrange => {
12924
+ minDate = new Date(Math.min(nrange[0], minDate));
12925
+ maxDate = new Date(Math.max(nrange[1], minDate));
12926
+ });
12927
+
12928
+ const ret = ndate < minDate ? minDate : maxDate;
12929
+ // preserve Year/Month/Date
12930
+ return modifyDate(
12931
+ ret,
12932
+ date.getFullYear(),
12933
+ date.getMonth(),
12934
+ date.getDate()
12935
+ );
12936
+ };
12937
+
12938
+ const timeWithinRange = function(date, selectableRange, format) {
12939
+ const limitedDate = limitTimeRange(date, selectableRange, format);
12940
+ return limitedDate.getTime() === date.getTime();
12941
+ };
12942
+
12943
+ const changeYearMonthAndClampDate = function(date, year, month) {
12944
+ // clamp date to the number of days in `year`, `month`
12945
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
12946
+ const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
12947
+ return modifyDate(date, year, month, monthDate);
12948
+ };
12949
+
12950
+ const prevMonth = function(date) {
12951
+ const year = date.getFullYear();
12952
+ const month = date.getMonth();
12953
+ return month === 0
12954
+ ? changeYearMonthAndClampDate(date, year - 1, 11)
12955
+ : changeYearMonthAndClampDate(date, year, month - 1);
12956
+ };
12957
+
12958
+ const nextMonth = function(date) {
12959
+ const year = date.getFullYear();
12960
+ const month = date.getMonth();
12961
+ return month === 11
12962
+ ? changeYearMonthAndClampDate(date, year + 1, 0)
12963
+ : changeYearMonthAndClampDate(date, year, month + 1);
12964
+ };
12965
+
12966
+ const prevYear = function(date, amount = 1) {
12967
+ const year = date.getFullYear();
12968
+ const month = date.getMonth();
12969
+ return changeYearMonthAndClampDate(date, year - amount, month);
12970
+ };
12971
+
12972
+ const nextYear = function(date, amount = 1) {
12973
+ const year = date.getFullYear();
12974
+ const month = date.getMonth();
12975
+ return changeYearMonthAndClampDate(date, year + amount, month);
12976
+ };
12977
+
12978
+ const extractDateFormat = function(format) {
12979
+ return format
12980
+ .replace(/\W?m{1,2}|\W?ZZ/g, '')
12981
+ .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
12982
+ .trim();
12983
+ };
12984
+
12985
+ const extractTimeFormat = function(format) {
12986
+ return format
12987
+ .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
12988
+ .trim();
12989
+ };
12990
+
12991
+ const validateRangeInOneMonth = function(start, end) {
12992
+ return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
12993
+ };
12994
+
12995
+ /**
12996
+ * 计算两个日期之间的工作日数量(不包括周末和节假日)
12997
+ * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
12998
+ * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
12999
+ * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
13000
+ * @returns {number} 工作日数量
13001
+ */
13002
+ const calculateNetworkDays = function (start_date, end_date, holidays = []) {
13003
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
13004
+ throw new Error(
13005
+ "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
13006
+ );
13007
+ }
13008
+
13009
+ const startDateObj = new Date(start_date);
13010
+ const endDateObj = new Date(end_date);
13011
+
13012
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
13013
+ throw new Error(
13014
+ "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
13015
+ );
13016
+ }
13017
+
13018
+ if (startDateObj > endDateObj) {
13019
+ throw new Error('Start date should be earlier than or equal to end date.');
13020
+ }
13021
+
13022
+ let workdays = 0;
13023
+
13024
+ // Iterate through each day in the date range
13025
+ for (
13026
+ let currentDate = new Date(startDateObj);
13027
+ currentDate <= endDateObj;
13028
+ currentDate.setDate(currentDate.getDate() + 1)
13029
+ ) {
13030
+ // Check if the current day is a weekend (Saturday or Sunday)
13031
+ const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
13032
+
13033
+ // Check if the current day is a holiday
13034
+ const isHoliday = holidays.some((holiday) => {
13035
+ const holidayDate = new Date(holiday);
13036
+ return currentDate.toDateString() === holidayDate.toDateString();
13037
+ });
13038
+
13039
+ // If it's a workday (not a weekend or holiday), increment the workdays count
13040
+ if (!isWeekend && !isHoliday) {
13041
+ workdays++;
13042
+ }
13043
+ }
13044
+
13045
+ return workdays;
13046
+ };
13047
+
13048
+ /**
13049
+ * 日期加减天数
13050
+ * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
13051
+ * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
13052
+ * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
13053
+ */
13054
+ const dateAddDays = function (start_date, days) {
13055
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
13056
+ throw new Error(
13057
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
13058
+ );
13059
+ }
13060
+
13061
+ const startDateObj = new Date(start_date);
13062
+ if (isNaN(startDateObj.getTime())) {
13063
+ throw new Error(
13064
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
13065
+ );
13066
+ }
13067
+
13068
+ const resultDateObj = new Date(startDateObj);
13069
+ resultDateObj.setDate(resultDateObj.getDate() + days);
13070
+
13071
+ const resultYear = resultDateObj.getFullYear();
13072
+ const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
13073
+ const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
13074
+
13075
+ return `${resultYear}-${resultMonth}-${resultDay}`;
13076
+ };
13077
+
13078
+ /**
13079
+ * 计算两个日期之间的差值
13080
+ * @date 2023年12月14日
13081
+ * @param {String} start_date - 起始日期字符串
13082
+ * @param {String} end_date - 结束日期字符串
13083
+ * @param {String} unit - 单位:year/month/day
13084
+ * @returns {Number} 差值
13085
+ */
13086
+ const dateDiff = function (start_date, end_date, unit = 'day') {
13087
+ // Assuming date strings are in "YYYY-MM-DD" format
13088
+ var startDate = new Date(start_date);
13089
+ var endDate = new Date(end_date);
13090
+
13091
+ // If the date is invalid, return 0
13092
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
13093
+ return 0;
13094
+ }
13095
+
13096
+ if (unit === 'year') {
13097
+ return endDate.getFullYear() - startDate.getFullYear();
13098
+ } else if (unit === 'month') {
13099
+ return (
13100
+ (endDate.getFullYear() - startDate.getFullYear()) * 12 +
13101
+ (endDate.getMonth() - startDate.getMonth())
13102
+ );
13103
+ } else {
13104
+ // Default to day
13105
+ var timeDifference = endDate - startDate;
13106
+ // Calculate days (86400000 milliseconds per day)
13107
+ return Math.floor(timeDifference / 86400000);
13108
+ }
13109
+ };
13110
+
13111
+ /**
13112
+ * 获取月份中的日期
13113
+ * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
13114
+ * @returns {number} 月份中的日期(1-31)
13115
+ */
13116
+ const dayOfMonth = function (date) {
13117
+ if (typeof date !== 'string') {
13118
+ throw new Error(
13119
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
13120
+ );
13121
+ }
13122
+
13123
+ const dateObj = new Date(date);
13124
+ if (isNaN(dateObj.getTime())) {
13125
+ throw new Error(
13126
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
13127
+ );
13128
+ }
13129
+
13130
+ return dateObj.getDate();
13131
+ };
13132
+
13133
+ /**
13134
+ * 获取当前日期
13135
+ * @date 2022年5月7日
13136
+ * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
13137
+ * @returns {string} 当前日期的格式化字符串
13138
+ */
13139
+ const getCurrentDate = function (format = 'YYYY-MM-DD') {
13140
+ return formatDate(new Date(), format);
13141
+ };
13142
+
13143
+ /**
13144
+ * 获取当前日期时间
13145
+ * @date 2022年5月7日
13146
+ * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
13147
+ * @returns {string} 当前日期时间的格式化字符串
13148
+ */
13149
+ const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
13150
+ return formatDate(new Date(), format);
13151
+ };
13152
+
13153
+ /**
13154
+ * 获取小时
13155
+ * @date 2022年5月7日
13156
+ * @param {Date|string} [date] - 日期对象或日期字符串
13157
+ * @returns {number} 小时数(0-23)
13158
+ */
13159
+ const getHour = function (date) {
13160
+ if (!date) {
13161
+ return new Date().getHours();
13162
+ }
13163
+ if (typeof date === 'string') {
13164
+ date = new Date(date);
13165
+ }
13166
+ return date.getHours();
13167
+ };
13168
+
13169
+ /**
13170
+ * 获取分钟
13171
+ * @date 2022年5月7日
13172
+ * @param {Date|string} [date] - 日期对象或日期字符串
13173
+ * @returns {number} 分钟数(0-59)
13174
+ */
13175
+ const getMinute = function (date) {
13176
+ if (!date) {
13177
+ return new Date().getMinutes();
13178
+ }
13179
+ if (typeof date === 'string') {
13180
+ date = new Date(date);
13181
+ }
13182
+ return date.getMinutes();
13183
+ };
13184
+
13185
+ /**
13186
+ * 获取月份
13187
+ * @date 2022年5月7日
13188
+ * @param {Date|string} [date] - 日期对象或日期字符串
13189
+ * @returns {number} 月份数(1-12)
13190
+ */
13191
+ const getMonth = function (date) {
13192
+ if (!date) {
13193
+ return new Date().getMonth() + 1;
13194
+ }
13195
+ if (typeof date === 'string') {
13196
+ date = new Date(date);
13197
+ }
13198
+ return date.getMonth() + 1;
13199
+ };
13200
+
13201
+ /**
13202
+ * 获取秒
13203
+ * @date 2022年5月7日
13204
+ * @param {Date|string} [date] - 日期对象或日期字符串
13205
+ * @returns {number} 秒数(0-59)
13206
+ */
13207
+ const getSecond = function (date) {
13208
+ if (!date) {
13209
+ return new Date().getSeconds();
13210
+ }
13211
+ if (typeof date === 'string') {
13212
+ date = new Date(date);
13213
+ }
13214
+ return date.getSeconds();
13215
+ };
13216
+
13217
+ /**
13218
+ * 获取星期几
13219
+ * @date 2022年5月7日
13220
+ * @param {Date|string} [date] - 日期对象或日期字符串
13221
+ * @returns {number} 星期几(0-6,0表示星期日)
13222
+ */
13223
+ const getWeekday = function (date) {
13224
+ if (!date) {
13225
+ return new Date().getDay();
13226
+ }
13227
+ if (typeof date === 'string') {
13228
+ date = new Date(date);
13229
+ }
13230
+ return date.getDay();
13231
+ };
13232
+
13233
+
13234
+ /**
13235
+ * @desc 获取上午/下午/晚上
13236
+ * @author huangbo
13237
+ * @date 2022年5月7日
13238
+ * @param {String} [time] - 时间
13239
+ **/
13240
+ const timeCycle = function (time) {
13241
+ let hour = 0;
13242
+ if (!time) {
13243
+ hour = new Date().getHours();
13244
+ } else if (typeof time === 'string') {
13245
+ // 从时间字符串中提取小时
13246
+ const match = time.match(/^(\d{1,2})/);
13247
+ if (match) {
13248
+ hour = parseInt(match[1], 10);
13249
+ }
13250
+ } else if (typeof time === 'number') {
13251
+ hour = time;
13252
+ }
13253
+ // 判断时间段
13254
+ if (hour >= 5 && hour < 12) {
13255
+ return '上午';
13256
+ } else if (hour >= 12 && hour < 18) {
13257
+ return '下午';
13258
+ } else {
13259
+ return '晚上';
13260
+ }
13261
+ };
13262
+
13004
13263
  /***/ }),
13005
13264
 
13006
- /***/ 17:
13265
+ /***/ 20:
13007
13266
  /***/ (function(module, exports) {
13008
13267
 
13009
- module.exports = require("eoss/lib/input");
13268
+ module.exports = require("lodash/set");
13010
13269
 
13011
13270
  /***/ }),
13012
13271
 
13013
- /***/ 18:
13272
+ /***/ 21:
13014
13273
  /***/ (function(module, exports) {
13015
13274
 
13016
- module.exports = require("eoss/lib/loading");
13275
+ module.exports = require("lodash/cloneDeep");
13017
13276
 
13018
13277
  /***/ }),
13019
13278
 
13020
- /***/ 19:
13279
+ /***/ 22:
13021
13280
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13022
13281
 
13023
13282
  "use strict";
13024
13283
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
13025
13284
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
13026
- /* harmony import */ var eoss_src_utils_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
13285
+ /* harmony import */ var eoss_src_utils_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
13027
13286
 
13028
13287
 
13029
13288
 
@@ -13138,266 +13397,73 @@ function createDocumentHandler(el, binding, vnode) {
13138
13397
 
13139
13398
  /***/ }),
13140
13399
 
13141
- /***/ 2:
13400
+ /***/ 23:
13142
13401
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13143
13402
 
13144
13403
  "use strict";
13145
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return setStorage; });
13146
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getStorage; });
13147
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeStorage; });
13148
- /* unused harmony export setCookie */
13149
- /* unused harmony export getCookie */
13150
- 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; };
13151
-
13152
- /**
13153
- * setStorage
13154
- * @desc:设置本地储存数据
13155
- * @author huangbo
13156
- * @date 2022年5月7日
13157
- * @param {String|Object} [key] - 数据的名称或包含type、key、value的对象
13158
- * @param {String} [value] - 数据的值(当第一个参数为字符串时使用)
13159
- **/
13160
- var setStorage = function setStorage(key, value) {
13161
- // 解析参数,支持两种调用方式:setStorage(key, value) 和 setStorage({type, key, value})
13162
- var type = void 0,
13163
- finalKey = void 0,
13164
- finalValue = void 0;
13165
-
13166
- if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object' && key !== null) {
13167
- // 对象调用方式:setStorage({type, key, value})
13168
- type = key.type;
13169
- finalKey = key.key;
13170
- finalValue = key.value;
13171
- } else {
13172
- // 字符串调用方式:setStorage(key, value)
13173
- type = getStorage('storageType');
13174
- finalKey = key;
13175
- finalValue = value;
13176
- }
13177
-
13178
- // 使用默认存储类型如果未指定
13179
- type = type || getStorage('storageType');
13180
-
13181
- // 获取存储对象
13182
- var storage = type === 'localStorage' ? localStorage : sessionStorage;
13183
-
13184
- // 处理不同类型的key
13185
- if (typeof finalKey === 'string') {
13186
- // 单个字符串key
13187
- var storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
13188
- storage.setItem(finalKey, storedValue);
13189
- if (finalKey === 'token') {
13190
- setCookie('token', storedValue);
13191
- }
13192
- } else if (Array.isArray(finalKey)) {
13193
- // 数组key,为多个key设置同一个value
13194
- var _storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
13195
- for (var i = 0; i < finalKey.length; i++) {
13196
- storage.setItem(finalKey[i], _storedValue);
13197
- if (finalKey[i] === 'token') {
13198
- setCookie('token', _storedValue);
13199
- }
13200
- }
13201
- } else if ((typeof finalKey === 'undefined' ? 'undefined' : _typeof(finalKey)) === 'object' && finalKey !== null) {
13202
- // 对象key,对象的属性名称作为key,属性值作为value
13203
- for (var k in finalKey) {
13204
- if (Object.prototype.hasOwnProperty.call(finalKey, k)) {
13205
- var _storedValue2 = _typeof(finalKey[k]) === 'object' ? JSON.stringify(finalKey[k]) : finalKey[k];
13206
- storage.setItem(k, _storedValue2);
13207
- if (k === 'token') {
13208
- setCookie('token', _storedValue2);
13209
- }
13210
- }
13211
- }
13212
- }
13213
- };
13214
-
13215
- /**
13216
- * getStorage
13217
- * @desc:获取本地储存数据
13218
- * @author huangbo
13219
- * @date 2022年5月7日
13220
- * @param {String} [key] - 获取的名称
13221
- **/
13222
- var getStorage = function getStorage(key) {
13223
- if (key) {
13224
- var res = sessionStorage.getItem(key) || localStorage.getItem(key);
13225
- if (!res && key === 'token') {
13226
- res = getCookie('token');
13227
- }
13228
- if (key === 'host' && !res) {
13229
- res = '';
13230
- }
13231
- return res;
13232
- }
13233
- var defaults = {};
13234
- var token = sessionStorage.getItem('token') || localStorage.getItem('token') || getCookie('token');
13235
- var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || getCookie('ssId');
13404
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
13405
+ /* unused harmony export doDecrypt */
13406
+ /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
13407
+ var sm2 = __webpack_require__(34).sm2;
13236
13408
 
13237
- var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || getCookie('deviceUnique');
13238
- if (token) {
13239
- defaults.Authorization = token;
13240
- }
13241
- if (ssId) {
13242
- defaults.ssId = ssId;
13243
- }
13244
- if (deviceUnique) {
13245
- defaults.deviceUnique = deviceUnique;
13246
- }
13247
- return defaults;
13248
- };
13249
13409
 
13250
13410
  /**
13251
- * removeStorage
13252
- * @desc:删除本地储存数据
13411
+ * doEncrypt
13412
+ * @desc:sm2加密
13253
13413
  * @author huangbo
13254
13414
  * @date 2022年5月7日
13255
- * @param {String, Array} [key] - 获取的名称
13256
- **/
13257
- var removeStorage = function removeStorage(key) {
13258
- if (Array.isArray(key)) {
13259
- for (var i = 0; i < key.length; i++) {
13260
- sessionStorage.removeItem(key[i]);
13261
- localStorage.removeItem(key[i]);
13262
- if (key[i] === 'token') {
13263
- removeCookie('token');
13264
- }
13265
- }
13266
- } else if (key) {
13267
- sessionStorage.removeItem(key);
13268
- localStorage.removeItem(key);
13269
- if (key === 'token') {
13270
- removeCookie('token');
13271
- }
13272
- } else {
13273
- sessionStorage.clear();
13274
- localStorage.clear();
13275
- removeCookie('token');
13276
- }
13277
- };
13278
-
13279
- /**
13280
- * setCookie
13281
- * @desc 设置cookie
13282
- * @author huangbo
13283
- * @param {string} [name] cookie名称
13284
- * @param {string} [value] cookie值
13285
- * @param {boolean} [isSession] 是否是会话cookie
13415
+ * @param {string} [data] - 被加密的字符串
13416
+ * @param {string} [key] - 公钥
13286
13417
  **/
13287
- var setCookie = function setCookie(name, value) {
13288
- var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
13289
- var time = arguments[3];
13290
-
13291
- try {
13292
- var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
13293
- ];
13294
- // 会话/持久Cookie设置
13295
- if (!isSession) {
13296
- if (/MSIE|Trident/.test(navigator.userAgent)) {
13297
- // IE使用expires
13298
- var date = new Date();
13299
- date.setTime(date.getTime() + (time || 7 * 24 * 60 * 60 * 1000));
13300
- cookieParts.push('expires=' + date.toUTCString());
13301
- } else {
13302
- // 其他浏览器使用max-age
13303
- cookieParts.push('max-age=' + (time || 7 * 24 * 60 * 60));
13304
- }
13305
- }
13306
- // 内核兼容处理
13307
- if (/MSIE|Trident/.test(navigator.userAgent)) {
13308
- // IE特殊处理:添加P3P协议头
13309
- cookieParts.push('P3P=CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
13310
- } else {
13311
- // 现代浏览器设置
13312
- cookieParts.push('samesite=lax');
13313
- if (window.location.protocol === 'https:') {
13314
- cookieParts.push('secure');
13315
- }
13316
- }
13418
+ var doEncrypt = function doEncrypt(_ref) {
13419
+ var data = _ref.data,
13420
+ key = _ref.key,
13421
+ mode = _ref.mode;
13317
13422
 
13318
- // 设置Cookie
13319
- document.cookie = cookieParts.join('; ');
13320
- return true;
13321
- } catch (e) {
13322
- console.error('Cookie设置失败:', e);
13323
- return false;
13423
+ if (!key) {
13424
+ key = Object(_storage__WEBPACK_IMPORTED_MODULE_0__[/* getStorage */ "a"])('secretKey');
13324
13425
  }
13325
- };
13326
-
13327
- /**
13328
- * getCookie
13329
- * @desc 获取cookie中指定名称的值
13330
- * @author huangbo
13331
- * @param {string} [name] cookie名称
13332
- **/
13333
- var getCookie = function getCookie(name) {
13334
- var cookies = document.cookie.split(';');
13335
- for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
13336
- var _ref;
13337
-
13338
- if (_isArray) {
13339
- if (_i >= _iterator.length) break;
13340
- _ref = _iterator[_i++];
13341
- } else {
13342
- _i = _iterator.next();
13343
- if (_i.done) break;
13344
- _ref = _i.value;
13345
- }
13346
-
13347
- var cookie = _ref;
13348
-
13349
- var _cookie$trim$split = cookie.trim().split('='),
13350
- cookieName = _cookie$trim$split[0],
13351
- cookieValue = _cookie$trim$split[1];
13352
-
13353
- if (decodeURIComponent(cookieName) === name) {
13354
- return decodeURIComponent(cookieValue);
13355
- }
13426
+ if (!mode) {
13427
+ mode = 1;
13356
13428
  }
13357
- return null;
13358
- };
13359
-
13360
- /**
13361
- * removeCookie
13362
- * @desc:删除cookie
13363
- * @author huangbo
13364
- * @date 2022年5月7日
13365
- * @param {String, Array} [key] - 获取的名称
13366
- **/
13367
- var removeCookie = function removeCookie(key) {
13368
- if (Array.isArray(key)) {
13369
- for (var i = 0; i < key.length; i++) {
13370
- document.cookie = encodeURIComponent(key[i]) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
13371
- }
13372
- } else {
13373
- document.cookie = encodeURIComponent(key) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
13429
+ if (!new RegExp('^04').test(key)) {
13430
+ key = '04' + key;
13374
13431
  }
13375
- };
13376
-
13377
- /***/ }),
13378
-
13379
- /***/ 20:
13380
- /***/ (function(module, exports) {
13381
-
13382
- module.exports = require("lodash/get");
13383
-
13384
- /***/ }),
13432
+ var result = sm2.doEncrypt(data, key, mode);
13433
+ return result;
13434
+ };
13385
13435
 
13386
- /***/ 21:
13387
- /***/ (function(module, exports) {
13436
+ /**
13437
+ * doDecrypt
13438
+ * @desc:sm2解密
13439
+ * @author huangbo
13440
+ * @date 2022年5月7日
13441
+ * @param {string} [data] - 被解密的加密字符串
13442
+ * @param {string} [key] - 私钥
13443
+ **/
13444
+ var doDecrypt = function doDecrypt(_ref2) {
13445
+ var data = _ref2.data,
13446
+ key = _ref2.key,
13447
+ mode = _ref2.mode;
13388
13448
 
13389
- module.exports = require("lodash/set");
13449
+ var cipherMode = mode ? mode : 1;
13450
+ if (new RegExp('^04').test(key)) {
13451
+ key = key.slice(2);
13452
+ }
13453
+ var result = sm2.doDecrypt(data, key, cipherMode);
13454
+ return result;
13455
+ };
13390
13456
 
13391
13457
  /***/ }),
13392
13458
 
13393
- /***/ 22:
13459
+ /***/ 24:
13394
13460
  /***/ (function(module, exports) {
13395
13461
 
13396
- module.exports = require("lodash/cloneDeep");
13462
+ module.exports = require("fetch-request-source");
13397
13463
 
13398
13464
  /***/ }),
13399
13465
 
13400
- /***/ 23:
13466
+ /***/ 25:
13401
13467
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13402
13468
 
13403
13469
  "use strict";
@@ -13610,72 +13676,6 @@ var removeResizeListener = function removeResizeListener(element, fn) {
13610
13676
 
13611
13677
  /***/ }),
13612
13678
 
13613
- /***/ 24:
13614
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13615
-
13616
- "use strict";
13617
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
13618
- /* unused harmony export doDecrypt */
13619
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
13620
- var sm2 = __webpack_require__(35).sm2;
13621
-
13622
-
13623
- /**
13624
- * doEncrypt
13625
- * @desc:sm2加密
13626
- * @author huangbo
13627
- * @date 2022年5月7日
13628
- * @param {string} [data] - 被加密的字符串
13629
- * @param {string} [key] - 公钥
13630
- **/
13631
- var doEncrypt = function doEncrypt(_ref) {
13632
- var data = _ref.data,
13633
- key = _ref.key,
13634
- mode = _ref.mode;
13635
-
13636
- if (!key) {
13637
- key = Object(_storage__WEBPACK_IMPORTED_MODULE_0__[/* getStorage */ "a"])('secretKey');
13638
- }
13639
- if (!mode) {
13640
- mode = 1;
13641
- }
13642
- if (!new RegExp('^04').test(key)) {
13643
- key = '04' + key;
13644
- }
13645
- var result = sm2.doEncrypt(data, key, mode);
13646
- return result;
13647
- };
13648
-
13649
- /**
13650
- * doDecrypt
13651
- * @desc:sm2解密
13652
- * @author huangbo
13653
- * @date 2022年5月7日
13654
- * @param {string} [data] - 被解密的加密字符串
13655
- * @param {string} [key] - 私钥
13656
- **/
13657
- var doDecrypt = function doDecrypt(_ref2) {
13658
- var data = _ref2.data,
13659
- key = _ref2.key,
13660
- mode = _ref2.mode;
13661
-
13662
- var cipherMode = mode ? mode : 1;
13663
- if (new RegExp('^04').test(key)) {
13664
- key = key.slice(2);
13665
- }
13666
- var result = sm2.doDecrypt(data, key, cipherMode);
13667
- return result;
13668
- };
13669
-
13670
- /***/ }),
13671
-
13672
- /***/ 25:
13673
- /***/ (function(module, exports) {
13674
-
13675
- module.exports = require("fetch-request-source");
13676
-
13677
- /***/ }),
13678
-
13679
13679
  /***/ 26:
13680
13680
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13681
13681
 
@@ -13692,7 +13692,7 @@ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
13692
13692
  var merge = __webpack_require__(16);
13693
13693
 
13694
13694
  // EXTERNAL MODULE: ./src/utils/dom.js
13695
- var utils_dom = __webpack_require__(5);
13695
+ var utils_dom = __webpack_require__(6);
13696
13696
 
13697
13697
  // CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
13698
13698
 
@@ -14109,101 +14109,227 @@ var scrollBarWidth = void 0;
14109
14109
  setTimeout(this.restoreBodyStyle, 200);
14110
14110
  }
14111
14111
 
14112
- this.opened = false;
14113
-
14114
- this.doAfterClose();
14115
- },
14116
- doAfterClose: function doAfterClose() {
14117
- popup_manager.closeModal(this._popupId);
14118
- this._closing = false;
14119
- },
14120
- restoreBodyStyle: function restoreBodyStyle() {
14121
- if (this.modal && this.withoutHiddenClass) {
14122
- document.body.style.paddingRight = this.bodyPaddingRight;
14123
- Object(utils_dom["i" /* removeClass */])(document.body, 'es-popup-parent--hidden');
14112
+ this.opened = false;
14113
+
14114
+ this.doAfterClose();
14115
+ },
14116
+ doAfterClose: function doAfterClose() {
14117
+ popup_manager.closeModal(this._popupId);
14118
+ this._closing = false;
14119
+ },
14120
+ restoreBodyStyle: function restoreBodyStyle() {
14121
+ if (this.modal && this.withoutHiddenClass) {
14122
+ document.body.style.paddingRight = this.bodyPaddingRight;
14123
+ Object(utils_dom["i" /* removeClass */])(document.body, 'es-popup-parent--hidden');
14124
+ }
14125
+ this.withoutHiddenClass = true;
14126
+ }
14127
+ }
14128
+ });
14129
+
14130
+
14131
+
14132
+ /***/ }),
14133
+
14134
+ /***/ 28:
14135
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
14136
+
14137
+ "use strict";
14138
+ /* harmony import */ var eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
14139
+
14140
+ /**
14141
+ * Show migrating guide in browser console.
14142
+ *
14143
+ * Usage:
14144
+ * import Migrating from 'eoss/src/mixins/migrating';
14145
+ *
14146
+ * mixins: [Migrating]
14147
+ *
14148
+ * add getMigratingConfig method for your component.
14149
+ * getMigratingConfig() {
14150
+ * return {
14151
+ * props: {
14152
+ * 'allow-no-selection': 'allow-no-selection is removed.',
14153
+ * 'selection-mode': 'selection-mode is removed.'
14154
+ * },
14155
+ * events: {
14156
+ * selectionchange: 'selectionchange is renamed to selection-change.'
14157
+ * }
14158
+ * };
14159
+ * },
14160
+ */
14161
+ /* harmony default export */ __webpack_exports__["a"] = ({
14162
+ mounted: function mounted() {
14163
+ if (true) return;
14164
+ if (!this.$vnode) return;
14165
+
14166
+ var _getMigratingConfig = this.getMigratingConfig(),
14167
+ _getMigratingConfig$p = _getMigratingConfig.props,
14168
+ props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
14169
+ _getMigratingConfig$e = _getMigratingConfig.events,
14170
+ events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
14171
+
14172
+ var _$vnode = this.$vnode,
14173
+ data = _$vnode.data,
14174
+ componentOptions = _$vnode.componentOptions;
14175
+
14176
+ var definedProps = data.attrs || {};
14177
+ var definedEvents = componentOptions.listeners || {};
14178
+
14179
+ for (var propName in definedProps) {
14180
+ propName = Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "I"])(propName); // compatible with camel case
14181
+ if (props[propName]) {
14182
+ console.warn('[Eoss Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
14183
+ }
14184
+ }
14185
+
14186
+ for (var eventName in definedEvents) {
14187
+ eventName = Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "I"])(eventName); // compatible with camel case
14188
+ if (events[eventName]) {
14189
+ console.warn('[Eoss Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
14190
+ }
14191
+ }
14192
+ },
14193
+
14194
+ methods: {
14195
+ getMigratingConfig: function getMigratingConfig() {
14196
+ return {
14197
+ props: {},
14198
+ events: {}
14199
+ };
14200
+ }
14201
+ }
14202
+ });
14203
+
14204
+ /***/ }),
14205
+
14206
+ /***/ 29:
14207
+ /***/ (function(module, exports) {
14208
+
14209
+ module.exports = require("qs");
14210
+
14211
+ /***/ }),
14212
+
14213
+ /***/ 3:
14214
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
14215
+
14216
+ "use strict";
14217
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
14218
+ /* globals __VUE_SSR_CONTEXT__ */
14219
+
14220
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
14221
+ // This module is a runtime utility for cleaner component module output and will
14222
+ // be included in the final webpack user bundle.
14223
+
14224
+ function normalizeComponent(
14225
+ scriptExports,
14226
+ render,
14227
+ staticRenderFns,
14228
+ functionalTemplate,
14229
+ injectStyles,
14230
+ scopeId,
14231
+ moduleIdentifier /* server only */,
14232
+ shadowMode /* vue-cli only */
14233
+ ) {
14234
+ // Vue.extend constructor export interop
14235
+ var options =
14236
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
14237
+
14238
+ // render functions
14239
+ if (render) {
14240
+ options.render = render
14241
+ options.staticRenderFns = staticRenderFns
14242
+ options._compiled = true
14243
+ }
14244
+
14245
+ // functional template
14246
+ if (functionalTemplate) {
14247
+ options.functional = true
14248
+ }
14249
+
14250
+ // scopedId
14251
+ if (scopeId) {
14252
+ options._scopeId = 'data-v-' + scopeId
14253
+ }
14254
+
14255
+ var hook
14256
+ if (moduleIdentifier) {
14257
+ // server build
14258
+ hook = function (context) {
14259
+ // 2.3 injection
14260
+ context =
14261
+ context || // cached call
14262
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
14263
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
14264
+ // 2.2 with runInNewContext: true
14265
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
14266
+ context = __VUE_SSR_CONTEXT__
14267
+ }
14268
+ // inject component styles
14269
+ if (injectStyles) {
14270
+ injectStyles.call(this, context)
14271
+ }
14272
+ // register component module identifier for async chunk inferrence
14273
+ if (context && context._registeredComponents) {
14274
+ context._registeredComponents.add(moduleIdentifier)
14275
+ }
14276
+ }
14277
+ // used by ssr in case component is cached and beforeCreate
14278
+ // never gets called
14279
+ options._ssrRegister = hook
14280
+ } else if (injectStyles) {
14281
+ hook = shadowMode
14282
+ ? function () {
14283
+ injectStyles.call(
14284
+ this,
14285
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
14286
+ )
14287
+ }
14288
+ : injectStyles
14289
+ }
14290
+
14291
+ if (hook) {
14292
+ if (options.functional) {
14293
+ // for template-only hot-reload because in that case the render fn doesn't
14294
+ // go through the normalizer
14295
+ options._injectStyles = hook
14296
+ // register for functional component in vue file
14297
+ var originalRender = options.render
14298
+ options.render = function renderWithStyleInjection(h, context) {
14299
+ hook.call(context)
14300
+ return originalRender(h, context)
14124
14301
  }
14125
- this.withoutHiddenClass = true;
14302
+ } else {
14303
+ // inject component registration as beforeCreate hook
14304
+ var existing = options.beforeCreate
14305
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
14126
14306
  }
14127
14307
  }
14128
- });
14129
14308
 
14309
+ return {
14310
+ exports: scriptExports,
14311
+ options: options
14312
+ }
14313
+ }
14130
14314
 
14131
14315
 
14132
14316
  /***/ }),
14133
14317
 
14134
- /***/ 27:
14135
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14136
-
14137
- "use strict";
14138
- /* harmony import */ var eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
14139
-
14140
- /**
14141
- * Show migrating guide in browser console.
14142
- *
14143
- * Usage:
14144
- * import Migrating from 'eoss/src/mixins/migrating';
14145
- *
14146
- * mixins: [Migrating]
14147
- *
14148
- * add getMigratingConfig method for your component.
14149
- * getMigratingConfig() {
14150
- * return {
14151
- * props: {
14152
- * 'allow-no-selection': 'allow-no-selection is removed.',
14153
- * 'selection-mode': 'selection-mode is removed.'
14154
- * },
14155
- * events: {
14156
- * selectionchange: 'selectionchange is renamed to selection-change.'
14157
- * }
14158
- * };
14159
- * },
14160
- */
14161
- /* harmony default export */ __webpack_exports__["a"] = ({
14162
- mounted: function mounted() {
14163
- if (true) return;
14164
- if (!this.$vnode) return;
14165
-
14166
- var _getMigratingConfig = this.getMigratingConfig(),
14167
- _getMigratingConfig$p = _getMigratingConfig.props,
14168
- props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
14169
- _getMigratingConfig$e = _getMigratingConfig.events,
14170
- events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
14171
-
14172
- var _$vnode = this.$vnode,
14173
- data = _$vnode.data,
14174
- componentOptions = _$vnode.componentOptions;
14318
+ /***/ 30:
14319
+ /***/ (function(module, exports) {
14175
14320
 
14176
- var definedProps = data.attrs || {};
14177
- var definedEvents = componentOptions.listeners || {};
14321
+ module.exports = require("axios");
14178
14322
 
14179
- for (var propName in definedProps) {
14180
- propName = Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "J"])(propName); // compatible with camel case
14181
- if (props[propName]) {
14182
- console.warn('[Eoss Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
14183
- }
14184
- }
14323
+ /***/ }),
14185
14324
 
14186
- for (var eventName in definedEvents) {
14187
- eventName = Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "J"])(eventName); // compatible with camel case
14188
- if (events[eventName]) {
14189
- console.warn('[Eoss Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
14190
- }
14191
- }
14192
- },
14325
+ /***/ 31:
14326
+ /***/ (function(module, exports) {
14193
14327
 
14194
- methods: {
14195
- getMigratingConfig: function getMigratingConfig() {
14196
- return {
14197
- props: {},
14198
- events: {}
14199
- };
14200
- }
14201
- }
14202
- });
14328
+ module.exports = require("json-bigint");
14203
14329
 
14204
14330
  /***/ }),
14205
14331
 
14206
- /***/ 29:
14332
+ /***/ 32:
14207
14333
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
14208
14334
 
14209
14335
  "use strict";
@@ -14275,7 +14401,7 @@ var orderBy = function orderBy(array, sortKey, reverse, sortMethod, sortBy) {
14275
14401
  }
14276
14402
  return sortBy.map(function (by) {
14277
14403
  if (typeof by === 'string') {
14278
- return Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* getValueByPath */ "w"])(value, by);
14404
+ return Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* getValueByPath */ "v"])(value, by);
14279
14405
  } else {
14280
14406
  return by(value, index, array);
14281
14407
  }
@@ -14284,7 +14410,7 @@ var orderBy = function orderBy(array, sortKey, reverse, sortMethod, sortBy) {
14284
14410
  if (sortKey !== '$key') {
14285
14411
  if (isObject(value) && '$value' in value) value = value.$value;
14286
14412
  }
14287
- return [isObject(value) ? Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* getValueByPath */ "w"])(value, sortKey) : value];
14413
+ return [isObject(value) ? Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* getValueByPath */ "v"])(value, sortKey) : value];
14288
14414
  };
14289
14415
  var compare = function compare(a, b) {
14290
14416
  if (sortMethod) {
@@ -14730,7 +14856,7 @@ function defaultRenderCell(h, _ref2) {
14730
14856
  if (property && row) {
14731
14857
  try {
14732
14858
  // 假设getPropByPath是一个外部函数,需要确保它存在
14733
- var result = typeof eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* getPropByPath */ "u"] === 'function' ? Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* getPropByPath */ "u"])(row, property) : { v: undefined };
14859
+ var result = typeof eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* getPropByPath */ "t"] === 'function' ? Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* getPropByPath */ "t"])(row, property) : { v: undefined };
14734
14860
  value = result && result.v;
14735
14861
  } catch (error) {
14736
14862
  console.error('Error getting property value:', error);
@@ -15242,193 +15368,67 @@ function renderDom(h, _ref5) {
15242
15368
  input: function input(val) {
15243
15369
  data.row[data.column.prop] = val;
15244
15370
  }
15245
- })
15246
- });
15247
- case 'time':
15248
- return h('es-date-picker', {
15249
- class: className,
15250
- props: _extends({
15251
- size: 'medium'
15252
- }, configs, {
15253
- type: 'time',
15254
- value: data.row[data.column.prop]
15255
- }),
15256
- on: _extends({}, events, {
15257
- input: function input(val) {
15258
- data.row[data.column.prop] = val;
15259
- }
15260
- })
15261
- });
15262
- case 'selector':
15263
- return h('es-selector', {
15264
- class: className,
15265
- props: _extends({
15266
- size: 'medium'
15267
- }, configs, {
15268
- value: data.row[data.column.prop]
15269
- }),
15270
- on: _extends({}, events, {
15271
- input: function input(val) {
15272
- data.row[data.column.prop] = val;
15273
- }
15274
- })
15275
- });
15276
- case 'handle':
15277
- // const contents = events.filter((item) => item.rules && typeof item.rules === 'function' ? item.rules(data.row) : true);
15278
- return h('es-button-group', {
15279
- class: className,
15280
- props: _extends({
15281
- data: data.row,
15282
- size: 'mini',
15283
- type: 'text',
15284
- stop: true
15285
- }, configs, {
15286
- contents: events
15287
- })
15288
- });
15289
- case 'button':
15290
- return h('es-button', {
15291
- class: className,
15292
- props: _extends({
15293
- param: data.row,
15294
- size: 'mini',
15295
- stop: true
15296
- }, configs),
15297
- on: {
15298
- click: function click(e) {
15299
- events.click && events.click(data.row[data.column.prop], data, e);
15300
- }
15301
- }
15302
- });
15303
- }
15304
- }
15305
-
15306
- /***/ }),
15307
-
15308
- /***/ 3:
15309
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15310
-
15311
- "use strict";
15312
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
15313
- /* globals __VUE_SSR_CONTEXT__ */
15314
-
15315
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
15316
- // This module is a runtime utility for cleaner component module output and will
15317
- // be included in the final webpack user bundle.
15318
-
15319
- function normalizeComponent(
15320
- scriptExports,
15321
- render,
15322
- staticRenderFns,
15323
- functionalTemplate,
15324
- injectStyles,
15325
- scopeId,
15326
- moduleIdentifier /* server only */,
15327
- shadowMode /* vue-cli only */
15328
- ) {
15329
- // Vue.extend constructor export interop
15330
- var options =
15331
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
15332
-
15333
- // render functions
15334
- if (render) {
15335
- options.render = render
15336
- options.staticRenderFns = staticRenderFns
15337
- options._compiled = true
15338
- }
15339
-
15340
- // functional template
15341
- if (functionalTemplate) {
15342
- options.functional = true
15343
- }
15344
-
15345
- // scopedId
15346
- if (scopeId) {
15347
- options._scopeId = 'data-v-' + scopeId
15348
- }
15349
-
15350
- var hook
15351
- if (moduleIdentifier) {
15352
- // server build
15353
- hook = function (context) {
15354
- // 2.3 injection
15355
- context =
15356
- context || // cached call
15357
- (this.$vnode && this.$vnode.ssrContext) || // stateful
15358
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
15359
- // 2.2 with runInNewContext: true
15360
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
15361
- context = __VUE_SSR_CONTEXT__
15362
- }
15363
- // inject component styles
15364
- if (injectStyles) {
15365
- injectStyles.call(this, context)
15366
- }
15367
- // register component module identifier for async chunk inferrence
15368
- if (context && context._registeredComponents) {
15369
- context._registeredComponents.add(moduleIdentifier)
15370
- }
15371
- }
15372
- // used by ssr in case component is cached and beforeCreate
15373
- // never gets called
15374
- options._ssrRegister = hook
15375
- } else if (injectStyles) {
15376
- hook = shadowMode
15377
- ? function () {
15378
- injectStyles.call(
15379
- this,
15380
- (options.functional ? this.parent : this).$root.$options.shadowRoot
15381
- )
15371
+ })
15372
+ });
15373
+ case 'time':
15374
+ return h('es-date-picker', {
15375
+ class: className,
15376
+ props: _extends({
15377
+ size: 'medium'
15378
+ }, configs, {
15379
+ type: 'time',
15380
+ value: data.row[data.column.prop]
15381
+ }),
15382
+ on: _extends({}, events, {
15383
+ input: function input(val) {
15384
+ data.row[data.column.prop] = val;
15385
+ }
15386
+ })
15387
+ });
15388
+ case 'selector':
15389
+ return h('es-selector', {
15390
+ class: className,
15391
+ props: _extends({
15392
+ size: 'medium'
15393
+ }, configs, {
15394
+ value: data.row[data.column.prop]
15395
+ }),
15396
+ on: _extends({}, events, {
15397
+ input: function input(val) {
15398
+ data.row[data.column.prop] = val;
15399
+ }
15400
+ })
15401
+ });
15402
+ case 'handle':
15403
+ // const contents = events.filter((item) => item.rules && typeof item.rules === 'function' ? item.rules(data.row) : true);
15404
+ return h('es-button-group', {
15405
+ class: className,
15406
+ props: _extends({
15407
+ data: data.row,
15408
+ size: 'mini',
15409
+ type: 'text',
15410
+ stop: true
15411
+ }, configs, {
15412
+ contents: events
15413
+ })
15414
+ });
15415
+ case 'button':
15416
+ return h('es-button', {
15417
+ class: className,
15418
+ props: _extends({
15419
+ param: data.row,
15420
+ size: 'mini',
15421
+ stop: true
15422
+ }, configs),
15423
+ on: {
15424
+ click: function click(e) {
15425
+ events.click && events.click(data.row[data.column.prop], data, e);
15426
+ }
15382
15427
  }
15383
- : injectStyles
15384
- }
15385
-
15386
- if (hook) {
15387
- if (options.functional) {
15388
- // for template-only hot-reload because in that case the render fn doesn't
15389
- // go through the normalizer
15390
- options._injectStyles = hook
15391
- // register for functional component in vue file
15392
- var originalRender = options.render
15393
- options.render = function renderWithStyleInjection(h, context) {
15394
- hook.call(context)
15395
- return originalRender(h, context)
15396
- }
15397
- } else {
15398
- // inject component registration as beforeCreate hook
15399
- var existing = options.beforeCreate
15400
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
15401
- }
15402
- }
15403
-
15404
- return {
15405
- exports: scriptExports,
15406
- options: options
15428
+ });
15407
15429
  }
15408
15430
  }
15409
15431
 
15410
-
15411
- /***/ }),
15412
-
15413
- /***/ 30:
15414
- /***/ (function(module, exports) {
15415
-
15416
- module.exports = require("qs");
15417
-
15418
- /***/ }),
15419
-
15420
- /***/ 31:
15421
- /***/ (function(module, exports) {
15422
-
15423
- module.exports = require("axios");
15424
-
15425
- /***/ }),
15426
-
15427
- /***/ 32:
15428
- /***/ (function(module, exports) {
15429
-
15430
- module.exports = require("json-bigint");
15431
-
15432
15432
  /***/ }),
15433
15433
 
15434
15434
  /***/ 33:
@@ -15438,7 +15438,7 @@ module.exports = require("eoss/lib/scrollbar");
15438
15438
 
15439
15439
  /***/ }),
15440
15440
 
15441
- /***/ 35:
15441
+ /***/ 34:
15442
15442
  /***/ (function(module, exports) {
15443
15443
 
15444
15444
  module.exports = require("sm-crypto");
@@ -15456,7 +15456,7 @@ module.exports = require("eoss/lib/tooltip");
15456
15456
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15457
15457
 
15458
15458
  "use strict";
15459
- /* harmony import */ var eoss_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
15459
+ /* harmony import */ var eoss_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
15460
15460
  /**
15461
15461
  * 滚动条组件 - 处理表格的垂直和水平滚动条
15462
15462
  */
@@ -17255,7 +17255,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
17255
17255
 
17256
17256
  /***/ }),
17257
17257
 
17258
- /***/ 44:
17258
+ /***/ 43:
17259
17259
  /***/ (function(module, exports) {
17260
17260
 
17261
17261
  module.exports = require("sortablejs");
@@ -17265,6 +17265,80 @@ module.exports = require("sortablejs");
17265
17265
  /***/ 5:
17266
17266
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17267
17267
 
17268
+ "use strict";
17269
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
17270
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
17271
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
17272
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
17273
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
17274
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
17275
+ /**
17276
+ * 检查一个值是否为字符串类型
17277
+ * @param {*} obj 要检查的值
17278
+ * @returns {boolean} 如果值为字符串则返回true,否则返回false
17279
+ */
17280
+ function isString(obj) {
17281
+ return Object.prototype.toString.call(obj) === '[object String]';
17282
+ }
17283
+
17284
+ /**
17285
+ * 检查一个值是否为对象类型
17286
+ * @param {*} obj 要检查的值
17287
+ * @returns {boolean} 如果值为对象则返回true,否则返回false
17288
+ */
17289
+ function isObject(obj) {
17290
+ return Object.prototype.toString.call(obj) === '[object Object]';
17291
+ }
17292
+
17293
+ /**
17294
+ * 检查一个节点是否为HTML元素
17295
+ * @param {Node} node 要检查的节点
17296
+ * @returns {boolean} 如果节点为HTML元素则返回true,否则返回false
17297
+ */
17298
+ function isHtmlElement(node) {
17299
+ return node && node.nodeType === Node.ELEMENT_NODE;
17300
+ }
17301
+
17302
+ /**
17303
+ * 检查一个值是否为函数类型
17304
+ * @param {*} functionToCheck 要检查的值
17305
+ * @returns {boolean} 如果值为函数则返回true,否则返回false
17306
+ */
17307
+ function isFunction(functionToCheck) {
17308
+ var getType = {};
17309
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
17310
+ }
17311
+
17312
+ /**
17313
+ * 检查一个值是否为undefined
17314
+ * @param {*} val 要检查的值
17315
+ * @returns {boolean} 如果值为undefined则返回true,否则返回false
17316
+ */
17317
+ function isUndefined(val) {
17318
+ return val === void 0;
17319
+ }
17320
+
17321
+ /**
17322
+ * 检查一个值是否已定义(不是undefined或null)
17323
+ * @param {*} val 要检查的值
17324
+ * @returns {boolean} 如果值已定义则返回true,否则返回false
17325
+ */
17326
+ function isDefined(val) {
17327
+ return val !== undefined && val !== null;
17328
+ }
17329
+
17330
+ /***/ }),
17331
+
17332
+ /***/ 59:
17333
+ /***/ (function(module, exports) {
17334
+
17335
+ module.exports = require("eoss/lib/checkbox-group");
17336
+
17337
+ /***/ }),
17338
+
17339
+ /***/ 6:
17340
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
17341
+
17268
17342
  "use strict";
17269
17343
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
17270
17344
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
@@ -17521,225 +17595,151 @@ function insertAfter(newEl, targetEl) {
17521
17595
 
17522
17596
  /***/ }),
17523
17597
 
17524
- /***/ 59:
17525
- /***/ (function(module, exports) {
17526
-
17527
- module.exports = require("eoss/lib/checkbox-group");
17528
-
17529
- /***/ }),
17530
-
17531
- /***/ 6:
17532
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
17533
-
17534
- "use strict";
17535
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
17536
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
17537
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
17538
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
17539
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
17540
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
17541
- /**
17542
- * 检查一个值是否为字符串类型
17543
- * @param {*} obj 要检查的值
17544
- * @returns {boolean} 如果值为字符串则返回true,否则返回false
17545
- */
17546
- function isString(obj) {
17547
- return Object.prototype.toString.call(obj) === '[object String]';
17548
- }
17549
-
17550
- /**
17551
- * 检查一个值是否为对象类型
17552
- * @param {*} obj 要检查的值
17553
- * @returns {boolean} 如果值为对象则返回true,否则返回false
17554
- */
17555
- function isObject(obj) {
17556
- return Object.prototype.toString.call(obj) === '[object Object]';
17557
- }
17558
-
17559
- /**
17560
- * 检查一个节点是否为HTML元素
17561
- * @param {Node} node 要检查的节点
17562
- * @returns {boolean} 如果节点为HTML元素则返回true,否则返回false
17563
- */
17564
- function isHtmlElement(node) {
17565
- return node && node.nodeType === Node.ELEMENT_NODE;
17566
- }
17567
-
17568
- /**
17569
- * 检查一个值是否为函数类型
17570
- * @param {*} functionToCheck 要检查的值
17571
- * @returns {boolean} 如果值为函数则返回true,否则返回false
17572
- */
17573
- function isFunction(functionToCheck) {
17574
- var getType = {};
17575
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
17576
- }
17577
-
17578
- /**
17579
- * 检查一个值是否为undefined
17580
- * @param {*} val 要检查的值
17581
- * @returns {boolean} 如果值为undefined则返回true,否则返回false
17582
- */
17583
- function isUndefined(val) {
17584
- return val === void 0;
17585
- }
17586
-
17587
- /**
17588
- * 检查一个值是否已定义(不是undefined或null)
17589
- * @param {*} val 要检查的值
17590
- * @returns {boolean} 如果值已定义则返回true,否则返回false
17591
- */
17592
- function isDefined(val) {
17593
- return val !== undefined && val !== null;
17594
- }
17595
-
17596
- /***/ }),
17597
-
17598
17598
  /***/ 7:
17599
17599
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17600
17600
 
17601
17601
  "use strict";
17602
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return doCaLogin; });
17603
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return doUserLogin; });
17604
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return doQrLogin; });
17605
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return logout; });
17606
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return initLogin; });
17607
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return switchUserTo; });
17608
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return changeImg; });
17609
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getLoginCode; });
17610
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return doCodeLogin; });
17602
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return doCaLogin; });
17603
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doUserLogin; });
17604
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doQrLogin; });
17605
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return logout; });
17606
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return initLogin; });
17607
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return switchUserTo; });
17608
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return changeImg; });
17609
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getLoginCode; });
17610
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCodeLogin; });
17611
17611
  /* unused harmony export updateCode */
17612
17612
  /* unused harmony export getModifyPassCode */
17613
17613
  /* unused harmony export codeModifyPass */
17614
17614
  /* unused harmony export loginModifyPassword */
17615
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return authCenter; });
17615
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
17616
17616
  /* unused harmony export initModifyPassword */
17617
17617
  /* unused harmony export doWechatQrLogin */
17618
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getTwoFactorLoginCode; });
17618
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getTwoFactorLoginCode; });
17619
17619
  /* unused harmony export doTwoFactorLogin */
17620
17620
  /* unused harmony export initRetrialAuth */
17621
17621
  /* unused harmony export getRetrialAuthCode */
17622
17622
  /* unused harmony export scanCodeRetrialAuth */
17623
17623
  /* unused harmony export codeRetrialAuth */
17624
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return doAssistanceQrLogin; });
17625
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return userOnline; });
17626
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getUserAppWithTag; });
17627
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return recordUserApp; });
17628
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getUserRecordApp; });
17629
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return mainConfig; });
17630
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return initUserSet; });
17631
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return updateUserInfo; });
17624
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return doAssistanceQrLogin; });
17625
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return userOnline; });
17626
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUserAppWithTag; });
17627
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return recordUserApp; });
17628
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserRecordApp; });
17629
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return mainConfig; });
17630
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initUserSet; });
17631
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateUserInfo; });
17632
17632
  /* unused harmony export getUserImgUrl */
17633
17633
  /* unused harmony export getDoorIndex */
17634
17634
  /* unused harmony export refreshOnlineUsers */
17635
17635
  /* unused harmony export getQuickMenuIds */
17636
17636
  /* unused harmony export getApplicationIdArray */
17637
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return getComplexApplications; });
17638
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return getComplexApplicationsNew; });
17639
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getMainAppWithTag; });
17640
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return getByType; });
17637
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getComplexApplications; });
17638
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getComplexApplicationsNew; });
17639
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getMainAppWithTag; });
17640
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getByType; });
17641
17641
  /* unused harmony export getUserCustomInfo */
17642
17642
  /* unused harmony export updateUserCustomInfo */
17643
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return saveOrUpdate; });
17644
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return sysMsgPage; });
17645
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return ignoreSysMsg; });
17646
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return ignoreAllSysMsg; });
17647
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return searchType; });
17648
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getSysParam; });
17649
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return getAdjunctProperties; });
17650
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return uploads; });
17651
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return uploadOnlyOne; });
17652
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return getAdjunctFileInfos; });
17643
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveOrUpdate; });
17644
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return sysMsgPage; });
17645
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreSysMsg; });
17646
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return ignoreAllSysMsg; });
17647
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return searchType; });
17648
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSysParam; });
17649
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctProperties; });
17650
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploads; });
17651
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadOnlyOne; });
17652
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getAdjunctFileInfos; });
17653
17653
  /* unused harmony export uploadSort */
17654
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return downloadByAdjunctId; });
17655
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return uploadDownloads; });
17656
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return previewAdjunct; });
17657
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return previewAdjunct2; });
17658
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return previewAdjunctOffice; });
17659
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return delAdjunct; });
17654
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return downloadByAdjunctId; });
17655
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadDownloads; });
17656
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct; });
17657
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct2; });
17658
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunctOffice; });
17659
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return delAdjunct; });
17660
17660
  /* unused harmony export upload_updateClassify */
17661
17661
  /* unused harmony export getDeleteAdjunctFileInfos */
17662
17662
  /* unused harmony export getPictureBase64 */
17663
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getSelectorOrgTree; });
17664
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getSelectorOrgDetail; });
17665
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getOrgMainTree; });
17663
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getSelectorOrgTree; });
17664
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getSelectorOrgDetail; });
17665
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getOrgMainTree; });
17666
17666
  /* unused harmony export getSelectOrgsubids */
17667
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return findSysCode; });
17667
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return findSysCode; });
17668
17668
  /* unused harmony export getDictList */
17669
17669
  /* unused harmony export findUserBaseInfo */
17670
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return gethelpdoc; });
17670
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return gethelpdoc; });
17671
17671
  /* unused harmony export getCurrentuser */
17672
17672
  /* unused harmony export mainDetail */
17673
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return toStartFlow; });
17674
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return tempSave; });
17675
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return commonOpion; });
17673
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartFlow; });
17674
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tempSave; });
17675
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return commonOpion; });
17676
17676
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
17677
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return editCommonOpion; });
17678
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return saveCommonOpinion; });
17679
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return updateCommonOpinion; });
17680
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return deleteCommonOpion; });
17681
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getProcessDefList; });
17682
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getNodeInfo; });
17683
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return findCodeValues; });
17684
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return findSysParam; });
17685
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return findSysCodes; });
17686
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getNotificationMsg; });
17687
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return getHandleInfoHtml; });
17688
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return taskHandleHtml; });
17677
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return editCommonOpion; });
17678
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveCommonOpinion; });
17679
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateCommonOpinion; });
17680
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return deleteCommonOpion; });
17681
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getProcessDefList; });
17682
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getNodeInfo; });
17683
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return findCodeValues; });
17684
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findSysParam; });
17685
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCodes; });
17686
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNotificationMsg; });
17687
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getHandleInfoHtml; });
17688
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskHandleHtml; });
17689
17689
  /* unused harmony export getView */
17690
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return register; });
17691
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return pendedhistoryList; });
17692
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return toTaskRejectHtml; });
17693
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return taskRejectHtml; });
17694
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return toStartTaskRead; });
17695
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return toStartTaskReadIndex; });
17696
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return taskReadHtml; });
17697
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return rejectAndEnd; });
17698
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return toSendMsg; });
17699
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return sendMsg; });
17700
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return endFlowHtml; });
17701
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return handleInfo; });
17702
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return loginUserInfo; });
17703
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return wss; });
17704
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return topic; });
17705
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getPresetCustomInfo; });
17706
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getPresetNodeInfo; });
17707
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return toTaskTransferIndex; });
17708
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return taskTransfer; });
17690
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return register; });
17691
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pendedhistoryList; });
17692
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskRejectHtml; });
17693
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskRejectHtml; });
17694
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskRead; });
17695
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskReadIndex; });
17696
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskReadHtml; });
17697
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return rejectAndEnd; });
17698
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toSendMsg; });
17699
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return sendMsg; });
17700
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowHtml; });
17701
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return handleInfo; });
17702
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return loginUserInfo; });
17703
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return wss; });
17704
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return topic; });
17705
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getPresetCustomInfo; });
17706
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetNodeInfo; });
17707
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTransferIndex; });
17708
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTransfer; });
17709
17709
  /* unused harmony export toPresetInfoListIndex */
17710
17710
  /* unused harmony export deletePresetInfo */
17711
17711
  /* unused harmony export historyListJson */
17712
17712
  /* unused harmony export pendedhistoryListJson */
17713
17713
  /* unused harmony export pressListJson */
17714
17714
  /* unused harmony export deleteFlow */
17715
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return isCanStartSubFlow; });
17716
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return toTaskUnionExamine; });
17717
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return taskUnionExamine; });
17718
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return toTaskTakeAdvice; });
17719
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return taskTakeAdvice; });
17720
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return toTaskStartDraft; });
17721
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return toTaskSupervise; });
17722
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return toTaskSuperviseSub; });
17723
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return taskStartDraft; });
17724
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return toTaskReview; });
17725
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return taskReview; });
17726
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return toTaskUnionSeal; });
17727
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return taskUnionSeal; });
17728
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return toTwoOfficesDispatch; });
17729
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return twoOfficesDispatch; });
17730
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return toResetProcessIndex; });
17731
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return resetProcess; });
17732
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return toTaskContinuationIndex; });
17733
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return taskContinuation; });
17734
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return getFreeStartFlowParams; });
17735
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return freeStartFlowWithSubmitTask; });
17736
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return checkForeignOrgStartedCircularRead; });
17715
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isCanStartSubFlow; });
17716
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionExamine; });
17717
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionExamine; });
17718
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTakeAdvice; });
17719
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTakeAdvice; });
17720
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskStartDraft; });
17721
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSupervise; });
17722
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSuperviseSub; });
17723
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskStartDraft; });
17724
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskReview; });
17725
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskReview; });
17726
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionSeal; });
17727
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionSeal; });
17728
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTwoOfficesDispatch; });
17729
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return twoOfficesDispatch; });
17730
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toResetProcessIndex; });
17731
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return resetProcess; });
17732
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskContinuationIndex; });
17733
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskContinuation; });
17734
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getFreeStartFlowParams; });
17735
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlowWithSubmitTask; });
17736
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkForeignOrgStartedCircularRead; });
17737
17737
  /* unused harmony export pendedhistoryListWithCircularReadJson */
17738
17738
  /* unused harmony export fyListJson */
17739
17739
  /* unused harmony export circularReadWithdraw */
17740
17740
  /* unused harmony export taskReadWithDraw */
17741
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
17742
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return checkBusinessIdStartedReadTransferHandle; });
17741
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
17742
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return checkBusinessIdStartedReadTransferHandle; });
17743
17743
  /* unused harmony export sendList */
17744
17744
  /* unused harmony export sendInfo */
17745
17745
  /* unused harmony export sendSave */
@@ -17747,19 +17747,57 @@ function isDefined(val) {
17747
17747
  /* unused harmony export sendDelete */
17748
17748
  /* unused harmony export sendBatch */
17749
17749
  /* unused harmony export formContents */
17750
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return directStartTaskCircularRead; });
17751
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return endFlowAndStartTaskCircularRead; });
17752
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getNodeInfoForStart; });
17753
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return freeStartFlow; });
17754
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getUrgencyLevelChangedNotificationType; });
17755
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return toFreeTaskCircularRead; });
17756
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return freeTaskCircularRead; });
17757
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return pageLists; });
17750
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return directStartTaskCircularRead; });
17751
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return endFlowAndStartTaskCircularRead; });
17752
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfoForStart; });
17753
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return freeStartFlow; });
17754
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getUrgencyLevelChangedNotificationType; });
17755
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toFreeTaskCircularRead; });
17756
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeTaskCircularRead; });
17757
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageLists; });
17758
17758
  /* unused harmony export publishedLists */
17759
17759
  /* unused harmony export pageInfo */
17760
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return pageSave; });
17761
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return pageUpdate; });
17762
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return pageDelete; });
17760
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageGroup; });
17761
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageSave; });
17762
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageUpdate; });
17763
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return pageDelete; });
17764
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchSave; });
17765
+ /* unused harmony export batchUpdate */
17766
+ /* unused harmony export batchDelete */
17767
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchList; });
17768
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processListJson; });
17769
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processInfo; });
17770
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processDeleteJson; });
17771
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processSave; });
17772
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processUpdate; });
17773
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeListJson; });
17774
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return nodeDeleteJson; });
17775
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeSave; });
17776
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return nodeUpdate; });
17777
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return nodeInfo; });
17778
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return moduleListJson; });
17779
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return moduleInfo; });
17780
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return moduleDelete; });
17781
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleSave; });
17782
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleUpdate; });
17783
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleListJson; });
17784
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleEdit; });
17785
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleRead; });
17786
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleSave; });
17787
+ /* unused harmony export ruleSupplement */
17788
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleUndore; });
17789
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleAdd; });
17790
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return companyDetail; });
17791
+ /* unused harmony export issueDetailList */
17792
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteRule; });
17793
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParamV1; });
17794
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyList; });
17795
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return supplement; });
17796
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return isAddSource; });
17797
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tiggerInTime; });
17798
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateHistory; });
17799
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
17800
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeInTime; });
17763
17801
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
17764
17802
  // 登录
17765
17803
  var doCaLogin = '/sso2/signIn/auth/doCaLogin'; // ca登录认证
@@ -18039,6 +18077,9 @@ var pageLists = '/main2/pageComponentConfig/listJson';
18039
18077
  var publishedLists = '/main2/pageComponentConfig/listPublished';
18040
18078
  // 获取自定义配置详情
18041
18079
  var pageInfo = '/main2/pageComponentConfig/info';
18080
+ // 获取自定义配置授权列表
18081
+ var pageGroup = 'main2/pageComponentTarget/listByConfigIdAndTypeGroup';
18082
+
18042
18083
  // 保存自定义配置,发布也调这个接口但要加上字段status=1
18043
18084
  var pageSave = '/main2/pageComponentConfig/save';
18044
18085
  // 更新自定义配置
@@ -18046,6 +18087,82 @@ var pageUpdate = '/main2/pageComponentConfig/update';
18046
18087
  // 删除自定义配置
18047
18088
  var pageDelete = '/main2/pageComponentConfig/deleteById';
18048
18089
 
18090
+ // 保存自定义页面授权
18091
+ var batchSave = '/main2/pageComponentTarget/batchSave';
18092
+ // 修改自定义页面授权
18093
+ var batchUpdate = '/main2/pageComponentTarget/update';
18094
+ // 删除自定义页面授权
18095
+ var batchDelete = '/main2/pageComponentTarget/deleteByConfigId';
18096
+ // 获取自定义页面授权列表
18097
+ var batchList = '/main2/pageComponentTarget/listByConfigId';
18098
+ // 下发相关接口
18099
+ // 获取流程列表
18100
+ var processListJson = '/baseBusinessMain/listJson';
18101
+ // 根据id获取流程
18102
+ var processInfo = '/baseBusinessMain/info';
18103
+ // 删除流程
18104
+ var processDeleteJson = '/baseBusinessMain/deleteById';
18105
+ // 保存流程
18106
+ var processSave = '/baseBusinessMain/save';
18107
+ // 修改流程
18108
+ var processUpdate = '/baseBusinessMain/update';
18109
+ // 获取节点列表
18110
+ var nodeListJson = '/baseBusinessDetail/listJson';
18111
+ // 删除节点
18112
+ var nodeDeleteJson = '/baseBusinessDetail/deleteById';
18113
+ // 保存节点
18114
+ var nodeSave = '/baseBusinessDetail/save';
18115
+ // 修改节点
18116
+ var nodeUpdate = '/baseBusinessDetail/update';
18117
+ // 根据id获取节点信息
18118
+ var nodeInfo = '/baseBusinessDetail/info';
18119
+ // 获取模块列表
18120
+ var moduleListJson = '/baseIssueModule/list';
18121
+ // 获取模块列表
18122
+ var moduleInfo = '/baseIssueModule/info';
18123
+ // 删除模块
18124
+ var moduleDelete = '/baseIssueModule/deleteById';
18125
+ // 保存模块
18126
+ var moduleSave = '/baseIssueModule/save';
18127
+ // 修改模块
18128
+ var moduleUpdate = '/baseIssueModule/update';
18129
+ // 获取规则列表
18130
+ var ruleListJson = '/baseIssueRules/list';
18131
+ // 根据id编辑规则数据
18132
+ var ruleEdit = '/baseIssueRules/edit';
18133
+ // 根据id查看规则数据
18134
+ var ruleRead = '/baseIssueRules/info';
18135
+ // 下发、保存规则
18136
+ var ruleSave = '/baseIssueRules/save';
18137
+ // 补发规则
18138
+ var ruleSupplement = '/baseIssueRules/supplement';
18139
+ // 撤回规则
18140
+ var ruleUndore = '/baseIssueRules/undore';
18141
+ // 新增规则页面数据获取接口
18142
+ var ruleAdd = '/baseIssueRules/add';
18143
+ // 企业总数-已上报数数据接口
18144
+ var companyDetail = '/baseIssueRules/companydetail';
18145
+ // 下发详情列表数据接口
18146
+ var issueDetailList = '/baseIssueDetail/list';
18147
+ // 下发详情删除规则
18148
+ var deleteRule = '/baseIssueRules/deleteById';
18149
+ // 获取组织分中心编码
18150
+ var getSysParamV1 = '/sys/v1/mecpSys/getSysParam.dhtml';
18151
+ // 下发详情列表数据接口
18152
+ var companyList = '/baseIssueDetail/list';
18153
+ // 补发接口
18154
+ var supplement = '/baseIssueRules/supplement';
18155
+ // 是否显示新增按钮(权限控制)
18156
+ var isAddSource = '/baseIssueRules/isAddSource';
18157
+ // 触发定时
18158
+ var tiggerInTime = '/baseIssueRules/tiggerInTime';
18159
+ // 修改记录列表
18160
+ var updateHistory = '/baseEntityCompare/updateHistory';
18161
+ // 修改记录列表
18162
+ var auditTrajectory = '/baseOperationRecords/listJson';
18163
+ // 暂停定时任务
18164
+ var changeInTime = '/baseIssueRules/changeInTime';
18165
+
18049
18166
  /***/ }),
18050
18167
 
18051
18168
  /***/ 8:
@@ -18271,15 +18388,15 @@ var cellForced = {
18271
18388
  /* unused harmony export downloadZip */
18272
18389
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
18273
18390
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
18274
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30);
18391
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
18275
18392
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
18276
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31);
18393
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);
18277
18394
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
18278
- /* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
18279
- /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32);
18395
+ /* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
18396
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
18280
18397
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
18281
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
18282
- /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25);
18398
+ /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
18399
+ /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24);
18283
18400
  /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(fetch_request_source__WEBPACK_IMPORTED_MODULE_5__);
18284
18401
  /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
18285
18402
  /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7);
@@ -18518,7 +18635,7 @@ var ajax = function ajax(_ref) {
18518
18635
  delete params[key];
18519
18636
  }
18520
18637
  }
18521
- url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: url, param: encodedParams });
18638
+ url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: url, param: encodedParams });
18522
18639
  }
18523
18640
  } else {
18524
18641
  params = {};
@@ -18876,7 +18993,7 @@ function redirectToLogin() {
18876
18993
 
18877
18994
  if (loginPage) {
18878
18995
  // 处理相对路径
18879
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "S"])(loginPage, ['http', '/'], true)) {
18996
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
18880
18997
  var pathname = '';
18881
18998
  try {
18882
18999
  pathname = window.top.location.pathname;
@@ -18907,8 +19024,8 @@ function redirectToLogin() {
18907
19024
  * 检查 URL 参数是否包含 serverId 和 authType,如果有则先完成认证
18908
19025
  * @returns {Promise} 认证完成后 resolve
18909
19026
  */
18910
- function initAuth() {
18911
- var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "t"])();
19027
+ var initAuth = function initAuth() {
19028
+ var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])();
18912
19029
  var token = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('token') || Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('Authorization');
18913
19030
 
18914
19031
  // 已有 token 或没有认证参数,直接返回
@@ -18916,11 +19033,11 @@ function initAuth() {
18916
19033
  return Promise.resolve();
18917
19034
  }
18918
19035
 
18919
- var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "L"])('页面加载中...');
19036
+ var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('页面加载中...');
18920
19037
 
18921
19038
  return ajax({
18922
19039
  method: 'post',
18923
- url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* authCenter */ "b"],
19040
+ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* authCenter */ "c"],
18924
19041
  data: params
18925
19042
  }).then(function (res) {
18926
19043
  if (res.rCode === 0) {
@@ -18968,7 +19085,7 @@ function initAuth() {
18968
19085
  }).finally(function () {
18969
19086
  loadingInstance.close();
18970
19087
  });
18971
- }
19088
+ };
18972
19089
 
18973
19090
  /**
18974
19091
  * isLogined
@@ -18995,7 +19112,7 @@ var isLogined = function isLogined(_ref3) {
18995
19112
 
18996
19113
  // 处理cookie参数
18997
19114
  if (cookie === undefined) {
18998
- cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "t"])({ name: 'cookie' });
19115
+ cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])({ name: 'cookie' });
18999
19116
  }
19000
19117
 
19001
19118
  // 处理登录页面路径
@@ -19010,7 +19127,7 @@ var isLogined = function isLogined(_ref3) {
19010
19127
  sessionStorage.setItem('loginPage', loginPage);
19011
19128
 
19012
19129
  // 处理相对路径
19013
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "S"])(loginPage, ['http', '/'], true)) {
19130
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
19014
19131
  if (pathname !== '/') {
19015
19132
  var pathParts = pathname.split('/');
19016
19133
  pathParts.splice(pathParts.length - 1);
@@ -19035,7 +19152,7 @@ var isLogined = function isLogined(_ref3) {
19035
19152
 
19036
19153
  // 处理重定向
19037
19154
  if (redirect && (to.path === '/main' || to.path === '/login')) {
19038
- window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: '.' + to.path + '.html', param: to.query }));
19155
+ window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: '.' + to.path + '.html', param: to.query }));
19039
19156
  } else {
19040
19157
  next();
19041
19158
  }
@@ -19088,7 +19205,7 @@ function redirectToLoginPage(loginPage, next) {
19088
19205
  * @param {function} callback - 回调函数
19089
19206
  **/
19090
19207
  var getMainConfig = function getMainConfig(callback) {
19091
- ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "fb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
19208
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "ob"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
19092
19209
  if (res && res.rCode === 0) {
19093
19210
  callback(res.results);
19094
19211
  }
@@ -19111,7 +19228,7 @@ var getSysCodeList = function getSysCodeList(_ref4) {
19111
19228
  method = _ref4$method === undefined ? 'POST' : _ref4$method,
19112
19229
  service = _ref4.service,
19113
19230
  _ref4$url = _ref4.url,
19114
- url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "t"] : _ref4$url,
19231
+ url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "A"] : _ref4$url,
19115
19232
  sysCode = _ref4.sysCode,
19116
19233
  _ref4$param = _ref4.param,
19117
19234
  param = _ref4$param === undefined ? {} : _ref4$param,
@@ -19221,7 +19338,7 @@ var downloadFile = function downloadFile(_ref6) {
19221
19338
  file = _ref6.file,
19222
19339
  withToken = _ref6.withToken;
19223
19340
 
19224
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "o"] };
19341
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "v"] };
19225
19342
 
19226
19343
  var downloadUrl = '';
19227
19344
  if (file.adjunctId || file.response && file.response.adjunctId) {
@@ -19238,7 +19355,7 @@ var downloadFile = function downloadFile(_ref6) {
19238
19355
 
19239
19356
  // 拼接URL参数
19240
19357
  if (Object.keys(params).length > 0) {
19241
- downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: downloadUrl, param: params });
19358
+ downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
19242
19359
  }
19243
19360
  } else if (file.raw) {
19244
19361
  downloadUrl = URL.createObjectURL(file.raw);
@@ -19284,7 +19401,7 @@ var downloadZip = function downloadZip(_ref7) {
19284
19401
  code = _ref7.code,
19285
19402
  option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
19286
19403
 
19287
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "fc"] };
19404
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Nc"] };
19288
19405
 
19289
19406
  // 处理URL和参数
19290
19407
  var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
@@ -19300,7 +19417,7 @@ var downloadZip = function downloadZip(_ref7) {
19300
19417
 
19301
19418
  // 拼接URL参数
19302
19419
  if (Object.keys(params).length > 0) {
19303
- downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: downloadUrl, param: params });
19420
+ downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
19304
19421
  }
19305
19422
 
19306
19423
  // 创建a标签
@@ -19336,7 +19453,7 @@ var deleteFile = function deleteFile(_ref8) {
19336
19453
  onSuccess = _ref8.onSuccess,
19337
19454
  onError = _ref8.onError;
19338
19455
 
19339
- var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "g"] + '\' }');
19456
+ var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "m"] + '\' }');
19340
19457
 
19341
19458
  // 处理URL和参数
19342
19459
  var deleteUrl = url ? url : dochubConfig.deleteDocumentUrl;
@@ -19405,7 +19522,7 @@ var getTableData = function getTableData(_ref9) {
19405
19522
  onSuccess = _ref9.onSuccess,
19406
19523
  onError = _ref9.onError;
19407
19524
 
19408
- var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "L"])('数据加载中...');
19525
+ var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('数据加载中...');
19409
19526
  return new Promise(function (resolve, reject) {
19410
19527
  ajax({
19411
19528
  method: method,