eoss 0.1.0-alpha.25 → 0.1.0-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/0.js +1 -1
- package/lib/1.js +1 -1
- package/lib/10.js +1 -1
- package/lib/11.js +1 -1
- package/lib/12.js +1 -1
- package/lib/13.js +1 -1
- package/lib/14.js +1 -1
- package/lib/15.js +1 -1
- package/lib/16.js +1 -1
- package/lib/17.js +1 -1
- package/lib/18.js +1 -1
- package/lib/19.js +1 -1
- package/lib/20.js +1 -1
- package/lib/21.js +1 -1
- package/lib/22.js +1 -1
- package/lib/23.js +1 -1
- package/lib/24.js +1 -1
- package/lib/25.js +1 -1
- package/lib/26.js +1 -1
- package/lib/27.js +1 -1
- package/lib/28.js +1 -1
- package/lib/29.js +1 -1
- package/lib/3.js +1 -1
- package/lib/30.js +1 -1
- package/lib/31.js +1 -1
- package/lib/32.js +1 -1
- package/lib/33.js +1 -1
- package/lib/34.js +1 -1
- package/lib/35.js +1 -1
- package/lib/36.js +1 -1
- package/lib/37.js +1 -1
- package/lib/38.js +1 -1
- package/lib/39.js +1 -1
- package/lib/4.js +1 -1
- package/lib/40.js +1 -1
- package/lib/41.js +1 -1
- package/lib/42.js +1 -1
- package/lib/43.js +1 -1
- package/lib/44.js +1 -1
- package/lib/45.js +1 -1
- package/lib/46.js +1 -1
- package/lib/47.js +1 -1
- package/lib/48.js +1 -1
- package/lib/49.js +1 -1
- package/lib/5.js +1 -1
- package/lib/50.js +1 -1
- package/lib/51.js +1 -1
- package/lib/52.js +1 -1
- package/lib/53.js +1 -1
- package/lib/54.js +1 -1
- package/lib/55.js +1 -1
- package/lib/56.js +1 -1
- package/lib/57.js +1 -1
- package/lib/58.js +1 -1
- package/lib/59.js +1 -1
- package/lib/6.js +1 -1
- package/lib/60.js +1 -1
- package/lib/61.js +1 -1
- package/lib/62.js +1 -1
- package/lib/63.js +1 -1
- package/lib/64.js +1 -1
- package/lib/65.js +1 -1
- package/lib/66.js +1 -1
- package/lib/67.js +1 -1
- package/lib/68.js +1 -1
- package/lib/69.js +1 -1
- package/lib/7.js +1 -1
- package/lib/70.js +1 -1
- package/lib/71.js +1 -1
- package/lib/72.js +1 -1
- package/lib/73.js +1 -1
- package/lib/74.js +1 -1
- package/lib/75.js +1 -1
- package/lib/76.js +1 -1
- package/lib/77.js +1 -1
- package/lib/78.js +1 -1
- package/lib/79.js +1 -1
- package/lib/8.js +1 -1
- package/lib/80.js +1 -1
- package/lib/81.js +1 -1
- package/lib/9.js +1 -1
- package/lib/account-login.js +1000 -971
- package/lib/alert.js +2 -2
- package/lib/aside.js +2 -2
- package/lib/audit-trajectory.js +75 -71
- package/lib/autocomplete.js +2136 -1951
- package/lib/avatar.js +2 -2
- package/lib/backtop.js +2 -2
- package/lib/badge.js +2 -2
- package/lib/breadcrumb-item.js +4 -4
- package/lib/breadcrumb.js +4 -4
- package/lib/button-group.js +12 -12
- package/lib/button.js +2 -2
- package/lib/ca-login.js +913 -888
- package/lib/calendar.js +872 -847
- package/lib/card.js +2 -2
- package/lib/carousel-item.js +905 -880
- package/lib/carousel.js +1042 -1017
- package/lib/cascader-panel.js +926 -901
- package/lib/cascader.js +2022 -1837
- package/lib/checkbox-button.js +2 -2
- package/lib/checkbox-group.js +1000 -971
- package/lib/checkbox.js +2 -2
- package/lib/col.js +2 -2
- package/lib/collapse-item.js +2174 -1980
- package/lib/collapse.js +2175 -1980
- package/lib/color-picker.js +1112 -952
- package/lib/config/api.js +3 -0
- package/lib/container.js +2 -2
- package/lib/cron.js +2 -2
- package/lib/data-table.js +1007 -978
- package/lib/date-picker.js +2142 -1957
- package/lib/dialog.js +910 -885
- package/lib/divider.js +2 -2
- package/lib/drawer.js +2 -2
- package/lib/dropdown-item.js +4 -4
- package/lib/dropdown-menu.js +1104 -944
- package/lib/dropdown.js +925 -900
- package/lib/email-login.js +999 -970
- package/lib/empty.js +2 -2
- package/lib/eoss.common.js +8751 -4166
- package/lib/flip.js +2 -2
- package/lib/flow-group.js +906 -881
- package/lib/flow.js +1112 -1083
- package/lib/flows.js +1010 -981
- package/lib/footer.js +2 -2
- package/lib/form-item.js +909 -884
- package/lib/form.js +2185 -1986
- package/lib/guide.js +620 -0
- package/lib/header.js +2 -2
- package/lib/icon.js +981 -952
- package/lib/icons.js +2 -2
- package/lib/image-viewer.js +907 -882
- package/lib/image.js +4 -4
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +2 -2
- package/lib/input-number.js +4 -4
- package/lib/input.js +910 -885
- package/lib/link.js +2 -2
- package/lib/loading.js +2 -2
- package/lib/login.js +1027 -998
- package/lib/lowcode.js +17336 -13510
- package/lib/main.js +14933 -14625
- package/lib/marquee.js +907 -882
- package/lib/menu-item-group.js +2 -2
- package/lib/menu-item.js +2 -2
- package/lib/menu.js +2011 -1826
- package/lib/message-box.js +923 -898
- package/lib/message.js +911 -886
- package/lib/notification.js +911 -886
- package/lib/option-group.js +2 -2
- package/lib/option.js +907 -882
- package/lib/page-header.js +2 -2
- package/lib/pagination.js +910 -885
- package/lib/phone-login.js +998 -969
- package/lib/popconfirm.js +12 -12
- package/lib/popover.js +2009 -1824
- package/lib/process-config.js +1015 -986
- package/lib/process-module.js +1001 -972
- package/lib/process-rule.js +1019 -990
- package/lib/progress.js +5 -5
- package/lib/qr-code.js +4 -4
- package/lib/qrcode-login.js +1057 -1028
- package/lib/radio-button.js +2 -2
- package/lib/radio-group.js +998 -969
- package/lib/radio.js +2 -2
- package/lib/rate.js +907 -882
- package/lib/row.js +2 -2
- package/lib/scrollbar.js +904 -879
- package/lib/select.js +2135 -1945
- package/lib/selector-panel.js +1009 -980
- package/lib/selector.js +1001 -972
- package/lib/slider.js +2 -2
- package/lib/step.js +2172 -1977
- package/lib/steps.js +907 -882
- package/lib/submenu.js +1119 -959
- package/lib/switch.js +907 -882
- package/lib/tab-pane.js +2 -2
- package/lib/table-column.js +906 -881
- package/lib/table.js +2236 -2047
- package/lib/tabs.js +911 -886
- package/lib/tag.js +2 -2
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/guide.css +1 -0
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/lowcode-view.css +1 -0
- package/lib/theme-chalk/lowcode.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/select-dropdown.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/wujie.css +1 -0
- package/lib/time-picker.js +1977 -1792
- package/lib/time-select.js +1978 -1793
- package/lib/timeline-item.js +2 -2
- package/lib/timeline.js +2 -2
- package/lib/tips.js +998 -969
- package/lib/toolbar.js +2 -2
- package/lib/tooltip.js +2006 -1821
- package/lib/transfer.js +916 -891
- package/lib/tree-group.js +978 -949
- package/lib/tree.js +999 -970
- package/lib/update-history.js +76 -72
- package/lib/upload.js +1028 -999
- package/lib/utils/frame.js +133 -0
- package/lib/wujie.js +5037 -0
- package/package.json +3 -2
- package/packages/cascader/src/cascader.vue +1 -1
- package/packages/date-picker/src/picker.vue +1 -1
- package/packages/form/src/form-item-render.vue +10 -6
- package/packages/guide/index.js +8 -0
- package/packages/guide/src/directive.js +47 -0
- package/packages/guide/src/guide.vue +89 -0
- package/packages/guide/src/manager.js +133 -0
- package/packages/input/src/input.vue +1 -1
- package/packages/lowcode/src/aside.vue +41 -8
- package/packages/lowcode/src/attribute/bind.vue +2 -4
- package/packages/lowcode/src/attribute/dependency.vue +3 -16
- package/packages/lowcode/src/attribute/function.vue +2 -4
- package/packages/lowcode/src/attribute/property.vue +3 -15
- package/packages/lowcode/src/attribute/styles.vue +105 -11
- package/packages/lowcode/src/attribute.vue +5 -35
- package/packages/lowcode/src/canvas.vue +223 -97
- package/packages/lowcode/src/iframe.vue +60 -0
- package/packages/lowcode/src/lowcode.vue +32 -8
- package/packages/lowcode/src/pages.vue +1 -1
- package/packages/lowcode/src/render.vue +312 -70
- package/packages/lowcode/src/util/source-generator.js +7 -11
- package/packages/lowcode/src/util/source-parser.js +1 -1
- package/packages/lowcode-view/index.js +1 -1
- package/packages/lowcode-view/src/Iframe.vue +55 -0
- package/packages/lowcode-view/src/Modulels.vue +239 -0
- package/packages/lowcode-view/src/render.vue +337 -0
- package/packages/lowcode-view/src/view.vue +763 -0
- package/packages/main/src/components/pages.vue +11 -2
- package/packages/main/src/event-center.js +160 -0
- package/packages/main/src/minxs.js +60 -90
- package/packages/progress/src/progress.vue +1 -1
- package/packages/select/src/select.vue +2 -1
- package/packages/theme-chalk/src/common/var.scss +34 -10
- package/packages/theme-chalk/src/guide.scss +93 -0
- package/packages/theme-chalk/src/icon.scss +425 -426
- package/packages/theme-chalk/src/index.scss +2 -0
- package/packages/theme-chalk/src/lowcode-view.scss +288 -0
- package/packages/theme-chalk/src/lowcode.scss +11 -1
- package/packages/theme-chalk/src/select-dropdown.scss +1 -1
- package/packages/theme-chalk/src/wujie.scss +5 -0
- package/packages/wujie/index.js +10 -0
- package/packages/wujie/src/wujie.vue +205 -0
- package/src/config/api.js +3 -0
- package/src/index.js +325 -319
- package/src/utils/frame.js +102 -0
- package/packages/lowcode/src/view.vue +0 -187
package/lib/qrcode-login.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 =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 230);
|
|
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__, "
|
|
95
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
96
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
97
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
98
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
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__, "
|
|
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__, "
|
|
106
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
107
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
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__, "
|
|
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__, "
|
|
114
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
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__, "
|
|
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__, "
|
|
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__, "
|
|
127
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return getWinTop; });
|
|
128
128
|
/* unused harmony export getFileType */
|
|
129
129
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrUnique; });
|
|
130
130
|
/* unused harmony export average */
|
|
@@ -142,54 +142,54 @@ module.exports =
|
|
|
142
142
|
/* unused harmony export exportXls */
|
|
143
143
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return extend; });
|
|
144
144
|
/* unused harmony export getObjectType */
|
|
145
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
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__, "
|
|
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__, "
|
|
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__, "
|
|
156
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
157
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
158
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
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__, "
|
|
161
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
162
|
-
/* harmony export
|
|
163
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
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__, "
|
|
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__, "
|
|
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__, "
|
|
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__, "
|
|
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__, "
|
|
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__, "
|
|
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__, "
|
|
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__, "
|
|
186
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
187
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
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__, "
|
|
192
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return warning; });
|
|
193
193
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
|
194
194
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
195
195
|
/* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
|
|
@@ -2172,7 +2172,7 @@ var loadJs = function loadJs(url, callback) {
|
|
|
2172
2172
|
var loading = function loading() {
|
|
2173
2173
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '请求中...';
|
|
2174
2174
|
|
|
2175
|
-
var Loading = __webpack_require__(
|
|
2175
|
+
var Loading = __webpack_require__(17).default;
|
|
2176
2176
|
return Loading.service({
|
|
2177
2177
|
text: text,
|
|
2178
2178
|
spinner: 'es-icon-jiazai',
|
|
@@ -3344,7 +3344,7 @@ var getColor = function getColor($color, $n) {
|
|
|
3344
3344
|
var getLightness = function getLightness($v, $i, $isLight) {
|
|
3345
3345
|
var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
|
|
3346
3346
|
$value = $value < 1 ? $value : 1;
|
|
3347
|
-
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "
|
|
3347
|
+
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($value, 2);
|
|
3348
3348
|
};
|
|
3349
3349
|
|
|
3350
3350
|
/**
|
|
@@ -3368,7 +3368,7 @@ var getSaturation = function getSaturation($s, $i, $isLight) {
|
|
|
3368
3368
|
$saturation = 0.1;
|
|
3369
3369
|
}
|
|
3370
3370
|
$saturation = $saturation > 0.06 ? $saturation : 0.06;
|
|
3371
|
-
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "
|
|
3371
|
+
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($saturation, 2);
|
|
3372
3372
|
};
|
|
3373
3373
|
|
|
3374
3374
|
/**
|
|
@@ -3482,7 +3482,7 @@ var getRgb = function getRgb($color) {
|
|
|
3482
3482
|
|
|
3483
3483
|
/***/ }),
|
|
3484
3484
|
|
|
3485
|
-
/***/
|
|
3485
|
+
/***/ 17:
|
|
3486
3486
|
/***/ (function(module, exports) {
|
|
3487
3487
|
|
|
3488
3488
|
module.exports = require("eoss/lib/loading");
|
|
@@ -3546,736 +3546,759 @@ module.exports = require("lodash/get");
|
|
|
3546
3546
|
/* unused harmony export getSecond */
|
|
3547
3547
|
/* unused harmony export getWeekday */
|
|
3548
3548
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
|
|
3549
|
-
|
|
3550
|
-
|
|
3549
|
+
/* Modified from https://github.com/taylorhakes/fecha
|
|
3550
|
+
*
|
|
3551
|
+
* The MIT License (MIT)
|
|
3552
|
+
*
|
|
3553
|
+
* Copyright (c) 2015 Taylor Hakes
|
|
3554
|
+
*
|
|
3555
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3556
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
3557
|
+
* in the Software without restriction, including without limitation the rights
|
|
3558
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
3559
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
3560
|
+
* furnished to do so, subject to the following conditions:
|
|
3561
|
+
*
|
|
3562
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
3563
|
+
* copies or substantial portions of the Software.
|
|
3564
|
+
*
|
|
3565
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3566
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3567
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3568
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3569
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3570
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
3571
|
+
* SOFTWARE.
|
|
3572
|
+
*/
|
|
3573
|
+
|
|
3574
|
+
/*eslint-disable*/
|
|
3575
|
+
// 把 YYYY-MM-DD 改成了 yyyy-MM-dd
|
|
3576
|
+
|
|
3577
|
+
|
|
3551
3578
|
/**
|
|
3552
3579
|
* Parse or format dates
|
|
3553
3580
|
* @class fecha
|
|
3554
|
-
*/
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
function regexEscape(str) {
|
|
3565
|
-
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
3566
|
-
}
|
|
3567
|
-
|
|
3568
|
-
function shorten(arr, sLen) {
|
|
3569
|
-
|
|
3570
|
-
for (
|
|
3571
|
-
newArr.push(arr[i].substr(0, sLen));
|
|
3572
|
-
}
|
|
3573
|
-
return newArr;
|
|
3574
|
-
}
|
|
3575
|
-
|
|
3576
|
-
function monthUpdate() {
|
|
3577
|
-
return function (d, v) {
|
|
3578
|
-
|
|
3579
|
-
if (~index) {
|
|
3580
|
-
d.month = index;
|
|
3581
|
-
}
|
|
3582
|
-
};
|
|
3583
|
-
}
|
|
3584
|
-
|
|
3585
|
-
function pad(val, len) {
|
|
3586
|
-
val = String(val);
|
|
3587
|
-
len = len || 2;
|
|
3588
|
-
while (val.length < len) {
|
|
3589
|
-
val = '0' + val;
|
|
3590
|
-
}
|
|
3591
|
-
return val;
|
|
3592
|
-
}
|
|
3593
|
-
|
|
3594
|
-
// 直接使用中文日期名称常量
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
return D + '日';
|
|
3602
|
-
};
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
D: function
|
|
3606
|
-
return dateObj.getDay();
|
|
3607
|
-
},
|
|
3608
|
-
DD: function
|
|
3609
|
-
return pad(dateObj.getDay());
|
|
3610
|
-
},
|
|
3611
|
-
Do: function
|
|
3612
|
-
return DoFn(dateObj.getDate());
|
|
3613
|
-
},
|
|
3614
|
-
d: function
|
|
3615
|
-
return dateObj.getDate();
|
|
3616
|
-
},
|
|
3617
|
-
dd: function
|
|
3618
|
-
return pad(dateObj.getDate());
|
|
3619
|
-
},
|
|
3620
|
-
ddd: function
|
|
3621
|
-
return dayNamesShort[dateObj.getDay()];
|
|
3622
|
-
},
|
|
3623
|
-
dddd: function
|
|
3624
|
-
return dayNames[dateObj.getDay()];
|
|
3625
|
-
},
|
|
3626
|
-
M: function
|
|
3627
|
-
return dateObj.getMonth() + 1;
|
|
3628
|
-
},
|
|
3629
|
-
MM: function
|
|
3630
|
-
return pad(dateObj.getMonth() + 1);
|
|
3631
|
-
},
|
|
3632
|
-
MMM: function
|
|
3633
|
-
return monthNamesShort[dateObj.getMonth()];
|
|
3634
|
-
},
|
|
3635
|
-
MMMM: function
|
|
3636
|
-
return monthNames[dateObj.getMonth()];
|
|
3637
|
-
},
|
|
3638
|
-
yy: function
|
|
3639
|
-
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
3640
|
-
},
|
|
3641
|
-
yyyy: function
|
|
3642
|
-
return pad(dateObj.getFullYear(), 4);
|
|
3643
|
-
},
|
|
3644
|
-
h: function
|
|
3645
|
-
return dateObj.getHours() % 12 || 12;
|
|
3646
|
-
},
|
|
3647
|
-
hh: function
|
|
3648
|
-
return pad(dateObj.getHours() % 12 || 12);
|
|
3649
|
-
},
|
|
3650
|
-
H: function
|
|
3651
|
-
return dateObj.getHours();
|
|
3652
|
-
},
|
|
3653
|
-
HH: function
|
|
3654
|
-
return pad(dateObj.getHours());
|
|
3655
|
-
},
|
|
3656
|
-
m: function
|
|
3657
|
-
return dateObj.getMinutes();
|
|
3658
|
-
},
|
|
3659
|
-
mm: function
|
|
3660
|
-
return pad(dateObj.getMinutes());
|
|
3661
|
-
},
|
|
3662
|
-
s: function
|
|
3663
|
-
return dateObj.getSeconds();
|
|
3664
|
-
},
|
|
3665
|
-
ss: function
|
|
3666
|
-
return pad(dateObj.getSeconds());
|
|
3667
|
-
},
|
|
3668
|
-
S: function
|
|
3669
|
-
return Math.round(dateObj.getMilliseconds() / 100);
|
|
3670
|
-
},
|
|
3671
|
-
SS: function
|
|
3672
|
-
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
3673
|
-
},
|
|
3674
|
-
SSS: function
|
|
3675
|
-
return pad(dateObj.getMilliseconds(), 3);
|
|
3676
|
-
},
|
|
3677
|
-
a: function
|
|
3678
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
3679
|
-
},
|
|
3680
|
-
A: function
|
|
3681
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
3682
|
-
},
|
|
3683
|
-
ZZ: function
|
|
3684
|
-
|
|
3685
|
-
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
3686
|
-
}
|
|
3687
|
-
};
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
d: [twoDigits, function (d, v) {
|
|
3691
|
-
d.day = v;
|
|
3692
|
-
}],
|
|
3693
|
-
Do: [twoDigits + word, function (d, v) {
|
|
3694
|
-
d.day = parseInt(v, 10);
|
|
3695
|
-
}],
|
|
3696
|
-
M: [twoDigits, function (d, v) {
|
|
3697
|
-
d.month = v - 1;
|
|
3698
|
-
}],
|
|
3699
|
-
yy: [twoDigits, function (d, v) {
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
}
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
parseFlags.
|
|
3748
|
-
parseFlags.
|
|
3749
|
-
parseFlags.
|
|
3750
|
-
parseFlags.
|
|
3751
|
-
parseFlags.
|
|
3752
|
-
parseFlags.
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3581
|
+
*/
|
|
3582
|
+
const fecha = {};
|
|
3583
|
+
const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
|
|
3584
|
+
const twoDigits = '\\d\\d?';
|
|
3585
|
+
const threeDigits = '\\d{3}';
|
|
3586
|
+
const fourDigits = '\\d{4}';
|
|
3587
|
+
const word = '[^\\s]+';
|
|
3588
|
+
const literal = /\[([^]*?)\]/gm;
|
|
3589
|
+
const noop = function () {};
|
|
3590
|
+
|
|
3591
|
+
function regexEscape(str) {
|
|
3592
|
+
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3595
|
+
function shorten(arr, sLen) {
|
|
3596
|
+
const newArr = [];
|
|
3597
|
+
for (let i = 0, len = arr.length; i < len; i++) {
|
|
3598
|
+
newArr.push(arr[i].substr(0, sLen));
|
|
3599
|
+
}
|
|
3600
|
+
return newArr;
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3603
|
+
function monthUpdate() {
|
|
3604
|
+
return function (d, v) {
|
|
3605
|
+
const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
|
|
3606
|
+
if (~index) {
|
|
3607
|
+
d.month = index;
|
|
3608
|
+
}
|
|
3609
|
+
};
|
|
3610
|
+
}
|
|
3611
|
+
|
|
3612
|
+
function pad(val, len) {
|
|
3613
|
+
val = String(val);
|
|
3614
|
+
len = len || 2;
|
|
3615
|
+
while (val.length < len) {
|
|
3616
|
+
val = '0' + val;
|
|
3617
|
+
}
|
|
3618
|
+
return val;
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
// 直接使用中文日期名称常量
|
|
3622
|
+
const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
3623
|
+
const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
|
|
3624
|
+
const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
|
|
3625
|
+
const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
|
|
3626
|
+
const amPm = ['上午', '下午'];
|
|
3627
|
+
const DoFn = function DoFn(D) {
|
|
3628
|
+
return D + '日';
|
|
3629
|
+
};
|
|
3630
|
+
|
|
3631
|
+
const formatFlags = {
|
|
3632
|
+
D: function(dateObj) {
|
|
3633
|
+
return dateObj.getDay();
|
|
3634
|
+
},
|
|
3635
|
+
DD: function(dateObj) {
|
|
3636
|
+
return pad(dateObj.getDay());
|
|
3637
|
+
},
|
|
3638
|
+
Do: function(dateObj) {
|
|
3639
|
+
return DoFn(dateObj.getDate());
|
|
3640
|
+
},
|
|
3641
|
+
d: function(dateObj) {
|
|
3642
|
+
return dateObj.getDate();
|
|
3643
|
+
},
|
|
3644
|
+
dd: function(dateObj) {
|
|
3645
|
+
return pad(dateObj.getDate());
|
|
3646
|
+
},
|
|
3647
|
+
ddd: function(dateObj) {
|
|
3648
|
+
return dayNamesShort[dateObj.getDay()];
|
|
3649
|
+
},
|
|
3650
|
+
dddd: function(dateObj) {
|
|
3651
|
+
return dayNames[dateObj.getDay()];
|
|
3652
|
+
},
|
|
3653
|
+
M: function(dateObj) {
|
|
3654
|
+
return dateObj.getMonth() + 1;
|
|
3655
|
+
},
|
|
3656
|
+
MM: function(dateObj) {
|
|
3657
|
+
return pad(dateObj.getMonth() + 1);
|
|
3658
|
+
},
|
|
3659
|
+
MMM: function(dateObj) {
|
|
3660
|
+
return monthNamesShort[dateObj.getMonth()];
|
|
3661
|
+
},
|
|
3662
|
+
MMMM: function(dateObj) {
|
|
3663
|
+
return monthNames[dateObj.getMonth()];
|
|
3664
|
+
},
|
|
3665
|
+
yy: function(dateObj) {
|
|
3666
|
+
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
3667
|
+
},
|
|
3668
|
+
yyyy: function(dateObj) {
|
|
3669
|
+
return pad(dateObj.getFullYear(), 4);
|
|
3670
|
+
},
|
|
3671
|
+
h: function(dateObj) {
|
|
3672
|
+
return dateObj.getHours() % 12 || 12;
|
|
3673
|
+
},
|
|
3674
|
+
hh: function(dateObj) {
|
|
3675
|
+
return pad(dateObj.getHours() % 12 || 12);
|
|
3676
|
+
},
|
|
3677
|
+
H: function(dateObj) {
|
|
3678
|
+
return dateObj.getHours();
|
|
3679
|
+
},
|
|
3680
|
+
HH: function(dateObj) {
|
|
3681
|
+
return pad(dateObj.getHours());
|
|
3682
|
+
},
|
|
3683
|
+
m: function(dateObj) {
|
|
3684
|
+
return dateObj.getMinutes();
|
|
3685
|
+
},
|
|
3686
|
+
mm: function(dateObj) {
|
|
3687
|
+
return pad(dateObj.getMinutes());
|
|
3688
|
+
},
|
|
3689
|
+
s: function(dateObj) {
|
|
3690
|
+
return dateObj.getSeconds();
|
|
3691
|
+
},
|
|
3692
|
+
ss: function(dateObj) {
|
|
3693
|
+
return pad(dateObj.getSeconds());
|
|
3694
|
+
},
|
|
3695
|
+
S: function(dateObj) {
|
|
3696
|
+
return Math.round(dateObj.getMilliseconds() / 100);
|
|
3697
|
+
},
|
|
3698
|
+
SS: function(dateObj) {
|
|
3699
|
+
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
3700
|
+
},
|
|
3701
|
+
SSS: function(dateObj) {
|
|
3702
|
+
return pad(dateObj.getMilliseconds(), 3);
|
|
3703
|
+
},
|
|
3704
|
+
a: function(dateObj) {
|
|
3705
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
3706
|
+
},
|
|
3707
|
+
A: function(dateObj) {
|
|
3708
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
3709
|
+
},
|
|
3710
|
+
ZZ: function(dateObj) {
|
|
3711
|
+
const o = dateObj.getTimezoneOffset();
|
|
3712
|
+
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
3713
|
+
}
|
|
3714
|
+
};
|
|
3715
|
+
|
|
3716
|
+
const parseFlags = {
|
|
3717
|
+
d: [twoDigits, function (d, v) {
|
|
3718
|
+
d.day = v;
|
|
3719
|
+
}],
|
|
3720
|
+
Do: [twoDigits + word, function (d, v) {
|
|
3721
|
+
d.day = parseInt(v, 10);
|
|
3722
|
+
}],
|
|
3723
|
+
M: [twoDigits, function (d, v) {
|
|
3724
|
+
d.month = v - 1;
|
|
3725
|
+
}],
|
|
3726
|
+
yy: [twoDigits, function (d, v) {
|
|
3727
|
+
const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
|
|
3728
|
+
d.year = '' + (v > 68 ? cent - 1 : cent) + v;
|
|
3729
|
+
}],
|
|
3730
|
+
h: [twoDigits, function (d, v) {
|
|
3731
|
+
d.hour = v;
|
|
3732
|
+
}],
|
|
3733
|
+
m: [twoDigits, function (d, v) {
|
|
3734
|
+
d.minute = v;
|
|
3735
|
+
}],
|
|
3736
|
+
s: [twoDigits, function (d, v) {
|
|
3737
|
+
d.second = v;
|
|
3738
|
+
}],
|
|
3739
|
+
yyyy: [fourDigits, function (d, v) {
|
|
3740
|
+
d.year = v;
|
|
3741
|
+
}],
|
|
3742
|
+
S: ['\\d', function (d, v) {
|
|
3743
|
+
d.millisecond = v * 100;
|
|
3744
|
+
}],
|
|
3745
|
+
SS: ['\\d{2}', function (d, v) {
|
|
3746
|
+
d.millisecond = v * 10;
|
|
3747
|
+
}],
|
|
3748
|
+
SSS: [threeDigits, function (d, v) {
|
|
3749
|
+
d.millisecond = v;
|
|
3750
|
+
}],
|
|
3751
|
+
D: [twoDigits, noop],
|
|
3752
|
+
ddd: [word, noop],
|
|
3753
|
+
MMM: [word, monthUpdate('monthNamesShort')],
|
|
3754
|
+
MMMM: [word, monthUpdate('monthNames')],
|
|
3755
|
+
a: [word, function (d, v) {
|
|
3756
|
+
const val = v.toLowerCase();
|
|
3757
|
+
if (val === '上午') {
|
|
3758
|
+
d.isPm = false;
|
|
3759
|
+
} else if (val === '下午') {
|
|
3760
|
+
d.isPm = true;
|
|
3761
|
+
}
|
|
3762
|
+
}],
|
|
3763
|
+
ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
|
|
3764
|
+
let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
|
|
3765
|
+
|
|
3766
|
+
if (parts) {
|
|
3767
|
+
minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
|
|
3768
|
+
d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
|
|
3769
|
+
}
|
|
3770
|
+
}]
|
|
3771
|
+
};
|
|
3772
|
+
parseFlags.dd = parseFlags.d;
|
|
3773
|
+
parseFlags.dddd = parseFlags.ddd;
|
|
3774
|
+
parseFlags.DD = parseFlags.D;
|
|
3775
|
+
parseFlags.mm = parseFlags.m;
|
|
3776
|
+
parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
|
|
3777
|
+
parseFlags.MM = parseFlags.M;
|
|
3778
|
+
parseFlags.ss = parseFlags.s;
|
|
3779
|
+
parseFlags.A = parseFlags.a;
|
|
3780
|
+
|
|
3781
|
+
|
|
3782
|
+
// Some common format strings
|
|
3783
|
+
fecha.masks = {
|
|
3784
|
+
default: 'ddd MMM dd yyyy HH:mm:ss',
|
|
3785
|
+
shortDate: 'M/D/yy',
|
|
3786
|
+
mediumDate: 'MMM d, yyyy',
|
|
3787
|
+
longDate: 'MMMM d, yyyy',
|
|
3788
|
+
fullDate: 'dddd, MMMM d, yyyy',
|
|
3789
|
+
shortTime: 'HH:mm',
|
|
3790
|
+
mediumTime: 'HH:mm:ss',
|
|
3791
|
+
longTime: 'HH:mm:ss.SSS'
|
|
3792
|
+
};
|
|
3793
|
+
|
|
3768
3794
|
/***
|
|
3769
3795
|
* Format a date
|
|
3770
3796
|
* @method format
|
|
3771
3797
|
* @param {Date|number} dateObj
|
|
3772
3798
|
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
|
|
3773
|
-
*/
|
|
3774
|
-
fecha.format = function (dateObj, mask) {
|
|
3775
|
-
if (typeof dateObj === 'number') {
|
|
3776
|
-
dateObj = new Date(dateObj);
|
|
3777
|
-
}
|
|
3778
|
-
|
|
3779
|
-
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
3780
|
-
throw new Error('Invalid Date in fecha.format');
|
|
3781
|
-
}
|
|
3782
|
-
|
|
3783
|
-
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
// Make literals inactive by replacing them with ??
|
|
3788
|
-
mask = mask.replace(literal, function
|
|
3789
|
-
literals.push($1);
|
|
3790
|
-
return '@@@';
|
|
3791
|
-
});
|
|
3792
|
-
// Apply formatting rules
|
|
3793
|
-
mask = mask.replace(token, function ($0) {
|
|
3794
|
-
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
3795
|
-
});
|
|
3796
|
-
// Inline literal values back into the formatted value
|
|
3797
|
-
return mask.replace(/@@@/g, function
|
|
3798
|
-
return literals.shift();
|
|
3799
|
-
});
|
|
3800
|
-
};
|
|
3801
|
-
|
|
3799
|
+
*/
|
|
3800
|
+
fecha.format = function (dateObj, mask) {
|
|
3801
|
+
if (typeof dateObj === 'number') {
|
|
3802
|
+
dateObj = new Date(dateObj);
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
3806
|
+
throw new Error('Invalid Date in fecha.format');
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
3810
|
+
|
|
3811
|
+
const literals = [];
|
|
3812
|
+
|
|
3813
|
+
// Make literals inactive by replacing them with ??
|
|
3814
|
+
mask = mask.replace(literal, function($0, $1) {
|
|
3815
|
+
literals.push($1);
|
|
3816
|
+
return '@@@';
|
|
3817
|
+
});
|
|
3818
|
+
// Apply formatting rules
|
|
3819
|
+
mask = mask.replace(token, function ($0) {
|
|
3820
|
+
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
3821
|
+
});
|
|
3822
|
+
// Inline literal values back into the formatted value
|
|
3823
|
+
return mask.replace(/@@@/g, function() {
|
|
3824
|
+
return literals.shift();
|
|
3825
|
+
});
|
|
3826
|
+
};
|
|
3827
|
+
|
|
3802
3828
|
/**
|
|
3803
3829
|
* Parse a date string into an object, changes - into /
|
|
3804
3830
|
* @method parse
|
|
3805
3831
|
* @param {string} dateStr Date string
|
|
3806
3832
|
* @param {string} format Date parse format
|
|
3807
3833
|
* @returns {Date|boolean}
|
|
3808
|
-
*/
|
|
3809
|
-
fecha.parse = function (dateStr, format) {
|
|
3810
|
-
if (typeof format !== 'string') {
|
|
3811
|
-
throw new Error('Invalid format in fecha.parse');
|
|
3812
|
-
}
|
|
3813
|
-
|
|
3814
|
-
format = fecha.masks[format] || format;
|
|
3815
|
-
|
|
3816
|
-
// Avoid regular expression denial of service, fail early for really long strings
|
|
3817
|
-
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
3818
|
-
if (dateStr.length > 1000) {
|
|
3819
|
-
return null;
|
|
3820
|
-
}
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
format = format.replace(literal, function
|
|
3826
|
-
literals.push($1);
|
|
3827
|
-
return '@@@';
|
|
3828
|
-
});
|
|
3829
|
-
|
|
3830
|
-
if (parseFlags[$0]) {
|
|
3831
|
-
|
|
3832
|
-
parseInfo.push(info[1]);
|
|
3833
|
-
return '(' + info[0] + ')';
|
|
3834
|
-
}
|
|
3835
|
-
|
|
3836
|
-
return $0;
|
|
3837
|
-
});
|
|
3838
|
-
newFormat = newFormat.replace(/@@@/g, function
|
|
3839
|
-
return literals.shift();
|
|
3840
|
-
});
|
|
3841
|
-
|
|
3842
|
-
if (!matches) {
|
|
3843
|
-
return null;
|
|
3844
|
-
}
|
|
3845
|
-
|
|
3846
|
-
for (
|
|
3847
|
-
parseInfo[i - 1](dateInfo, matches[i]);
|
|
3848
|
-
}
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
3852
|
-
dateInfo.hour = +dateInfo.hour + 12;
|
|
3853
|
-
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
3854
|
-
dateInfo.hour = 0;
|
|
3855
|
-
}
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
if (dateInfo.timezoneOffset != null) {
|
|
3859
|
-
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
3860
|
-
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
}
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
}
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
if (
|
|
3897
|
-
return
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
// 处理多种输入类型
|
|
3908
|
-
if (!date) return '';
|
|
3909
|
-
|
|
3910
|
-
// 如果是时间戳,转成日期对象
|
|
3911
|
-
if (typeof date === 'number') {
|
|
3912
|
-
date = new Date(date);
|
|
3913
|
-
}
|
|
3914
|
-
// 如果是字符串,转成日期对象
|
|
3915
|
-
if (typeof date === 'string') {
|
|
3916
|
-
date = new Date(date);
|
|
3917
|
-
}
|
|
3918
|
-
|
|
3919
|
-
// 调用toDate进一步验证和转换
|
|
3920
|
-
date = toDate(date);
|
|
3921
|
-
if (!date) return '';
|
|
3922
|
-
|
|
3923
|
-
// 兼容大写和小写的格式标记
|
|
3924
|
-
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
return
|
|
3946
|
-
}
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
//
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
3970
|
-
};
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
return prevDate(result,
|
|
3984
|
-
}
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
//
|
|
4004
|
-
|
|
4005
|
-
//
|
|
4006
|
-
|
|
4007
|
-
//
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
for (
|
|
4027
|
-
hours[i] =
|
|
4028
|
-
}
|
|
4029
|
-
}
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
return
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
};
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
}
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
return
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
return
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
}
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
};
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
return
|
|
4191
|
-
};
|
|
4192
|
-
|
|
4193
|
-
var extractTimeFormat = function extractTimeFormat(format) {
|
|
4194
|
-
return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
|
|
4195
|
-
};
|
|
4196
|
-
|
|
4197
|
-
var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
|
|
4198
|
-
return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
|
|
4199
|
-
};
|
|
4200
|
-
|
|
3834
|
+
*/
|
|
3835
|
+
fecha.parse = function (dateStr, format) {
|
|
3836
|
+
if (typeof format !== 'string') {
|
|
3837
|
+
throw new Error('Invalid format in fecha.parse');
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
format = fecha.masks[format] || format;
|
|
3841
|
+
|
|
3842
|
+
// Avoid regular expression denial of service, fail early for really long strings
|
|
3843
|
+
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
3844
|
+
if (dateStr.length > 1000) {
|
|
3845
|
+
return null;
|
|
3846
|
+
}
|
|
3847
|
+
|
|
3848
|
+
const dateInfo = {};
|
|
3849
|
+
const parseInfo = [];
|
|
3850
|
+
const literals = [];
|
|
3851
|
+
format = format.replace(literal, function($0, $1) {
|
|
3852
|
+
literals.push($1);
|
|
3853
|
+
return '@@@';
|
|
3854
|
+
});
|
|
3855
|
+
let newFormat = regexEscape(format).replace(token, function ($0) {
|
|
3856
|
+
if (parseFlags[$0]) {
|
|
3857
|
+
const info = parseFlags[$0];
|
|
3858
|
+
parseInfo.push(info[1]);
|
|
3859
|
+
return '(' + info[0] + ')';
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
return $0;
|
|
3863
|
+
});
|
|
3864
|
+
newFormat = newFormat.replace(/@@@/g, function() {
|
|
3865
|
+
return literals.shift();
|
|
3866
|
+
});
|
|
3867
|
+
const matches = dateStr.match(new RegExp(newFormat, 'i'));
|
|
3868
|
+
if (!matches) {
|
|
3869
|
+
return null;
|
|
3870
|
+
}
|
|
3871
|
+
|
|
3872
|
+
for (let i = 1; i < matches.length; i++) {
|
|
3873
|
+
parseInfo[i - 1](dateInfo, matches[i]);
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
const today = new Date();
|
|
3877
|
+
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
3878
|
+
dateInfo.hour = +dateInfo.hour + 12;
|
|
3879
|
+
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
3880
|
+
dateInfo.hour = 0;
|
|
3881
|
+
}
|
|
3882
|
+
|
|
3883
|
+
let date;
|
|
3884
|
+
if (dateInfo.timezoneOffset != null) {
|
|
3885
|
+
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
3886
|
+
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
3887
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
|
|
3888
|
+
} else {
|
|
3889
|
+
date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
3890
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
|
|
3891
|
+
}
|
|
3892
|
+
return date;
|
|
3893
|
+
};
|
|
3894
|
+
|
|
3895
|
+
// 导出fecha对象
|
|
3896
|
+
|
|
3897
|
+
|
|
3898
|
+
// 以下是从date-util.js合并的函数
|
|
3899
|
+
const newArray = function(start, end) {
|
|
3900
|
+
let result = [];
|
|
3901
|
+
for (let i = start; i <= end; i++) {
|
|
3902
|
+
result.push(i);
|
|
3903
|
+
}
|
|
3904
|
+
return result;
|
|
3905
|
+
};
|
|
3906
|
+
|
|
3907
|
+
const getSettings = () => {
|
|
3908
|
+
return {
|
|
3909
|
+
dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
|
|
3910
|
+
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
|
|
3911
|
+
monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
3912
|
+
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
|
3913
|
+
amPm: ['上午', '下午']
|
|
3914
|
+
};
|
|
3915
|
+
};
|
|
3916
|
+
|
|
3917
|
+
const toDate = function(date) {
|
|
3918
|
+
return isDate(date) ? new Date(date) : null;
|
|
3919
|
+
};
|
|
3920
|
+
|
|
3921
|
+
const isDate = function(date) {
|
|
3922
|
+
if (date === null || date === undefined) return false;
|
|
3923
|
+
if (isNaN(new Date(date).getTime())) return false;
|
|
3924
|
+
if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
|
|
3925
|
+
return true;
|
|
3926
|
+
};
|
|
3927
|
+
|
|
3928
|
+
const isDateObject = function(val) {
|
|
3929
|
+
return val instanceof Date;
|
|
3930
|
+
};
|
|
3931
|
+
|
|
3932
|
+
const formatDate = function (date, format = 'yyyy-MM-dd') {
|
|
3933
|
+
// 处理多种输入类型
|
|
3934
|
+
if (!date) return '';
|
|
3935
|
+
|
|
3936
|
+
// 如果是时间戳,转成日期对象
|
|
3937
|
+
if (typeof date === 'number') {
|
|
3938
|
+
date = new Date(date);
|
|
3939
|
+
}
|
|
3940
|
+
// 如果是字符串,转成日期对象
|
|
3941
|
+
if (typeof date === 'string') {
|
|
3942
|
+
date = new Date(date);
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3945
|
+
// 调用toDate进一步验证和转换
|
|
3946
|
+
date = toDate(date);
|
|
3947
|
+
if (!date) return '';
|
|
3948
|
+
|
|
3949
|
+
// 兼容大写和小写的格式标记
|
|
3950
|
+
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
3951
|
+
const lowercaseFormat = format
|
|
3952
|
+
.replace(/YYYY/g, 'yyyy')
|
|
3953
|
+
.replace(/D/g, 'd')
|
|
3954
|
+
|
|
3955
|
+
// 使用fecha库进行格式化,支持中文配置
|
|
3956
|
+
const str = fecha.format(date, lowercaseFormat, getSettings());
|
|
3957
|
+
return str;
|
|
3958
|
+
};
|
|
3959
|
+
|
|
3960
|
+
const parseDate = function(string, format) {
|
|
3961
|
+
return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
|
|
3962
|
+
};
|
|
3963
|
+
|
|
3964
|
+
const getDayCountOfMonth = function(year, month) {
|
|
3965
|
+
if (month === 3 || month === 5 || month === 8 || month === 10) {
|
|
3966
|
+
return 30;
|
|
3967
|
+
}
|
|
3968
|
+
|
|
3969
|
+
if (month === 1) {
|
|
3970
|
+
if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
|
|
3971
|
+
return 29;
|
|
3972
|
+
} else {
|
|
3973
|
+
return 28;
|
|
3974
|
+
}
|
|
3975
|
+
}
|
|
3976
|
+
|
|
3977
|
+
return 31;
|
|
3978
|
+
};
|
|
3979
|
+
|
|
3980
|
+
const getDayCountOfYear = function(year) {
|
|
3981
|
+
const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
|
|
3982
|
+
return isLeapYear ? 366 : 365;
|
|
3983
|
+
};
|
|
3984
|
+
|
|
3985
|
+
const getFirstDayOfMonth = function(date) {
|
|
3986
|
+
const temp = new Date(date.getTime());
|
|
3987
|
+
temp.setDate(1);
|
|
3988
|
+
return temp.getDay();
|
|
3989
|
+
};
|
|
3990
|
+
|
|
3991
|
+
// see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
|
|
3992
|
+
// {prev, next} Date should work for Daylight Saving Time
|
|
3993
|
+
// Adding 24 * 60 * 60 * 1000 does not work in the above scenario
|
|
3994
|
+
const prevDate = function(date, amount = 1) {
|
|
3995
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
3996
|
+
};
|
|
3997
|
+
|
|
3998
|
+
const nextDate = function(date, amount = 1) {
|
|
3999
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
|
|
4000
|
+
};
|
|
4001
|
+
|
|
4002
|
+
const getStartDateOfMonth = function(year, month) {
|
|
4003
|
+
const result = new Date(year, month, 1);
|
|
4004
|
+
const day = result.getDay();
|
|
4005
|
+
|
|
4006
|
+
if (day === 0) {
|
|
4007
|
+
return prevDate(result, 7);
|
|
4008
|
+
} else {
|
|
4009
|
+
return prevDate(result, day);
|
|
4010
|
+
}
|
|
4011
|
+
};
|
|
4012
|
+
|
|
4013
|
+
const getWeekNumber = function(date) {
|
|
4014
|
+
// 支持多种输入类型
|
|
4015
|
+
if (!date||!isDate(date)) {
|
|
4016
|
+
date = new Date();
|
|
4017
|
+
}
|
|
4018
|
+
if (typeof date === 'string') {
|
|
4019
|
+
date = new Date(date);
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
// 验证日期有效性
|
|
4023
|
+
if (!isDate(date)) return null;
|
|
4024
|
+
|
|
4025
|
+
const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
4026
|
+
// 设置为最近的星期四:当前日期 + 4 - 当前星期数
|
|
4027
|
+
// 将星期日的星期数设为7
|
|
4028
|
+
d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
|
|
4029
|
+
// 获取当年的第一天
|
|
4030
|
+
const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
4031
|
+
// 计算到最近的星期四的完整周数
|
|
4032
|
+
const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
|
|
4033
|
+
// 返回周数
|
|
4034
|
+
return weekNo;
|
|
4035
|
+
};
|
|
4036
|
+
|
|
4037
|
+
const getRangeHours = function(ranges) {
|
|
4038
|
+
const hours = [];
|
|
4039
|
+
let disabledHours = [];
|
|
4040
|
+
|
|
4041
|
+
(ranges || []).forEach(range => {
|
|
4042
|
+
const value = range.map(date => date.getHours());
|
|
4043
|
+
|
|
4044
|
+
disabledHours = disabledHours.concat(newArray(value[0], value[1]));
|
|
4045
|
+
});
|
|
4046
|
+
|
|
4047
|
+
if (disabledHours.length) {
|
|
4048
|
+
for (let i = 0; i < 24; i++) {
|
|
4049
|
+
hours[i] = disabledHours.indexOf(i) === -1;
|
|
4050
|
+
}
|
|
4051
|
+
} else {
|
|
4052
|
+
for (let i = 0; i < 24; i++) {
|
|
4053
|
+
hours[i] = false;
|
|
4054
|
+
}
|
|
4055
|
+
}
|
|
4056
|
+
|
|
4057
|
+
return hours;
|
|
4058
|
+
};
|
|
4059
|
+
|
|
4060
|
+
const getPrevMonthLastDays = (date, amount) => {
|
|
4061
|
+
if (amount <= 0) return [];
|
|
4062
|
+
const temp = new Date(date.getTime());
|
|
4063
|
+
temp.setDate(0);
|
|
4064
|
+
const lastDay = temp.getDate();
|
|
4065
|
+
return range(amount).map((_, index) => lastDay - (amount - index - 1));
|
|
4066
|
+
};
|
|
4067
|
+
|
|
4068
|
+
const getMonthDays = (date) => {
|
|
4069
|
+
const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
4070
|
+
const days = temp.getDate();
|
|
4071
|
+
return range(days).map((_, index) => index + 1);
|
|
4072
|
+
};
|
|
4073
|
+
|
|
4074
|
+
function setRangeData(arr, start, end, value) {
|
|
4075
|
+
for (let i = start; i < end; i++) {
|
|
4076
|
+
arr[i] = value;
|
|
4077
|
+
}
|
|
4078
|
+
}
|
|
4079
|
+
|
|
4080
|
+
const getRangeMinutes = function(ranges, hour) {
|
|
4081
|
+
const minutes = new Array(60);
|
|
4082
|
+
|
|
4083
|
+
if (ranges.length > 0) {
|
|
4084
|
+
ranges.forEach(range => {
|
|
4085
|
+
const start = range[0];
|
|
4086
|
+
const end = range[1];
|
|
4087
|
+
const startHour = start.getHours();
|
|
4088
|
+
const startMinute = start.getMinutes();
|
|
4089
|
+
const endHour = end.getHours();
|
|
4090
|
+
const endMinute = end.getMinutes();
|
|
4091
|
+
if (startHour === hour && endHour !== hour) {
|
|
4092
|
+
setRangeData(minutes, startMinute, 60, true);
|
|
4093
|
+
} else if (startHour === hour && endHour === hour) {
|
|
4094
|
+
setRangeData(minutes, startMinute, endMinute + 1, true);
|
|
4095
|
+
} else if (startHour !== hour && endHour === hour) {
|
|
4096
|
+
setRangeData(minutes, 0, endMinute + 1, true);
|
|
4097
|
+
} else if (startHour < hour && endHour > hour) {
|
|
4098
|
+
setRangeData(minutes, 0, 60, true);
|
|
4099
|
+
}
|
|
4100
|
+
});
|
|
4101
|
+
} else {
|
|
4102
|
+
setRangeData(minutes, 0, 60, true);
|
|
4103
|
+
}
|
|
4104
|
+
return minutes;
|
|
4105
|
+
};
|
|
4106
|
+
|
|
4107
|
+
const range = function(n) {
|
|
4108
|
+
// see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
|
|
4109
|
+
return Array.apply(null, {length: n}).map((_, n) => n);
|
|
4110
|
+
};
|
|
4111
|
+
|
|
4112
|
+
const modifyDate = function(date, y, m, d) {
|
|
4113
|
+
return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
4114
|
+
};
|
|
4115
|
+
|
|
4116
|
+
const modifyTime = function(date, h, m, s) {
|
|
4117
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
|
|
4118
|
+
};
|
|
4119
|
+
|
|
4120
|
+
const modifyWithTimeString = (date, time) => {
|
|
4121
|
+
if (date == null || !time) {
|
|
4122
|
+
return date;
|
|
4123
|
+
}
|
|
4124
|
+
time = parseDate(time, 'HH:mm:ss');
|
|
4125
|
+
return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
|
|
4126
|
+
};
|
|
4127
|
+
|
|
4128
|
+
const clearTime = function(date) {
|
|
4129
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
4130
|
+
};
|
|
4131
|
+
|
|
4132
|
+
const clearMilliseconds = function(date) {
|
|
4133
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
|
|
4134
|
+
};
|
|
4135
|
+
|
|
4136
|
+
const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
|
|
4137
|
+
// TODO: refactory a more elegant solution
|
|
4138
|
+
if (ranges.length === 0) return date;
|
|
4139
|
+
const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
|
|
4140
|
+
const ndate = normalizeDate(date);
|
|
4141
|
+
const nranges = ranges.map(range => range.map(normalizeDate));
|
|
4142
|
+
if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
|
|
4143
|
+
|
|
4144
|
+
let minDate = nranges[0][0];
|
|
4145
|
+
let maxDate = nranges[0][0];
|
|
4146
|
+
|
|
4147
|
+
nranges.forEach(nrange => {
|
|
4148
|
+
minDate = new Date(Math.min(nrange[0], minDate));
|
|
4149
|
+
maxDate = new Date(Math.max(nrange[1], minDate));
|
|
4150
|
+
});
|
|
4151
|
+
|
|
4152
|
+
const ret = ndate < minDate ? minDate : maxDate;
|
|
4153
|
+
// preserve Year/Month/Date
|
|
4154
|
+
return modifyDate(
|
|
4155
|
+
ret,
|
|
4156
|
+
date.getFullYear(),
|
|
4157
|
+
date.getMonth(),
|
|
4158
|
+
date.getDate()
|
|
4159
|
+
);
|
|
4160
|
+
};
|
|
4161
|
+
|
|
4162
|
+
const timeWithinRange = function(date, selectableRange, format) {
|
|
4163
|
+
const limitedDate = limitTimeRange(date, selectableRange, format);
|
|
4164
|
+
return limitedDate.getTime() === date.getTime();
|
|
4165
|
+
};
|
|
4166
|
+
|
|
4167
|
+
const changeYearMonthAndClampDate = function(date, year, month) {
|
|
4168
|
+
// clamp date to the number of days in `year`, `month`
|
|
4169
|
+
// eg: (2010-1-31, 2010, 2) => 2010-2-28
|
|
4170
|
+
const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
|
|
4171
|
+
return modifyDate(date, year, month, monthDate);
|
|
4172
|
+
};
|
|
4173
|
+
|
|
4174
|
+
const prevMonth = function(date) {
|
|
4175
|
+
const year = date.getFullYear();
|
|
4176
|
+
const month = date.getMonth();
|
|
4177
|
+
return month === 0
|
|
4178
|
+
? changeYearMonthAndClampDate(date, year - 1, 11)
|
|
4179
|
+
: changeYearMonthAndClampDate(date, year, month - 1);
|
|
4180
|
+
};
|
|
4181
|
+
|
|
4182
|
+
const nextMonth = function(date) {
|
|
4183
|
+
const year = date.getFullYear();
|
|
4184
|
+
const month = date.getMonth();
|
|
4185
|
+
return month === 11
|
|
4186
|
+
? changeYearMonthAndClampDate(date, year + 1, 0)
|
|
4187
|
+
: changeYearMonthAndClampDate(date, year, month + 1);
|
|
4188
|
+
};
|
|
4189
|
+
|
|
4190
|
+
const prevYear = function(date, amount = 1) {
|
|
4191
|
+
const year = date.getFullYear();
|
|
4192
|
+
const month = date.getMonth();
|
|
4193
|
+
return changeYearMonthAndClampDate(date, year - amount, month);
|
|
4194
|
+
};
|
|
4195
|
+
|
|
4196
|
+
const nextYear = function(date, amount = 1) {
|
|
4197
|
+
const year = date.getFullYear();
|
|
4198
|
+
const month = date.getMonth();
|
|
4199
|
+
return changeYearMonthAndClampDate(date, year + amount, month);
|
|
4200
|
+
};
|
|
4201
|
+
|
|
4202
|
+
const extractDateFormat = function(format) {
|
|
4203
|
+
return format
|
|
4204
|
+
.replace(/\W?m{1,2}|\W?ZZ/g, '')
|
|
4205
|
+
.replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
|
|
4206
|
+
.trim();
|
|
4207
|
+
};
|
|
4208
|
+
|
|
4209
|
+
const extractTimeFormat = function(format) {
|
|
4210
|
+
return format
|
|
4211
|
+
.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
|
|
4212
|
+
.trim();
|
|
4213
|
+
};
|
|
4214
|
+
|
|
4215
|
+
const validateRangeInOneMonth = function(start, end) {
|
|
4216
|
+
return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
|
|
4217
|
+
};
|
|
4218
|
+
|
|
4201
4219
|
/**
|
|
4202
4220
|
* 计算两个日期之间的工作日数量(不包括周末和节假日)
|
|
4203
4221
|
* @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
|
|
4204
4222
|
* @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
|
|
4205
4223
|
* @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
|
|
4206
4224
|
* @returns {number} 工作日数量
|
|
4207
|
-
*/
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
}
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
4219
|
-
throw new Error(
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
}
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4225
|
+
*/
|
|
4226
|
+
const calculateNetworkDays = function (start_date, end_date, holidays = []) {
|
|
4227
|
+
if (typeof start_date !== 'string' || typeof end_date !== 'string') {
|
|
4228
|
+
throw new Error(
|
|
4229
|
+
"Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
4230
|
+
);
|
|
4231
|
+
}
|
|
4232
|
+
|
|
4233
|
+
const startDateObj = new Date(start_date);
|
|
4234
|
+
const endDateObj = new Date(end_date);
|
|
4235
|
+
|
|
4236
|
+
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
4237
|
+
throw new Error(
|
|
4238
|
+
"Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
4239
|
+
);
|
|
4240
|
+
}
|
|
4241
|
+
|
|
4242
|
+
if (startDateObj > endDateObj) {
|
|
4243
|
+
throw new Error('Start date should be earlier than or equal to end date.');
|
|
4244
|
+
}
|
|
4245
|
+
|
|
4246
|
+
let workdays = 0;
|
|
4247
|
+
|
|
4248
|
+
// Iterate through each day in the date range
|
|
4249
|
+
for (
|
|
4250
|
+
let currentDate = new Date(startDateObj);
|
|
4251
|
+
currentDate <= endDateObj;
|
|
4252
|
+
currentDate.setDate(currentDate.getDate() + 1)
|
|
4253
|
+
) {
|
|
4254
|
+
// Check if the current day is a weekend (Saturday or Sunday)
|
|
4255
|
+
const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
|
|
4256
|
+
|
|
4257
|
+
// Check if the current day is a holiday
|
|
4258
|
+
const isHoliday = holidays.some((holiday) => {
|
|
4259
|
+
const holidayDate = new Date(holiday);
|
|
4260
|
+
return currentDate.toDateString() === holidayDate.toDateString();
|
|
4261
|
+
});
|
|
4262
|
+
|
|
4263
|
+
// If it's a workday (not a weekend or holiday), increment the workdays count
|
|
4264
|
+
if (!isWeekend && !isHoliday) {
|
|
4265
|
+
workdays++;
|
|
4266
|
+
}
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
return workdays;
|
|
4270
|
+
};
|
|
4271
|
+
|
|
4253
4272
|
/**
|
|
4254
4273
|
* 日期加减天数
|
|
4255
4274
|
* @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
|
|
4256
4275
|
* @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
|
|
4257
4276
|
* @returns {string} 结果日期,格式为 "YYYY-MM-DD"
|
|
4258
|
-
*/
|
|
4259
|
-
|
|
4260
|
-
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
4261
|
-
throw new Error(
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4277
|
+
*/
|
|
4278
|
+
const dateAddDays = function (start_date, days) {
|
|
4279
|
+
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
4280
|
+
throw new Error(
|
|
4281
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
|
|
4282
|
+
);
|
|
4283
|
+
}
|
|
4284
|
+
|
|
4285
|
+
const startDateObj = new Date(start_date);
|
|
4286
|
+
if (isNaN(startDateObj.getTime())) {
|
|
4287
|
+
throw new Error(
|
|
4288
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
4289
|
+
);
|
|
4290
|
+
}
|
|
4291
|
+
|
|
4292
|
+
const resultDateObj = new Date(startDateObj);
|
|
4293
|
+
resultDateObj.setDate(resultDateObj.getDate() + days);
|
|
4294
|
+
|
|
4295
|
+
const resultYear = resultDateObj.getFullYear();
|
|
4296
|
+
const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
|
|
4297
|
+
const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
|
|
4298
|
+
|
|
4299
|
+
return `${resultYear}-${resultMonth}-${resultDay}`;
|
|
4300
|
+
};
|
|
4301
|
+
|
|
4279
4302
|
/**
|
|
4280
4303
|
* 计算两个日期之间的差值
|
|
4281
4304
|
* @date 2023年12月14日
|
|
@@ -4283,180 +4306,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
|
|
|
4283
4306
|
* @param {String} end_date - 结束日期字符串
|
|
4284
4307
|
* @param {String} unit - 单位:year/month/day
|
|
4285
4308
|
* @returns {Number} 差值
|
|
4286
|
-
*/
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
if (unit === '
|
|
4300
|
-
return
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
}
|
|
4310
|
-
|
|
4309
|
+
*/
|
|
4310
|
+
const dateDiff = function (start_date, end_date, unit = 'day') {
|
|
4311
|
+
// Assuming date strings are in "YYYY-MM-DD" format
|
|
4312
|
+
var startDate = new Date(start_date);
|
|
4313
|
+
var endDate = new Date(end_date);
|
|
4314
|
+
|
|
4315
|
+
// If the date is invalid, return 0
|
|
4316
|
+
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
4317
|
+
return 0;
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4320
|
+
if (unit === 'year') {
|
|
4321
|
+
return endDate.getFullYear() - startDate.getFullYear();
|
|
4322
|
+
} else if (unit === 'month') {
|
|
4323
|
+
return (
|
|
4324
|
+
(endDate.getFullYear() - startDate.getFullYear()) * 12 +
|
|
4325
|
+
(endDate.getMonth() - startDate.getMonth())
|
|
4326
|
+
);
|
|
4327
|
+
} else {
|
|
4328
|
+
// Default to day
|
|
4329
|
+
var timeDifference = endDate - startDate;
|
|
4330
|
+
// Calculate days (86400000 milliseconds per day)
|
|
4331
|
+
return Math.floor(timeDifference / 86400000);
|
|
4332
|
+
}
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4311
4335
|
/**
|
|
4312
4336
|
* 获取月份中的日期
|
|
4313
4337
|
* @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
|
|
4314
4338
|
* @returns {number} 月份中的日期(1-31)
|
|
4315
|
-
*/
|
|
4316
|
-
|
|
4317
|
-
if (typeof date !== 'string') {
|
|
4318
|
-
throw new Error(
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4339
|
+
*/
|
|
4340
|
+
const dayOfMonth = function (date) {
|
|
4341
|
+
if (typeof date !== 'string') {
|
|
4342
|
+
throw new Error(
|
|
4343
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
4344
|
+
);
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
const dateObj = new Date(date);
|
|
4348
|
+
if (isNaN(dateObj.getTime())) {
|
|
4349
|
+
throw new Error(
|
|
4350
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
4351
|
+
);
|
|
4352
|
+
}
|
|
4353
|
+
|
|
4354
|
+
return dateObj.getDate();
|
|
4355
|
+
};
|
|
4356
|
+
|
|
4329
4357
|
/**
|
|
4330
4358
|
* 获取当前日期
|
|
4331
4359
|
* @date 2022年5月7日
|
|
4332
4360
|
* @param {string} format - 日期格式,默认为'YYYY-MM-DD'
|
|
4333
4361
|
* @returns {string} 当前日期的格式化字符串
|
|
4334
|
-
*/
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
};
|
|
4340
|
-
|
|
4362
|
+
*/
|
|
4363
|
+
const getCurrentDate = function (format = 'YYYY-MM-DD') {
|
|
4364
|
+
return formatDate(new Date(), format);
|
|
4365
|
+
};
|
|
4366
|
+
|
|
4341
4367
|
/**
|
|
4342
4368
|
* 获取当前日期时间
|
|
4343
4369
|
* @date 2022年5月7日
|
|
4344
4370
|
* @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
|
|
4345
4371
|
* @returns {string} 当前日期时间的格式化字符串
|
|
4346
|
-
*/
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
};
|
|
4352
|
-
|
|
4372
|
+
*/
|
|
4373
|
+
const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
|
|
4374
|
+
return formatDate(new Date(), format);
|
|
4375
|
+
};
|
|
4376
|
+
|
|
4353
4377
|
/**
|
|
4354
4378
|
* 获取小时
|
|
4355
4379
|
* @date 2022年5月7日
|
|
4356
4380
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
4357
4381
|
* @returns {number} 小时数(0-23)
|
|
4358
|
-
*/
|
|
4359
|
-
|
|
4360
|
-
if (!date) {
|
|
4361
|
-
return new Date().getHours();
|
|
4362
|
-
}
|
|
4363
|
-
if (typeof date === 'string') {
|
|
4364
|
-
date = new Date(date);
|
|
4365
|
-
}
|
|
4366
|
-
return date.getHours();
|
|
4367
|
-
};
|
|
4368
|
-
|
|
4382
|
+
*/
|
|
4383
|
+
const getHour = function (date) {
|
|
4384
|
+
if (!date) {
|
|
4385
|
+
return new Date().getHours();
|
|
4386
|
+
}
|
|
4387
|
+
if (typeof date === 'string') {
|
|
4388
|
+
date = new Date(date);
|
|
4389
|
+
}
|
|
4390
|
+
return date.getHours();
|
|
4391
|
+
};
|
|
4392
|
+
|
|
4369
4393
|
/**
|
|
4370
4394
|
* 获取分钟
|
|
4371
4395
|
* @date 2022年5月7日
|
|
4372
4396
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
4373
4397
|
* @returns {number} 分钟数(0-59)
|
|
4374
|
-
*/
|
|
4375
|
-
|
|
4376
|
-
if (!date) {
|
|
4377
|
-
return new Date().getMinutes();
|
|
4378
|
-
}
|
|
4379
|
-
if (typeof date === 'string') {
|
|
4380
|
-
date = new Date(date);
|
|
4381
|
-
}
|
|
4382
|
-
return date.getMinutes();
|
|
4383
|
-
};
|
|
4384
|
-
|
|
4398
|
+
*/
|
|
4399
|
+
const getMinute = function (date) {
|
|
4400
|
+
if (!date) {
|
|
4401
|
+
return new Date().getMinutes();
|
|
4402
|
+
}
|
|
4403
|
+
if (typeof date === 'string') {
|
|
4404
|
+
date = new Date(date);
|
|
4405
|
+
}
|
|
4406
|
+
return date.getMinutes();
|
|
4407
|
+
};
|
|
4408
|
+
|
|
4385
4409
|
/**
|
|
4386
4410
|
* 获取月份
|
|
4387
4411
|
* @date 2022年5月7日
|
|
4388
4412
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
4389
4413
|
* @returns {number} 月份数(1-12)
|
|
4390
|
-
*/
|
|
4391
|
-
|
|
4392
|
-
if (!date) {
|
|
4393
|
-
return new Date().getMonth() + 1;
|
|
4394
|
-
}
|
|
4395
|
-
if (typeof date === 'string') {
|
|
4396
|
-
date = new Date(date);
|
|
4397
|
-
}
|
|
4398
|
-
return date.getMonth() + 1;
|
|
4399
|
-
};
|
|
4400
|
-
|
|
4414
|
+
*/
|
|
4415
|
+
const getMonth = function (date) {
|
|
4416
|
+
if (!date) {
|
|
4417
|
+
return new Date().getMonth() + 1;
|
|
4418
|
+
}
|
|
4419
|
+
if (typeof date === 'string') {
|
|
4420
|
+
date = new Date(date);
|
|
4421
|
+
}
|
|
4422
|
+
return date.getMonth() + 1;
|
|
4423
|
+
};
|
|
4424
|
+
|
|
4401
4425
|
/**
|
|
4402
4426
|
* 获取秒
|
|
4403
4427
|
* @date 2022年5月7日
|
|
4404
4428
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
4405
4429
|
* @returns {number} 秒数(0-59)
|
|
4406
|
-
*/
|
|
4407
|
-
|
|
4408
|
-
if (!date) {
|
|
4409
|
-
return new Date().getSeconds();
|
|
4410
|
-
}
|
|
4411
|
-
if (typeof date === 'string') {
|
|
4412
|
-
date = new Date(date);
|
|
4413
|
-
}
|
|
4414
|
-
return date.getSeconds();
|
|
4415
|
-
};
|
|
4416
|
-
|
|
4430
|
+
*/
|
|
4431
|
+
const getSecond = function (date) {
|
|
4432
|
+
if (!date) {
|
|
4433
|
+
return new Date().getSeconds();
|
|
4434
|
+
}
|
|
4435
|
+
if (typeof date === 'string') {
|
|
4436
|
+
date = new Date(date);
|
|
4437
|
+
}
|
|
4438
|
+
return date.getSeconds();
|
|
4439
|
+
};
|
|
4440
|
+
|
|
4417
4441
|
/**
|
|
4418
4442
|
* 获取星期几
|
|
4419
4443
|
* @date 2022年5月7日
|
|
4420
4444
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
4421
4445
|
* @returns {number} 星期几(0-6,0表示星期日)
|
|
4422
|
-
*/
|
|
4423
|
-
|
|
4424
|
-
if (!date) {
|
|
4425
|
-
return new Date().getDay();
|
|
4426
|
-
}
|
|
4427
|
-
if (typeof date === 'string') {
|
|
4428
|
-
date = new Date(date);
|
|
4429
|
-
}
|
|
4430
|
-
return date.getDay();
|
|
4431
|
-
};
|
|
4432
|
-
|
|
4446
|
+
*/
|
|
4447
|
+
const getWeekday = function (date) {
|
|
4448
|
+
if (!date) {
|
|
4449
|
+
return new Date().getDay();
|
|
4450
|
+
}
|
|
4451
|
+
if (typeof date === 'string') {
|
|
4452
|
+
date = new Date(date);
|
|
4453
|
+
}
|
|
4454
|
+
return date.getDay();
|
|
4455
|
+
};
|
|
4456
|
+
|
|
4457
|
+
|
|
4433
4458
|
/**
|
|
4434
4459
|
* @desc 获取上午/下午/晚上
|
|
4435
4460
|
* @author huangbo
|
|
4436
4461
|
* @date 2022年5月7日
|
|
4437
4462
|
* @param {String} [time] - 时间
|
|
4438
|
-
**/
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
if (!time) {
|
|
4442
|
-
hour = new Date().getHours();
|
|
4443
|
-
} else if (typeof time === 'string') {
|
|
4444
|
-
// 从时间字符串中提取小时
|
|
4445
|
-
|
|
4446
|
-
if (match) {
|
|
4447
|
-
hour = parseInt(match[1], 10);
|
|
4448
|
-
}
|
|
4449
|
-
} else if (typeof time === 'number') {
|
|
4450
|
-
hour = time;
|
|
4451
|
-
}
|
|
4452
|
-
// 判断时间段
|
|
4453
|
-
if (hour >= 5 && hour < 12) {
|
|
4454
|
-
return '上午';
|
|
4455
|
-
} else if (hour >= 12 && hour < 18) {
|
|
4456
|
-
return '下午';
|
|
4457
|
-
} else {
|
|
4458
|
-
return '晚上';
|
|
4459
|
-
}
|
|
4463
|
+
**/
|
|
4464
|
+
const timeCycle = function (time) {
|
|
4465
|
+
let hour = 0;
|
|
4466
|
+
if (!time) {
|
|
4467
|
+
hour = new Date().getHours();
|
|
4468
|
+
} else if (typeof time === 'string') {
|
|
4469
|
+
// 从时间字符串中提取小时
|
|
4470
|
+
const match = time.match(/^(\d{1,2})/);
|
|
4471
|
+
if (match) {
|
|
4472
|
+
hour = parseInt(match[1], 10);
|
|
4473
|
+
}
|
|
4474
|
+
} else if (typeof time === 'number') {
|
|
4475
|
+
hour = time;
|
|
4476
|
+
}
|
|
4477
|
+
// 判断时间段
|
|
4478
|
+
if (hour >= 5 && hour < 12) {
|
|
4479
|
+
return '上午';
|
|
4480
|
+
} else if (hour >= 12 && hour < 18) {
|
|
4481
|
+
return '下午';
|
|
4482
|
+
} else {
|
|
4483
|
+
return '晚上';
|
|
4484
|
+
}
|
|
4460
4485
|
};
|
|
4461
4486
|
|
|
4462
4487
|
/***/ }),
|
|
@@ -4475,7 +4500,66 @@ module.exports = require("lodash/cloneDeep");
|
|
|
4475
4500
|
|
|
4476
4501
|
/***/ }),
|
|
4477
4502
|
|
|
4478
|
-
/***/
|
|
4503
|
+
/***/ 23:
|
|
4504
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4505
|
+
|
|
4506
|
+
"use strict";
|
|
4507
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
|
|
4508
|
+
/* unused harmony export doDecrypt */
|
|
4509
|
+
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
4510
|
+
var sm2 = __webpack_require__(34).sm2;
|
|
4511
|
+
|
|
4512
|
+
|
|
4513
|
+
/**
|
|
4514
|
+
* doEncrypt
|
|
4515
|
+
* @desc:sm2加密
|
|
4516
|
+
* @author huangbo
|
|
4517
|
+
* @date 2022年5月7日
|
|
4518
|
+
* @param {string} [data] - 被加密的字符串
|
|
4519
|
+
* @param {string} [key] - 公钥
|
|
4520
|
+
**/
|
|
4521
|
+
var doEncrypt = function doEncrypt(_ref) {
|
|
4522
|
+
var data = _ref.data,
|
|
4523
|
+
key = _ref.key,
|
|
4524
|
+
mode = _ref.mode;
|
|
4525
|
+
|
|
4526
|
+
if (!key) {
|
|
4527
|
+
key = Object(_storage__WEBPACK_IMPORTED_MODULE_0__[/* getStorage */ "a"])('secretKey');
|
|
4528
|
+
}
|
|
4529
|
+
if (!mode) {
|
|
4530
|
+
mode = 1;
|
|
4531
|
+
}
|
|
4532
|
+
if (!new RegExp('^04').test(key)) {
|
|
4533
|
+
key = '04' + key;
|
|
4534
|
+
}
|
|
4535
|
+
var result = sm2.doEncrypt(data, key, mode);
|
|
4536
|
+
return result;
|
|
4537
|
+
};
|
|
4538
|
+
|
|
4539
|
+
/**
|
|
4540
|
+
* doDecrypt
|
|
4541
|
+
* @desc:sm2解密
|
|
4542
|
+
* @author huangbo
|
|
4543
|
+
* @date 2022年5月7日
|
|
4544
|
+
* @param {string} [data] - 被解密的加密字符串
|
|
4545
|
+
* @param {string} [key] - 私钥
|
|
4546
|
+
**/
|
|
4547
|
+
var doDecrypt = function doDecrypt(_ref2) {
|
|
4548
|
+
var data = _ref2.data,
|
|
4549
|
+
key = _ref2.key,
|
|
4550
|
+
mode = _ref2.mode;
|
|
4551
|
+
|
|
4552
|
+
var cipherMode = mode ? mode : 1;
|
|
4553
|
+
if (new RegExp('^04').test(key)) {
|
|
4554
|
+
key = key.slice(2);
|
|
4555
|
+
}
|
|
4556
|
+
var result = sm2.doDecrypt(data, key, cipherMode);
|
|
4557
|
+
return result;
|
|
4558
|
+
};
|
|
4559
|
+
|
|
4560
|
+
/***/ }),
|
|
4561
|
+
|
|
4562
|
+
/***/ 230:
|
|
4479
4563
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4480
4564
|
|
|
4481
4565
|
"use strict";
|
|
@@ -4750,65 +4834,6 @@ qrcode_login.install = function (Vue) {
|
|
|
4750
4834
|
|
|
4751
4835
|
/***/ }),
|
|
4752
4836
|
|
|
4753
|
-
/***/ 23:
|
|
4754
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4755
|
-
|
|
4756
|
-
"use strict";
|
|
4757
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
|
|
4758
|
-
/* unused harmony export doDecrypt */
|
|
4759
|
-
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
4760
|
-
var sm2 = __webpack_require__(34).sm2;
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
/**
|
|
4764
|
-
* doEncrypt
|
|
4765
|
-
* @desc:sm2加密
|
|
4766
|
-
* @author huangbo
|
|
4767
|
-
* @date 2022年5月7日
|
|
4768
|
-
* @param {string} [data] - 被加密的字符串
|
|
4769
|
-
* @param {string} [key] - 公钥
|
|
4770
|
-
**/
|
|
4771
|
-
var doEncrypt = function doEncrypt(_ref) {
|
|
4772
|
-
var data = _ref.data,
|
|
4773
|
-
key = _ref.key,
|
|
4774
|
-
mode = _ref.mode;
|
|
4775
|
-
|
|
4776
|
-
if (!key) {
|
|
4777
|
-
key = Object(_storage__WEBPACK_IMPORTED_MODULE_0__[/* getStorage */ "a"])('secretKey');
|
|
4778
|
-
}
|
|
4779
|
-
if (!mode) {
|
|
4780
|
-
mode = 1;
|
|
4781
|
-
}
|
|
4782
|
-
if (!new RegExp('^04').test(key)) {
|
|
4783
|
-
key = '04' + key;
|
|
4784
|
-
}
|
|
4785
|
-
var result = sm2.doEncrypt(data, key, mode);
|
|
4786
|
-
return result;
|
|
4787
|
-
};
|
|
4788
|
-
|
|
4789
|
-
/**
|
|
4790
|
-
* doDecrypt
|
|
4791
|
-
* @desc:sm2解密
|
|
4792
|
-
* @author huangbo
|
|
4793
|
-
* @date 2022年5月7日
|
|
4794
|
-
* @param {string} [data] - 被解密的加密字符串
|
|
4795
|
-
* @param {string} [key] - 私钥
|
|
4796
|
-
**/
|
|
4797
|
-
var doDecrypt = function doDecrypt(_ref2) {
|
|
4798
|
-
var data = _ref2.data,
|
|
4799
|
-
key = _ref2.key,
|
|
4800
|
-
mode = _ref2.mode;
|
|
4801
|
-
|
|
4802
|
-
var cipherMode = mode ? mode : 1;
|
|
4803
|
-
if (new RegExp('^04').test(key)) {
|
|
4804
|
-
key = key.slice(2);
|
|
4805
|
-
}
|
|
4806
|
-
var result = sm2.doDecrypt(data, key, cipherMode);
|
|
4807
|
-
return result;
|
|
4808
|
-
};
|
|
4809
|
-
|
|
4810
|
-
/***/ }),
|
|
4811
|
-
|
|
4812
4837
|
/***/ 24:
|
|
4813
4838
|
/***/ (function(module, exports) {
|
|
4814
4839
|
|
|
@@ -4816,17 +4841,10 @@ module.exports = require("fetch-request-source");
|
|
|
4816
4841
|
|
|
4817
4842
|
/***/ }),
|
|
4818
4843
|
|
|
4819
|
-
/***/ 28:
|
|
4820
|
-
/***/ (function(module, exports) {
|
|
4821
|
-
|
|
4822
|
-
module.exports = require("qs");
|
|
4823
|
-
|
|
4824
|
-
/***/ }),
|
|
4825
|
-
|
|
4826
4844
|
/***/ 29:
|
|
4827
4845
|
/***/ (function(module, exports) {
|
|
4828
4846
|
|
|
4829
|
-
module.exports = require("
|
|
4847
|
+
module.exports = require("qs");
|
|
4830
4848
|
|
|
4831
4849
|
/***/ }),
|
|
4832
4850
|
|
|
@@ -4938,6 +4956,13 @@ function normalizeComponent(
|
|
|
4938
4956
|
/***/ 30:
|
|
4939
4957
|
/***/ (function(module, exports) {
|
|
4940
4958
|
|
|
4959
|
+
module.exports = require("axios");
|
|
4960
|
+
|
|
4961
|
+
/***/ }),
|
|
4962
|
+
|
|
4963
|
+
/***/ 31:
|
|
4964
|
+
/***/ (function(module, exports) {
|
|
4965
|
+
|
|
4941
4966
|
module.exports = require("json-bigint");
|
|
4942
4967
|
|
|
4943
4968
|
/***/ }),
|
|
@@ -5032,7 +5057,7 @@ function isDefined(val) {
|
|
|
5032
5057
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doQrLogin; });
|
|
5033
5058
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return logout; });
|
|
5034
5059
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return initLogin; });
|
|
5035
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5060
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return switchUserTo; });
|
|
5036
5061
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return changeImg; });
|
|
5037
5062
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getLoginCode; });
|
|
5038
5063
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCodeLogin; });
|
|
@@ -5050,13 +5075,13 @@ function isDefined(val) {
|
|
|
5050
5075
|
/* unused harmony export scanCodeRetrialAuth */
|
|
5051
5076
|
/* unused harmony export codeRetrialAuth */
|
|
5052
5077
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return doAssistanceQrLogin; });
|
|
5053
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5078
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return userOnline; });
|
|
5054
5079
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUserAppWithTag; });
|
|
5055
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5080
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return recordUserApp; });
|
|
5056
5081
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserRecordApp; });
|
|
5057
5082
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return mainConfig; });
|
|
5058
5083
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initUserSet; });
|
|
5059
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5084
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateUserInfo; });
|
|
5060
5085
|
/* unused harmony export getUserImgUrl */
|
|
5061
5086
|
/* unused harmony export getDoorIndex */
|
|
5062
5087
|
/* unused harmony export refreshOnlineUsers */
|
|
@@ -5068,22 +5093,22 @@ function isDefined(val) {
|
|
|
5068
5093
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getByType; });
|
|
5069
5094
|
/* unused harmony export getUserCustomInfo */
|
|
5070
5095
|
/* unused harmony export updateUserCustomInfo */
|
|
5071
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5072
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5096
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveOrUpdate; });
|
|
5097
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return sysMsgPage; });
|
|
5073
5098
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreSysMsg; });
|
|
5074
5099
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return ignoreAllSysMsg; });
|
|
5075
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5100
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return searchType; });
|
|
5076
5101
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSysParam; });
|
|
5077
5102
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctProperties; });
|
|
5078
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5079
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5103
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploads; });
|
|
5104
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadOnlyOne; });
|
|
5080
5105
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getAdjunctFileInfos; });
|
|
5081
5106
|
/* unused harmony export uploadSort */
|
|
5082
5107
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return downloadByAdjunctId; });
|
|
5083
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5084
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5085
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5086
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5108
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadDownloads; });
|
|
5109
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct; });
|
|
5110
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct2; });
|
|
5111
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunctOffice; });
|
|
5087
5112
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return delAdjunct; });
|
|
5088
5113
|
/* unused harmony export upload_updateClassify */
|
|
5089
5114
|
/* unused harmony export getDeleteAdjunctFileInfos */
|
|
@@ -5098,13 +5123,13 @@ function isDefined(val) {
|
|
|
5098
5123
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return gethelpdoc; });
|
|
5099
5124
|
/* unused harmony export getCurrentuser */
|
|
5100
5125
|
/* unused harmony export mainDetail */
|
|
5101
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5102
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5126
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartFlow; });
|
|
5127
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tempSave; });
|
|
5103
5128
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return commonOpion; });
|
|
5104
5129
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
|
|
5105
5130
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return editCommonOpion; });
|
|
5106
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5107
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5131
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveCommonOpinion; });
|
|
5132
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateCommonOpinion; });
|
|
5108
5133
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return deleteCommonOpion; });
|
|
5109
5134
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getProcessDefList; });
|
|
5110
5135
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getNodeInfo; });
|
|
@@ -5113,27 +5138,27 @@ function isDefined(val) {
|
|
|
5113
5138
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCodes; });
|
|
5114
5139
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNotificationMsg; });
|
|
5115
5140
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getHandleInfoHtml; });
|
|
5116
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5141
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskHandleHtml; });
|
|
5117
5142
|
/* unused harmony export getView */
|
|
5118
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5119
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5120
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5121
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5122
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5123
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5124
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5125
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5126
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5127
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5143
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return register; });
|
|
5144
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pendedhistoryList; });
|
|
5145
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskRejectHtml; });
|
|
5146
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskRejectHtml; });
|
|
5147
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskRead; });
|
|
5148
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskReadIndex; });
|
|
5149
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskReadHtml; });
|
|
5150
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return rejectAndEnd; });
|
|
5151
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toSendMsg; });
|
|
5152
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return sendMsg; });
|
|
5128
5153
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowHtml; });
|
|
5129
5154
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return handleInfo; });
|
|
5130
5155
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return loginUserInfo; });
|
|
5131
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5132
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5156
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return wss; });
|
|
5157
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return topic; });
|
|
5133
5158
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getPresetCustomInfo; });
|
|
5134
5159
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetNodeInfo; });
|
|
5135
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5136
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5160
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTransferIndex; });
|
|
5161
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTransfer; });
|
|
5137
5162
|
/* unused harmony export toPresetInfoListIndex */
|
|
5138
5163
|
/* unused harmony export deletePresetInfo */
|
|
5139
5164
|
/* unused harmony export historyListJson */
|
|
@@ -5141,24 +5166,24 @@ function isDefined(val) {
|
|
|
5141
5166
|
/* unused harmony export pressListJson */
|
|
5142
5167
|
/* unused harmony export deleteFlow */
|
|
5143
5168
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isCanStartSubFlow; });
|
|
5144
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5145
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5146
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5147
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5148
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5149
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5150
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5151
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5152
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5153
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5154
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5155
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5156
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5157
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5158
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5159
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5160
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5161
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5169
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionExamine; });
|
|
5170
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionExamine; });
|
|
5171
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTakeAdvice; });
|
|
5172
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTakeAdvice; });
|
|
5173
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskStartDraft; });
|
|
5174
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSupervise; });
|
|
5175
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSuperviseSub; });
|
|
5176
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskStartDraft; });
|
|
5177
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskReview; });
|
|
5178
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskReview; });
|
|
5179
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionSeal; });
|
|
5180
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionSeal; });
|
|
5181
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTwoOfficesDispatch; });
|
|
5182
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return twoOfficesDispatch; });
|
|
5183
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toResetProcessIndex; });
|
|
5184
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return resetProcess; });
|
|
5185
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskContinuationIndex; });
|
|
5186
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskContinuation; });
|
|
5162
5187
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getFreeStartFlowParams; });
|
|
5163
5188
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlowWithSubmitTask; });
|
|
5164
5189
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkForeignOrgStartedCircularRead; });
|
|
@@ -5166,7 +5191,7 @@ function isDefined(val) {
|
|
|
5166
5191
|
/* unused harmony export fyListJson */
|
|
5167
5192
|
/* unused harmony export circularReadWithdraw */
|
|
5168
5193
|
/* unused harmony export taskReadWithDraw */
|
|
5169
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5194
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
|
|
5170
5195
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return checkBusinessIdStartedReadTransferHandle; });
|
|
5171
5196
|
/* unused harmony export sendList */
|
|
5172
5197
|
/* unused harmony export sendInfo */
|
|
@@ -5180,23 +5205,24 @@ function isDefined(val) {
|
|
|
5180
5205
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfoForStart; });
|
|
5181
5206
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return freeStartFlow; });
|
|
5182
5207
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getUrgencyLevelChangedNotificationType; });
|
|
5183
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5208
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toFreeTaskCircularRead; });
|
|
5184
5209
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeTaskCircularRead; });
|
|
5185
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5210
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageLists; });
|
|
5186
5211
|
/* unused harmony export publishedLists */
|
|
5187
5212
|
/* unused harmony export pageInfo */
|
|
5188
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5189
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return
|
|
5213
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageGroup; });
|
|
5214
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageSave; });
|
|
5215
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageUpdate; });
|
|
5190
5216
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return pageDelete; });
|
|
5191
5217
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchSave; });
|
|
5192
5218
|
/* unused harmony export batchUpdate */
|
|
5193
5219
|
/* unused harmony export batchDelete */
|
|
5194
5220
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchList; });
|
|
5195
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5196
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5197
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5198
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5199
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5221
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processListJson; });
|
|
5222
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processInfo; });
|
|
5223
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processDeleteJson; });
|
|
5224
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processSave; });
|
|
5225
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processUpdate; });
|
|
5200
5226
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeListJson; });
|
|
5201
5227
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return nodeDeleteJson; });
|
|
5202
5228
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeSave; });
|
|
@@ -5207,22 +5233,22 @@ function isDefined(val) {
|
|
|
5207
5233
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return moduleDelete; });
|
|
5208
5234
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleSave; });
|
|
5209
5235
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleUpdate; });
|
|
5210
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5211
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5212
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5213
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5236
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleListJson; });
|
|
5237
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleEdit; });
|
|
5238
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleRead; });
|
|
5239
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleSave; });
|
|
5214
5240
|
/* unused harmony export ruleSupplement */
|
|
5215
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5216
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5241
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleUndore; });
|
|
5242
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleAdd; });
|
|
5217
5243
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return companyDetail; });
|
|
5218
5244
|
/* unused harmony export issueDetailList */
|
|
5219
5245
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteRule; });
|
|
5220
5246
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParamV1; });
|
|
5221
5247
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyList; });
|
|
5222
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5248
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return supplement; });
|
|
5223
5249
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return isAddSource; });
|
|
5224
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5225
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5250
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tiggerInTime; });
|
|
5251
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateHistory; });
|
|
5226
5252
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
|
|
5227
5253
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeInTime; });
|
|
5228
5254
|
var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
|
|
@@ -5504,6 +5530,9 @@ var pageLists = '/main2/pageComponentConfig/listJson';
|
|
|
5504
5530
|
var publishedLists = '/main2/pageComponentConfig/listPublished';
|
|
5505
5531
|
// 获取自定义配置详情
|
|
5506
5532
|
var pageInfo = '/main2/pageComponentConfig/info';
|
|
5533
|
+
// 获取自定义配置授权列表
|
|
5534
|
+
var pageGroup = 'main2/pageComponentTarget/listByConfigIdAndTypeGroup';
|
|
5535
|
+
|
|
5507
5536
|
// 保存自定义配置,发布也调这个接口但要加上字段status=1
|
|
5508
5537
|
var pageSave = '/main2/pageComponentConfig/save';
|
|
5509
5538
|
// 更新自定义配置
|
|
@@ -5611,12 +5640,12 @@ module.exports = require("eoss/lib/message-box");
|
|
|
5611
5640
|
/* unused harmony export downloadZip */
|
|
5612
5641
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
|
|
5613
5642
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
|
|
5614
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
5643
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
|
|
5615
5644
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
|
|
5616
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
5645
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);
|
|
5617
5646
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
5618
5647
|
/* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
|
|
5619
|
-
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
5648
|
+
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
|
|
5620
5649
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
|
|
5621
5650
|
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
|
|
5622
5651
|
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24);
|
|
@@ -5858,7 +5887,7 @@ var ajax = function ajax(_ref) {
|
|
|
5858
5887
|
delete params[key];
|
|
5859
5888
|
}
|
|
5860
5889
|
}
|
|
5861
|
-
url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
5890
|
+
url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: url, param: encodedParams });
|
|
5862
5891
|
}
|
|
5863
5892
|
} else {
|
|
5864
5893
|
params = {};
|
|
@@ -6216,7 +6245,7 @@ function redirectToLogin() {
|
|
|
6216
6245
|
|
|
6217
6246
|
if (loginPage) {
|
|
6218
6247
|
// 处理相对路径
|
|
6219
|
-
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "
|
|
6248
|
+
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
|
|
6220
6249
|
var pathname = '';
|
|
6221
6250
|
try {
|
|
6222
6251
|
pathname = window.top.location.pathname;
|
|
@@ -6248,7 +6277,7 @@ function redirectToLogin() {
|
|
|
6248
6277
|
* @returns {Promise} 认证完成后 resolve
|
|
6249
6278
|
*/
|
|
6250
6279
|
var initAuth = function initAuth() {
|
|
6251
|
-
var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "
|
|
6280
|
+
var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])();
|
|
6252
6281
|
var token = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('token') || Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('Authorization');
|
|
6253
6282
|
|
|
6254
6283
|
// 已有 token 或没有认证参数,直接返回
|
|
@@ -6256,7 +6285,7 @@ var initAuth = function initAuth() {
|
|
|
6256
6285
|
return Promise.resolve();
|
|
6257
6286
|
}
|
|
6258
6287
|
|
|
6259
|
-
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "
|
|
6288
|
+
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('页面加载中...');
|
|
6260
6289
|
|
|
6261
6290
|
return ajax({
|
|
6262
6291
|
method: 'post',
|
|
@@ -6335,7 +6364,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
6335
6364
|
|
|
6336
6365
|
// 处理cookie参数
|
|
6337
6366
|
if (cookie === undefined) {
|
|
6338
|
-
cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "
|
|
6367
|
+
cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])({ name: 'cookie' });
|
|
6339
6368
|
}
|
|
6340
6369
|
|
|
6341
6370
|
// 处理登录页面路径
|
|
@@ -6350,7 +6379,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
6350
6379
|
sessionStorage.setItem('loginPage', loginPage);
|
|
6351
6380
|
|
|
6352
6381
|
// 处理相对路径
|
|
6353
|
-
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "
|
|
6382
|
+
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
|
|
6354
6383
|
if (pathname !== '/') {
|
|
6355
6384
|
var pathParts = pathname.split('/');
|
|
6356
6385
|
pathParts.splice(pathParts.length - 1);
|
|
@@ -6375,7 +6404,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
6375
6404
|
|
|
6376
6405
|
// 处理重定向
|
|
6377
6406
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
6378
|
-
window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
6407
|
+
window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: '.' + to.path + '.html', param: to.query }));
|
|
6379
6408
|
} else {
|
|
6380
6409
|
next();
|
|
6381
6410
|
}
|
|
@@ -6578,7 +6607,7 @@ var downloadFile = function downloadFile(_ref6) {
|
|
|
6578
6607
|
|
|
6579
6608
|
// 拼接URL参数
|
|
6580
6609
|
if (Object.keys(params).length > 0) {
|
|
6581
|
-
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
6610
|
+
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
|
|
6582
6611
|
}
|
|
6583
6612
|
} else if (file.raw) {
|
|
6584
6613
|
downloadUrl = URL.createObjectURL(file.raw);
|
|
@@ -6624,7 +6653,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
6624
6653
|
code = _ref7.code,
|
|
6625
6654
|
option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
|
|
6626
6655
|
|
|
6627
|
-
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "
|
|
6656
|
+
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Nc"] };
|
|
6628
6657
|
|
|
6629
6658
|
// 处理URL和参数
|
|
6630
6659
|
var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
|
|
@@ -6640,7 +6669,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
6640
6669
|
|
|
6641
6670
|
// 拼接URL参数
|
|
6642
6671
|
if (Object.keys(params).length > 0) {
|
|
6643
|
-
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
6672
|
+
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
|
|
6644
6673
|
}
|
|
6645
6674
|
|
|
6646
6675
|
// 创建a标签
|
|
@@ -6745,7 +6774,7 @@ var getTableData = function getTableData(_ref9) {
|
|
|
6745
6774
|
onSuccess = _ref9.onSuccess,
|
|
6746
6775
|
onError = _ref9.onError;
|
|
6747
6776
|
|
|
6748
|
-
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "
|
|
6777
|
+
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('数据加载中...');
|
|
6749
6778
|
return new Promise(function (resolve, reject) {
|
|
6750
6779
|
ajax({
|
|
6751
6780
|
method: method,
|