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/process-config.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 = 177);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -91,32 +91,32 @@ module.exports =
|
|
|
91
91
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
94
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
95
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
96
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
97
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
98
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
94
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return noop; });
|
|
95
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return hasOwn; });
|
|
96
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return toObject; });
|
|
97
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getValueByPath; });
|
|
98
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return getPropByPath; });
|
|
99
99
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return generateId; });
|
|
100
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
100
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return valueEquals; });
|
|
101
101
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return escapeRegexpString; });
|
|
102
102
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return arrayFindIndex; });
|
|
103
103
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFind; });
|
|
104
104
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return coerceTruthyValueToArray; });
|
|
105
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
106
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
107
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
105
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return isIE; });
|
|
106
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return isEdge; });
|
|
107
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return isFirefox; });
|
|
108
108
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return autoprefixer; });
|
|
109
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
109
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return kebabCase; });
|
|
110
110
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return capitalize; });
|
|
111
111
|
/* unused harmony export looseEqual */
|
|
112
112
|
/* unused harmony export arrayEquals */
|
|
113
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
114
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
113
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isEqual; });
|
|
114
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return rafThrottle; });
|
|
115
115
|
/* unused harmony export objToArray */
|
|
116
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
116
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return requestAnimationFrame; });
|
|
117
117
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return cancelAnimationFrame; });
|
|
118
118
|
/* unused harmony export debounce */
|
|
119
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
119
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return throttle; });
|
|
120
120
|
/* unused harmony export guid */
|
|
121
121
|
/* unused harmony export uid */
|
|
122
122
|
/* unused harmony export get */
|
|
@@ -124,7 +124,7 @@ module.exports =
|
|
|
124
124
|
/* unused harmony export cloneDeep */
|
|
125
125
|
/* unused harmony export grouping */
|
|
126
126
|
/* unused harmony export pager */
|
|
127
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
127
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return getWinTop; });
|
|
128
128
|
/* unused harmony export getFileType */
|
|
129
129
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrUnique; });
|
|
130
130
|
/* unused harmony export average */
|
|
@@ -142,54 +142,54 @@ module.exports =
|
|
|
142
142
|
/* unused harmony export exportXls */
|
|
143
143
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return extend; });
|
|
144
144
|
/* unused harmony export getObjectType */
|
|
145
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
145
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return getParams; });
|
|
146
146
|
/* unused harmony export getScript */
|
|
147
147
|
/* unused harmony export getStyle */
|
|
148
148
|
/* unused harmony export getTypeName */
|
|
149
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
149
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return getTypePrefix; });
|
|
150
150
|
/* unused harmony export getValues */
|
|
151
151
|
/* unused harmony export getZoom */
|
|
152
152
|
/* unused harmony export getLength */
|
|
153
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
153
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return timestampUrl; });
|
|
154
154
|
/* unused harmony export hasChars */
|
|
155
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
156
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
157
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
158
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
155
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return identical; });
|
|
156
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return indexOfObj; });
|
|
157
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return isEmpty; });
|
|
158
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isExist; });
|
|
159
159
|
/* unused harmony export isFunction */
|
|
160
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
161
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
162
|
-
/* harmony export
|
|
163
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
160
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isObjectEqual; });
|
|
161
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return joinUrl; });
|
|
162
|
+
/* unused harmony export getHorizontalMargin */
|
|
163
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return layoutWaterfall; });
|
|
164
164
|
/* unused harmony export loadJs */
|
|
165
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
165
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return loading; });
|
|
166
166
|
/* unused harmony export lowerCase */
|
|
167
167
|
/* unused harmony export overbrim */
|
|
168
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
168
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return queryParams; });
|
|
169
169
|
/* unused harmony export receiveMessage */
|
|
170
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
170
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return renderIcon; });
|
|
171
171
|
/* unused harmony export replenish */
|
|
172
172
|
/* unused harmony export rmbToCapital */
|
|
173
173
|
/* unused harmony export setScale */
|
|
174
174
|
/* unused harmony export sendMessage */
|
|
175
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
175
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return setFavicon; });
|
|
176
176
|
/* unused harmony export sum */
|
|
177
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
177
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return startWith; });
|
|
178
178
|
/* unused harmony export takeLeft */
|
|
179
179
|
/* unused harmony export takeRight */
|
|
180
180
|
/* unused harmony export trimWhitespace */
|
|
181
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
181
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return toFixed; });
|
|
182
182
|
/* unused harmony export toFunction */
|
|
183
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
183
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return updateTheme; });
|
|
184
184
|
/* unused harmony export upperType */
|
|
185
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
186
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
187
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
185
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return urlJoinParams; });
|
|
186
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return uuid; });
|
|
187
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return watermark; });
|
|
188
188
|
/* unused harmony export winTopOpen */
|
|
189
189
|
/* unused harmony export confirm */
|
|
190
190
|
/* unused harmony export success */
|
|
191
191
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return error; });
|
|
192
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
192
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return warning; });
|
|
193
193
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
|
194
194
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
195
195
|
/* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
|
|
@@ -2172,7 +2172,7 @@ var loadJs = function loadJs(url, callback) {
|
|
|
2172
2172
|
var loading = function loading() {
|
|
2173
2173
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '请求中...';
|
|
2174
2174
|
|
|
2175
|
-
var Loading = __webpack_require__(
|
|
2175
|
+
var Loading = __webpack_require__(17).default;
|
|
2176
2176
|
return Loading.service({
|
|
2177
2177
|
text: text,
|
|
2178
2178
|
spinner: 'es-icon-jiazai',
|
|
@@ -3344,7 +3344,7 @@ var getColor = function getColor($color, $n) {
|
|
|
3344
3344
|
var getLightness = function getLightness($v, $i, $isLight) {
|
|
3345
3345
|
var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
|
|
3346
3346
|
$value = $value < 1 ? $value : 1;
|
|
3347
|
-
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "
|
|
3347
|
+
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($value, 2);
|
|
3348
3348
|
};
|
|
3349
3349
|
|
|
3350
3350
|
/**
|
|
@@ -3368,7 +3368,7 @@ var getSaturation = function getSaturation($s, $i, $isLight) {
|
|
|
3368
3368
|
$saturation = 0.1;
|
|
3369
3369
|
}
|
|
3370
3370
|
$saturation = $saturation > 0.06 ? $saturation : 0.06;
|
|
3371
|
-
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "
|
|
3371
|
+
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($saturation, 2);
|
|
3372
3372
|
};
|
|
3373
3373
|
|
|
3374
3374
|
/**
|
|
@@ -3482,7 +3482,14 @@ var getRgb = function getRgb($color) {
|
|
|
3482
3482
|
|
|
3483
3483
|
/***/ }),
|
|
3484
3484
|
|
|
3485
|
-
/***/
|
|
3485
|
+
/***/ 17:
|
|
3486
|
+
/***/ (function(module, exports) {
|
|
3487
|
+
|
|
3488
|
+
module.exports = require("eoss/lib/loading");
|
|
3489
|
+
|
|
3490
|
+
/***/ }),
|
|
3491
|
+
|
|
3492
|
+
/***/ 177:
|
|
3486
3493
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3487
3494
|
|
|
3488
3495
|
"use strict";
|
|
@@ -3774,7 +3781,7 @@ FormListvue_type_template_id_5c1ed0a5_render._withStripped = true
|
|
|
3774
3781
|
getData: function getData() {
|
|
3775
3782
|
var _this2 = this;
|
|
3776
3783
|
|
|
3777
|
-
var loadingInstance = Object(util["
|
|
3784
|
+
var loadingInstance = Object(util["K" /* loading */])('数据加载中...');
|
|
3778
3785
|
Object(ajax["a" /* ajax */])({
|
|
3779
3786
|
url: this.url,
|
|
3780
3787
|
params: { id: this.id }
|
|
@@ -4073,7 +4080,7 @@ NodeFormvue_type_template_id_193d4306_render._withStripped = true
|
|
|
4073
4080
|
getData: function getData() {
|
|
4074
4081
|
var _this2 = this;
|
|
4075
4082
|
|
|
4076
|
-
var loadingInstance = Object(util["
|
|
4083
|
+
var loadingInstance = Object(util["K" /* loading */])('加载中...');
|
|
4077
4084
|
Object(ajax["a" /* ajax */])({
|
|
4078
4085
|
url: this.url,
|
|
4079
4086
|
params: { id: this.id }
|
|
@@ -4265,7 +4272,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4265
4272
|
handleSubmit: function handleSubmit(data) {
|
|
4266
4273
|
var _this2 = this;
|
|
4267
4274
|
|
|
4268
|
-
var loadingInstance = Object(util["
|
|
4275
|
+
var loadingInstance = Object(util["K" /* loading */])('提交中...');
|
|
4269
4276
|
if (this.title === '新增') {
|
|
4270
4277
|
Object(ajax["a" /* ajax */])({
|
|
4271
4278
|
method: 'post',
|
|
@@ -4309,7 +4316,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4309
4316
|
handleDelete: function handleDelete(id) {
|
|
4310
4317
|
var _this3 = this;
|
|
4311
4318
|
|
|
4312
|
-
var loadingInstance = Object(util["
|
|
4319
|
+
var loadingInstance = Object(util["K" /* loading */])('删除中...');
|
|
4313
4320
|
Object(ajax["a" /* ajax */])({
|
|
4314
4321
|
method: 'post',
|
|
4315
4322
|
url: '/' + this.bootName + api["ub" /* nodeDeleteJson */],
|
|
@@ -4477,10 +4484,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4477
4484
|
|
|
4478
4485
|
computed: {
|
|
4479
4486
|
url: function url() {
|
|
4480
|
-
return '/' + this.bootName + api["
|
|
4487
|
+
return '/' + this.bootName + api["Kb" /* processListJson */];
|
|
4481
4488
|
},
|
|
4482
4489
|
info: function info() {
|
|
4483
|
-
return '/' + this.bootName + api["
|
|
4490
|
+
return '/' + this.bootName + api["Jb" /* processInfo */];
|
|
4484
4491
|
},
|
|
4485
4492
|
computedParam: function computedParam() {
|
|
4486
4493
|
return mainvue_type_script_lang_js_extends({}, this.param);
|
|
@@ -4521,12 +4528,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4521
4528
|
handleSubmit: function handleSubmit(data) {
|
|
4522
4529
|
var _this3 = this;
|
|
4523
4530
|
|
|
4524
|
-
var loadingInstance = Object(util["
|
|
4531
|
+
var loadingInstance = Object(util["K" /* loading */])('提交中...');
|
|
4525
4532
|
if (this.title === '新增') {
|
|
4526
4533
|
delete data.id;
|
|
4527
4534
|
Object(ajax["a" /* ajax */])({
|
|
4528
4535
|
method: 'post',
|
|
4529
|
-
url: '/' + this.bootName + api["
|
|
4536
|
+
url: '/' + this.bootName + api["Lb" /* processSave */],
|
|
4530
4537
|
data: mainvue_type_script_lang_js_extends({
|
|
4531
4538
|
fillUsername: Object(storage["a" /* getStorage */])('userName'),
|
|
4532
4539
|
fillUserid: Object(storage["a" /* getStorage */])('userId'),
|
|
@@ -4551,7 +4558,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4551
4558
|
delete data.updateTime;
|
|
4552
4559
|
Object(ajax["a" /* ajax */])({
|
|
4553
4560
|
method: 'post',
|
|
4554
|
-
url: '/' + this.bootName + api["
|
|
4561
|
+
url: '/' + this.bootName + api["Mb" /* processUpdate */],
|
|
4555
4562
|
params: data
|
|
4556
4563
|
}).then(function (res) {
|
|
4557
4564
|
loadingInstance.close();
|
|
@@ -4571,10 +4578,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4571
4578
|
handleDelete: function handleDelete(id) {
|
|
4572
4579
|
var _this4 = this;
|
|
4573
4580
|
|
|
4574
|
-
var loadingInstance = Object(util["
|
|
4581
|
+
var loadingInstance = Object(util["K" /* loading */])('提交中...');
|
|
4575
4582
|
Object(ajax["a" /* ajax */])({
|
|
4576
4583
|
method: 'post',
|
|
4577
|
-
url: '/' + this.bootName + api["
|
|
4584
|
+
url: '/' + this.bootName + api["Ib" /* processDeleteJson */],
|
|
4578
4585
|
data: { id: id }
|
|
4579
4586
|
}).then(function (res) {
|
|
4580
4587
|
loadingInstance.close();
|
|
@@ -4624,13 +4631,6 @@ main.install = function (Vue) {
|
|
|
4624
4631
|
|
|
4625
4632
|
/***/ }),
|
|
4626
4633
|
|
|
4627
|
-
/***/ 18:
|
|
4628
|
-
/***/ (function(module, exports) {
|
|
4629
|
-
|
|
4630
|
-
module.exports = require("eoss/lib/loading");
|
|
4631
|
-
|
|
4632
|
-
/***/ }),
|
|
4633
|
-
|
|
4634
4634
|
/***/ 19:
|
|
4635
4635
|
/***/ (function(module, exports) {
|
|
4636
4636
|
|
|
@@ -4688,736 +4688,759 @@ module.exports = require("lodash/get");
|
|
|
4688
4688
|
/* unused harmony export getSecond */
|
|
4689
4689
|
/* unused harmony export getWeekday */
|
|
4690
4690
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
|
|
4691
|
-
|
|
4692
|
-
|
|
4691
|
+
/* Modified from https://github.com/taylorhakes/fecha
|
|
4692
|
+
*
|
|
4693
|
+
* The MIT License (MIT)
|
|
4694
|
+
*
|
|
4695
|
+
* Copyright (c) 2015 Taylor Hakes
|
|
4696
|
+
*
|
|
4697
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4698
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
4699
|
+
* in the Software without restriction, including without limitation the rights
|
|
4700
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
4701
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
4702
|
+
* furnished to do so, subject to the following conditions:
|
|
4703
|
+
*
|
|
4704
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
4705
|
+
* copies or substantial portions of the Software.
|
|
4706
|
+
*
|
|
4707
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4708
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4709
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4710
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4711
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4712
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
4713
|
+
* SOFTWARE.
|
|
4714
|
+
*/
|
|
4715
|
+
|
|
4716
|
+
/*eslint-disable*/
|
|
4717
|
+
// 把 YYYY-MM-DD 改成了 yyyy-MM-dd
|
|
4718
|
+
|
|
4719
|
+
|
|
4693
4720
|
/**
|
|
4694
4721
|
* Parse or format dates
|
|
4695
4722
|
* @class fecha
|
|
4696
|
-
*/
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
function regexEscape(str) {
|
|
4707
|
-
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
4708
|
-
}
|
|
4709
|
-
|
|
4710
|
-
function shorten(arr, sLen) {
|
|
4711
|
-
|
|
4712
|
-
for (
|
|
4713
|
-
newArr.push(arr[i].substr(0, sLen));
|
|
4714
|
-
}
|
|
4715
|
-
return newArr;
|
|
4716
|
-
}
|
|
4717
|
-
|
|
4718
|
-
function monthUpdate() {
|
|
4719
|
-
return function (d, v) {
|
|
4720
|
-
|
|
4721
|
-
if (~index) {
|
|
4722
|
-
d.month = index;
|
|
4723
|
-
}
|
|
4724
|
-
};
|
|
4725
|
-
}
|
|
4726
|
-
|
|
4727
|
-
function pad(val, len) {
|
|
4728
|
-
val = String(val);
|
|
4729
|
-
len = len || 2;
|
|
4730
|
-
while (val.length < len) {
|
|
4731
|
-
val = '0' + val;
|
|
4732
|
-
}
|
|
4733
|
-
return val;
|
|
4734
|
-
}
|
|
4735
|
-
|
|
4736
|
-
// 直接使用中文日期名称常量
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
return D + '日';
|
|
4744
|
-
};
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
D: function
|
|
4748
|
-
return dateObj.getDay();
|
|
4749
|
-
},
|
|
4750
|
-
DD: function
|
|
4751
|
-
return pad(dateObj.getDay());
|
|
4752
|
-
},
|
|
4753
|
-
Do: function
|
|
4754
|
-
return DoFn(dateObj.getDate());
|
|
4755
|
-
},
|
|
4756
|
-
d: function
|
|
4757
|
-
return dateObj.getDate();
|
|
4758
|
-
},
|
|
4759
|
-
dd: function
|
|
4760
|
-
return pad(dateObj.getDate());
|
|
4761
|
-
},
|
|
4762
|
-
ddd: function
|
|
4763
|
-
return dayNamesShort[dateObj.getDay()];
|
|
4764
|
-
},
|
|
4765
|
-
dddd: function
|
|
4766
|
-
return dayNames[dateObj.getDay()];
|
|
4767
|
-
},
|
|
4768
|
-
M: function
|
|
4769
|
-
return dateObj.getMonth() + 1;
|
|
4770
|
-
},
|
|
4771
|
-
MM: function
|
|
4772
|
-
return pad(dateObj.getMonth() + 1);
|
|
4773
|
-
},
|
|
4774
|
-
MMM: function
|
|
4775
|
-
return monthNamesShort[dateObj.getMonth()];
|
|
4776
|
-
},
|
|
4777
|
-
MMMM: function
|
|
4778
|
-
return monthNames[dateObj.getMonth()];
|
|
4779
|
-
},
|
|
4780
|
-
yy: function
|
|
4781
|
-
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
4782
|
-
},
|
|
4783
|
-
yyyy: function
|
|
4784
|
-
return pad(dateObj.getFullYear(), 4);
|
|
4785
|
-
},
|
|
4786
|
-
h: function
|
|
4787
|
-
return dateObj.getHours() % 12 || 12;
|
|
4788
|
-
},
|
|
4789
|
-
hh: function
|
|
4790
|
-
return pad(dateObj.getHours() % 12 || 12);
|
|
4791
|
-
},
|
|
4792
|
-
H: function
|
|
4793
|
-
return dateObj.getHours();
|
|
4794
|
-
},
|
|
4795
|
-
HH: function
|
|
4796
|
-
return pad(dateObj.getHours());
|
|
4797
|
-
},
|
|
4798
|
-
m: function
|
|
4799
|
-
return dateObj.getMinutes();
|
|
4800
|
-
},
|
|
4801
|
-
mm: function
|
|
4802
|
-
return pad(dateObj.getMinutes());
|
|
4803
|
-
},
|
|
4804
|
-
s: function
|
|
4805
|
-
return dateObj.getSeconds();
|
|
4806
|
-
},
|
|
4807
|
-
ss: function
|
|
4808
|
-
return pad(dateObj.getSeconds());
|
|
4809
|
-
},
|
|
4810
|
-
S: function
|
|
4811
|
-
return Math.round(dateObj.getMilliseconds() / 100);
|
|
4812
|
-
},
|
|
4813
|
-
SS: function
|
|
4814
|
-
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
4815
|
-
},
|
|
4816
|
-
SSS: function
|
|
4817
|
-
return pad(dateObj.getMilliseconds(), 3);
|
|
4818
|
-
},
|
|
4819
|
-
a: function
|
|
4820
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
4821
|
-
},
|
|
4822
|
-
A: function
|
|
4823
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
4824
|
-
},
|
|
4825
|
-
ZZ: function
|
|
4826
|
-
|
|
4827
|
-
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
4828
|
-
}
|
|
4829
|
-
};
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
d: [twoDigits, function (d, v) {
|
|
4833
|
-
d.day = v;
|
|
4834
|
-
}],
|
|
4835
|
-
Do: [twoDigits + word, function (d, v) {
|
|
4836
|
-
d.day = parseInt(v, 10);
|
|
4837
|
-
}],
|
|
4838
|
-
M: [twoDigits, function (d, v) {
|
|
4839
|
-
d.month = v - 1;
|
|
4840
|
-
}],
|
|
4841
|
-
yy: [twoDigits, function (d, v) {
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
}
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
parseFlags.
|
|
4890
|
-
parseFlags.
|
|
4891
|
-
parseFlags.
|
|
4892
|
-
parseFlags.
|
|
4893
|
-
parseFlags.
|
|
4894
|
-
parseFlags.
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4723
|
+
*/
|
|
4724
|
+
const fecha = {};
|
|
4725
|
+
const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
|
|
4726
|
+
const twoDigits = '\\d\\d?';
|
|
4727
|
+
const threeDigits = '\\d{3}';
|
|
4728
|
+
const fourDigits = '\\d{4}';
|
|
4729
|
+
const word = '[^\\s]+';
|
|
4730
|
+
const literal = /\[([^]*?)\]/gm;
|
|
4731
|
+
const noop = function () {};
|
|
4732
|
+
|
|
4733
|
+
function regexEscape(str) {
|
|
4734
|
+
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
4735
|
+
}
|
|
4736
|
+
|
|
4737
|
+
function shorten(arr, sLen) {
|
|
4738
|
+
const newArr = [];
|
|
4739
|
+
for (let i = 0, len = arr.length; i < len; i++) {
|
|
4740
|
+
newArr.push(arr[i].substr(0, sLen));
|
|
4741
|
+
}
|
|
4742
|
+
return newArr;
|
|
4743
|
+
}
|
|
4744
|
+
|
|
4745
|
+
function monthUpdate() {
|
|
4746
|
+
return function (d, v) {
|
|
4747
|
+
const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
|
|
4748
|
+
if (~index) {
|
|
4749
|
+
d.month = index;
|
|
4750
|
+
}
|
|
4751
|
+
};
|
|
4752
|
+
}
|
|
4753
|
+
|
|
4754
|
+
function pad(val, len) {
|
|
4755
|
+
val = String(val);
|
|
4756
|
+
len = len || 2;
|
|
4757
|
+
while (val.length < len) {
|
|
4758
|
+
val = '0' + val;
|
|
4759
|
+
}
|
|
4760
|
+
return val;
|
|
4761
|
+
}
|
|
4762
|
+
|
|
4763
|
+
// 直接使用中文日期名称常量
|
|
4764
|
+
const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
4765
|
+
const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
|
|
4766
|
+
const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
|
|
4767
|
+
const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
|
|
4768
|
+
const amPm = ['上午', '下午'];
|
|
4769
|
+
const DoFn = function DoFn(D) {
|
|
4770
|
+
return D + '日';
|
|
4771
|
+
};
|
|
4772
|
+
|
|
4773
|
+
const formatFlags = {
|
|
4774
|
+
D: function(dateObj) {
|
|
4775
|
+
return dateObj.getDay();
|
|
4776
|
+
},
|
|
4777
|
+
DD: function(dateObj) {
|
|
4778
|
+
return pad(dateObj.getDay());
|
|
4779
|
+
},
|
|
4780
|
+
Do: function(dateObj) {
|
|
4781
|
+
return DoFn(dateObj.getDate());
|
|
4782
|
+
},
|
|
4783
|
+
d: function(dateObj) {
|
|
4784
|
+
return dateObj.getDate();
|
|
4785
|
+
},
|
|
4786
|
+
dd: function(dateObj) {
|
|
4787
|
+
return pad(dateObj.getDate());
|
|
4788
|
+
},
|
|
4789
|
+
ddd: function(dateObj) {
|
|
4790
|
+
return dayNamesShort[dateObj.getDay()];
|
|
4791
|
+
},
|
|
4792
|
+
dddd: function(dateObj) {
|
|
4793
|
+
return dayNames[dateObj.getDay()];
|
|
4794
|
+
},
|
|
4795
|
+
M: function(dateObj) {
|
|
4796
|
+
return dateObj.getMonth() + 1;
|
|
4797
|
+
},
|
|
4798
|
+
MM: function(dateObj) {
|
|
4799
|
+
return pad(dateObj.getMonth() + 1);
|
|
4800
|
+
},
|
|
4801
|
+
MMM: function(dateObj) {
|
|
4802
|
+
return monthNamesShort[dateObj.getMonth()];
|
|
4803
|
+
},
|
|
4804
|
+
MMMM: function(dateObj) {
|
|
4805
|
+
return monthNames[dateObj.getMonth()];
|
|
4806
|
+
},
|
|
4807
|
+
yy: function(dateObj) {
|
|
4808
|
+
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
4809
|
+
},
|
|
4810
|
+
yyyy: function(dateObj) {
|
|
4811
|
+
return pad(dateObj.getFullYear(), 4);
|
|
4812
|
+
},
|
|
4813
|
+
h: function(dateObj) {
|
|
4814
|
+
return dateObj.getHours() % 12 || 12;
|
|
4815
|
+
},
|
|
4816
|
+
hh: function(dateObj) {
|
|
4817
|
+
return pad(dateObj.getHours() % 12 || 12);
|
|
4818
|
+
},
|
|
4819
|
+
H: function(dateObj) {
|
|
4820
|
+
return dateObj.getHours();
|
|
4821
|
+
},
|
|
4822
|
+
HH: function(dateObj) {
|
|
4823
|
+
return pad(dateObj.getHours());
|
|
4824
|
+
},
|
|
4825
|
+
m: function(dateObj) {
|
|
4826
|
+
return dateObj.getMinutes();
|
|
4827
|
+
},
|
|
4828
|
+
mm: function(dateObj) {
|
|
4829
|
+
return pad(dateObj.getMinutes());
|
|
4830
|
+
},
|
|
4831
|
+
s: function(dateObj) {
|
|
4832
|
+
return dateObj.getSeconds();
|
|
4833
|
+
},
|
|
4834
|
+
ss: function(dateObj) {
|
|
4835
|
+
return pad(dateObj.getSeconds());
|
|
4836
|
+
},
|
|
4837
|
+
S: function(dateObj) {
|
|
4838
|
+
return Math.round(dateObj.getMilliseconds() / 100);
|
|
4839
|
+
},
|
|
4840
|
+
SS: function(dateObj) {
|
|
4841
|
+
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
4842
|
+
},
|
|
4843
|
+
SSS: function(dateObj) {
|
|
4844
|
+
return pad(dateObj.getMilliseconds(), 3);
|
|
4845
|
+
},
|
|
4846
|
+
a: function(dateObj) {
|
|
4847
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
4848
|
+
},
|
|
4849
|
+
A: function(dateObj) {
|
|
4850
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
4851
|
+
},
|
|
4852
|
+
ZZ: function(dateObj) {
|
|
4853
|
+
const o = dateObj.getTimezoneOffset();
|
|
4854
|
+
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
4855
|
+
}
|
|
4856
|
+
};
|
|
4857
|
+
|
|
4858
|
+
const parseFlags = {
|
|
4859
|
+
d: [twoDigits, function (d, v) {
|
|
4860
|
+
d.day = v;
|
|
4861
|
+
}],
|
|
4862
|
+
Do: [twoDigits + word, function (d, v) {
|
|
4863
|
+
d.day = parseInt(v, 10);
|
|
4864
|
+
}],
|
|
4865
|
+
M: [twoDigits, function (d, v) {
|
|
4866
|
+
d.month = v - 1;
|
|
4867
|
+
}],
|
|
4868
|
+
yy: [twoDigits, function (d, v) {
|
|
4869
|
+
const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
|
|
4870
|
+
d.year = '' + (v > 68 ? cent - 1 : cent) + v;
|
|
4871
|
+
}],
|
|
4872
|
+
h: [twoDigits, function (d, v) {
|
|
4873
|
+
d.hour = v;
|
|
4874
|
+
}],
|
|
4875
|
+
m: [twoDigits, function (d, v) {
|
|
4876
|
+
d.minute = v;
|
|
4877
|
+
}],
|
|
4878
|
+
s: [twoDigits, function (d, v) {
|
|
4879
|
+
d.second = v;
|
|
4880
|
+
}],
|
|
4881
|
+
yyyy: [fourDigits, function (d, v) {
|
|
4882
|
+
d.year = v;
|
|
4883
|
+
}],
|
|
4884
|
+
S: ['\\d', function (d, v) {
|
|
4885
|
+
d.millisecond = v * 100;
|
|
4886
|
+
}],
|
|
4887
|
+
SS: ['\\d{2}', function (d, v) {
|
|
4888
|
+
d.millisecond = v * 10;
|
|
4889
|
+
}],
|
|
4890
|
+
SSS: [threeDigits, function (d, v) {
|
|
4891
|
+
d.millisecond = v;
|
|
4892
|
+
}],
|
|
4893
|
+
D: [twoDigits, noop],
|
|
4894
|
+
ddd: [word, noop],
|
|
4895
|
+
MMM: [word, monthUpdate('monthNamesShort')],
|
|
4896
|
+
MMMM: [word, monthUpdate('monthNames')],
|
|
4897
|
+
a: [word, function (d, v) {
|
|
4898
|
+
const val = v.toLowerCase();
|
|
4899
|
+
if (val === '上午') {
|
|
4900
|
+
d.isPm = false;
|
|
4901
|
+
} else if (val === '下午') {
|
|
4902
|
+
d.isPm = true;
|
|
4903
|
+
}
|
|
4904
|
+
}],
|
|
4905
|
+
ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
|
|
4906
|
+
let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
|
|
4907
|
+
|
|
4908
|
+
if (parts) {
|
|
4909
|
+
minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
|
|
4910
|
+
d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
|
|
4911
|
+
}
|
|
4912
|
+
}]
|
|
4913
|
+
};
|
|
4914
|
+
parseFlags.dd = parseFlags.d;
|
|
4915
|
+
parseFlags.dddd = parseFlags.ddd;
|
|
4916
|
+
parseFlags.DD = parseFlags.D;
|
|
4917
|
+
parseFlags.mm = parseFlags.m;
|
|
4918
|
+
parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
|
|
4919
|
+
parseFlags.MM = parseFlags.M;
|
|
4920
|
+
parseFlags.ss = parseFlags.s;
|
|
4921
|
+
parseFlags.A = parseFlags.a;
|
|
4922
|
+
|
|
4923
|
+
|
|
4924
|
+
// Some common format strings
|
|
4925
|
+
fecha.masks = {
|
|
4926
|
+
default: 'ddd MMM dd yyyy HH:mm:ss',
|
|
4927
|
+
shortDate: 'M/D/yy',
|
|
4928
|
+
mediumDate: 'MMM d, yyyy',
|
|
4929
|
+
longDate: 'MMMM d, yyyy',
|
|
4930
|
+
fullDate: 'dddd, MMMM d, yyyy',
|
|
4931
|
+
shortTime: 'HH:mm',
|
|
4932
|
+
mediumTime: 'HH:mm:ss',
|
|
4933
|
+
longTime: 'HH:mm:ss.SSS'
|
|
4934
|
+
};
|
|
4935
|
+
|
|
4910
4936
|
/***
|
|
4911
4937
|
* Format a date
|
|
4912
4938
|
* @method format
|
|
4913
4939
|
* @param {Date|number} dateObj
|
|
4914
4940
|
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
|
|
4915
|
-
*/
|
|
4916
|
-
fecha.format = function (dateObj, mask) {
|
|
4917
|
-
if (typeof dateObj === 'number') {
|
|
4918
|
-
dateObj = new Date(dateObj);
|
|
4919
|
-
}
|
|
4920
|
-
|
|
4921
|
-
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
4922
|
-
throw new Error('Invalid Date in fecha.format');
|
|
4923
|
-
}
|
|
4924
|
-
|
|
4925
|
-
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
// Make literals inactive by replacing them with ??
|
|
4930
|
-
mask = mask.replace(literal, function
|
|
4931
|
-
literals.push($1);
|
|
4932
|
-
return '@@@';
|
|
4933
|
-
});
|
|
4934
|
-
// Apply formatting rules
|
|
4935
|
-
mask = mask.replace(token, function ($0) {
|
|
4936
|
-
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
4937
|
-
});
|
|
4938
|
-
// Inline literal values back into the formatted value
|
|
4939
|
-
return mask.replace(/@@@/g, function
|
|
4940
|
-
return literals.shift();
|
|
4941
|
-
});
|
|
4942
|
-
};
|
|
4943
|
-
|
|
4941
|
+
*/
|
|
4942
|
+
fecha.format = function (dateObj, mask) {
|
|
4943
|
+
if (typeof dateObj === 'number') {
|
|
4944
|
+
dateObj = new Date(dateObj);
|
|
4945
|
+
}
|
|
4946
|
+
|
|
4947
|
+
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
4948
|
+
throw new Error('Invalid Date in fecha.format');
|
|
4949
|
+
}
|
|
4950
|
+
|
|
4951
|
+
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
4952
|
+
|
|
4953
|
+
const literals = [];
|
|
4954
|
+
|
|
4955
|
+
// Make literals inactive by replacing them with ??
|
|
4956
|
+
mask = mask.replace(literal, function($0, $1) {
|
|
4957
|
+
literals.push($1);
|
|
4958
|
+
return '@@@';
|
|
4959
|
+
});
|
|
4960
|
+
// Apply formatting rules
|
|
4961
|
+
mask = mask.replace(token, function ($0) {
|
|
4962
|
+
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
4963
|
+
});
|
|
4964
|
+
// Inline literal values back into the formatted value
|
|
4965
|
+
return mask.replace(/@@@/g, function() {
|
|
4966
|
+
return literals.shift();
|
|
4967
|
+
});
|
|
4968
|
+
};
|
|
4969
|
+
|
|
4944
4970
|
/**
|
|
4945
4971
|
* Parse a date string into an object, changes - into /
|
|
4946
4972
|
* @method parse
|
|
4947
4973
|
* @param {string} dateStr Date string
|
|
4948
4974
|
* @param {string} format Date parse format
|
|
4949
4975
|
* @returns {Date|boolean}
|
|
4950
|
-
*/
|
|
4951
|
-
fecha.parse = function (dateStr, format) {
|
|
4952
|
-
if (typeof format !== 'string') {
|
|
4953
|
-
throw new Error('Invalid format in fecha.parse');
|
|
4954
|
-
}
|
|
4955
|
-
|
|
4956
|
-
format = fecha.masks[format] || format;
|
|
4957
|
-
|
|
4958
|
-
// Avoid regular expression denial of service, fail early for really long strings
|
|
4959
|
-
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
4960
|
-
if (dateStr.length > 1000) {
|
|
4961
|
-
return null;
|
|
4962
|
-
}
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
format = format.replace(literal, function
|
|
4968
|
-
literals.push($1);
|
|
4969
|
-
return '@@@';
|
|
4970
|
-
});
|
|
4971
|
-
|
|
4972
|
-
if (parseFlags[$0]) {
|
|
4973
|
-
|
|
4974
|
-
parseInfo.push(info[1]);
|
|
4975
|
-
return '(' + info[0] + ')';
|
|
4976
|
-
}
|
|
4977
|
-
|
|
4978
|
-
return $0;
|
|
4979
|
-
});
|
|
4980
|
-
newFormat = newFormat.replace(/@@@/g, function
|
|
4981
|
-
return literals.shift();
|
|
4982
|
-
});
|
|
4983
|
-
|
|
4984
|
-
if (!matches) {
|
|
4985
|
-
return null;
|
|
4986
|
-
}
|
|
4987
|
-
|
|
4988
|
-
for (
|
|
4989
|
-
parseInfo[i - 1](dateInfo, matches[i]);
|
|
4990
|
-
}
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
4994
|
-
dateInfo.hour = +dateInfo.hour + 12;
|
|
4995
|
-
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
4996
|
-
dateInfo.hour = 0;
|
|
4997
|
-
}
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
if (dateInfo.timezoneOffset != null) {
|
|
5001
|
-
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
5002
|
-
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
}
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
}
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
if (
|
|
5039
|
-
return
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
// 处理多种输入类型
|
|
5050
|
-
if (!date) return '';
|
|
5051
|
-
|
|
5052
|
-
// 如果是时间戳,转成日期对象
|
|
5053
|
-
if (typeof date === 'number') {
|
|
5054
|
-
date = new Date(date);
|
|
5055
|
-
}
|
|
5056
|
-
// 如果是字符串,转成日期对象
|
|
5057
|
-
if (typeof date === 'string') {
|
|
5058
|
-
date = new Date(date);
|
|
5059
|
-
}
|
|
5060
|
-
|
|
5061
|
-
// 调用toDate进一步验证和转换
|
|
5062
|
-
date = toDate(date);
|
|
5063
|
-
if (!date) return '';
|
|
5064
|
-
|
|
5065
|
-
// 兼容大写和小写的格式标记
|
|
5066
|
-
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
return
|
|
5088
|
-
}
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
//
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
5112
|
-
};
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
return prevDate(result,
|
|
5126
|
-
}
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
//
|
|
5146
|
-
|
|
5147
|
-
//
|
|
5148
|
-
|
|
5149
|
-
//
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
for (
|
|
5169
|
-
hours[i] =
|
|
5170
|
-
}
|
|
5171
|
-
}
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
return
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
};
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
}
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
return
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
return
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
}
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
};
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
return
|
|
5333
|
-
};
|
|
5334
|
-
|
|
5335
|
-
var extractTimeFormat = function extractTimeFormat(format) {
|
|
5336
|
-
return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
|
|
5337
|
-
};
|
|
5338
|
-
|
|
5339
|
-
var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
|
|
5340
|
-
return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
|
|
5341
|
-
};
|
|
5342
|
-
|
|
4976
|
+
*/
|
|
4977
|
+
fecha.parse = function (dateStr, format) {
|
|
4978
|
+
if (typeof format !== 'string') {
|
|
4979
|
+
throw new Error('Invalid format in fecha.parse');
|
|
4980
|
+
}
|
|
4981
|
+
|
|
4982
|
+
format = fecha.masks[format] || format;
|
|
4983
|
+
|
|
4984
|
+
// Avoid regular expression denial of service, fail early for really long strings
|
|
4985
|
+
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
4986
|
+
if (dateStr.length > 1000) {
|
|
4987
|
+
return null;
|
|
4988
|
+
}
|
|
4989
|
+
|
|
4990
|
+
const dateInfo = {};
|
|
4991
|
+
const parseInfo = [];
|
|
4992
|
+
const literals = [];
|
|
4993
|
+
format = format.replace(literal, function($0, $1) {
|
|
4994
|
+
literals.push($1);
|
|
4995
|
+
return '@@@';
|
|
4996
|
+
});
|
|
4997
|
+
let newFormat = regexEscape(format).replace(token, function ($0) {
|
|
4998
|
+
if (parseFlags[$0]) {
|
|
4999
|
+
const info = parseFlags[$0];
|
|
5000
|
+
parseInfo.push(info[1]);
|
|
5001
|
+
return '(' + info[0] + ')';
|
|
5002
|
+
}
|
|
5003
|
+
|
|
5004
|
+
return $0;
|
|
5005
|
+
});
|
|
5006
|
+
newFormat = newFormat.replace(/@@@/g, function() {
|
|
5007
|
+
return literals.shift();
|
|
5008
|
+
});
|
|
5009
|
+
const matches = dateStr.match(new RegExp(newFormat, 'i'));
|
|
5010
|
+
if (!matches) {
|
|
5011
|
+
return null;
|
|
5012
|
+
}
|
|
5013
|
+
|
|
5014
|
+
for (let i = 1; i < matches.length; i++) {
|
|
5015
|
+
parseInfo[i - 1](dateInfo, matches[i]);
|
|
5016
|
+
}
|
|
5017
|
+
|
|
5018
|
+
const today = new Date();
|
|
5019
|
+
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
5020
|
+
dateInfo.hour = +dateInfo.hour + 12;
|
|
5021
|
+
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
5022
|
+
dateInfo.hour = 0;
|
|
5023
|
+
}
|
|
5024
|
+
|
|
5025
|
+
let date;
|
|
5026
|
+
if (dateInfo.timezoneOffset != null) {
|
|
5027
|
+
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
5028
|
+
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
5029
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
|
|
5030
|
+
} else {
|
|
5031
|
+
date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
5032
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
|
|
5033
|
+
}
|
|
5034
|
+
return date;
|
|
5035
|
+
};
|
|
5036
|
+
|
|
5037
|
+
// 导出fecha对象
|
|
5038
|
+
|
|
5039
|
+
|
|
5040
|
+
// 以下是从date-util.js合并的函数
|
|
5041
|
+
const newArray = function(start, end) {
|
|
5042
|
+
let result = [];
|
|
5043
|
+
for (let i = start; i <= end; i++) {
|
|
5044
|
+
result.push(i);
|
|
5045
|
+
}
|
|
5046
|
+
return result;
|
|
5047
|
+
};
|
|
5048
|
+
|
|
5049
|
+
const getSettings = () => {
|
|
5050
|
+
return {
|
|
5051
|
+
dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
|
|
5052
|
+
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
|
|
5053
|
+
monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
5054
|
+
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
|
5055
|
+
amPm: ['上午', '下午']
|
|
5056
|
+
};
|
|
5057
|
+
};
|
|
5058
|
+
|
|
5059
|
+
const toDate = function(date) {
|
|
5060
|
+
return isDate(date) ? new Date(date) : null;
|
|
5061
|
+
};
|
|
5062
|
+
|
|
5063
|
+
const isDate = function(date) {
|
|
5064
|
+
if (date === null || date === undefined) return false;
|
|
5065
|
+
if (isNaN(new Date(date).getTime())) return false;
|
|
5066
|
+
if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
|
|
5067
|
+
return true;
|
|
5068
|
+
};
|
|
5069
|
+
|
|
5070
|
+
const isDateObject = function(val) {
|
|
5071
|
+
return val instanceof Date;
|
|
5072
|
+
};
|
|
5073
|
+
|
|
5074
|
+
const formatDate = function (date, format = 'yyyy-MM-dd') {
|
|
5075
|
+
// 处理多种输入类型
|
|
5076
|
+
if (!date) return '';
|
|
5077
|
+
|
|
5078
|
+
// 如果是时间戳,转成日期对象
|
|
5079
|
+
if (typeof date === 'number') {
|
|
5080
|
+
date = new Date(date);
|
|
5081
|
+
}
|
|
5082
|
+
// 如果是字符串,转成日期对象
|
|
5083
|
+
if (typeof date === 'string') {
|
|
5084
|
+
date = new Date(date);
|
|
5085
|
+
}
|
|
5086
|
+
|
|
5087
|
+
// 调用toDate进一步验证和转换
|
|
5088
|
+
date = toDate(date);
|
|
5089
|
+
if (!date) return '';
|
|
5090
|
+
|
|
5091
|
+
// 兼容大写和小写的格式标记
|
|
5092
|
+
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
5093
|
+
const lowercaseFormat = format
|
|
5094
|
+
.replace(/YYYY/g, 'yyyy')
|
|
5095
|
+
.replace(/D/g, 'd')
|
|
5096
|
+
|
|
5097
|
+
// 使用fecha库进行格式化,支持中文配置
|
|
5098
|
+
const str = fecha.format(date, lowercaseFormat, getSettings());
|
|
5099
|
+
return str;
|
|
5100
|
+
};
|
|
5101
|
+
|
|
5102
|
+
const parseDate = function(string, format) {
|
|
5103
|
+
return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
|
|
5104
|
+
};
|
|
5105
|
+
|
|
5106
|
+
const getDayCountOfMonth = function(year, month) {
|
|
5107
|
+
if (month === 3 || month === 5 || month === 8 || month === 10) {
|
|
5108
|
+
return 30;
|
|
5109
|
+
}
|
|
5110
|
+
|
|
5111
|
+
if (month === 1) {
|
|
5112
|
+
if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
|
|
5113
|
+
return 29;
|
|
5114
|
+
} else {
|
|
5115
|
+
return 28;
|
|
5116
|
+
}
|
|
5117
|
+
}
|
|
5118
|
+
|
|
5119
|
+
return 31;
|
|
5120
|
+
};
|
|
5121
|
+
|
|
5122
|
+
const getDayCountOfYear = function(year) {
|
|
5123
|
+
const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
|
|
5124
|
+
return isLeapYear ? 366 : 365;
|
|
5125
|
+
};
|
|
5126
|
+
|
|
5127
|
+
const getFirstDayOfMonth = function(date) {
|
|
5128
|
+
const temp = new Date(date.getTime());
|
|
5129
|
+
temp.setDate(1);
|
|
5130
|
+
return temp.getDay();
|
|
5131
|
+
};
|
|
5132
|
+
|
|
5133
|
+
// see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
|
|
5134
|
+
// {prev, next} Date should work for Daylight Saving Time
|
|
5135
|
+
// Adding 24 * 60 * 60 * 1000 does not work in the above scenario
|
|
5136
|
+
const prevDate = function(date, amount = 1) {
|
|
5137
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
5138
|
+
};
|
|
5139
|
+
|
|
5140
|
+
const nextDate = function(date, amount = 1) {
|
|
5141
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
|
|
5142
|
+
};
|
|
5143
|
+
|
|
5144
|
+
const getStartDateOfMonth = function(year, month) {
|
|
5145
|
+
const result = new Date(year, month, 1);
|
|
5146
|
+
const day = result.getDay();
|
|
5147
|
+
|
|
5148
|
+
if (day === 0) {
|
|
5149
|
+
return prevDate(result, 7);
|
|
5150
|
+
} else {
|
|
5151
|
+
return prevDate(result, day);
|
|
5152
|
+
}
|
|
5153
|
+
};
|
|
5154
|
+
|
|
5155
|
+
const getWeekNumber = function(date) {
|
|
5156
|
+
// 支持多种输入类型
|
|
5157
|
+
if (!date||!isDate(date)) {
|
|
5158
|
+
date = new Date();
|
|
5159
|
+
}
|
|
5160
|
+
if (typeof date === 'string') {
|
|
5161
|
+
date = new Date(date);
|
|
5162
|
+
}
|
|
5163
|
+
|
|
5164
|
+
// 验证日期有效性
|
|
5165
|
+
if (!isDate(date)) return null;
|
|
5166
|
+
|
|
5167
|
+
const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
5168
|
+
// 设置为最近的星期四:当前日期 + 4 - 当前星期数
|
|
5169
|
+
// 将星期日的星期数设为7
|
|
5170
|
+
d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
|
|
5171
|
+
// 获取当年的第一天
|
|
5172
|
+
const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
5173
|
+
// 计算到最近的星期四的完整周数
|
|
5174
|
+
const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
|
|
5175
|
+
// 返回周数
|
|
5176
|
+
return weekNo;
|
|
5177
|
+
};
|
|
5178
|
+
|
|
5179
|
+
const getRangeHours = function(ranges) {
|
|
5180
|
+
const hours = [];
|
|
5181
|
+
let disabledHours = [];
|
|
5182
|
+
|
|
5183
|
+
(ranges || []).forEach(range => {
|
|
5184
|
+
const value = range.map(date => date.getHours());
|
|
5185
|
+
|
|
5186
|
+
disabledHours = disabledHours.concat(newArray(value[0], value[1]));
|
|
5187
|
+
});
|
|
5188
|
+
|
|
5189
|
+
if (disabledHours.length) {
|
|
5190
|
+
for (let i = 0; i < 24; i++) {
|
|
5191
|
+
hours[i] = disabledHours.indexOf(i) === -1;
|
|
5192
|
+
}
|
|
5193
|
+
} else {
|
|
5194
|
+
for (let i = 0; i < 24; i++) {
|
|
5195
|
+
hours[i] = false;
|
|
5196
|
+
}
|
|
5197
|
+
}
|
|
5198
|
+
|
|
5199
|
+
return hours;
|
|
5200
|
+
};
|
|
5201
|
+
|
|
5202
|
+
const getPrevMonthLastDays = (date, amount) => {
|
|
5203
|
+
if (amount <= 0) return [];
|
|
5204
|
+
const temp = new Date(date.getTime());
|
|
5205
|
+
temp.setDate(0);
|
|
5206
|
+
const lastDay = temp.getDate();
|
|
5207
|
+
return range(amount).map((_, index) => lastDay - (amount - index - 1));
|
|
5208
|
+
};
|
|
5209
|
+
|
|
5210
|
+
const getMonthDays = (date) => {
|
|
5211
|
+
const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
5212
|
+
const days = temp.getDate();
|
|
5213
|
+
return range(days).map((_, index) => index + 1);
|
|
5214
|
+
};
|
|
5215
|
+
|
|
5216
|
+
function setRangeData(arr, start, end, value) {
|
|
5217
|
+
for (let i = start; i < end; i++) {
|
|
5218
|
+
arr[i] = value;
|
|
5219
|
+
}
|
|
5220
|
+
}
|
|
5221
|
+
|
|
5222
|
+
const getRangeMinutes = function(ranges, hour) {
|
|
5223
|
+
const minutes = new Array(60);
|
|
5224
|
+
|
|
5225
|
+
if (ranges.length > 0) {
|
|
5226
|
+
ranges.forEach(range => {
|
|
5227
|
+
const start = range[0];
|
|
5228
|
+
const end = range[1];
|
|
5229
|
+
const startHour = start.getHours();
|
|
5230
|
+
const startMinute = start.getMinutes();
|
|
5231
|
+
const endHour = end.getHours();
|
|
5232
|
+
const endMinute = end.getMinutes();
|
|
5233
|
+
if (startHour === hour && endHour !== hour) {
|
|
5234
|
+
setRangeData(minutes, startMinute, 60, true);
|
|
5235
|
+
} else if (startHour === hour && endHour === hour) {
|
|
5236
|
+
setRangeData(minutes, startMinute, endMinute + 1, true);
|
|
5237
|
+
} else if (startHour !== hour && endHour === hour) {
|
|
5238
|
+
setRangeData(minutes, 0, endMinute + 1, true);
|
|
5239
|
+
} else if (startHour < hour && endHour > hour) {
|
|
5240
|
+
setRangeData(minutes, 0, 60, true);
|
|
5241
|
+
}
|
|
5242
|
+
});
|
|
5243
|
+
} else {
|
|
5244
|
+
setRangeData(minutes, 0, 60, true);
|
|
5245
|
+
}
|
|
5246
|
+
return minutes;
|
|
5247
|
+
};
|
|
5248
|
+
|
|
5249
|
+
const range = function(n) {
|
|
5250
|
+
// see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
|
|
5251
|
+
return Array.apply(null, {length: n}).map((_, n) => n);
|
|
5252
|
+
};
|
|
5253
|
+
|
|
5254
|
+
const modifyDate = function(date, y, m, d) {
|
|
5255
|
+
return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
5256
|
+
};
|
|
5257
|
+
|
|
5258
|
+
const modifyTime = function(date, h, m, s) {
|
|
5259
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
|
|
5260
|
+
};
|
|
5261
|
+
|
|
5262
|
+
const modifyWithTimeString = (date, time) => {
|
|
5263
|
+
if (date == null || !time) {
|
|
5264
|
+
return date;
|
|
5265
|
+
}
|
|
5266
|
+
time = parseDate(time, 'HH:mm:ss');
|
|
5267
|
+
return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
|
|
5268
|
+
};
|
|
5269
|
+
|
|
5270
|
+
const clearTime = function(date) {
|
|
5271
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
5272
|
+
};
|
|
5273
|
+
|
|
5274
|
+
const clearMilliseconds = function(date) {
|
|
5275
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
|
|
5276
|
+
};
|
|
5277
|
+
|
|
5278
|
+
const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
|
|
5279
|
+
// TODO: refactory a more elegant solution
|
|
5280
|
+
if (ranges.length === 0) return date;
|
|
5281
|
+
const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
|
|
5282
|
+
const ndate = normalizeDate(date);
|
|
5283
|
+
const nranges = ranges.map(range => range.map(normalizeDate));
|
|
5284
|
+
if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
|
|
5285
|
+
|
|
5286
|
+
let minDate = nranges[0][0];
|
|
5287
|
+
let maxDate = nranges[0][0];
|
|
5288
|
+
|
|
5289
|
+
nranges.forEach(nrange => {
|
|
5290
|
+
minDate = new Date(Math.min(nrange[0], minDate));
|
|
5291
|
+
maxDate = new Date(Math.max(nrange[1], minDate));
|
|
5292
|
+
});
|
|
5293
|
+
|
|
5294
|
+
const ret = ndate < minDate ? minDate : maxDate;
|
|
5295
|
+
// preserve Year/Month/Date
|
|
5296
|
+
return modifyDate(
|
|
5297
|
+
ret,
|
|
5298
|
+
date.getFullYear(),
|
|
5299
|
+
date.getMonth(),
|
|
5300
|
+
date.getDate()
|
|
5301
|
+
);
|
|
5302
|
+
};
|
|
5303
|
+
|
|
5304
|
+
const timeWithinRange = function(date, selectableRange, format) {
|
|
5305
|
+
const limitedDate = limitTimeRange(date, selectableRange, format);
|
|
5306
|
+
return limitedDate.getTime() === date.getTime();
|
|
5307
|
+
};
|
|
5308
|
+
|
|
5309
|
+
const changeYearMonthAndClampDate = function(date, year, month) {
|
|
5310
|
+
// clamp date to the number of days in `year`, `month`
|
|
5311
|
+
// eg: (2010-1-31, 2010, 2) => 2010-2-28
|
|
5312
|
+
const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
|
|
5313
|
+
return modifyDate(date, year, month, monthDate);
|
|
5314
|
+
};
|
|
5315
|
+
|
|
5316
|
+
const prevMonth = function(date) {
|
|
5317
|
+
const year = date.getFullYear();
|
|
5318
|
+
const month = date.getMonth();
|
|
5319
|
+
return month === 0
|
|
5320
|
+
? changeYearMonthAndClampDate(date, year - 1, 11)
|
|
5321
|
+
: changeYearMonthAndClampDate(date, year, month - 1);
|
|
5322
|
+
};
|
|
5323
|
+
|
|
5324
|
+
const nextMonth = function(date) {
|
|
5325
|
+
const year = date.getFullYear();
|
|
5326
|
+
const month = date.getMonth();
|
|
5327
|
+
return month === 11
|
|
5328
|
+
? changeYearMonthAndClampDate(date, year + 1, 0)
|
|
5329
|
+
: changeYearMonthAndClampDate(date, year, month + 1);
|
|
5330
|
+
};
|
|
5331
|
+
|
|
5332
|
+
const prevYear = function(date, amount = 1) {
|
|
5333
|
+
const year = date.getFullYear();
|
|
5334
|
+
const month = date.getMonth();
|
|
5335
|
+
return changeYearMonthAndClampDate(date, year - amount, month);
|
|
5336
|
+
};
|
|
5337
|
+
|
|
5338
|
+
const nextYear = function(date, amount = 1) {
|
|
5339
|
+
const year = date.getFullYear();
|
|
5340
|
+
const month = date.getMonth();
|
|
5341
|
+
return changeYearMonthAndClampDate(date, year + amount, month);
|
|
5342
|
+
};
|
|
5343
|
+
|
|
5344
|
+
const extractDateFormat = function(format) {
|
|
5345
|
+
return format
|
|
5346
|
+
.replace(/\W?m{1,2}|\W?ZZ/g, '')
|
|
5347
|
+
.replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
|
|
5348
|
+
.trim();
|
|
5349
|
+
};
|
|
5350
|
+
|
|
5351
|
+
const extractTimeFormat = function(format) {
|
|
5352
|
+
return format
|
|
5353
|
+
.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
|
|
5354
|
+
.trim();
|
|
5355
|
+
};
|
|
5356
|
+
|
|
5357
|
+
const validateRangeInOneMonth = function(start, end) {
|
|
5358
|
+
return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
|
|
5359
|
+
};
|
|
5360
|
+
|
|
5343
5361
|
/**
|
|
5344
5362
|
* 计算两个日期之间的工作日数量(不包括周末和节假日)
|
|
5345
5363
|
* @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
|
|
5346
5364
|
* @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
|
|
5347
5365
|
* @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
|
|
5348
5366
|
* @returns {number} 工作日数量
|
|
5349
|
-
*/
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
}
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
5361
|
-
throw new Error(
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
}
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5367
|
+
*/
|
|
5368
|
+
const calculateNetworkDays = function (start_date, end_date, holidays = []) {
|
|
5369
|
+
if (typeof start_date !== 'string' || typeof end_date !== 'string') {
|
|
5370
|
+
throw new Error(
|
|
5371
|
+
"Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
5372
|
+
);
|
|
5373
|
+
}
|
|
5374
|
+
|
|
5375
|
+
const startDateObj = new Date(start_date);
|
|
5376
|
+
const endDateObj = new Date(end_date);
|
|
5377
|
+
|
|
5378
|
+
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
5379
|
+
throw new Error(
|
|
5380
|
+
"Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
5381
|
+
);
|
|
5382
|
+
}
|
|
5383
|
+
|
|
5384
|
+
if (startDateObj > endDateObj) {
|
|
5385
|
+
throw new Error('Start date should be earlier than or equal to end date.');
|
|
5386
|
+
}
|
|
5387
|
+
|
|
5388
|
+
let workdays = 0;
|
|
5389
|
+
|
|
5390
|
+
// Iterate through each day in the date range
|
|
5391
|
+
for (
|
|
5392
|
+
let currentDate = new Date(startDateObj);
|
|
5393
|
+
currentDate <= endDateObj;
|
|
5394
|
+
currentDate.setDate(currentDate.getDate() + 1)
|
|
5395
|
+
) {
|
|
5396
|
+
// Check if the current day is a weekend (Saturday or Sunday)
|
|
5397
|
+
const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
|
|
5398
|
+
|
|
5399
|
+
// Check if the current day is a holiday
|
|
5400
|
+
const isHoliday = holidays.some((holiday) => {
|
|
5401
|
+
const holidayDate = new Date(holiday);
|
|
5402
|
+
return currentDate.toDateString() === holidayDate.toDateString();
|
|
5403
|
+
});
|
|
5404
|
+
|
|
5405
|
+
// If it's a workday (not a weekend or holiday), increment the workdays count
|
|
5406
|
+
if (!isWeekend && !isHoliday) {
|
|
5407
|
+
workdays++;
|
|
5408
|
+
}
|
|
5409
|
+
}
|
|
5410
|
+
|
|
5411
|
+
return workdays;
|
|
5412
|
+
};
|
|
5413
|
+
|
|
5395
5414
|
/**
|
|
5396
5415
|
* 日期加减天数
|
|
5397
5416
|
* @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
|
|
5398
5417
|
* @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
|
|
5399
5418
|
* @returns {string} 结果日期,格式为 "YYYY-MM-DD"
|
|
5400
|
-
*/
|
|
5401
|
-
|
|
5402
|
-
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
5403
|
-
throw new Error(
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5419
|
+
*/
|
|
5420
|
+
const dateAddDays = function (start_date, days) {
|
|
5421
|
+
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
5422
|
+
throw new Error(
|
|
5423
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
|
|
5424
|
+
);
|
|
5425
|
+
}
|
|
5426
|
+
|
|
5427
|
+
const startDateObj = new Date(start_date);
|
|
5428
|
+
if (isNaN(startDateObj.getTime())) {
|
|
5429
|
+
throw new Error(
|
|
5430
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
5431
|
+
);
|
|
5432
|
+
}
|
|
5433
|
+
|
|
5434
|
+
const resultDateObj = new Date(startDateObj);
|
|
5435
|
+
resultDateObj.setDate(resultDateObj.getDate() + days);
|
|
5436
|
+
|
|
5437
|
+
const resultYear = resultDateObj.getFullYear();
|
|
5438
|
+
const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
|
|
5439
|
+
const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
|
|
5440
|
+
|
|
5441
|
+
return `${resultYear}-${resultMonth}-${resultDay}`;
|
|
5442
|
+
};
|
|
5443
|
+
|
|
5421
5444
|
/**
|
|
5422
5445
|
* 计算两个日期之间的差值
|
|
5423
5446
|
* @date 2023年12月14日
|
|
@@ -5425,180 +5448,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
|
|
|
5425
5448
|
* @param {String} end_date - 结束日期字符串
|
|
5426
5449
|
* @param {String} unit - 单位:year/month/day
|
|
5427
5450
|
* @returns {Number} 差值
|
|
5428
|
-
*/
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
if (unit === '
|
|
5442
|
-
return
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
}
|
|
5452
|
-
|
|
5451
|
+
*/
|
|
5452
|
+
const dateDiff = function (start_date, end_date, unit = 'day') {
|
|
5453
|
+
// Assuming date strings are in "YYYY-MM-DD" format
|
|
5454
|
+
var startDate = new Date(start_date);
|
|
5455
|
+
var endDate = new Date(end_date);
|
|
5456
|
+
|
|
5457
|
+
// If the date is invalid, return 0
|
|
5458
|
+
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
5459
|
+
return 0;
|
|
5460
|
+
}
|
|
5461
|
+
|
|
5462
|
+
if (unit === 'year') {
|
|
5463
|
+
return endDate.getFullYear() - startDate.getFullYear();
|
|
5464
|
+
} else if (unit === 'month') {
|
|
5465
|
+
return (
|
|
5466
|
+
(endDate.getFullYear() - startDate.getFullYear()) * 12 +
|
|
5467
|
+
(endDate.getMonth() - startDate.getMonth())
|
|
5468
|
+
);
|
|
5469
|
+
} else {
|
|
5470
|
+
// Default to day
|
|
5471
|
+
var timeDifference = endDate - startDate;
|
|
5472
|
+
// Calculate days (86400000 milliseconds per day)
|
|
5473
|
+
return Math.floor(timeDifference / 86400000);
|
|
5474
|
+
}
|
|
5475
|
+
};
|
|
5476
|
+
|
|
5453
5477
|
/**
|
|
5454
5478
|
* 获取月份中的日期
|
|
5455
5479
|
* @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
|
|
5456
5480
|
* @returns {number} 月份中的日期(1-31)
|
|
5457
|
-
*/
|
|
5458
|
-
|
|
5459
|
-
if (typeof date !== 'string') {
|
|
5460
|
-
throw new Error(
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5481
|
+
*/
|
|
5482
|
+
const dayOfMonth = function (date) {
|
|
5483
|
+
if (typeof date !== 'string') {
|
|
5484
|
+
throw new Error(
|
|
5485
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
5486
|
+
);
|
|
5487
|
+
}
|
|
5488
|
+
|
|
5489
|
+
const dateObj = new Date(date);
|
|
5490
|
+
if (isNaN(dateObj.getTime())) {
|
|
5491
|
+
throw new Error(
|
|
5492
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
5493
|
+
);
|
|
5494
|
+
}
|
|
5495
|
+
|
|
5496
|
+
return dateObj.getDate();
|
|
5497
|
+
};
|
|
5498
|
+
|
|
5471
5499
|
/**
|
|
5472
5500
|
* 获取当前日期
|
|
5473
5501
|
* @date 2022年5月7日
|
|
5474
5502
|
* @param {string} format - 日期格式,默认为'YYYY-MM-DD'
|
|
5475
5503
|
* @returns {string} 当前日期的格式化字符串
|
|
5476
|
-
*/
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
};
|
|
5482
|
-
|
|
5504
|
+
*/
|
|
5505
|
+
const getCurrentDate = function (format = 'YYYY-MM-DD') {
|
|
5506
|
+
return formatDate(new Date(), format);
|
|
5507
|
+
};
|
|
5508
|
+
|
|
5483
5509
|
/**
|
|
5484
5510
|
* 获取当前日期时间
|
|
5485
5511
|
* @date 2022年5月7日
|
|
5486
5512
|
* @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
|
|
5487
5513
|
* @returns {string} 当前日期时间的格式化字符串
|
|
5488
|
-
*/
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
};
|
|
5494
|
-
|
|
5514
|
+
*/
|
|
5515
|
+
const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
|
|
5516
|
+
return formatDate(new Date(), format);
|
|
5517
|
+
};
|
|
5518
|
+
|
|
5495
5519
|
/**
|
|
5496
5520
|
* 获取小时
|
|
5497
5521
|
* @date 2022年5月7日
|
|
5498
5522
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
5499
5523
|
* @returns {number} 小时数(0-23)
|
|
5500
|
-
*/
|
|
5501
|
-
|
|
5502
|
-
if (!date) {
|
|
5503
|
-
return new Date().getHours();
|
|
5504
|
-
}
|
|
5505
|
-
if (typeof date === 'string') {
|
|
5506
|
-
date = new Date(date);
|
|
5507
|
-
}
|
|
5508
|
-
return date.getHours();
|
|
5509
|
-
};
|
|
5510
|
-
|
|
5524
|
+
*/
|
|
5525
|
+
const getHour = function (date) {
|
|
5526
|
+
if (!date) {
|
|
5527
|
+
return new Date().getHours();
|
|
5528
|
+
}
|
|
5529
|
+
if (typeof date === 'string') {
|
|
5530
|
+
date = new Date(date);
|
|
5531
|
+
}
|
|
5532
|
+
return date.getHours();
|
|
5533
|
+
};
|
|
5534
|
+
|
|
5511
5535
|
/**
|
|
5512
5536
|
* 获取分钟
|
|
5513
5537
|
* @date 2022年5月7日
|
|
5514
5538
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
5515
5539
|
* @returns {number} 分钟数(0-59)
|
|
5516
|
-
*/
|
|
5517
|
-
|
|
5518
|
-
if (!date) {
|
|
5519
|
-
return new Date().getMinutes();
|
|
5520
|
-
}
|
|
5521
|
-
if (typeof date === 'string') {
|
|
5522
|
-
date = new Date(date);
|
|
5523
|
-
}
|
|
5524
|
-
return date.getMinutes();
|
|
5525
|
-
};
|
|
5526
|
-
|
|
5540
|
+
*/
|
|
5541
|
+
const getMinute = function (date) {
|
|
5542
|
+
if (!date) {
|
|
5543
|
+
return new Date().getMinutes();
|
|
5544
|
+
}
|
|
5545
|
+
if (typeof date === 'string') {
|
|
5546
|
+
date = new Date(date);
|
|
5547
|
+
}
|
|
5548
|
+
return date.getMinutes();
|
|
5549
|
+
};
|
|
5550
|
+
|
|
5527
5551
|
/**
|
|
5528
5552
|
* 获取月份
|
|
5529
5553
|
* @date 2022年5月7日
|
|
5530
5554
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
5531
5555
|
* @returns {number} 月份数(1-12)
|
|
5532
|
-
*/
|
|
5533
|
-
|
|
5534
|
-
if (!date) {
|
|
5535
|
-
return new Date().getMonth() + 1;
|
|
5536
|
-
}
|
|
5537
|
-
if (typeof date === 'string') {
|
|
5538
|
-
date = new Date(date);
|
|
5539
|
-
}
|
|
5540
|
-
return date.getMonth() + 1;
|
|
5541
|
-
};
|
|
5542
|
-
|
|
5556
|
+
*/
|
|
5557
|
+
const getMonth = function (date) {
|
|
5558
|
+
if (!date) {
|
|
5559
|
+
return new Date().getMonth() + 1;
|
|
5560
|
+
}
|
|
5561
|
+
if (typeof date === 'string') {
|
|
5562
|
+
date = new Date(date);
|
|
5563
|
+
}
|
|
5564
|
+
return date.getMonth() + 1;
|
|
5565
|
+
};
|
|
5566
|
+
|
|
5543
5567
|
/**
|
|
5544
5568
|
* 获取秒
|
|
5545
5569
|
* @date 2022年5月7日
|
|
5546
5570
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
5547
5571
|
* @returns {number} 秒数(0-59)
|
|
5548
|
-
*/
|
|
5549
|
-
|
|
5550
|
-
if (!date) {
|
|
5551
|
-
return new Date().getSeconds();
|
|
5552
|
-
}
|
|
5553
|
-
if (typeof date === 'string') {
|
|
5554
|
-
date = new Date(date);
|
|
5555
|
-
}
|
|
5556
|
-
return date.getSeconds();
|
|
5557
|
-
};
|
|
5558
|
-
|
|
5572
|
+
*/
|
|
5573
|
+
const getSecond = function (date) {
|
|
5574
|
+
if (!date) {
|
|
5575
|
+
return new Date().getSeconds();
|
|
5576
|
+
}
|
|
5577
|
+
if (typeof date === 'string') {
|
|
5578
|
+
date = new Date(date);
|
|
5579
|
+
}
|
|
5580
|
+
return date.getSeconds();
|
|
5581
|
+
};
|
|
5582
|
+
|
|
5559
5583
|
/**
|
|
5560
5584
|
* 获取星期几
|
|
5561
5585
|
* @date 2022年5月7日
|
|
5562
5586
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
5563
5587
|
* @returns {number} 星期几(0-6,0表示星期日)
|
|
5564
|
-
*/
|
|
5565
|
-
|
|
5566
|
-
if (!date) {
|
|
5567
|
-
return new Date().getDay();
|
|
5568
|
-
}
|
|
5569
|
-
if (typeof date === 'string') {
|
|
5570
|
-
date = new Date(date);
|
|
5571
|
-
}
|
|
5572
|
-
return date.getDay();
|
|
5573
|
-
};
|
|
5574
|
-
|
|
5588
|
+
*/
|
|
5589
|
+
const getWeekday = function (date) {
|
|
5590
|
+
if (!date) {
|
|
5591
|
+
return new Date().getDay();
|
|
5592
|
+
}
|
|
5593
|
+
if (typeof date === 'string') {
|
|
5594
|
+
date = new Date(date);
|
|
5595
|
+
}
|
|
5596
|
+
return date.getDay();
|
|
5597
|
+
};
|
|
5598
|
+
|
|
5599
|
+
|
|
5575
5600
|
/**
|
|
5576
5601
|
* @desc 获取上午/下午/晚上
|
|
5577
5602
|
* @author huangbo
|
|
5578
5603
|
* @date 2022年5月7日
|
|
5579
5604
|
* @param {String} [time] - 时间
|
|
5580
|
-
**/
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
if (!time) {
|
|
5584
|
-
hour = new Date().getHours();
|
|
5585
|
-
} else if (typeof time === 'string') {
|
|
5586
|
-
// 从时间字符串中提取小时
|
|
5587
|
-
|
|
5588
|
-
if (match) {
|
|
5589
|
-
hour = parseInt(match[1], 10);
|
|
5590
|
-
}
|
|
5591
|
-
} else if (typeof time === 'number') {
|
|
5592
|
-
hour = time;
|
|
5593
|
-
}
|
|
5594
|
-
// 判断时间段
|
|
5595
|
-
if (hour >= 5 && hour < 12) {
|
|
5596
|
-
return '上午';
|
|
5597
|
-
} else if (hour >= 12 && hour < 18) {
|
|
5598
|
-
return '下午';
|
|
5599
|
-
} else {
|
|
5600
|
-
return '晚上';
|
|
5601
|
-
}
|
|
5605
|
+
**/
|
|
5606
|
+
const timeCycle = function (time) {
|
|
5607
|
+
let hour = 0;
|
|
5608
|
+
if (!time) {
|
|
5609
|
+
hour = new Date().getHours();
|
|
5610
|
+
} else if (typeof time === 'string') {
|
|
5611
|
+
// 从时间字符串中提取小时
|
|
5612
|
+
const match = time.match(/^(\d{1,2})/);
|
|
5613
|
+
if (match) {
|
|
5614
|
+
hour = parseInt(match[1], 10);
|
|
5615
|
+
}
|
|
5616
|
+
} else if (typeof time === 'number') {
|
|
5617
|
+
hour = time;
|
|
5618
|
+
}
|
|
5619
|
+
// 判断时间段
|
|
5620
|
+
if (hour >= 5 && hour < 12) {
|
|
5621
|
+
return '上午';
|
|
5622
|
+
} else if (hour >= 12 && hour < 18) {
|
|
5623
|
+
return '下午';
|
|
5624
|
+
} else {
|
|
5625
|
+
return '晚上';
|
|
5626
|
+
}
|
|
5602
5627
|
};
|
|
5603
5628
|
|
|
5604
5629
|
/***/ }),
|
|
@@ -5683,17 +5708,10 @@ module.exports = require("fetch-request-source");
|
|
|
5683
5708
|
|
|
5684
5709
|
/***/ }),
|
|
5685
5710
|
|
|
5686
|
-
/***/ 28:
|
|
5687
|
-
/***/ (function(module, exports) {
|
|
5688
|
-
|
|
5689
|
-
module.exports = require("qs");
|
|
5690
|
-
|
|
5691
|
-
/***/ }),
|
|
5692
|
-
|
|
5693
5711
|
/***/ 29:
|
|
5694
5712
|
/***/ (function(module, exports) {
|
|
5695
5713
|
|
|
5696
|
-
module.exports = require("
|
|
5714
|
+
module.exports = require("qs");
|
|
5697
5715
|
|
|
5698
5716
|
/***/ }),
|
|
5699
5717
|
|
|
@@ -5805,6 +5823,13 @@ function normalizeComponent(
|
|
|
5805
5823
|
/***/ 30:
|
|
5806
5824
|
/***/ (function(module, exports) {
|
|
5807
5825
|
|
|
5826
|
+
module.exports = require("axios");
|
|
5827
|
+
|
|
5828
|
+
/***/ }),
|
|
5829
|
+
|
|
5830
|
+
/***/ 31:
|
|
5831
|
+
/***/ (function(module, exports) {
|
|
5832
|
+
|
|
5808
5833
|
module.exports = require("json-bigint");
|
|
5809
5834
|
|
|
5810
5835
|
/***/ }),
|
|
@@ -5899,7 +5924,7 @@ function isDefined(val) {
|
|
|
5899
5924
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doQrLogin; });
|
|
5900
5925
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return logout; });
|
|
5901
5926
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return initLogin; });
|
|
5902
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5927
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return switchUserTo; });
|
|
5903
5928
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return changeImg; });
|
|
5904
5929
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getLoginCode; });
|
|
5905
5930
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCodeLogin; });
|
|
@@ -5917,13 +5942,13 @@ function isDefined(val) {
|
|
|
5917
5942
|
/* unused harmony export scanCodeRetrialAuth */
|
|
5918
5943
|
/* unused harmony export codeRetrialAuth */
|
|
5919
5944
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return doAssistanceQrLogin; });
|
|
5920
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5945
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return userOnline; });
|
|
5921
5946
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUserAppWithTag; });
|
|
5922
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5947
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return recordUserApp; });
|
|
5923
5948
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserRecordApp; });
|
|
5924
5949
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return mainConfig; });
|
|
5925
5950
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initUserSet; });
|
|
5926
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5951
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateUserInfo; });
|
|
5927
5952
|
/* unused harmony export getUserImgUrl */
|
|
5928
5953
|
/* unused harmony export getDoorIndex */
|
|
5929
5954
|
/* unused harmony export refreshOnlineUsers */
|
|
@@ -5935,22 +5960,22 @@ function isDefined(val) {
|
|
|
5935
5960
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getByType; });
|
|
5936
5961
|
/* unused harmony export getUserCustomInfo */
|
|
5937
5962
|
/* unused harmony export updateUserCustomInfo */
|
|
5938
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5939
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5963
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveOrUpdate; });
|
|
5964
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return sysMsgPage; });
|
|
5940
5965
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreSysMsg; });
|
|
5941
5966
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return ignoreAllSysMsg; });
|
|
5942
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5967
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return searchType; });
|
|
5943
5968
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSysParam; });
|
|
5944
5969
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctProperties; });
|
|
5945
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5946
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5970
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploads; });
|
|
5971
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadOnlyOne; });
|
|
5947
5972
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getAdjunctFileInfos; });
|
|
5948
5973
|
/* unused harmony export uploadSort */
|
|
5949
5974
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return downloadByAdjunctId; });
|
|
5950
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5951
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5952
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5953
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5975
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadDownloads; });
|
|
5976
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct; });
|
|
5977
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct2; });
|
|
5978
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunctOffice; });
|
|
5954
5979
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return delAdjunct; });
|
|
5955
5980
|
/* unused harmony export upload_updateClassify */
|
|
5956
5981
|
/* unused harmony export getDeleteAdjunctFileInfos */
|
|
@@ -5965,13 +5990,13 @@ function isDefined(val) {
|
|
|
5965
5990
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return gethelpdoc; });
|
|
5966
5991
|
/* unused harmony export getCurrentuser */
|
|
5967
5992
|
/* unused harmony export mainDetail */
|
|
5968
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5969
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5993
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartFlow; });
|
|
5994
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tempSave; });
|
|
5970
5995
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return commonOpion; });
|
|
5971
5996
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
|
|
5972
5997
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return editCommonOpion; });
|
|
5973
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5974
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5998
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveCommonOpinion; });
|
|
5999
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateCommonOpinion; });
|
|
5975
6000
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return deleteCommonOpion; });
|
|
5976
6001
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getProcessDefList; });
|
|
5977
6002
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getNodeInfo; });
|
|
@@ -5980,27 +6005,27 @@ function isDefined(val) {
|
|
|
5980
6005
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCodes; });
|
|
5981
6006
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNotificationMsg; });
|
|
5982
6007
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getHandleInfoHtml; });
|
|
5983
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6008
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskHandleHtml; });
|
|
5984
6009
|
/* unused harmony export getView */
|
|
5985
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5986
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5987
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5988
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5989
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5990
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5991
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5992
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5993
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5994
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6010
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return register; });
|
|
6011
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pendedhistoryList; });
|
|
6012
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskRejectHtml; });
|
|
6013
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskRejectHtml; });
|
|
6014
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskRead; });
|
|
6015
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskReadIndex; });
|
|
6016
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskReadHtml; });
|
|
6017
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return rejectAndEnd; });
|
|
6018
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toSendMsg; });
|
|
6019
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return sendMsg; });
|
|
5995
6020
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowHtml; });
|
|
5996
6021
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return handleInfo; });
|
|
5997
6022
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return loginUserInfo; });
|
|
5998
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5999
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6023
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return wss; });
|
|
6024
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return topic; });
|
|
6000
6025
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getPresetCustomInfo; });
|
|
6001
6026
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetNodeInfo; });
|
|
6002
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6003
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6027
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTransferIndex; });
|
|
6028
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTransfer; });
|
|
6004
6029
|
/* unused harmony export toPresetInfoListIndex */
|
|
6005
6030
|
/* unused harmony export deletePresetInfo */
|
|
6006
6031
|
/* unused harmony export historyListJson */
|
|
@@ -6008,24 +6033,24 @@ function isDefined(val) {
|
|
|
6008
6033
|
/* unused harmony export pressListJson */
|
|
6009
6034
|
/* unused harmony export deleteFlow */
|
|
6010
6035
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isCanStartSubFlow; });
|
|
6011
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6012
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6013
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6014
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6015
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6016
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6017
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6018
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6019
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6020
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6021
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6022
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6023
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6024
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6025
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6026
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6027
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6028
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6036
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionExamine; });
|
|
6037
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionExamine; });
|
|
6038
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTakeAdvice; });
|
|
6039
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTakeAdvice; });
|
|
6040
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskStartDraft; });
|
|
6041
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSupervise; });
|
|
6042
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSuperviseSub; });
|
|
6043
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskStartDraft; });
|
|
6044
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskReview; });
|
|
6045
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskReview; });
|
|
6046
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionSeal; });
|
|
6047
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionSeal; });
|
|
6048
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTwoOfficesDispatch; });
|
|
6049
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return twoOfficesDispatch; });
|
|
6050
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toResetProcessIndex; });
|
|
6051
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return resetProcess; });
|
|
6052
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskContinuationIndex; });
|
|
6053
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskContinuation; });
|
|
6029
6054
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getFreeStartFlowParams; });
|
|
6030
6055
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlowWithSubmitTask; });
|
|
6031
6056
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkForeignOrgStartedCircularRead; });
|
|
@@ -6033,7 +6058,7 @@ function isDefined(val) {
|
|
|
6033
6058
|
/* unused harmony export fyListJson */
|
|
6034
6059
|
/* unused harmony export circularReadWithdraw */
|
|
6035
6060
|
/* unused harmony export taskReadWithDraw */
|
|
6036
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6061
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
|
|
6037
6062
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return checkBusinessIdStartedReadTransferHandle; });
|
|
6038
6063
|
/* unused harmony export sendList */
|
|
6039
6064
|
/* unused harmony export sendInfo */
|
|
@@ -6047,23 +6072,24 @@ function isDefined(val) {
|
|
|
6047
6072
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfoForStart; });
|
|
6048
6073
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return freeStartFlow; });
|
|
6049
6074
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getUrgencyLevelChangedNotificationType; });
|
|
6050
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6075
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toFreeTaskCircularRead; });
|
|
6051
6076
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeTaskCircularRead; });
|
|
6052
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6077
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageLists; });
|
|
6053
6078
|
/* unused harmony export publishedLists */
|
|
6054
6079
|
/* unused harmony export pageInfo */
|
|
6055
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6056
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return
|
|
6080
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageGroup; });
|
|
6081
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageSave; });
|
|
6082
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageUpdate; });
|
|
6057
6083
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return pageDelete; });
|
|
6058
6084
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchSave; });
|
|
6059
6085
|
/* unused harmony export batchUpdate */
|
|
6060
6086
|
/* unused harmony export batchDelete */
|
|
6061
6087
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchList; });
|
|
6062
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6063
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6064
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6065
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6066
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6088
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processListJson; });
|
|
6089
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processInfo; });
|
|
6090
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processDeleteJson; });
|
|
6091
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processSave; });
|
|
6092
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processUpdate; });
|
|
6067
6093
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeListJson; });
|
|
6068
6094
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return nodeDeleteJson; });
|
|
6069
6095
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeSave; });
|
|
@@ -6074,22 +6100,22 @@ function isDefined(val) {
|
|
|
6074
6100
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return moduleDelete; });
|
|
6075
6101
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleSave; });
|
|
6076
6102
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleUpdate; });
|
|
6077
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6078
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6079
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6080
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6103
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleListJson; });
|
|
6104
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleEdit; });
|
|
6105
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleRead; });
|
|
6106
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleSave; });
|
|
6081
6107
|
/* unused harmony export ruleSupplement */
|
|
6082
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6083
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6108
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleUndore; });
|
|
6109
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleAdd; });
|
|
6084
6110
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return companyDetail; });
|
|
6085
6111
|
/* unused harmony export issueDetailList */
|
|
6086
6112
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteRule; });
|
|
6087
6113
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParamV1; });
|
|
6088
6114
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyList; });
|
|
6089
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6115
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return supplement; });
|
|
6090
6116
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return isAddSource; });
|
|
6091
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6092
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6117
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tiggerInTime; });
|
|
6118
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateHistory; });
|
|
6093
6119
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
|
|
6094
6120
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeInTime; });
|
|
6095
6121
|
var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
|
|
@@ -6371,6 +6397,9 @@ var pageLists = '/main2/pageComponentConfig/listJson';
|
|
|
6371
6397
|
var publishedLists = '/main2/pageComponentConfig/listPublished';
|
|
6372
6398
|
// 获取自定义配置详情
|
|
6373
6399
|
var pageInfo = '/main2/pageComponentConfig/info';
|
|
6400
|
+
// 获取自定义配置授权列表
|
|
6401
|
+
var pageGroup = 'main2/pageComponentTarget/listByConfigIdAndTypeGroup';
|
|
6402
|
+
|
|
6374
6403
|
// 保存自定义配置,发布也调这个接口但要加上字段status=1
|
|
6375
6404
|
var pageSave = '/main2/pageComponentConfig/save';
|
|
6376
6405
|
// 更新自定义配置
|
|
@@ -6478,12 +6507,12 @@ module.exports = require("eoss/lib/message-box");
|
|
|
6478
6507
|
/* unused harmony export downloadZip */
|
|
6479
6508
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
|
|
6480
6509
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
|
|
6481
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
6510
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
|
|
6482
6511
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
|
|
6483
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
6512
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);
|
|
6484
6513
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
6485
6514
|
/* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
|
|
6486
|
-
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
6515
|
+
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
|
|
6487
6516
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
|
|
6488
6517
|
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
|
|
6489
6518
|
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24);
|
|
@@ -6725,7 +6754,7 @@ var ajax = function ajax(_ref) {
|
|
|
6725
6754
|
delete params[key];
|
|
6726
6755
|
}
|
|
6727
6756
|
}
|
|
6728
|
-
url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
6757
|
+
url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: url, param: encodedParams });
|
|
6729
6758
|
}
|
|
6730
6759
|
} else {
|
|
6731
6760
|
params = {};
|
|
@@ -7083,7 +7112,7 @@ function redirectToLogin() {
|
|
|
7083
7112
|
|
|
7084
7113
|
if (loginPage) {
|
|
7085
7114
|
// 处理相对路径
|
|
7086
|
-
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "
|
|
7115
|
+
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
|
|
7087
7116
|
var pathname = '';
|
|
7088
7117
|
try {
|
|
7089
7118
|
pathname = window.top.location.pathname;
|
|
@@ -7115,7 +7144,7 @@ function redirectToLogin() {
|
|
|
7115
7144
|
* @returns {Promise} 认证完成后 resolve
|
|
7116
7145
|
*/
|
|
7117
7146
|
var initAuth = function initAuth() {
|
|
7118
|
-
var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "
|
|
7147
|
+
var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])();
|
|
7119
7148
|
var token = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('token') || Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('Authorization');
|
|
7120
7149
|
|
|
7121
7150
|
// 已有 token 或没有认证参数,直接返回
|
|
@@ -7123,7 +7152,7 @@ var initAuth = function initAuth() {
|
|
|
7123
7152
|
return Promise.resolve();
|
|
7124
7153
|
}
|
|
7125
7154
|
|
|
7126
|
-
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "
|
|
7155
|
+
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('页面加载中...');
|
|
7127
7156
|
|
|
7128
7157
|
return ajax({
|
|
7129
7158
|
method: 'post',
|
|
@@ -7202,7 +7231,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
7202
7231
|
|
|
7203
7232
|
// 处理cookie参数
|
|
7204
7233
|
if (cookie === undefined) {
|
|
7205
|
-
cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "
|
|
7234
|
+
cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])({ name: 'cookie' });
|
|
7206
7235
|
}
|
|
7207
7236
|
|
|
7208
7237
|
// 处理登录页面路径
|
|
@@ -7217,7 +7246,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
7217
7246
|
sessionStorage.setItem('loginPage', loginPage);
|
|
7218
7247
|
|
|
7219
7248
|
// 处理相对路径
|
|
7220
|
-
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "
|
|
7249
|
+
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
|
|
7221
7250
|
if (pathname !== '/') {
|
|
7222
7251
|
var pathParts = pathname.split('/');
|
|
7223
7252
|
pathParts.splice(pathParts.length - 1);
|
|
@@ -7242,7 +7271,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
7242
7271
|
|
|
7243
7272
|
// 处理重定向
|
|
7244
7273
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
7245
|
-
window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
7274
|
+
window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: '.' + to.path + '.html', param: to.query }));
|
|
7246
7275
|
} else {
|
|
7247
7276
|
next();
|
|
7248
7277
|
}
|
|
@@ -7445,7 +7474,7 @@ var downloadFile = function downloadFile(_ref6) {
|
|
|
7445
7474
|
|
|
7446
7475
|
// 拼接URL参数
|
|
7447
7476
|
if (Object.keys(params).length > 0) {
|
|
7448
|
-
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
7477
|
+
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
|
|
7449
7478
|
}
|
|
7450
7479
|
} else if (file.raw) {
|
|
7451
7480
|
downloadUrl = URL.createObjectURL(file.raw);
|
|
@@ -7491,7 +7520,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
7491
7520
|
code = _ref7.code,
|
|
7492
7521
|
option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
|
|
7493
7522
|
|
|
7494
|
-
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "
|
|
7523
|
+
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Nc"] };
|
|
7495
7524
|
|
|
7496
7525
|
// 处理URL和参数
|
|
7497
7526
|
var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
|
|
@@ -7507,7 +7536,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
7507
7536
|
|
|
7508
7537
|
// 拼接URL参数
|
|
7509
7538
|
if (Object.keys(params).length > 0) {
|
|
7510
|
-
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
7539
|
+
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
|
|
7511
7540
|
}
|
|
7512
7541
|
|
|
7513
7542
|
// 创建a标签
|
|
@@ -7612,7 +7641,7 @@ var getTableData = function getTableData(_ref9) {
|
|
|
7612
7641
|
onSuccess = _ref9.onSuccess,
|
|
7613
7642
|
onError = _ref9.onError;
|
|
7614
7643
|
|
|
7615
|
-
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "
|
|
7644
|
+
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('数据加载中...');
|
|
7616
7645
|
return new Promise(function (resolve, reject) {
|
|
7617
7646
|
ajax({
|
|
7618
7647
|
method: method,
|