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/data-table.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 208);
|
|
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',
|
|
@@ -3274,31 +3274,31 @@ var removeCookie = function removeCookie(key) {
|
|
|
3274
3274
|
|
|
3275
3275
|
/***/ }),
|
|
3276
3276
|
|
|
3277
|
-
/***/
|
|
3277
|
+
/***/ 108:
|
|
3278
3278
|
/***/ (function(module, exports) {
|
|
3279
3279
|
|
|
3280
3280
|
module.exports = require("eoss/lib/table");
|
|
3281
3281
|
|
|
3282
3282
|
/***/ }),
|
|
3283
3283
|
|
|
3284
|
-
/***/
|
|
3284
|
+
/***/ 109:
|
|
3285
3285
|
/***/ (function(module, exports) {
|
|
3286
3286
|
|
|
3287
3287
|
module.exports = require("eoss/lib/toolbar");
|
|
3288
3288
|
|
|
3289
3289
|
/***/ }),
|
|
3290
3290
|
|
|
3291
|
-
/***/
|
|
3291
|
+
/***/ 11:
|
|
3292
3292
|
/***/ (function(module, exports) {
|
|
3293
3293
|
|
|
3294
|
-
module.exports = require("eoss/lib/
|
|
3294
|
+
module.exports = require("eoss/lib/message");
|
|
3295
3295
|
|
|
3296
3296
|
/***/ }),
|
|
3297
3297
|
|
|
3298
|
-
/***/
|
|
3298
|
+
/***/ 110:
|
|
3299
3299
|
/***/ (function(module, exports) {
|
|
3300
3300
|
|
|
3301
|
-
module.exports = require("eoss/lib/
|
|
3301
|
+
module.exports = require("eoss/lib/pagination");
|
|
3302
3302
|
|
|
3303
3303
|
/***/ }),
|
|
3304
3304
|
|
|
@@ -3365,7 +3365,7 @@ var getColor = function getColor($color, $n) {
|
|
|
3365
3365
|
var getLightness = function getLightness($v, $i, $isLight) {
|
|
3366
3366
|
var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
|
|
3367
3367
|
$value = $value < 1 ? $value : 1;
|
|
3368
|
-
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "
|
|
3368
|
+
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($value, 2);
|
|
3369
3369
|
};
|
|
3370
3370
|
|
|
3371
3371
|
/**
|
|
@@ -3389,7 +3389,7 @@ var getSaturation = function getSaturation($s, $i, $isLight) {
|
|
|
3389
3389
|
$saturation = 0.1;
|
|
3390
3390
|
}
|
|
3391
3391
|
$saturation = $saturation > 0.06 ? $saturation : 0.06;
|
|
3392
|
-
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "
|
|
3392
|
+
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($saturation, 2);
|
|
3393
3393
|
};
|
|
3394
3394
|
|
|
3395
3395
|
/**
|
|
@@ -3510,7 +3510,7 @@ module.exports = require("throttle-debounce");
|
|
|
3510
3510
|
|
|
3511
3511
|
/***/ }),
|
|
3512
3512
|
|
|
3513
|
-
/***/
|
|
3513
|
+
/***/ 17:
|
|
3514
3514
|
/***/ (function(module, exports) {
|
|
3515
3515
|
|
|
3516
3516
|
module.exports = require("eoss/lib/loading");
|
|
@@ -3574,736 +3574,759 @@ module.exports = require("lodash/get");
|
|
|
3574
3574
|
/* unused harmony export getSecond */
|
|
3575
3575
|
/* unused harmony export getWeekday */
|
|
3576
3576
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
|
|
3577
|
-
|
|
3578
|
-
|
|
3577
|
+
/* Modified from https://github.com/taylorhakes/fecha
|
|
3578
|
+
*
|
|
3579
|
+
* The MIT License (MIT)
|
|
3580
|
+
*
|
|
3581
|
+
* Copyright (c) 2015 Taylor Hakes
|
|
3582
|
+
*
|
|
3583
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3584
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
3585
|
+
* in the Software without restriction, including without limitation the rights
|
|
3586
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
3587
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
3588
|
+
* furnished to do so, subject to the following conditions:
|
|
3589
|
+
*
|
|
3590
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
3591
|
+
* copies or substantial portions of the Software.
|
|
3592
|
+
*
|
|
3593
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3594
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3595
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3596
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3597
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3598
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
3599
|
+
* SOFTWARE.
|
|
3600
|
+
*/
|
|
3601
|
+
|
|
3602
|
+
/*eslint-disable*/
|
|
3603
|
+
// 把 YYYY-MM-DD 改成了 yyyy-MM-dd
|
|
3604
|
+
|
|
3605
|
+
|
|
3579
3606
|
/**
|
|
3580
3607
|
* Parse or format dates
|
|
3581
3608
|
* @class fecha
|
|
3582
|
-
*/
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
function regexEscape(str) {
|
|
3593
|
-
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
3594
|
-
}
|
|
3595
|
-
|
|
3596
|
-
function shorten(arr, sLen) {
|
|
3597
|
-
|
|
3598
|
-
for (
|
|
3599
|
-
newArr.push(arr[i].substr(0, sLen));
|
|
3600
|
-
}
|
|
3601
|
-
return newArr;
|
|
3602
|
-
}
|
|
3603
|
-
|
|
3604
|
-
function monthUpdate() {
|
|
3605
|
-
return function (d, v) {
|
|
3606
|
-
|
|
3607
|
-
if (~index) {
|
|
3608
|
-
d.month = index;
|
|
3609
|
-
}
|
|
3610
|
-
};
|
|
3611
|
-
}
|
|
3612
|
-
|
|
3613
|
-
function pad(val, len) {
|
|
3614
|
-
val = String(val);
|
|
3615
|
-
len = len || 2;
|
|
3616
|
-
while (val.length < len) {
|
|
3617
|
-
val = '0' + val;
|
|
3618
|
-
}
|
|
3619
|
-
return val;
|
|
3620
|
-
}
|
|
3621
|
-
|
|
3622
|
-
// 直接使用中文日期名称常量
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
return D + '日';
|
|
3630
|
-
};
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
D: function
|
|
3634
|
-
return dateObj.getDay();
|
|
3635
|
-
},
|
|
3636
|
-
DD: function
|
|
3637
|
-
return pad(dateObj.getDay());
|
|
3638
|
-
},
|
|
3639
|
-
Do: function
|
|
3640
|
-
return DoFn(dateObj.getDate());
|
|
3641
|
-
},
|
|
3642
|
-
d: function
|
|
3643
|
-
return dateObj.getDate();
|
|
3644
|
-
},
|
|
3645
|
-
dd: function
|
|
3646
|
-
return pad(dateObj.getDate());
|
|
3647
|
-
},
|
|
3648
|
-
ddd: function
|
|
3649
|
-
return dayNamesShort[dateObj.getDay()];
|
|
3650
|
-
},
|
|
3651
|
-
dddd: function
|
|
3652
|
-
return dayNames[dateObj.getDay()];
|
|
3653
|
-
},
|
|
3654
|
-
M: function
|
|
3655
|
-
return dateObj.getMonth() + 1;
|
|
3656
|
-
},
|
|
3657
|
-
MM: function
|
|
3658
|
-
return pad(dateObj.getMonth() + 1);
|
|
3659
|
-
},
|
|
3660
|
-
MMM: function
|
|
3661
|
-
return monthNamesShort[dateObj.getMonth()];
|
|
3662
|
-
},
|
|
3663
|
-
MMMM: function
|
|
3664
|
-
return monthNames[dateObj.getMonth()];
|
|
3665
|
-
},
|
|
3666
|
-
yy: function
|
|
3667
|
-
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
3668
|
-
},
|
|
3669
|
-
yyyy: function
|
|
3670
|
-
return pad(dateObj.getFullYear(), 4);
|
|
3671
|
-
},
|
|
3672
|
-
h: function
|
|
3673
|
-
return dateObj.getHours() % 12 || 12;
|
|
3674
|
-
},
|
|
3675
|
-
hh: function
|
|
3676
|
-
return pad(dateObj.getHours() % 12 || 12);
|
|
3677
|
-
},
|
|
3678
|
-
H: function
|
|
3679
|
-
return dateObj.getHours();
|
|
3680
|
-
},
|
|
3681
|
-
HH: function
|
|
3682
|
-
return pad(dateObj.getHours());
|
|
3683
|
-
},
|
|
3684
|
-
m: function
|
|
3685
|
-
return dateObj.getMinutes();
|
|
3686
|
-
},
|
|
3687
|
-
mm: function
|
|
3688
|
-
return pad(dateObj.getMinutes());
|
|
3689
|
-
},
|
|
3690
|
-
s: function
|
|
3691
|
-
return dateObj.getSeconds();
|
|
3692
|
-
},
|
|
3693
|
-
ss: function
|
|
3694
|
-
return pad(dateObj.getSeconds());
|
|
3695
|
-
},
|
|
3696
|
-
S: function
|
|
3697
|
-
return Math.round(dateObj.getMilliseconds() / 100);
|
|
3698
|
-
},
|
|
3699
|
-
SS: function
|
|
3700
|
-
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
3701
|
-
},
|
|
3702
|
-
SSS: function
|
|
3703
|
-
return pad(dateObj.getMilliseconds(), 3);
|
|
3704
|
-
},
|
|
3705
|
-
a: function
|
|
3706
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
3707
|
-
},
|
|
3708
|
-
A: function
|
|
3709
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
3710
|
-
},
|
|
3711
|
-
ZZ: function
|
|
3712
|
-
|
|
3713
|
-
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
3714
|
-
}
|
|
3715
|
-
};
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
d: [twoDigits, function (d, v) {
|
|
3719
|
-
d.day = v;
|
|
3720
|
-
}],
|
|
3721
|
-
Do: [twoDigits + word, function (d, v) {
|
|
3722
|
-
d.day = parseInt(v, 10);
|
|
3723
|
-
}],
|
|
3724
|
-
M: [twoDigits, function (d, v) {
|
|
3725
|
-
d.month = v - 1;
|
|
3726
|
-
}],
|
|
3727
|
-
yy: [twoDigits, function (d, v) {
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
}
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
parseFlags.
|
|
3776
|
-
parseFlags.
|
|
3777
|
-
parseFlags.
|
|
3778
|
-
parseFlags.
|
|
3779
|
-
parseFlags.
|
|
3780
|
-
parseFlags.
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3609
|
+
*/
|
|
3610
|
+
const fecha = {};
|
|
3611
|
+
const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
|
|
3612
|
+
const twoDigits = '\\d\\d?';
|
|
3613
|
+
const threeDigits = '\\d{3}';
|
|
3614
|
+
const fourDigits = '\\d{4}';
|
|
3615
|
+
const word = '[^\\s]+';
|
|
3616
|
+
const literal = /\[([^]*?)\]/gm;
|
|
3617
|
+
const noop = function () {};
|
|
3618
|
+
|
|
3619
|
+
function regexEscape(str) {
|
|
3620
|
+
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
function shorten(arr, sLen) {
|
|
3624
|
+
const newArr = [];
|
|
3625
|
+
for (let i = 0, len = arr.length; i < len; i++) {
|
|
3626
|
+
newArr.push(arr[i].substr(0, sLen));
|
|
3627
|
+
}
|
|
3628
|
+
return newArr;
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
function monthUpdate() {
|
|
3632
|
+
return function (d, v) {
|
|
3633
|
+
const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
|
|
3634
|
+
if (~index) {
|
|
3635
|
+
d.month = index;
|
|
3636
|
+
}
|
|
3637
|
+
};
|
|
3638
|
+
}
|
|
3639
|
+
|
|
3640
|
+
function pad(val, len) {
|
|
3641
|
+
val = String(val);
|
|
3642
|
+
len = len || 2;
|
|
3643
|
+
while (val.length < len) {
|
|
3644
|
+
val = '0' + val;
|
|
3645
|
+
}
|
|
3646
|
+
return val;
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3649
|
+
// 直接使用中文日期名称常量
|
|
3650
|
+
const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
3651
|
+
const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
|
|
3652
|
+
const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
|
|
3653
|
+
const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
|
|
3654
|
+
const amPm = ['上午', '下午'];
|
|
3655
|
+
const DoFn = function DoFn(D) {
|
|
3656
|
+
return D + '日';
|
|
3657
|
+
};
|
|
3658
|
+
|
|
3659
|
+
const formatFlags = {
|
|
3660
|
+
D: function(dateObj) {
|
|
3661
|
+
return dateObj.getDay();
|
|
3662
|
+
},
|
|
3663
|
+
DD: function(dateObj) {
|
|
3664
|
+
return pad(dateObj.getDay());
|
|
3665
|
+
},
|
|
3666
|
+
Do: function(dateObj) {
|
|
3667
|
+
return DoFn(dateObj.getDate());
|
|
3668
|
+
},
|
|
3669
|
+
d: function(dateObj) {
|
|
3670
|
+
return dateObj.getDate();
|
|
3671
|
+
},
|
|
3672
|
+
dd: function(dateObj) {
|
|
3673
|
+
return pad(dateObj.getDate());
|
|
3674
|
+
},
|
|
3675
|
+
ddd: function(dateObj) {
|
|
3676
|
+
return dayNamesShort[dateObj.getDay()];
|
|
3677
|
+
},
|
|
3678
|
+
dddd: function(dateObj) {
|
|
3679
|
+
return dayNames[dateObj.getDay()];
|
|
3680
|
+
},
|
|
3681
|
+
M: function(dateObj) {
|
|
3682
|
+
return dateObj.getMonth() + 1;
|
|
3683
|
+
},
|
|
3684
|
+
MM: function(dateObj) {
|
|
3685
|
+
return pad(dateObj.getMonth() + 1);
|
|
3686
|
+
},
|
|
3687
|
+
MMM: function(dateObj) {
|
|
3688
|
+
return monthNamesShort[dateObj.getMonth()];
|
|
3689
|
+
},
|
|
3690
|
+
MMMM: function(dateObj) {
|
|
3691
|
+
return monthNames[dateObj.getMonth()];
|
|
3692
|
+
},
|
|
3693
|
+
yy: function(dateObj) {
|
|
3694
|
+
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
3695
|
+
},
|
|
3696
|
+
yyyy: function(dateObj) {
|
|
3697
|
+
return pad(dateObj.getFullYear(), 4);
|
|
3698
|
+
},
|
|
3699
|
+
h: function(dateObj) {
|
|
3700
|
+
return dateObj.getHours() % 12 || 12;
|
|
3701
|
+
},
|
|
3702
|
+
hh: function(dateObj) {
|
|
3703
|
+
return pad(dateObj.getHours() % 12 || 12);
|
|
3704
|
+
},
|
|
3705
|
+
H: function(dateObj) {
|
|
3706
|
+
return dateObj.getHours();
|
|
3707
|
+
},
|
|
3708
|
+
HH: function(dateObj) {
|
|
3709
|
+
return pad(dateObj.getHours());
|
|
3710
|
+
},
|
|
3711
|
+
m: function(dateObj) {
|
|
3712
|
+
return dateObj.getMinutes();
|
|
3713
|
+
},
|
|
3714
|
+
mm: function(dateObj) {
|
|
3715
|
+
return pad(dateObj.getMinutes());
|
|
3716
|
+
},
|
|
3717
|
+
s: function(dateObj) {
|
|
3718
|
+
return dateObj.getSeconds();
|
|
3719
|
+
},
|
|
3720
|
+
ss: function(dateObj) {
|
|
3721
|
+
return pad(dateObj.getSeconds());
|
|
3722
|
+
},
|
|
3723
|
+
S: function(dateObj) {
|
|
3724
|
+
return Math.round(dateObj.getMilliseconds() / 100);
|
|
3725
|
+
},
|
|
3726
|
+
SS: function(dateObj) {
|
|
3727
|
+
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
3728
|
+
},
|
|
3729
|
+
SSS: function(dateObj) {
|
|
3730
|
+
return pad(dateObj.getMilliseconds(), 3);
|
|
3731
|
+
},
|
|
3732
|
+
a: function(dateObj) {
|
|
3733
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
3734
|
+
},
|
|
3735
|
+
A: function(dateObj) {
|
|
3736
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
3737
|
+
},
|
|
3738
|
+
ZZ: function(dateObj) {
|
|
3739
|
+
const o = dateObj.getTimezoneOffset();
|
|
3740
|
+
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
3741
|
+
}
|
|
3742
|
+
};
|
|
3743
|
+
|
|
3744
|
+
const parseFlags = {
|
|
3745
|
+
d: [twoDigits, function (d, v) {
|
|
3746
|
+
d.day = v;
|
|
3747
|
+
}],
|
|
3748
|
+
Do: [twoDigits + word, function (d, v) {
|
|
3749
|
+
d.day = parseInt(v, 10);
|
|
3750
|
+
}],
|
|
3751
|
+
M: [twoDigits, function (d, v) {
|
|
3752
|
+
d.month = v - 1;
|
|
3753
|
+
}],
|
|
3754
|
+
yy: [twoDigits, function (d, v) {
|
|
3755
|
+
const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
|
|
3756
|
+
d.year = '' + (v > 68 ? cent - 1 : cent) + v;
|
|
3757
|
+
}],
|
|
3758
|
+
h: [twoDigits, function (d, v) {
|
|
3759
|
+
d.hour = v;
|
|
3760
|
+
}],
|
|
3761
|
+
m: [twoDigits, function (d, v) {
|
|
3762
|
+
d.minute = v;
|
|
3763
|
+
}],
|
|
3764
|
+
s: [twoDigits, function (d, v) {
|
|
3765
|
+
d.second = v;
|
|
3766
|
+
}],
|
|
3767
|
+
yyyy: [fourDigits, function (d, v) {
|
|
3768
|
+
d.year = v;
|
|
3769
|
+
}],
|
|
3770
|
+
S: ['\\d', function (d, v) {
|
|
3771
|
+
d.millisecond = v * 100;
|
|
3772
|
+
}],
|
|
3773
|
+
SS: ['\\d{2}', function (d, v) {
|
|
3774
|
+
d.millisecond = v * 10;
|
|
3775
|
+
}],
|
|
3776
|
+
SSS: [threeDigits, function (d, v) {
|
|
3777
|
+
d.millisecond = v;
|
|
3778
|
+
}],
|
|
3779
|
+
D: [twoDigits, noop],
|
|
3780
|
+
ddd: [word, noop],
|
|
3781
|
+
MMM: [word, monthUpdate('monthNamesShort')],
|
|
3782
|
+
MMMM: [word, monthUpdate('monthNames')],
|
|
3783
|
+
a: [word, function (d, v) {
|
|
3784
|
+
const val = v.toLowerCase();
|
|
3785
|
+
if (val === '上午') {
|
|
3786
|
+
d.isPm = false;
|
|
3787
|
+
} else if (val === '下午') {
|
|
3788
|
+
d.isPm = true;
|
|
3789
|
+
}
|
|
3790
|
+
}],
|
|
3791
|
+
ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
|
|
3792
|
+
let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
|
|
3793
|
+
|
|
3794
|
+
if (parts) {
|
|
3795
|
+
minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
|
|
3796
|
+
d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
|
|
3797
|
+
}
|
|
3798
|
+
}]
|
|
3799
|
+
};
|
|
3800
|
+
parseFlags.dd = parseFlags.d;
|
|
3801
|
+
parseFlags.dddd = parseFlags.ddd;
|
|
3802
|
+
parseFlags.DD = parseFlags.D;
|
|
3803
|
+
parseFlags.mm = parseFlags.m;
|
|
3804
|
+
parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
|
|
3805
|
+
parseFlags.MM = parseFlags.M;
|
|
3806
|
+
parseFlags.ss = parseFlags.s;
|
|
3807
|
+
parseFlags.A = parseFlags.a;
|
|
3808
|
+
|
|
3809
|
+
|
|
3810
|
+
// Some common format strings
|
|
3811
|
+
fecha.masks = {
|
|
3812
|
+
default: 'ddd MMM dd yyyy HH:mm:ss',
|
|
3813
|
+
shortDate: 'M/D/yy',
|
|
3814
|
+
mediumDate: 'MMM d, yyyy',
|
|
3815
|
+
longDate: 'MMMM d, yyyy',
|
|
3816
|
+
fullDate: 'dddd, MMMM d, yyyy',
|
|
3817
|
+
shortTime: 'HH:mm',
|
|
3818
|
+
mediumTime: 'HH:mm:ss',
|
|
3819
|
+
longTime: 'HH:mm:ss.SSS'
|
|
3820
|
+
};
|
|
3821
|
+
|
|
3796
3822
|
/***
|
|
3797
3823
|
* Format a date
|
|
3798
3824
|
* @method format
|
|
3799
3825
|
* @param {Date|number} dateObj
|
|
3800
3826
|
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
|
|
3801
|
-
*/
|
|
3802
|
-
fecha.format = function (dateObj, mask) {
|
|
3803
|
-
if (typeof dateObj === 'number') {
|
|
3804
|
-
dateObj = new Date(dateObj);
|
|
3805
|
-
}
|
|
3806
|
-
|
|
3807
|
-
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
3808
|
-
throw new Error('Invalid Date in fecha.format');
|
|
3809
|
-
}
|
|
3810
|
-
|
|
3811
|
-
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
// Make literals inactive by replacing them with ??
|
|
3816
|
-
mask = mask.replace(literal, function
|
|
3817
|
-
literals.push($1);
|
|
3818
|
-
return '@@@';
|
|
3819
|
-
});
|
|
3820
|
-
// Apply formatting rules
|
|
3821
|
-
mask = mask.replace(token, function ($0) {
|
|
3822
|
-
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
3823
|
-
});
|
|
3824
|
-
// Inline literal values back into the formatted value
|
|
3825
|
-
return mask.replace(/@@@/g, function
|
|
3826
|
-
return literals.shift();
|
|
3827
|
-
});
|
|
3828
|
-
};
|
|
3829
|
-
|
|
3827
|
+
*/
|
|
3828
|
+
fecha.format = function (dateObj, mask) {
|
|
3829
|
+
if (typeof dateObj === 'number') {
|
|
3830
|
+
dateObj = new Date(dateObj);
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
3834
|
+
throw new Error('Invalid Date in fecha.format');
|
|
3835
|
+
}
|
|
3836
|
+
|
|
3837
|
+
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
3838
|
+
|
|
3839
|
+
const literals = [];
|
|
3840
|
+
|
|
3841
|
+
// Make literals inactive by replacing them with ??
|
|
3842
|
+
mask = mask.replace(literal, function($0, $1) {
|
|
3843
|
+
literals.push($1);
|
|
3844
|
+
return '@@@';
|
|
3845
|
+
});
|
|
3846
|
+
// Apply formatting rules
|
|
3847
|
+
mask = mask.replace(token, function ($0) {
|
|
3848
|
+
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
3849
|
+
});
|
|
3850
|
+
// Inline literal values back into the formatted value
|
|
3851
|
+
return mask.replace(/@@@/g, function() {
|
|
3852
|
+
return literals.shift();
|
|
3853
|
+
});
|
|
3854
|
+
};
|
|
3855
|
+
|
|
3830
3856
|
/**
|
|
3831
3857
|
* Parse a date string into an object, changes - into /
|
|
3832
3858
|
* @method parse
|
|
3833
3859
|
* @param {string} dateStr Date string
|
|
3834
3860
|
* @param {string} format Date parse format
|
|
3835
3861
|
* @returns {Date|boolean}
|
|
3836
|
-
*/
|
|
3837
|
-
fecha.parse = function (dateStr, format) {
|
|
3838
|
-
if (typeof format !== 'string') {
|
|
3839
|
-
throw new Error('Invalid format in fecha.parse');
|
|
3840
|
-
}
|
|
3841
|
-
|
|
3842
|
-
format = fecha.masks[format] || format;
|
|
3843
|
-
|
|
3844
|
-
// Avoid regular expression denial of service, fail early for really long strings
|
|
3845
|
-
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
3846
|
-
if (dateStr.length > 1000) {
|
|
3847
|
-
return null;
|
|
3848
|
-
}
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
format = format.replace(literal, function
|
|
3854
|
-
literals.push($1);
|
|
3855
|
-
return '@@@';
|
|
3856
|
-
});
|
|
3857
|
-
|
|
3858
|
-
if (parseFlags[$0]) {
|
|
3859
|
-
|
|
3860
|
-
parseInfo.push(info[1]);
|
|
3861
|
-
return '(' + info[0] + ')';
|
|
3862
|
-
}
|
|
3863
|
-
|
|
3864
|
-
return $0;
|
|
3865
|
-
});
|
|
3866
|
-
newFormat = newFormat.replace(/@@@/g, function
|
|
3867
|
-
return literals.shift();
|
|
3868
|
-
});
|
|
3869
|
-
|
|
3870
|
-
if (!matches) {
|
|
3871
|
-
return null;
|
|
3872
|
-
}
|
|
3873
|
-
|
|
3874
|
-
for (
|
|
3875
|
-
parseInfo[i - 1](dateInfo, matches[i]);
|
|
3876
|
-
}
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
3880
|
-
dateInfo.hour = +dateInfo.hour + 12;
|
|
3881
|
-
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
3882
|
-
dateInfo.hour = 0;
|
|
3883
|
-
}
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
if (dateInfo.timezoneOffset != null) {
|
|
3887
|
-
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
3888
|
-
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
}
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
}
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
if (
|
|
3925
|
-
return
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
// 处理多种输入类型
|
|
3936
|
-
if (!date) return '';
|
|
3937
|
-
|
|
3938
|
-
// 如果是时间戳,转成日期对象
|
|
3939
|
-
if (typeof date === 'number') {
|
|
3940
|
-
date = new Date(date);
|
|
3941
|
-
}
|
|
3942
|
-
// 如果是字符串,转成日期对象
|
|
3943
|
-
if (typeof date === 'string') {
|
|
3944
|
-
date = new Date(date);
|
|
3945
|
-
}
|
|
3946
|
-
|
|
3947
|
-
// 调用toDate进一步验证和转换
|
|
3948
|
-
date = toDate(date);
|
|
3949
|
-
if (!date) return '';
|
|
3950
|
-
|
|
3951
|
-
// 兼容大写和小写的格式标记
|
|
3952
|
-
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
return
|
|
3974
|
-
}
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
//
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
3998
|
-
};
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
return prevDate(result,
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
//
|
|
4032
|
-
|
|
4033
|
-
//
|
|
4034
|
-
|
|
4035
|
-
//
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
for (
|
|
4055
|
-
hours[i] =
|
|
4056
|
-
}
|
|
4057
|
-
}
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
return
|
|
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
|
-
|
|
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
|
-
return
|
|
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
|
-
|
|
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
|
-
return
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
}
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
};
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
return
|
|
4219
|
-
};
|
|
4220
|
-
|
|
4221
|
-
var extractTimeFormat = function extractTimeFormat(format) {
|
|
4222
|
-
return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
|
|
4223
|
-
};
|
|
4224
|
-
|
|
4225
|
-
var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
|
|
4226
|
-
return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
|
|
4227
|
-
};
|
|
4228
|
-
|
|
3862
|
+
*/
|
|
3863
|
+
fecha.parse = function (dateStr, format) {
|
|
3864
|
+
if (typeof format !== 'string') {
|
|
3865
|
+
throw new Error('Invalid format in fecha.parse');
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3868
|
+
format = fecha.masks[format] || format;
|
|
3869
|
+
|
|
3870
|
+
// Avoid regular expression denial of service, fail early for really long strings
|
|
3871
|
+
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
3872
|
+
if (dateStr.length > 1000) {
|
|
3873
|
+
return null;
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
const dateInfo = {};
|
|
3877
|
+
const parseInfo = [];
|
|
3878
|
+
const literals = [];
|
|
3879
|
+
format = format.replace(literal, function($0, $1) {
|
|
3880
|
+
literals.push($1);
|
|
3881
|
+
return '@@@';
|
|
3882
|
+
});
|
|
3883
|
+
let newFormat = regexEscape(format).replace(token, function ($0) {
|
|
3884
|
+
if (parseFlags[$0]) {
|
|
3885
|
+
const info = parseFlags[$0];
|
|
3886
|
+
parseInfo.push(info[1]);
|
|
3887
|
+
return '(' + info[0] + ')';
|
|
3888
|
+
}
|
|
3889
|
+
|
|
3890
|
+
return $0;
|
|
3891
|
+
});
|
|
3892
|
+
newFormat = newFormat.replace(/@@@/g, function() {
|
|
3893
|
+
return literals.shift();
|
|
3894
|
+
});
|
|
3895
|
+
const matches = dateStr.match(new RegExp(newFormat, 'i'));
|
|
3896
|
+
if (!matches) {
|
|
3897
|
+
return null;
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
for (let i = 1; i < matches.length; i++) {
|
|
3901
|
+
parseInfo[i - 1](dateInfo, matches[i]);
|
|
3902
|
+
}
|
|
3903
|
+
|
|
3904
|
+
const today = new Date();
|
|
3905
|
+
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
3906
|
+
dateInfo.hour = +dateInfo.hour + 12;
|
|
3907
|
+
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
3908
|
+
dateInfo.hour = 0;
|
|
3909
|
+
}
|
|
3910
|
+
|
|
3911
|
+
let date;
|
|
3912
|
+
if (dateInfo.timezoneOffset != null) {
|
|
3913
|
+
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
3914
|
+
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
3915
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
|
|
3916
|
+
} else {
|
|
3917
|
+
date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
3918
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
|
|
3919
|
+
}
|
|
3920
|
+
return date;
|
|
3921
|
+
};
|
|
3922
|
+
|
|
3923
|
+
// 导出fecha对象
|
|
3924
|
+
|
|
3925
|
+
|
|
3926
|
+
// 以下是从date-util.js合并的函数
|
|
3927
|
+
const newArray = function(start, end) {
|
|
3928
|
+
let result = [];
|
|
3929
|
+
for (let i = start; i <= end; i++) {
|
|
3930
|
+
result.push(i);
|
|
3931
|
+
}
|
|
3932
|
+
return result;
|
|
3933
|
+
};
|
|
3934
|
+
|
|
3935
|
+
const getSettings = () => {
|
|
3936
|
+
return {
|
|
3937
|
+
dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
|
|
3938
|
+
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
|
|
3939
|
+
monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
3940
|
+
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
|
3941
|
+
amPm: ['上午', '下午']
|
|
3942
|
+
};
|
|
3943
|
+
};
|
|
3944
|
+
|
|
3945
|
+
const toDate = function(date) {
|
|
3946
|
+
return isDate(date) ? new Date(date) : null;
|
|
3947
|
+
};
|
|
3948
|
+
|
|
3949
|
+
const isDate = function(date) {
|
|
3950
|
+
if (date === null || date === undefined) return false;
|
|
3951
|
+
if (isNaN(new Date(date).getTime())) return false;
|
|
3952
|
+
if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
|
|
3953
|
+
return true;
|
|
3954
|
+
};
|
|
3955
|
+
|
|
3956
|
+
const isDateObject = function(val) {
|
|
3957
|
+
return val instanceof Date;
|
|
3958
|
+
};
|
|
3959
|
+
|
|
3960
|
+
const formatDate = function (date, format = 'yyyy-MM-dd') {
|
|
3961
|
+
// 处理多种输入类型
|
|
3962
|
+
if (!date) return '';
|
|
3963
|
+
|
|
3964
|
+
// 如果是时间戳,转成日期对象
|
|
3965
|
+
if (typeof date === 'number') {
|
|
3966
|
+
date = new Date(date);
|
|
3967
|
+
}
|
|
3968
|
+
// 如果是字符串,转成日期对象
|
|
3969
|
+
if (typeof date === 'string') {
|
|
3970
|
+
date = new Date(date);
|
|
3971
|
+
}
|
|
3972
|
+
|
|
3973
|
+
// 调用toDate进一步验证和转换
|
|
3974
|
+
date = toDate(date);
|
|
3975
|
+
if (!date) return '';
|
|
3976
|
+
|
|
3977
|
+
// 兼容大写和小写的格式标记
|
|
3978
|
+
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
3979
|
+
const lowercaseFormat = format
|
|
3980
|
+
.replace(/YYYY/g, 'yyyy')
|
|
3981
|
+
.replace(/D/g, 'd')
|
|
3982
|
+
|
|
3983
|
+
// 使用fecha库进行格式化,支持中文配置
|
|
3984
|
+
const str = fecha.format(date, lowercaseFormat, getSettings());
|
|
3985
|
+
return str;
|
|
3986
|
+
};
|
|
3987
|
+
|
|
3988
|
+
const parseDate = function(string, format) {
|
|
3989
|
+
return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
|
|
3990
|
+
};
|
|
3991
|
+
|
|
3992
|
+
const getDayCountOfMonth = function(year, month) {
|
|
3993
|
+
if (month === 3 || month === 5 || month === 8 || month === 10) {
|
|
3994
|
+
return 30;
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3997
|
+
if (month === 1) {
|
|
3998
|
+
if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
|
|
3999
|
+
return 29;
|
|
4000
|
+
} else {
|
|
4001
|
+
return 28;
|
|
4002
|
+
}
|
|
4003
|
+
}
|
|
4004
|
+
|
|
4005
|
+
return 31;
|
|
4006
|
+
};
|
|
4007
|
+
|
|
4008
|
+
const getDayCountOfYear = function(year) {
|
|
4009
|
+
const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
|
|
4010
|
+
return isLeapYear ? 366 : 365;
|
|
4011
|
+
};
|
|
4012
|
+
|
|
4013
|
+
const getFirstDayOfMonth = function(date) {
|
|
4014
|
+
const temp = new Date(date.getTime());
|
|
4015
|
+
temp.setDate(1);
|
|
4016
|
+
return temp.getDay();
|
|
4017
|
+
};
|
|
4018
|
+
|
|
4019
|
+
// see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
|
|
4020
|
+
// {prev, next} Date should work for Daylight Saving Time
|
|
4021
|
+
// Adding 24 * 60 * 60 * 1000 does not work in the above scenario
|
|
4022
|
+
const prevDate = function(date, amount = 1) {
|
|
4023
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
4024
|
+
};
|
|
4025
|
+
|
|
4026
|
+
const nextDate = function(date, amount = 1) {
|
|
4027
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
|
|
4028
|
+
};
|
|
4029
|
+
|
|
4030
|
+
const getStartDateOfMonth = function(year, month) {
|
|
4031
|
+
const result = new Date(year, month, 1);
|
|
4032
|
+
const day = result.getDay();
|
|
4033
|
+
|
|
4034
|
+
if (day === 0) {
|
|
4035
|
+
return prevDate(result, 7);
|
|
4036
|
+
} else {
|
|
4037
|
+
return prevDate(result, day);
|
|
4038
|
+
}
|
|
4039
|
+
};
|
|
4040
|
+
|
|
4041
|
+
const getWeekNumber = function(date) {
|
|
4042
|
+
// 支持多种输入类型
|
|
4043
|
+
if (!date||!isDate(date)) {
|
|
4044
|
+
date = new Date();
|
|
4045
|
+
}
|
|
4046
|
+
if (typeof date === 'string') {
|
|
4047
|
+
date = new Date(date);
|
|
4048
|
+
}
|
|
4049
|
+
|
|
4050
|
+
// 验证日期有效性
|
|
4051
|
+
if (!isDate(date)) return null;
|
|
4052
|
+
|
|
4053
|
+
const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
4054
|
+
// 设置为最近的星期四:当前日期 + 4 - 当前星期数
|
|
4055
|
+
// 将星期日的星期数设为7
|
|
4056
|
+
d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
|
|
4057
|
+
// 获取当年的第一天
|
|
4058
|
+
const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
4059
|
+
// 计算到最近的星期四的完整周数
|
|
4060
|
+
const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
|
|
4061
|
+
// 返回周数
|
|
4062
|
+
return weekNo;
|
|
4063
|
+
};
|
|
4064
|
+
|
|
4065
|
+
const getRangeHours = function(ranges) {
|
|
4066
|
+
const hours = [];
|
|
4067
|
+
let disabledHours = [];
|
|
4068
|
+
|
|
4069
|
+
(ranges || []).forEach(range => {
|
|
4070
|
+
const value = range.map(date => date.getHours());
|
|
4071
|
+
|
|
4072
|
+
disabledHours = disabledHours.concat(newArray(value[0], value[1]));
|
|
4073
|
+
});
|
|
4074
|
+
|
|
4075
|
+
if (disabledHours.length) {
|
|
4076
|
+
for (let i = 0; i < 24; i++) {
|
|
4077
|
+
hours[i] = disabledHours.indexOf(i) === -1;
|
|
4078
|
+
}
|
|
4079
|
+
} else {
|
|
4080
|
+
for (let i = 0; i < 24; i++) {
|
|
4081
|
+
hours[i] = false;
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
|
|
4085
|
+
return hours;
|
|
4086
|
+
};
|
|
4087
|
+
|
|
4088
|
+
const getPrevMonthLastDays = (date, amount) => {
|
|
4089
|
+
if (amount <= 0) return [];
|
|
4090
|
+
const temp = new Date(date.getTime());
|
|
4091
|
+
temp.setDate(0);
|
|
4092
|
+
const lastDay = temp.getDate();
|
|
4093
|
+
return range(amount).map((_, index) => lastDay - (amount - index - 1));
|
|
4094
|
+
};
|
|
4095
|
+
|
|
4096
|
+
const getMonthDays = (date) => {
|
|
4097
|
+
const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
4098
|
+
const days = temp.getDate();
|
|
4099
|
+
return range(days).map((_, index) => index + 1);
|
|
4100
|
+
};
|
|
4101
|
+
|
|
4102
|
+
function setRangeData(arr, start, end, value) {
|
|
4103
|
+
for (let i = start; i < end; i++) {
|
|
4104
|
+
arr[i] = value;
|
|
4105
|
+
}
|
|
4106
|
+
}
|
|
4107
|
+
|
|
4108
|
+
const getRangeMinutes = function(ranges, hour) {
|
|
4109
|
+
const minutes = new Array(60);
|
|
4110
|
+
|
|
4111
|
+
if (ranges.length > 0) {
|
|
4112
|
+
ranges.forEach(range => {
|
|
4113
|
+
const start = range[0];
|
|
4114
|
+
const end = range[1];
|
|
4115
|
+
const startHour = start.getHours();
|
|
4116
|
+
const startMinute = start.getMinutes();
|
|
4117
|
+
const endHour = end.getHours();
|
|
4118
|
+
const endMinute = end.getMinutes();
|
|
4119
|
+
if (startHour === hour && endHour !== hour) {
|
|
4120
|
+
setRangeData(minutes, startMinute, 60, true);
|
|
4121
|
+
} else if (startHour === hour && endHour === hour) {
|
|
4122
|
+
setRangeData(minutes, startMinute, endMinute + 1, true);
|
|
4123
|
+
} else if (startHour !== hour && endHour === hour) {
|
|
4124
|
+
setRangeData(minutes, 0, endMinute + 1, true);
|
|
4125
|
+
} else if (startHour < hour && endHour > hour) {
|
|
4126
|
+
setRangeData(minutes, 0, 60, true);
|
|
4127
|
+
}
|
|
4128
|
+
});
|
|
4129
|
+
} else {
|
|
4130
|
+
setRangeData(minutes, 0, 60, true);
|
|
4131
|
+
}
|
|
4132
|
+
return minutes;
|
|
4133
|
+
};
|
|
4134
|
+
|
|
4135
|
+
const range = function(n) {
|
|
4136
|
+
// see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
|
|
4137
|
+
return Array.apply(null, {length: n}).map((_, n) => n);
|
|
4138
|
+
};
|
|
4139
|
+
|
|
4140
|
+
const modifyDate = function(date, y, m, d) {
|
|
4141
|
+
return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
4142
|
+
};
|
|
4143
|
+
|
|
4144
|
+
const modifyTime = function(date, h, m, s) {
|
|
4145
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
|
|
4146
|
+
};
|
|
4147
|
+
|
|
4148
|
+
const modifyWithTimeString = (date, time) => {
|
|
4149
|
+
if (date == null || !time) {
|
|
4150
|
+
return date;
|
|
4151
|
+
}
|
|
4152
|
+
time = parseDate(time, 'HH:mm:ss');
|
|
4153
|
+
return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
|
|
4154
|
+
};
|
|
4155
|
+
|
|
4156
|
+
const clearTime = function(date) {
|
|
4157
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
4158
|
+
};
|
|
4159
|
+
|
|
4160
|
+
const clearMilliseconds = function(date) {
|
|
4161
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
|
|
4162
|
+
};
|
|
4163
|
+
|
|
4164
|
+
const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
|
|
4165
|
+
// TODO: refactory a more elegant solution
|
|
4166
|
+
if (ranges.length === 0) return date;
|
|
4167
|
+
const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
|
|
4168
|
+
const ndate = normalizeDate(date);
|
|
4169
|
+
const nranges = ranges.map(range => range.map(normalizeDate));
|
|
4170
|
+
if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
|
|
4171
|
+
|
|
4172
|
+
let minDate = nranges[0][0];
|
|
4173
|
+
let maxDate = nranges[0][0];
|
|
4174
|
+
|
|
4175
|
+
nranges.forEach(nrange => {
|
|
4176
|
+
minDate = new Date(Math.min(nrange[0], minDate));
|
|
4177
|
+
maxDate = new Date(Math.max(nrange[1], minDate));
|
|
4178
|
+
});
|
|
4179
|
+
|
|
4180
|
+
const ret = ndate < minDate ? minDate : maxDate;
|
|
4181
|
+
// preserve Year/Month/Date
|
|
4182
|
+
return modifyDate(
|
|
4183
|
+
ret,
|
|
4184
|
+
date.getFullYear(),
|
|
4185
|
+
date.getMonth(),
|
|
4186
|
+
date.getDate()
|
|
4187
|
+
);
|
|
4188
|
+
};
|
|
4189
|
+
|
|
4190
|
+
const timeWithinRange = function(date, selectableRange, format) {
|
|
4191
|
+
const limitedDate = limitTimeRange(date, selectableRange, format);
|
|
4192
|
+
return limitedDate.getTime() === date.getTime();
|
|
4193
|
+
};
|
|
4194
|
+
|
|
4195
|
+
const changeYearMonthAndClampDate = function(date, year, month) {
|
|
4196
|
+
// clamp date to the number of days in `year`, `month`
|
|
4197
|
+
// eg: (2010-1-31, 2010, 2) => 2010-2-28
|
|
4198
|
+
const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
|
|
4199
|
+
return modifyDate(date, year, month, monthDate);
|
|
4200
|
+
};
|
|
4201
|
+
|
|
4202
|
+
const prevMonth = function(date) {
|
|
4203
|
+
const year = date.getFullYear();
|
|
4204
|
+
const month = date.getMonth();
|
|
4205
|
+
return month === 0
|
|
4206
|
+
? changeYearMonthAndClampDate(date, year - 1, 11)
|
|
4207
|
+
: changeYearMonthAndClampDate(date, year, month - 1);
|
|
4208
|
+
};
|
|
4209
|
+
|
|
4210
|
+
const nextMonth = function(date) {
|
|
4211
|
+
const year = date.getFullYear();
|
|
4212
|
+
const month = date.getMonth();
|
|
4213
|
+
return month === 11
|
|
4214
|
+
? changeYearMonthAndClampDate(date, year + 1, 0)
|
|
4215
|
+
: changeYearMonthAndClampDate(date, year, month + 1);
|
|
4216
|
+
};
|
|
4217
|
+
|
|
4218
|
+
const prevYear = function(date, amount = 1) {
|
|
4219
|
+
const year = date.getFullYear();
|
|
4220
|
+
const month = date.getMonth();
|
|
4221
|
+
return changeYearMonthAndClampDate(date, year - amount, month);
|
|
4222
|
+
};
|
|
4223
|
+
|
|
4224
|
+
const nextYear = function(date, amount = 1) {
|
|
4225
|
+
const year = date.getFullYear();
|
|
4226
|
+
const month = date.getMonth();
|
|
4227
|
+
return changeYearMonthAndClampDate(date, year + amount, month);
|
|
4228
|
+
};
|
|
4229
|
+
|
|
4230
|
+
const extractDateFormat = function(format) {
|
|
4231
|
+
return format
|
|
4232
|
+
.replace(/\W?m{1,2}|\W?ZZ/g, '')
|
|
4233
|
+
.replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
|
|
4234
|
+
.trim();
|
|
4235
|
+
};
|
|
4236
|
+
|
|
4237
|
+
const extractTimeFormat = function(format) {
|
|
4238
|
+
return format
|
|
4239
|
+
.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
|
|
4240
|
+
.trim();
|
|
4241
|
+
};
|
|
4242
|
+
|
|
4243
|
+
const validateRangeInOneMonth = function(start, end) {
|
|
4244
|
+
return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
|
|
4245
|
+
};
|
|
4246
|
+
|
|
4229
4247
|
/**
|
|
4230
4248
|
* 计算两个日期之间的工作日数量(不包括周末和节假日)
|
|
4231
4249
|
* @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
|
|
4232
4250
|
* @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
|
|
4233
4251
|
* @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
|
|
4234
4252
|
* @returns {number} 工作日数量
|
|
4235
|
-
*/
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
}
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
4247
|
-
throw new Error(
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
}
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4253
|
+
*/
|
|
4254
|
+
const calculateNetworkDays = function (start_date, end_date, holidays = []) {
|
|
4255
|
+
if (typeof start_date !== 'string' || typeof end_date !== 'string') {
|
|
4256
|
+
throw new Error(
|
|
4257
|
+
"Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
4258
|
+
);
|
|
4259
|
+
}
|
|
4260
|
+
|
|
4261
|
+
const startDateObj = new Date(start_date);
|
|
4262
|
+
const endDateObj = new Date(end_date);
|
|
4263
|
+
|
|
4264
|
+
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
4265
|
+
throw new Error(
|
|
4266
|
+
"Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
4267
|
+
);
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4270
|
+
if (startDateObj > endDateObj) {
|
|
4271
|
+
throw new Error('Start date should be earlier than or equal to end date.');
|
|
4272
|
+
}
|
|
4273
|
+
|
|
4274
|
+
let workdays = 0;
|
|
4275
|
+
|
|
4276
|
+
// Iterate through each day in the date range
|
|
4277
|
+
for (
|
|
4278
|
+
let currentDate = new Date(startDateObj);
|
|
4279
|
+
currentDate <= endDateObj;
|
|
4280
|
+
currentDate.setDate(currentDate.getDate() + 1)
|
|
4281
|
+
) {
|
|
4282
|
+
// Check if the current day is a weekend (Saturday or Sunday)
|
|
4283
|
+
const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
|
|
4284
|
+
|
|
4285
|
+
// Check if the current day is a holiday
|
|
4286
|
+
const isHoliday = holidays.some((holiday) => {
|
|
4287
|
+
const holidayDate = new Date(holiday);
|
|
4288
|
+
return currentDate.toDateString() === holidayDate.toDateString();
|
|
4289
|
+
});
|
|
4290
|
+
|
|
4291
|
+
// If it's a workday (not a weekend or holiday), increment the workdays count
|
|
4292
|
+
if (!isWeekend && !isHoliday) {
|
|
4293
|
+
workdays++;
|
|
4294
|
+
}
|
|
4295
|
+
}
|
|
4296
|
+
|
|
4297
|
+
return workdays;
|
|
4298
|
+
};
|
|
4299
|
+
|
|
4281
4300
|
/**
|
|
4282
4301
|
* 日期加减天数
|
|
4283
4302
|
* @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
|
|
4284
4303
|
* @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
|
|
4285
4304
|
* @returns {string} 结果日期,格式为 "YYYY-MM-DD"
|
|
4286
|
-
*/
|
|
4287
|
-
|
|
4288
|
-
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
4289
|
-
throw new Error(
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4305
|
+
*/
|
|
4306
|
+
const dateAddDays = function (start_date, days) {
|
|
4307
|
+
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
4308
|
+
throw new Error(
|
|
4309
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
|
|
4310
|
+
);
|
|
4311
|
+
}
|
|
4312
|
+
|
|
4313
|
+
const startDateObj = new Date(start_date);
|
|
4314
|
+
if (isNaN(startDateObj.getTime())) {
|
|
4315
|
+
throw new Error(
|
|
4316
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
4317
|
+
);
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4320
|
+
const resultDateObj = new Date(startDateObj);
|
|
4321
|
+
resultDateObj.setDate(resultDateObj.getDate() + days);
|
|
4322
|
+
|
|
4323
|
+
const resultYear = resultDateObj.getFullYear();
|
|
4324
|
+
const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
|
|
4325
|
+
const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
|
|
4326
|
+
|
|
4327
|
+
return `${resultYear}-${resultMonth}-${resultDay}`;
|
|
4328
|
+
};
|
|
4329
|
+
|
|
4307
4330
|
/**
|
|
4308
4331
|
* 计算两个日期之间的差值
|
|
4309
4332
|
* @date 2023年12月14日
|
|
@@ -4311,180 +4334,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
|
|
|
4311
4334
|
* @param {String} end_date - 结束日期字符串
|
|
4312
4335
|
* @param {String} unit - 单位:year/month/day
|
|
4313
4336
|
* @returns {Number} 差值
|
|
4314
|
-
*/
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
if (unit === '
|
|
4328
|
-
return
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
}
|
|
4338
|
-
|
|
4337
|
+
*/
|
|
4338
|
+
const dateDiff = function (start_date, end_date, unit = 'day') {
|
|
4339
|
+
// Assuming date strings are in "YYYY-MM-DD" format
|
|
4340
|
+
var startDate = new Date(start_date);
|
|
4341
|
+
var endDate = new Date(end_date);
|
|
4342
|
+
|
|
4343
|
+
// If the date is invalid, return 0
|
|
4344
|
+
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
4345
|
+
return 0;
|
|
4346
|
+
}
|
|
4347
|
+
|
|
4348
|
+
if (unit === 'year') {
|
|
4349
|
+
return endDate.getFullYear() - startDate.getFullYear();
|
|
4350
|
+
} else if (unit === 'month') {
|
|
4351
|
+
return (
|
|
4352
|
+
(endDate.getFullYear() - startDate.getFullYear()) * 12 +
|
|
4353
|
+
(endDate.getMonth() - startDate.getMonth())
|
|
4354
|
+
);
|
|
4355
|
+
} else {
|
|
4356
|
+
// Default to day
|
|
4357
|
+
var timeDifference = endDate - startDate;
|
|
4358
|
+
// Calculate days (86400000 milliseconds per day)
|
|
4359
|
+
return Math.floor(timeDifference / 86400000);
|
|
4360
|
+
}
|
|
4361
|
+
};
|
|
4362
|
+
|
|
4339
4363
|
/**
|
|
4340
4364
|
* 获取月份中的日期
|
|
4341
4365
|
* @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
|
|
4342
4366
|
* @returns {number} 月份中的日期(1-31)
|
|
4343
|
-
*/
|
|
4344
|
-
|
|
4345
|
-
if (typeof date !== 'string') {
|
|
4346
|
-
throw new Error(
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4367
|
+
*/
|
|
4368
|
+
const dayOfMonth = function (date) {
|
|
4369
|
+
if (typeof date !== 'string') {
|
|
4370
|
+
throw new Error(
|
|
4371
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
4372
|
+
);
|
|
4373
|
+
}
|
|
4374
|
+
|
|
4375
|
+
const dateObj = new Date(date);
|
|
4376
|
+
if (isNaN(dateObj.getTime())) {
|
|
4377
|
+
throw new Error(
|
|
4378
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
4379
|
+
);
|
|
4380
|
+
}
|
|
4381
|
+
|
|
4382
|
+
return dateObj.getDate();
|
|
4383
|
+
};
|
|
4384
|
+
|
|
4357
4385
|
/**
|
|
4358
4386
|
* 获取当前日期
|
|
4359
4387
|
* @date 2022年5月7日
|
|
4360
4388
|
* @param {string} format - 日期格式,默认为'YYYY-MM-DD'
|
|
4361
4389
|
* @returns {string} 当前日期的格式化字符串
|
|
4362
|
-
*/
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
};
|
|
4368
|
-
|
|
4390
|
+
*/
|
|
4391
|
+
const getCurrentDate = function (format = 'YYYY-MM-DD') {
|
|
4392
|
+
return formatDate(new Date(), format);
|
|
4393
|
+
};
|
|
4394
|
+
|
|
4369
4395
|
/**
|
|
4370
4396
|
* 获取当前日期时间
|
|
4371
4397
|
* @date 2022年5月7日
|
|
4372
4398
|
* @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
|
|
4373
4399
|
* @returns {string} 当前日期时间的格式化字符串
|
|
4374
|
-
*/
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
};
|
|
4380
|
-
|
|
4400
|
+
*/
|
|
4401
|
+
const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
|
|
4402
|
+
return formatDate(new Date(), format);
|
|
4403
|
+
};
|
|
4404
|
+
|
|
4381
4405
|
/**
|
|
4382
4406
|
* 获取小时
|
|
4383
4407
|
* @date 2022年5月7日
|
|
4384
4408
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
4385
4409
|
* @returns {number} 小时数(0-23)
|
|
4386
|
-
*/
|
|
4387
|
-
|
|
4388
|
-
if (!date) {
|
|
4389
|
-
return new Date().getHours();
|
|
4390
|
-
}
|
|
4391
|
-
if (typeof date === 'string') {
|
|
4392
|
-
date = new Date(date);
|
|
4393
|
-
}
|
|
4394
|
-
return date.getHours();
|
|
4395
|
-
};
|
|
4396
|
-
|
|
4410
|
+
*/
|
|
4411
|
+
const getHour = function (date) {
|
|
4412
|
+
if (!date) {
|
|
4413
|
+
return new Date().getHours();
|
|
4414
|
+
}
|
|
4415
|
+
if (typeof date === 'string') {
|
|
4416
|
+
date = new Date(date);
|
|
4417
|
+
}
|
|
4418
|
+
return date.getHours();
|
|
4419
|
+
};
|
|
4420
|
+
|
|
4397
4421
|
/**
|
|
4398
4422
|
* 获取分钟
|
|
4399
4423
|
* @date 2022年5月7日
|
|
4400
4424
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
4401
4425
|
* @returns {number} 分钟数(0-59)
|
|
4402
|
-
*/
|
|
4403
|
-
|
|
4404
|
-
if (!date) {
|
|
4405
|
-
return new Date().getMinutes();
|
|
4406
|
-
}
|
|
4407
|
-
if (typeof date === 'string') {
|
|
4408
|
-
date = new Date(date);
|
|
4409
|
-
}
|
|
4410
|
-
return date.getMinutes();
|
|
4411
|
-
};
|
|
4412
|
-
|
|
4426
|
+
*/
|
|
4427
|
+
const getMinute = function (date) {
|
|
4428
|
+
if (!date) {
|
|
4429
|
+
return new Date().getMinutes();
|
|
4430
|
+
}
|
|
4431
|
+
if (typeof date === 'string') {
|
|
4432
|
+
date = new Date(date);
|
|
4433
|
+
}
|
|
4434
|
+
return date.getMinutes();
|
|
4435
|
+
};
|
|
4436
|
+
|
|
4413
4437
|
/**
|
|
4414
4438
|
* 获取月份
|
|
4415
4439
|
* @date 2022年5月7日
|
|
4416
4440
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
4417
4441
|
* @returns {number} 月份数(1-12)
|
|
4418
|
-
*/
|
|
4419
|
-
|
|
4420
|
-
if (!date) {
|
|
4421
|
-
return new Date().getMonth() + 1;
|
|
4422
|
-
}
|
|
4423
|
-
if (typeof date === 'string') {
|
|
4424
|
-
date = new Date(date);
|
|
4425
|
-
}
|
|
4426
|
-
return date.getMonth() + 1;
|
|
4427
|
-
};
|
|
4428
|
-
|
|
4442
|
+
*/
|
|
4443
|
+
const getMonth = function (date) {
|
|
4444
|
+
if (!date) {
|
|
4445
|
+
return new Date().getMonth() + 1;
|
|
4446
|
+
}
|
|
4447
|
+
if (typeof date === 'string') {
|
|
4448
|
+
date = new Date(date);
|
|
4449
|
+
}
|
|
4450
|
+
return date.getMonth() + 1;
|
|
4451
|
+
};
|
|
4452
|
+
|
|
4429
4453
|
/**
|
|
4430
4454
|
* 获取秒
|
|
4431
4455
|
* @date 2022年5月7日
|
|
4432
4456
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
4433
4457
|
* @returns {number} 秒数(0-59)
|
|
4434
|
-
*/
|
|
4435
|
-
|
|
4436
|
-
if (!date) {
|
|
4437
|
-
return new Date().getSeconds();
|
|
4438
|
-
}
|
|
4439
|
-
if (typeof date === 'string') {
|
|
4440
|
-
date = new Date(date);
|
|
4441
|
-
}
|
|
4442
|
-
return date.getSeconds();
|
|
4443
|
-
};
|
|
4444
|
-
|
|
4458
|
+
*/
|
|
4459
|
+
const getSecond = function (date) {
|
|
4460
|
+
if (!date) {
|
|
4461
|
+
return new Date().getSeconds();
|
|
4462
|
+
}
|
|
4463
|
+
if (typeof date === 'string') {
|
|
4464
|
+
date = new Date(date);
|
|
4465
|
+
}
|
|
4466
|
+
return date.getSeconds();
|
|
4467
|
+
};
|
|
4468
|
+
|
|
4445
4469
|
/**
|
|
4446
4470
|
* 获取星期几
|
|
4447
4471
|
* @date 2022年5月7日
|
|
4448
4472
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
4449
4473
|
* @returns {number} 星期几(0-6,0表示星期日)
|
|
4450
|
-
*/
|
|
4451
|
-
|
|
4452
|
-
if (!date) {
|
|
4453
|
-
return new Date().getDay();
|
|
4454
|
-
}
|
|
4455
|
-
if (typeof date === 'string') {
|
|
4456
|
-
date = new Date(date);
|
|
4457
|
-
}
|
|
4458
|
-
return date.getDay();
|
|
4459
|
-
};
|
|
4460
|
-
|
|
4474
|
+
*/
|
|
4475
|
+
const getWeekday = function (date) {
|
|
4476
|
+
if (!date) {
|
|
4477
|
+
return new Date().getDay();
|
|
4478
|
+
}
|
|
4479
|
+
if (typeof date === 'string') {
|
|
4480
|
+
date = new Date(date);
|
|
4481
|
+
}
|
|
4482
|
+
return date.getDay();
|
|
4483
|
+
};
|
|
4484
|
+
|
|
4485
|
+
|
|
4461
4486
|
/**
|
|
4462
4487
|
* @desc 获取上午/下午/晚上
|
|
4463
4488
|
* @author huangbo
|
|
4464
4489
|
* @date 2022年5月7日
|
|
4465
4490
|
* @param {String} [time] - 时间
|
|
4466
|
-
**/
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
if (!time) {
|
|
4470
|
-
hour = new Date().getHours();
|
|
4471
|
-
} else if (typeof time === 'string') {
|
|
4472
|
-
// 从时间字符串中提取小时
|
|
4473
|
-
|
|
4474
|
-
if (match) {
|
|
4475
|
-
hour = parseInt(match[1], 10);
|
|
4476
|
-
}
|
|
4477
|
-
} else if (typeof time === 'number') {
|
|
4478
|
-
hour = time;
|
|
4479
|
-
}
|
|
4480
|
-
// 判断时间段
|
|
4481
|
-
if (hour >= 5 && hour < 12) {
|
|
4482
|
-
return '上午';
|
|
4483
|
-
} else if (hour >= 12 && hour < 18) {
|
|
4484
|
-
return '下午';
|
|
4485
|
-
} else {
|
|
4486
|
-
return '晚上';
|
|
4487
|
-
}
|
|
4491
|
+
**/
|
|
4492
|
+
const timeCycle = function (time) {
|
|
4493
|
+
let hour = 0;
|
|
4494
|
+
if (!time) {
|
|
4495
|
+
hour = new Date().getHours();
|
|
4496
|
+
} else if (typeof time === 'string') {
|
|
4497
|
+
// 从时间字符串中提取小时
|
|
4498
|
+
const match = time.match(/^(\d{1,2})/);
|
|
4499
|
+
if (match) {
|
|
4500
|
+
hour = parseInt(match[1], 10);
|
|
4501
|
+
}
|
|
4502
|
+
} else if (typeof time === 'number') {
|
|
4503
|
+
hour = time;
|
|
4504
|
+
}
|
|
4505
|
+
// 判断时间段
|
|
4506
|
+
if (hour >= 5 && hour < 12) {
|
|
4507
|
+
return '上午';
|
|
4508
|
+
} else if (hour >= 12 && hour < 18) {
|
|
4509
|
+
return '下午';
|
|
4510
|
+
} else {
|
|
4511
|
+
return '晚上';
|
|
4512
|
+
}
|
|
4488
4513
|
};
|
|
4489
4514
|
|
|
4490
4515
|
/***/ }),
|
|
@@ -4496,7 +4521,7 @@ module.exports = require("lodash/set");
|
|
|
4496
4521
|
|
|
4497
4522
|
/***/ }),
|
|
4498
4523
|
|
|
4499
|
-
/***/
|
|
4524
|
+
/***/ 208:
|
|
4500
4525
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4501
4526
|
|
|
4502
4527
|
"use strict";
|
|
@@ -4597,15 +4622,15 @@ render._withStripped = true
|
|
|
4597
4622
|
// CONCATENATED MODULE: ./packages/data-table/src/data-table.vue?vue&type=template&id=1a9ec7a0&
|
|
4598
4623
|
|
|
4599
4624
|
// EXTERNAL MODULE: external "eoss/lib/table"
|
|
4600
|
-
var table_ = __webpack_require__(
|
|
4625
|
+
var table_ = __webpack_require__(108);
|
|
4601
4626
|
var table_default = /*#__PURE__*/__webpack_require__.n(table_);
|
|
4602
4627
|
|
|
4603
4628
|
// EXTERNAL MODULE: external "eoss/lib/toolbar"
|
|
4604
|
-
var toolbar_ = __webpack_require__(
|
|
4629
|
+
var toolbar_ = __webpack_require__(109);
|
|
4605
4630
|
var toolbar_default = /*#__PURE__*/__webpack_require__.n(toolbar_);
|
|
4606
4631
|
|
|
4607
4632
|
// EXTERNAL MODULE: external "eoss/lib/pagination"
|
|
4608
|
-
var pagination_ = __webpack_require__(
|
|
4633
|
+
var pagination_ = __webpack_require__(110);
|
|
4609
4634
|
var pagination_default = /*#__PURE__*/__webpack_require__.n(pagination_);
|
|
4610
4635
|
|
|
4611
4636
|
// EXTERNAL MODULE: ./src/utils/ajax.js
|
|
@@ -5171,17 +5196,10 @@ module.exports = require("fetch-request-source");
|
|
|
5171
5196
|
|
|
5172
5197
|
/***/ }),
|
|
5173
5198
|
|
|
5174
|
-
/***/ 28:
|
|
5175
|
-
/***/ (function(module, exports) {
|
|
5176
|
-
|
|
5177
|
-
module.exports = require("qs");
|
|
5178
|
-
|
|
5179
|
-
/***/ }),
|
|
5180
|
-
|
|
5181
5199
|
/***/ 29:
|
|
5182
5200
|
/***/ (function(module, exports) {
|
|
5183
5201
|
|
|
5184
|
-
module.exports = require("
|
|
5202
|
+
module.exports = require("qs");
|
|
5185
5203
|
|
|
5186
5204
|
/***/ }),
|
|
5187
5205
|
|
|
@@ -5293,6 +5311,13 @@ function normalizeComponent(
|
|
|
5293
5311
|
/***/ 30:
|
|
5294
5312
|
/***/ (function(module, exports) {
|
|
5295
5313
|
|
|
5314
|
+
module.exports = require("axios");
|
|
5315
|
+
|
|
5316
|
+
/***/ }),
|
|
5317
|
+
|
|
5318
|
+
/***/ 31:
|
|
5319
|
+
/***/ (function(module, exports) {
|
|
5320
|
+
|
|
5296
5321
|
module.exports = require("json-bigint");
|
|
5297
5322
|
|
|
5298
5323
|
/***/ }),
|
|
@@ -5387,7 +5412,7 @@ function isDefined(val) {
|
|
|
5387
5412
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doQrLogin; });
|
|
5388
5413
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return logout; });
|
|
5389
5414
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return initLogin; });
|
|
5390
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5415
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return switchUserTo; });
|
|
5391
5416
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return changeImg; });
|
|
5392
5417
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getLoginCode; });
|
|
5393
5418
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCodeLogin; });
|
|
@@ -5405,13 +5430,13 @@ function isDefined(val) {
|
|
|
5405
5430
|
/* unused harmony export scanCodeRetrialAuth */
|
|
5406
5431
|
/* unused harmony export codeRetrialAuth */
|
|
5407
5432
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return doAssistanceQrLogin; });
|
|
5408
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5433
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return userOnline; });
|
|
5409
5434
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUserAppWithTag; });
|
|
5410
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5435
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return recordUserApp; });
|
|
5411
5436
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserRecordApp; });
|
|
5412
5437
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return mainConfig; });
|
|
5413
5438
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initUserSet; });
|
|
5414
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5439
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateUserInfo; });
|
|
5415
5440
|
/* unused harmony export getUserImgUrl */
|
|
5416
5441
|
/* unused harmony export getDoorIndex */
|
|
5417
5442
|
/* unused harmony export refreshOnlineUsers */
|
|
@@ -5423,22 +5448,22 @@ function isDefined(val) {
|
|
|
5423
5448
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getByType; });
|
|
5424
5449
|
/* unused harmony export getUserCustomInfo */
|
|
5425
5450
|
/* unused harmony export updateUserCustomInfo */
|
|
5426
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5427
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5451
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveOrUpdate; });
|
|
5452
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return sysMsgPage; });
|
|
5428
5453
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreSysMsg; });
|
|
5429
5454
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return ignoreAllSysMsg; });
|
|
5430
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5455
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return searchType; });
|
|
5431
5456
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSysParam; });
|
|
5432
5457
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctProperties; });
|
|
5433
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5434
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5458
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploads; });
|
|
5459
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadOnlyOne; });
|
|
5435
5460
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getAdjunctFileInfos; });
|
|
5436
5461
|
/* unused harmony export uploadSort */
|
|
5437
5462
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return downloadByAdjunctId; });
|
|
5438
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5439
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5440
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5441
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5463
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadDownloads; });
|
|
5464
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct; });
|
|
5465
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct2; });
|
|
5466
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunctOffice; });
|
|
5442
5467
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return delAdjunct; });
|
|
5443
5468
|
/* unused harmony export upload_updateClassify */
|
|
5444
5469
|
/* unused harmony export getDeleteAdjunctFileInfos */
|
|
@@ -5453,13 +5478,13 @@ function isDefined(val) {
|
|
|
5453
5478
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return gethelpdoc; });
|
|
5454
5479
|
/* unused harmony export getCurrentuser */
|
|
5455
5480
|
/* unused harmony export mainDetail */
|
|
5456
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5457
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5481
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartFlow; });
|
|
5482
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tempSave; });
|
|
5458
5483
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return commonOpion; });
|
|
5459
5484
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
|
|
5460
5485
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return editCommonOpion; });
|
|
5461
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5462
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5486
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveCommonOpinion; });
|
|
5487
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateCommonOpinion; });
|
|
5463
5488
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return deleteCommonOpion; });
|
|
5464
5489
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getProcessDefList; });
|
|
5465
5490
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getNodeInfo; });
|
|
@@ -5468,27 +5493,27 @@ function isDefined(val) {
|
|
|
5468
5493
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCodes; });
|
|
5469
5494
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNotificationMsg; });
|
|
5470
5495
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getHandleInfoHtml; });
|
|
5471
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5496
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskHandleHtml; });
|
|
5472
5497
|
/* unused harmony export getView */
|
|
5473
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5474
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5475
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5476
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5477
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5478
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5479
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5480
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5481
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5482
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5498
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return register; });
|
|
5499
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pendedhistoryList; });
|
|
5500
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskRejectHtml; });
|
|
5501
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskRejectHtml; });
|
|
5502
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskRead; });
|
|
5503
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskReadIndex; });
|
|
5504
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskReadHtml; });
|
|
5505
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return rejectAndEnd; });
|
|
5506
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toSendMsg; });
|
|
5507
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return sendMsg; });
|
|
5483
5508
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowHtml; });
|
|
5484
5509
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return handleInfo; });
|
|
5485
5510
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return loginUserInfo; });
|
|
5486
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5487
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5511
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return wss; });
|
|
5512
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return topic; });
|
|
5488
5513
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getPresetCustomInfo; });
|
|
5489
5514
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetNodeInfo; });
|
|
5490
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5491
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5515
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTransferIndex; });
|
|
5516
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTransfer; });
|
|
5492
5517
|
/* unused harmony export toPresetInfoListIndex */
|
|
5493
5518
|
/* unused harmony export deletePresetInfo */
|
|
5494
5519
|
/* unused harmony export historyListJson */
|
|
@@ -5496,24 +5521,24 @@ function isDefined(val) {
|
|
|
5496
5521
|
/* unused harmony export pressListJson */
|
|
5497
5522
|
/* unused harmony export deleteFlow */
|
|
5498
5523
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isCanStartSubFlow; });
|
|
5499
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5500
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5501
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5502
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5503
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5504
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5505
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5506
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5507
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5508
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5509
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5510
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5511
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5512
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5513
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5514
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5515
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5516
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5524
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionExamine; });
|
|
5525
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionExamine; });
|
|
5526
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTakeAdvice; });
|
|
5527
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTakeAdvice; });
|
|
5528
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskStartDraft; });
|
|
5529
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSupervise; });
|
|
5530
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSuperviseSub; });
|
|
5531
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskStartDraft; });
|
|
5532
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskReview; });
|
|
5533
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskReview; });
|
|
5534
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionSeal; });
|
|
5535
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionSeal; });
|
|
5536
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTwoOfficesDispatch; });
|
|
5537
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return twoOfficesDispatch; });
|
|
5538
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toResetProcessIndex; });
|
|
5539
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return resetProcess; });
|
|
5540
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskContinuationIndex; });
|
|
5541
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskContinuation; });
|
|
5517
5542
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getFreeStartFlowParams; });
|
|
5518
5543
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlowWithSubmitTask; });
|
|
5519
5544
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkForeignOrgStartedCircularRead; });
|
|
@@ -5521,7 +5546,7 @@ function isDefined(val) {
|
|
|
5521
5546
|
/* unused harmony export fyListJson */
|
|
5522
5547
|
/* unused harmony export circularReadWithdraw */
|
|
5523
5548
|
/* unused harmony export taskReadWithDraw */
|
|
5524
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5549
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
|
|
5525
5550
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return checkBusinessIdStartedReadTransferHandle; });
|
|
5526
5551
|
/* unused harmony export sendList */
|
|
5527
5552
|
/* unused harmony export sendInfo */
|
|
@@ -5535,23 +5560,24 @@ function isDefined(val) {
|
|
|
5535
5560
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfoForStart; });
|
|
5536
5561
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return freeStartFlow; });
|
|
5537
5562
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getUrgencyLevelChangedNotificationType; });
|
|
5538
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5563
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toFreeTaskCircularRead; });
|
|
5539
5564
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeTaskCircularRead; });
|
|
5540
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5565
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageLists; });
|
|
5541
5566
|
/* unused harmony export publishedLists */
|
|
5542
5567
|
/* unused harmony export pageInfo */
|
|
5543
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5544
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return
|
|
5568
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageGroup; });
|
|
5569
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageSave; });
|
|
5570
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageUpdate; });
|
|
5545
5571
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return pageDelete; });
|
|
5546
5572
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchSave; });
|
|
5547
5573
|
/* unused harmony export batchUpdate */
|
|
5548
5574
|
/* unused harmony export batchDelete */
|
|
5549
5575
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchList; });
|
|
5550
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5551
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5552
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5553
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5554
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5576
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processListJson; });
|
|
5577
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processInfo; });
|
|
5578
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processDeleteJson; });
|
|
5579
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processSave; });
|
|
5580
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processUpdate; });
|
|
5555
5581
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeListJson; });
|
|
5556
5582
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return nodeDeleteJson; });
|
|
5557
5583
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeSave; });
|
|
@@ -5562,22 +5588,22 @@ function isDefined(val) {
|
|
|
5562
5588
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return moduleDelete; });
|
|
5563
5589
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleSave; });
|
|
5564
5590
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleUpdate; });
|
|
5565
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5566
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5567
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5568
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5591
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleListJson; });
|
|
5592
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleEdit; });
|
|
5593
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleRead; });
|
|
5594
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleSave; });
|
|
5569
5595
|
/* unused harmony export ruleSupplement */
|
|
5570
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5571
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5596
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleUndore; });
|
|
5597
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleAdd; });
|
|
5572
5598
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return companyDetail; });
|
|
5573
5599
|
/* unused harmony export issueDetailList */
|
|
5574
5600
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteRule; });
|
|
5575
5601
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParamV1; });
|
|
5576
5602
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyList; });
|
|
5577
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5603
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return supplement; });
|
|
5578
5604
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return isAddSource; });
|
|
5579
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5580
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5605
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tiggerInTime; });
|
|
5606
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateHistory; });
|
|
5581
5607
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
|
|
5582
5608
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeInTime; });
|
|
5583
5609
|
var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
|
|
@@ -5859,6 +5885,9 @@ var pageLists = '/main2/pageComponentConfig/listJson';
|
|
|
5859
5885
|
var publishedLists = '/main2/pageComponentConfig/listPublished';
|
|
5860
5886
|
// 获取自定义配置详情
|
|
5861
5887
|
var pageInfo = '/main2/pageComponentConfig/info';
|
|
5888
|
+
// 获取自定义配置授权列表
|
|
5889
|
+
var pageGroup = 'main2/pageComponentTarget/listByConfigIdAndTypeGroup';
|
|
5890
|
+
|
|
5862
5891
|
// 保存自定义配置,发布也调这个接口但要加上字段status=1
|
|
5863
5892
|
var pageSave = '/main2/pageComponentConfig/save';
|
|
5864
5893
|
// 更新自定义配置
|
|
@@ -5966,12 +5995,12 @@ module.exports = require("eoss/lib/message-box");
|
|
|
5966
5995
|
/* unused harmony export downloadZip */
|
|
5967
5996
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
|
|
5968
5997
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
|
|
5969
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
5998
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
|
|
5970
5999
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
|
|
5971
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
6000
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);
|
|
5972
6001
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
5973
6002
|
/* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
|
|
5974
|
-
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
6003
|
+
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
|
|
5975
6004
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
|
|
5976
6005
|
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
|
|
5977
6006
|
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24);
|
|
@@ -6213,7 +6242,7 @@ var ajax = function ajax(_ref) {
|
|
|
6213
6242
|
delete params[key];
|
|
6214
6243
|
}
|
|
6215
6244
|
}
|
|
6216
|
-
url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
6245
|
+
url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: url, param: encodedParams });
|
|
6217
6246
|
}
|
|
6218
6247
|
} else {
|
|
6219
6248
|
params = {};
|
|
@@ -6571,7 +6600,7 @@ function redirectToLogin() {
|
|
|
6571
6600
|
|
|
6572
6601
|
if (loginPage) {
|
|
6573
6602
|
// 处理相对路径
|
|
6574
|
-
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "
|
|
6603
|
+
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
|
|
6575
6604
|
var pathname = '';
|
|
6576
6605
|
try {
|
|
6577
6606
|
pathname = window.top.location.pathname;
|
|
@@ -6603,7 +6632,7 @@ function redirectToLogin() {
|
|
|
6603
6632
|
* @returns {Promise} 认证完成后 resolve
|
|
6604
6633
|
*/
|
|
6605
6634
|
var initAuth = function initAuth() {
|
|
6606
|
-
var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "
|
|
6635
|
+
var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])();
|
|
6607
6636
|
var token = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('token') || Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('Authorization');
|
|
6608
6637
|
|
|
6609
6638
|
// 已有 token 或没有认证参数,直接返回
|
|
@@ -6611,7 +6640,7 @@ var initAuth = function initAuth() {
|
|
|
6611
6640
|
return Promise.resolve();
|
|
6612
6641
|
}
|
|
6613
6642
|
|
|
6614
|
-
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "
|
|
6643
|
+
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('页面加载中...');
|
|
6615
6644
|
|
|
6616
6645
|
return ajax({
|
|
6617
6646
|
method: 'post',
|
|
@@ -6690,7 +6719,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
6690
6719
|
|
|
6691
6720
|
// 处理cookie参数
|
|
6692
6721
|
if (cookie === undefined) {
|
|
6693
|
-
cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "
|
|
6722
|
+
cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])({ name: 'cookie' });
|
|
6694
6723
|
}
|
|
6695
6724
|
|
|
6696
6725
|
// 处理登录页面路径
|
|
@@ -6705,7 +6734,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
6705
6734
|
sessionStorage.setItem('loginPage', loginPage);
|
|
6706
6735
|
|
|
6707
6736
|
// 处理相对路径
|
|
6708
|
-
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "
|
|
6737
|
+
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
|
|
6709
6738
|
if (pathname !== '/') {
|
|
6710
6739
|
var pathParts = pathname.split('/');
|
|
6711
6740
|
pathParts.splice(pathParts.length - 1);
|
|
@@ -6730,7 +6759,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
6730
6759
|
|
|
6731
6760
|
// 处理重定向
|
|
6732
6761
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
6733
|
-
window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
6762
|
+
window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: '.' + to.path + '.html', param: to.query }));
|
|
6734
6763
|
} else {
|
|
6735
6764
|
next();
|
|
6736
6765
|
}
|
|
@@ -6933,7 +6962,7 @@ var downloadFile = function downloadFile(_ref6) {
|
|
|
6933
6962
|
|
|
6934
6963
|
// 拼接URL参数
|
|
6935
6964
|
if (Object.keys(params).length > 0) {
|
|
6936
|
-
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
6965
|
+
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
|
|
6937
6966
|
}
|
|
6938
6967
|
} else if (file.raw) {
|
|
6939
6968
|
downloadUrl = URL.createObjectURL(file.raw);
|
|
@@ -6979,7 +7008,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
6979
7008
|
code = _ref7.code,
|
|
6980
7009
|
option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
|
|
6981
7010
|
|
|
6982
|
-
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "
|
|
7011
|
+
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Nc"] };
|
|
6983
7012
|
|
|
6984
7013
|
// 处理URL和参数
|
|
6985
7014
|
var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
|
|
@@ -6995,7 +7024,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
6995
7024
|
|
|
6996
7025
|
// 拼接URL参数
|
|
6997
7026
|
if (Object.keys(params).length > 0) {
|
|
6998
|
-
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
7027
|
+
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
|
|
6999
7028
|
}
|
|
7000
7029
|
|
|
7001
7030
|
// 创建a标签
|
|
@@ -7100,7 +7129,7 @@ var getTableData = function getTableData(_ref9) {
|
|
|
7100
7129
|
onSuccess = _ref9.onSuccess,
|
|
7101
7130
|
onError = _ref9.onError;
|
|
7102
7131
|
|
|
7103
|
-
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "
|
|
7132
|
+
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('数据加载中...');
|
|
7104
7133
|
return new Promise(function (resolve, reject) {
|
|
7105
7134
|
ajax({
|
|
7106
7135
|
method: method,
|