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/flows.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 = 173);
|
|
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
|
+
/***/ 173:
|
|
3486
3493
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3487
3494
|
|
|
3488
3495
|
"use strict";
|
|
@@ -4260,7 +4267,7 @@ opinions_listvue_type_template_id_f78ad058_scoped_true_render._withStripped = tr
|
|
|
4260
4267
|
type: 'primary',
|
|
4261
4268
|
event: function event() {
|
|
4262
4269
|
_this.getValue();
|
|
4263
|
-
_this.action = api["
|
|
4270
|
+
_this.action = api["Xb" /* saveCommonOpinion */];
|
|
4264
4271
|
_this.visible = true;
|
|
4265
4272
|
}
|
|
4266
4273
|
}]
|
|
@@ -4280,7 +4287,7 @@ opinions_listvue_type_template_id_f78ad058_scoped_true_render._withStripped = tr
|
|
|
4280
4287
|
events: [{
|
|
4281
4288
|
text: '编辑',
|
|
4282
4289
|
event: function event(data) {
|
|
4283
|
-
_this.action = api["
|
|
4290
|
+
_this.action = api["Kc" /* updateCommonOpinion */];
|
|
4284
4291
|
_this.formData = data;
|
|
4285
4292
|
_this.visible = true;
|
|
4286
4293
|
}
|
|
@@ -4292,7 +4299,7 @@ opinions_listvue_type_template_id_f78ad058_scoped_true_render._withStripped = tr
|
|
|
4292
4299
|
}]
|
|
4293
4300
|
}],
|
|
4294
4301
|
visible: false,
|
|
4295
|
-
action: api["
|
|
4302
|
+
action: api["Xb" /* saveCommonOpinion */],
|
|
4296
4303
|
formContents: [{
|
|
4297
4304
|
label: '排序号',
|
|
4298
4305
|
name: 'sort',
|
|
@@ -4335,7 +4342,7 @@ opinions_listvue_type_template_id_f78ad058_scoped_true_render._withStripped = tr
|
|
|
4335
4342
|
cancelButtonText: '取消',
|
|
4336
4343
|
type: 'warning'
|
|
4337
4344
|
}).then(function () {
|
|
4338
|
-
_this2.loading = Object(util["
|
|
4345
|
+
_this2.loading = Object(util["K" /* loading */])('删除中');
|
|
4339
4346
|
Object(ajax["a" /* ajax */])({
|
|
4340
4347
|
url: deleteCommonOpion,
|
|
4341
4348
|
params: {
|
|
@@ -5047,9 +5054,9 @@ var opinions_file_component = Object(componentNormalizer["a" /* default */])(
|
|
|
5047
5054
|
for (var key in data) {
|
|
5048
5055
|
info['bean.' + key] = data[key];
|
|
5049
5056
|
}
|
|
5050
|
-
this.loading = Object(util["
|
|
5057
|
+
this.loading = Object(util["K" /* loading */])('提交中');
|
|
5051
5058
|
Object(ajax["a" /* ajax */])({
|
|
5052
|
-
url: data.id ? api["
|
|
5059
|
+
url: data.id ? api["Kc" /* updateCommonOpinion */] : api["Xb" /* saveCommonOpinion */],
|
|
5053
5060
|
data: info,
|
|
5054
5061
|
header: { 'Content-Type': 'multipart/form-data' },
|
|
5055
5062
|
method: 'post'
|
|
@@ -6271,13 +6278,6 @@ flow.install = function (Vue) {
|
|
|
6271
6278
|
|
|
6272
6279
|
/***/ }),
|
|
6273
6280
|
|
|
6274
|
-
/***/ 18:
|
|
6275
|
-
/***/ (function(module, exports) {
|
|
6276
|
-
|
|
6277
|
-
module.exports = require("eoss/lib/loading");
|
|
6278
|
-
|
|
6279
|
-
/***/ }),
|
|
6280
|
-
|
|
6281
6281
|
/***/ 19:
|
|
6282
6282
|
/***/ (function(module, exports) {
|
|
6283
6283
|
|
|
@@ -6335,736 +6335,759 @@ module.exports = require("lodash/get");
|
|
|
6335
6335
|
/* unused harmony export getSecond */
|
|
6336
6336
|
/* unused harmony export getWeekday */
|
|
6337
6337
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
|
|
6338
|
-
|
|
6339
|
-
|
|
6338
|
+
/* Modified from https://github.com/taylorhakes/fecha
|
|
6339
|
+
*
|
|
6340
|
+
* The MIT License (MIT)
|
|
6341
|
+
*
|
|
6342
|
+
* Copyright (c) 2015 Taylor Hakes
|
|
6343
|
+
*
|
|
6344
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6345
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
6346
|
+
* in the Software without restriction, including without limitation the rights
|
|
6347
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
6348
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
6349
|
+
* furnished to do so, subject to the following conditions:
|
|
6350
|
+
*
|
|
6351
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
6352
|
+
* copies or substantial portions of the Software.
|
|
6353
|
+
*
|
|
6354
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
6355
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
6356
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
6357
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
6358
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
6359
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
6360
|
+
* SOFTWARE.
|
|
6361
|
+
*/
|
|
6362
|
+
|
|
6363
|
+
/*eslint-disable*/
|
|
6364
|
+
// 把 YYYY-MM-DD 改成了 yyyy-MM-dd
|
|
6365
|
+
|
|
6366
|
+
|
|
6340
6367
|
/**
|
|
6341
6368
|
* Parse or format dates
|
|
6342
6369
|
* @class fecha
|
|
6343
|
-
*/
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
function regexEscape(str) {
|
|
6354
|
-
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
6355
|
-
}
|
|
6356
|
-
|
|
6357
|
-
function shorten(arr, sLen) {
|
|
6358
|
-
|
|
6359
|
-
for (
|
|
6360
|
-
newArr.push(arr[i].substr(0, sLen));
|
|
6361
|
-
}
|
|
6362
|
-
return newArr;
|
|
6363
|
-
}
|
|
6364
|
-
|
|
6365
|
-
function monthUpdate() {
|
|
6366
|
-
return function (d, v) {
|
|
6367
|
-
|
|
6368
|
-
if (~index) {
|
|
6369
|
-
d.month = index;
|
|
6370
|
-
}
|
|
6371
|
-
};
|
|
6372
|
-
}
|
|
6373
|
-
|
|
6374
|
-
function pad(val, len) {
|
|
6375
|
-
val = String(val);
|
|
6376
|
-
len = len || 2;
|
|
6377
|
-
while (val.length < len) {
|
|
6378
|
-
val = '0' + val;
|
|
6379
|
-
}
|
|
6380
|
-
return val;
|
|
6381
|
-
}
|
|
6382
|
-
|
|
6383
|
-
// 直接使用中文日期名称常量
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
return D + '日';
|
|
6391
|
-
};
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
D: function
|
|
6395
|
-
return dateObj.getDay();
|
|
6396
|
-
},
|
|
6397
|
-
DD: function
|
|
6398
|
-
return pad(dateObj.getDay());
|
|
6399
|
-
},
|
|
6400
|
-
Do: function
|
|
6401
|
-
return DoFn(dateObj.getDate());
|
|
6402
|
-
},
|
|
6403
|
-
d: function
|
|
6404
|
-
return dateObj.getDate();
|
|
6405
|
-
},
|
|
6406
|
-
dd: function
|
|
6407
|
-
return pad(dateObj.getDate());
|
|
6408
|
-
},
|
|
6409
|
-
ddd: function
|
|
6410
|
-
return dayNamesShort[dateObj.getDay()];
|
|
6411
|
-
},
|
|
6412
|
-
dddd: function
|
|
6413
|
-
return dayNames[dateObj.getDay()];
|
|
6414
|
-
},
|
|
6415
|
-
M: function
|
|
6416
|
-
return dateObj.getMonth() + 1;
|
|
6417
|
-
},
|
|
6418
|
-
MM: function
|
|
6419
|
-
return pad(dateObj.getMonth() + 1);
|
|
6420
|
-
},
|
|
6421
|
-
MMM: function
|
|
6422
|
-
return monthNamesShort[dateObj.getMonth()];
|
|
6423
|
-
},
|
|
6424
|
-
MMMM: function
|
|
6425
|
-
return monthNames[dateObj.getMonth()];
|
|
6426
|
-
},
|
|
6427
|
-
yy: function
|
|
6428
|
-
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
6429
|
-
},
|
|
6430
|
-
yyyy: function
|
|
6431
|
-
return pad(dateObj.getFullYear(), 4);
|
|
6432
|
-
},
|
|
6433
|
-
h: function
|
|
6434
|
-
return dateObj.getHours() % 12 || 12;
|
|
6435
|
-
},
|
|
6436
|
-
hh: function
|
|
6437
|
-
return pad(dateObj.getHours() % 12 || 12);
|
|
6438
|
-
},
|
|
6439
|
-
H: function
|
|
6440
|
-
return dateObj.getHours();
|
|
6441
|
-
},
|
|
6442
|
-
HH: function
|
|
6443
|
-
return pad(dateObj.getHours());
|
|
6444
|
-
},
|
|
6445
|
-
m: function
|
|
6446
|
-
return dateObj.getMinutes();
|
|
6447
|
-
},
|
|
6448
|
-
mm: function
|
|
6449
|
-
return pad(dateObj.getMinutes());
|
|
6450
|
-
},
|
|
6451
|
-
s: function
|
|
6452
|
-
return dateObj.getSeconds();
|
|
6453
|
-
},
|
|
6454
|
-
ss: function
|
|
6455
|
-
return pad(dateObj.getSeconds());
|
|
6456
|
-
},
|
|
6457
|
-
S: function
|
|
6458
|
-
return Math.round(dateObj.getMilliseconds() / 100);
|
|
6459
|
-
},
|
|
6460
|
-
SS: function
|
|
6461
|
-
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
6462
|
-
},
|
|
6463
|
-
SSS: function
|
|
6464
|
-
return pad(dateObj.getMilliseconds(), 3);
|
|
6465
|
-
},
|
|
6466
|
-
a: function
|
|
6467
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
6468
|
-
},
|
|
6469
|
-
A: function
|
|
6470
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
6471
|
-
},
|
|
6472
|
-
ZZ: function
|
|
6473
|
-
|
|
6474
|
-
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
6475
|
-
}
|
|
6476
|
-
};
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
d: [twoDigits, function (d, v) {
|
|
6480
|
-
d.day = v;
|
|
6481
|
-
}],
|
|
6482
|
-
Do: [twoDigits + word, function (d, v) {
|
|
6483
|
-
d.day = parseInt(v, 10);
|
|
6484
|
-
}],
|
|
6485
|
-
M: [twoDigits, function (d, v) {
|
|
6486
|
-
d.month = v - 1;
|
|
6487
|
-
}],
|
|
6488
|
-
yy: [twoDigits, function (d, v) {
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
}
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
parseFlags.
|
|
6537
|
-
parseFlags.
|
|
6538
|
-
parseFlags.
|
|
6539
|
-
parseFlags.
|
|
6540
|
-
parseFlags.
|
|
6541
|
-
parseFlags.
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6370
|
+
*/
|
|
6371
|
+
const fecha = {};
|
|
6372
|
+
const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
|
|
6373
|
+
const twoDigits = '\\d\\d?';
|
|
6374
|
+
const threeDigits = '\\d{3}';
|
|
6375
|
+
const fourDigits = '\\d{4}';
|
|
6376
|
+
const word = '[^\\s]+';
|
|
6377
|
+
const literal = /\[([^]*?)\]/gm;
|
|
6378
|
+
const noop = function () {};
|
|
6379
|
+
|
|
6380
|
+
function regexEscape(str) {
|
|
6381
|
+
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
6382
|
+
}
|
|
6383
|
+
|
|
6384
|
+
function shorten(arr, sLen) {
|
|
6385
|
+
const newArr = [];
|
|
6386
|
+
for (let i = 0, len = arr.length; i < len; i++) {
|
|
6387
|
+
newArr.push(arr[i].substr(0, sLen));
|
|
6388
|
+
}
|
|
6389
|
+
return newArr;
|
|
6390
|
+
}
|
|
6391
|
+
|
|
6392
|
+
function monthUpdate() {
|
|
6393
|
+
return function (d, v) {
|
|
6394
|
+
const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
|
|
6395
|
+
if (~index) {
|
|
6396
|
+
d.month = index;
|
|
6397
|
+
}
|
|
6398
|
+
};
|
|
6399
|
+
}
|
|
6400
|
+
|
|
6401
|
+
function pad(val, len) {
|
|
6402
|
+
val = String(val);
|
|
6403
|
+
len = len || 2;
|
|
6404
|
+
while (val.length < len) {
|
|
6405
|
+
val = '0' + val;
|
|
6406
|
+
}
|
|
6407
|
+
return val;
|
|
6408
|
+
}
|
|
6409
|
+
|
|
6410
|
+
// 直接使用中文日期名称常量
|
|
6411
|
+
const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
6412
|
+
const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
|
|
6413
|
+
const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
|
|
6414
|
+
const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
|
|
6415
|
+
const amPm = ['上午', '下午'];
|
|
6416
|
+
const DoFn = function DoFn(D) {
|
|
6417
|
+
return D + '日';
|
|
6418
|
+
};
|
|
6419
|
+
|
|
6420
|
+
const formatFlags = {
|
|
6421
|
+
D: function(dateObj) {
|
|
6422
|
+
return dateObj.getDay();
|
|
6423
|
+
},
|
|
6424
|
+
DD: function(dateObj) {
|
|
6425
|
+
return pad(dateObj.getDay());
|
|
6426
|
+
},
|
|
6427
|
+
Do: function(dateObj) {
|
|
6428
|
+
return DoFn(dateObj.getDate());
|
|
6429
|
+
},
|
|
6430
|
+
d: function(dateObj) {
|
|
6431
|
+
return dateObj.getDate();
|
|
6432
|
+
},
|
|
6433
|
+
dd: function(dateObj) {
|
|
6434
|
+
return pad(dateObj.getDate());
|
|
6435
|
+
},
|
|
6436
|
+
ddd: function(dateObj) {
|
|
6437
|
+
return dayNamesShort[dateObj.getDay()];
|
|
6438
|
+
},
|
|
6439
|
+
dddd: function(dateObj) {
|
|
6440
|
+
return dayNames[dateObj.getDay()];
|
|
6441
|
+
},
|
|
6442
|
+
M: function(dateObj) {
|
|
6443
|
+
return dateObj.getMonth() + 1;
|
|
6444
|
+
},
|
|
6445
|
+
MM: function(dateObj) {
|
|
6446
|
+
return pad(dateObj.getMonth() + 1);
|
|
6447
|
+
},
|
|
6448
|
+
MMM: function(dateObj) {
|
|
6449
|
+
return monthNamesShort[dateObj.getMonth()];
|
|
6450
|
+
},
|
|
6451
|
+
MMMM: function(dateObj) {
|
|
6452
|
+
return monthNames[dateObj.getMonth()];
|
|
6453
|
+
},
|
|
6454
|
+
yy: function(dateObj) {
|
|
6455
|
+
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
6456
|
+
},
|
|
6457
|
+
yyyy: function(dateObj) {
|
|
6458
|
+
return pad(dateObj.getFullYear(), 4);
|
|
6459
|
+
},
|
|
6460
|
+
h: function(dateObj) {
|
|
6461
|
+
return dateObj.getHours() % 12 || 12;
|
|
6462
|
+
},
|
|
6463
|
+
hh: function(dateObj) {
|
|
6464
|
+
return pad(dateObj.getHours() % 12 || 12);
|
|
6465
|
+
},
|
|
6466
|
+
H: function(dateObj) {
|
|
6467
|
+
return dateObj.getHours();
|
|
6468
|
+
},
|
|
6469
|
+
HH: function(dateObj) {
|
|
6470
|
+
return pad(dateObj.getHours());
|
|
6471
|
+
},
|
|
6472
|
+
m: function(dateObj) {
|
|
6473
|
+
return dateObj.getMinutes();
|
|
6474
|
+
},
|
|
6475
|
+
mm: function(dateObj) {
|
|
6476
|
+
return pad(dateObj.getMinutes());
|
|
6477
|
+
},
|
|
6478
|
+
s: function(dateObj) {
|
|
6479
|
+
return dateObj.getSeconds();
|
|
6480
|
+
},
|
|
6481
|
+
ss: function(dateObj) {
|
|
6482
|
+
return pad(dateObj.getSeconds());
|
|
6483
|
+
},
|
|
6484
|
+
S: function(dateObj) {
|
|
6485
|
+
return Math.round(dateObj.getMilliseconds() / 100);
|
|
6486
|
+
},
|
|
6487
|
+
SS: function(dateObj) {
|
|
6488
|
+
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
6489
|
+
},
|
|
6490
|
+
SSS: function(dateObj) {
|
|
6491
|
+
return pad(dateObj.getMilliseconds(), 3);
|
|
6492
|
+
},
|
|
6493
|
+
a: function(dateObj) {
|
|
6494
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
6495
|
+
},
|
|
6496
|
+
A: function(dateObj) {
|
|
6497
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
6498
|
+
},
|
|
6499
|
+
ZZ: function(dateObj) {
|
|
6500
|
+
const o = dateObj.getTimezoneOffset();
|
|
6501
|
+
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
6502
|
+
}
|
|
6503
|
+
};
|
|
6504
|
+
|
|
6505
|
+
const parseFlags = {
|
|
6506
|
+
d: [twoDigits, function (d, v) {
|
|
6507
|
+
d.day = v;
|
|
6508
|
+
}],
|
|
6509
|
+
Do: [twoDigits + word, function (d, v) {
|
|
6510
|
+
d.day = parseInt(v, 10);
|
|
6511
|
+
}],
|
|
6512
|
+
M: [twoDigits, function (d, v) {
|
|
6513
|
+
d.month = v - 1;
|
|
6514
|
+
}],
|
|
6515
|
+
yy: [twoDigits, function (d, v) {
|
|
6516
|
+
const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
|
|
6517
|
+
d.year = '' + (v > 68 ? cent - 1 : cent) + v;
|
|
6518
|
+
}],
|
|
6519
|
+
h: [twoDigits, function (d, v) {
|
|
6520
|
+
d.hour = v;
|
|
6521
|
+
}],
|
|
6522
|
+
m: [twoDigits, function (d, v) {
|
|
6523
|
+
d.minute = v;
|
|
6524
|
+
}],
|
|
6525
|
+
s: [twoDigits, function (d, v) {
|
|
6526
|
+
d.second = v;
|
|
6527
|
+
}],
|
|
6528
|
+
yyyy: [fourDigits, function (d, v) {
|
|
6529
|
+
d.year = v;
|
|
6530
|
+
}],
|
|
6531
|
+
S: ['\\d', function (d, v) {
|
|
6532
|
+
d.millisecond = v * 100;
|
|
6533
|
+
}],
|
|
6534
|
+
SS: ['\\d{2}', function (d, v) {
|
|
6535
|
+
d.millisecond = v * 10;
|
|
6536
|
+
}],
|
|
6537
|
+
SSS: [threeDigits, function (d, v) {
|
|
6538
|
+
d.millisecond = v;
|
|
6539
|
+
}],
|
|
6540
|
+
D: [twoDigits, noop],
|
|
6541
|
+
ddd: [word, noop],
|
|
6542
|
+
MMM: [word, monthUpdate('monthNamesShort')],
|
|
6543
|
+
MMMM: [word, monthUpdate('monthNames')],
|
|
6544
|
+
a: [word, function (d, v) {
|
|
6545
|
+
const val = v.toLowerCase();
|
|
6546
|
+
if (val === '上午') {
|
|
6547
|
+
d.isPm = false;
|
|
6548
|
+
} else if (val === '下午') {
|
|
6549
|
+
d.isPm = true;
|
|
6550
|
+
}
|
|
6551
|
+
}],
|
|
6552
|
+
ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
|
|
6553
|
+
let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
|
|
6554
|
+
|
|
6555
|
+
if (parts) {
|
|
6556
|
+
minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
|
|
6557
|
+
d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
|
|
6558
|
+
}
|
|
6559
|
+
}]
|
|
6560
|
+
};
|
|
6561
|
+
parseFlags.dd = parseFlags.d;
|
|
6562
|
+
parseFlags.dddd = parseFlags.ddd;
|
|
6563
|
+
parseFlags.DD = parseFlags.D;
|
|
6564
|
+
parseFlags.mm = parseFlags.m;
|
|
6565
|
+
parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
|
|
6566
|
+
parseFlags.MM = parseFlags.M;
|
|
6567
|
+
parseFlags.ss = parseFlags.s;
|
|
6568
|
+
parseFlags.A = parseFlags.a;
|
|
6569
|
+
|
|
6570
|
+
|
|
6571
|
+
// Some common format strings
|
|
6572
|
+
fecha.masks = {
|
|
6573
|
+
default: 'ddd MMM dd yyyy HH:mm:ss',
|
|
6574
|
+
shortDate: 'M/D/yy',
|
|
6575
|
+
mediumDate: 'MMM d, yyyy',
|
|
6576
|
+
longDate: 'MMMM d, yyyy',
|
|
6577
|
+
fullDate: 'dddd, MMMM d, yyyy',
|
|
6578
|
+
shortTime: 'HH:mm',
|
|
6579
|
+
mediumTime: 'HH:mm:ss',
|
|
6580
|
+
longTime: 'HH:mm:ss.SSS'
|
|
6581
|
+
};
|
|
6582
|
+
|
|
6557
6583
|
/***
|
|
6558
6584
|
* Format a date
|
|
6559
6585
|
* @method format
|
|
6560
6586
|
* @param {Date|number} dateObj
|
|
6561
6587
|
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
|
|
6562
|
-
*/
|
|
6563
|
-
fecha.format = function (dateObj, mask) {
|
|
6564
|
-
if (typeof dateObj === 'number') {
|
|
6565
|
-
dateObj = new Date(dateObj);
|
|
6566
|
-
}
|
|
6567
|
-
|
|
6568
|
-
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
6569
|
-
throw new Error('Invalid Date in fecha.format');
|
|
6570
|
-
}
|
|
6571
|
-
|
|
6572
|
-
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
// Make literals inactive by replacing them with ??
|
|
6577
|
-
mask = mask.replace(literal, function
|
|
6578
|
-
literals.push($1);
|
|
6579
|
-
return '@@@';
|
|
6580
|
-
});
|
|
6581
|
-
// Apply formatting rules
|
|
6582
|
-
mask = mask.replace(token, function ($0) {
|
|
6583
|
-
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
6584
|
-
});
|
|
6585
|
-
// Inline literal values back into the formatted value
|
|
6586
|
-
return mask.replace(/@@@/g, function
|
|
6587
|
-
return literals.shift();
|
|
6588
|
-
});
|
|
6589
|
-
};
|
|
6590
|
-
|
|
6588
|
+
*/
|
|
6589
|
+
fecha.format = function (dateObj, mask) {
|
|
6590
|
+
if (typeof dateObj === 'number') {
|
|
6591
|
+
dateObj = new Date(dateObj);
|
|
6592
|
+
}
|
|
6593
|
+
|
|
6594
|
+
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
6595
|
+
throw new Error('Invalid Date in fecha.format');
|
|
6596
|
+
}
|
|
6597
|
+
|
|
6598
|
+
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
6599
|
+
|
|
6600
|
+
const literals = [];
|
|
6601
|
+
|
|
6602
|
+
// Make literals inactive by replacing them with ??
|
|
6603
|
+
mask = mask.replace(literal, function($0, $1) {
|
|
6604
|
+
literals.push($1);
|
|
6605
|
+
return '@@@';
|
|
6606
|
+
});
|
|
6607
|
+
// Apply formatting rules
|
|
6608
|
+
mask = mask.replace(token, function ($0) {
|
|
6609
|
+
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
6610
|
+
});
|
|
6611
|
+
// Inline literal values back into the formatted value
|
|
6612
|
+
return mask.replace(/@@@/g, function() {
|
|
6613
|
+
return literals.shift();
|
|
6614
|
+
});
|
|
6615
|
+
};
|
|
6616
|
+
|
|
6591
6617
|
/**
|
|
6592
6618
|
* Parse a date string into an object, changes - into /
|
|
6593
6619
|
* @method parse
|
|
6594
6620
|
* @param {string} dateStr Date string
|
|
6595
6621
|
* @param {string} format Date parse format
|
|
6596
6622
|
* @returns {Date|boolean}
|
|
6597
|
-
*/
|
|
6598
|
-
fecha.parse = function (dateStr, format) {
|
|
6599
|
-
if (typeof format !== 'string') {
|
|
6600
|
-
throw new Error('Invalid format in fecha.parse');
|
|
6601
|
-
}
|
|
6602
|
-
|
|
6603
|
-
format = fecha.masks[format] || format;
|
|
6604
|
-
|
|
6605
|
-
// Avoid regular expression denial of service, fail early for really long strings
|
|
6606
|
-
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
6607
|
-
if (dateStr.length > 1000) {
|
|
6608
|
-
return null;
|
|
6609
|
-
}
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
format = format.replace(literal, function
|
|
6615
|
-
literals.push($1);
|
|
6616
|
-
return '@@@';
|
|
6617
|
-
});
|
|
6618
|
-
|
|
6619
|
-
if (parseFlags[$0]) {
|
|
6620
|
-
|
|
6621
|
-
parseInfo.push(info[1]);
|
|
6622
|
-
return '(' + info[0] + ')';
|
|
6623
|
-
}
|
|
6624
|
-
|
|
6625
|
-
return $0;
|
|
6626
|
-
});
|
|
6627
|
-
newFormat = newFormat.replace(/@@@/g, function
|
|
6628
|
-
return literals.shift();
|
|
6629
|
-
});
|
|
6630
|
-
|
|
6631
|
-
if (!matches) {
|
|
6632
|
-
return null;
|
|
6633
|
-
}
|
|
6634
|
-
|
|
6635
|
-
for (
|
|
6636
|
-
parseInfo[i - 1](dateInfo, matches[i]);
|
|
6637
|
-
}
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
6641
|
-
dateInfo.hour = +dateInfo.hour + 12;
|
|
6642
|
-
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
6643
|
-
dateInfo.hour = 0;
|
|
6644
|
-
}
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
if (dateInfo.timezoneOffset != null) {
|
|
6648
|
-
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
6649
|
-
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
}
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
}
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
if (
|
|
6686
|
-
return
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
// 处理多种输入类型
|
|
6697
|
-
if (!date) return '';
|
|
6698
|
-
|
|
6699
|
-
// 如果是时间戳,转成日期对象
|
|
6700
|
-
if (typeof date === 'number') {
|
|
6701
|
-
date = new Date(date);
|
|
6702
|
-
}
|
|
6703
|
-
// 如果是字符串,转成日期对象
|
|
6704
|
-
if (typeof date === 'string') {
|
|
6705
|
-
date = new Date(date);
|
|
6706
|
-
}
|
|
6707
|
-
|
|
6708
|
-
// 调用toDate进一步验证和转换
|
|
6709
|
-
date = toDate(date);
|
|
6710
|
-
if (!date) return '';
|
|
6711
|
-
|
|
6712
|
-
// 兼容大写和小写的格式标记
|
|
6713
|
-
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
return
|
|
6735
|
-
}
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
//
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
6759
|
-
};
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
return prevDate(result,
|
|
6773
|
-
}
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
//
|
|
6793
|
-
|
|
6794
|
-
//
|
|
6795
|
-
|
|
6796
|
-
//
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
for (
|
|
6816
|
-
hours[i] =
|
|
6817
|
-
}
|
|
6818
|
-
}
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
return
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
};
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
}
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
return
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
return
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
}
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
};
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
return
|
|
6980
|
-
};
|
|
6981
|
-
|
|
6982
|
-
var extractTimeFormat = function extractTimeFormat(format) {
|
|
6983
|
-
return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
|
|
6984
|
-
};
|
|
6985
|
-
|
|
6986
|
-
var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
|
|
6987
|
-
return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
|
|
6988
|
-
};
|
|
6989
|
-
|
|
6623
|
+
*/
|
|
6624
|
+
fecha.parse = function (dateStr, format) {
|
|
6625
|
+
if (typeof format !== 'string') {
|
|
6626
|
+
throw new Error('Invalid format in fecha.parse');
|
|
6627
|
+
}
|
|
6628
|
+
|
|
6629
|
+
format = fecha.masks[format] || format;
|
|
6630
|
+
|
|
6631
|
+
// Avoid regular expression denial of service, fail early for really long strings
|
|
6632
|
+
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
6633
|
+
if (dateStr.length > 1000) {
|
|
6634
|
+
return null;
|
|
6635
|
+
}
|
|
6636
|
+
|
|
6637
|
+
const dateInfo = {};
|
|
6638
|
+
const parseInfo = [];
|
|
6639
|
+
const literals = [];
|
|
6640
|
+
format = format.replace(literal, function($0, $1) {
|
|
6641
|
+
literals.push($1);
|
|
6642
|
+
return '@@@';
|
|
6643
|
+
});
|
|
6644
|
+
let newFormat = regexEscape(format).replace(token, function ($0) {
|
|
6645
|
+
if (parseFlags[$0]) {
|
|
6646
|
+
const info = parseFlags[$0];
|
|
6647
|
+
parseInfo.push(info[1]);
|
|
6648
|
+
return '(' + info[0] + ')';
|
|
6649
|
+
}
|
|
6650
|
+
|
|
6651
|
+
return $0;
|
|
6652
|
+
});
|
|
6653
|
+
newFormat = newFormat.replace(/@@@/g, function() {
|
|
6654
|
+
return literals.shift();
|
|
6655
|
+
});
|
|
6656
|
+
const matches = dateStr.match(new RegExp(newFormat, 'i'));
|
|
6657
|
+
if (!matches) {
|
|
6658
|
+
return null;
|
|
6659
|
+
}
|
|
6660
|
+
|
|
6661
|
+
for (let i = 1; i < matches.length; i++) {
|
|
6662
|
+
parseInfo[i - 1](dateInfo, matches[i]);
|
|
6663
|
+
}
|
|
6664
|
+
|
|
6665
|
+
const today = new Date();
|
|
6666
|
+
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
6667
|
+
dateInfo.hour = +dateInfo.hour + 12;
|
|
6668
|
+
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
6669
|
+
dateInfo.hour = 0;
|
|
6670
|
+
}
|
|
6671
|
+
|
|
6672
|
+
let date;
|
|
6673
|
+
if (dateInfo.timezoneOffset != null) {
|
|
6674
|
+
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
6675
|
+
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
6676
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
|
|
6677
|
+
} else {
|
|
6678
|
+
date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
6679
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
|
|
6680
|
+
}
|
|
6681
|
+
return date;
|
|
6682
|
+
};
|
|
6683
|
+
|
|
6684
|
+
// 导出fecha对象
|
|
6685
|
+
|
|
6686
|
+
|
|
6687
|
+
// 以下是从date-util.js合并的函数
|
|
6688
|
+
const newArray = function(start, end) {
|
|
6689
|
+
let result = [];
|
|
6690
|
+
for (let i = start; i <= end; i++) {
|
|
6691
|
+
result.push(i);
|
|
6692
|
+
}
|
|
6693
|
+
return result;
|
|
6694
|
+
};
|
|
6695
|
+
|
|
6696
|
+
const getSettings = () => {
|
|
6697
|
+
return {
|
|
6698
|
+
dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
|
|
6699
|
+
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
|
|
6700
|
+
monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
6701
|
+
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
|
6702
|
+
amPm: ['上午', '下午']
|
|
6703
|
+
};
|
|
6704
|
+
};
|
|
6705
|
+
|
|
6706
|
+
const toDate = function(date) {
|
|
6707
|
+
return isDate(date) ? new Date(date) : null;
|
|
6708
|
+
};
|
|
6709
|
+
|
|
6710
|
+
const isDate = function(date) {
|
|
6711
|
+
if (date === null || date === undefined) return false;
|
|
6712
|
+
if (isNaN(new Date(date).getTime())) return false;
|
|
6713
|
+
if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
|
|
6714
|
+
return true;
|
|
6715
|
+
};
|
|
6716
|
+
|
|
6717
|
+
const isDateObject = function(val) {
|
|
6718
|
+
return val instanceof Date;
|
|
6719
|
+
};
|
|
6720
|
+
|
|
6721
|
+
const formatDate = function (date, format = 'yyyy-MM-dd') {
|
|
6722
|
+
// 处理多种输入类型
|
|
6723
|
+
if (!date) return '';
|
|
6724
|
+
|
|
6725
|
+
// 如果是时间戳,转成日期对象
|
|
6726
|
+
if (typeof date === 'number') {
|
|
6727
|
+
date = new Date(date);
|
|
6728
|
+
}
|
|
6729
|
+
// 如果是字符串,转成日期对象
|
|
6730
|
+
if (typeof date === 'string') {
|
|
6731
|
+
date = new Date(date);
|
|
6732
|
+
}
|
|
6733
|
+
|
|
6734
|
+
// 调用toDate进一步验证和转换
|
|
6735
|
+
date = toDate(date);
|
|
6736
|
+
if (!date) return '';
|
|
6737
|
+
|
|
6738
|
+
// 兼容大写和小写的格式标记
|
|
6739
|
+
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
6740
|
+
const lowercaseFormat = format
|
|
6741
|
+
.replace(/YYYY/g, 'yyyy')
|
|
6742
|
+
.replace(/D/g, 'd')
|
|
6743
|
+
|
|
6744
|
+
// 使用fecha库进行格式化,支持中文配置
|
|
6745
|
+
const str = fecha.format(date, lowercaseFormat, getSettings());
|
|
6746
|
+
return str;
|
|
6747
|
+
};
|
|
6748
|
+
|
|
6749
|
+
const parseDate = function(string, format) {
|
|
6750
|
+
return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
|
|
6751
|
+
};
|
|
6752
|
+
|
|
6753
|
+
const getDayCountOfMonth = function(year, month) {
|
|
6754
|
+
if (month === 3 || month === 5 || month === 8 || month === 10) {
|
|
6755
|
+
return 30;
|
|
6756
|
+
}
|
|
6757
|
+
|
|
6758
|
+
if (month === 1) {
|
|
6759
|
+
if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
|
|
6760
|
+
return 29;
|
|
6761
|
+
} else {
|
|
6762
|
+
return 28;
|
|
6763
|
+
}
|
|
6764
|
+
}
|
|
6765
|
+
|
|
6766
|
+
return 31;
|
|
6767
|
+
};
|
|
6768
|
+
|
|
6769
|
+
const getDayCountOfYear = function(year) {
|
|
6770
|
+
const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
|
|
6771
|
+
return isLeapYear ? 366 : 365;
|
|
6772
|
+
};
|
|
6773
|
+
|
|
6774
|
+
const getFirstDayOfMonth = function(date) {
|
|
6775
|
+
const temp = new Date(date.getTime());
|
|
6776
|
+
temp.setDate(1);
|
|
6777
|
+
return temp.getDay();
|
|
6778
|
+
};
|
|
6779
|
+
|
|
6780
|
+
// see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
|
|
6781
|
+
// {prev, next} Date should work for Daylight Saving Time
|
|
6782
|
+
// Adding 24 * 60 * 60 * 1000 does not work in the above scenario
|
|
6783
|
+
const prevDate = function(date, amount = 1) {
|
|
6784
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
6785
|
+
};
|
|
6786
|
+
|
|
6787
|
+
const nextDate = function(date, amount = 1) {
|
|
6788
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
|
|
6789
|
+
};
|
|
6790
|
+
|
|
6791
|
+
const getStartDateOfMonth = function(year, month) {
|
|
6792
|
+
const result = new Date(year, month, 1);
|
|
6793
|
+
const day = result.getDay();
|
|
6794
|
+
|
|
6795
|
+
if (day === 0) {
|
|
6796
|
+
return prevDate(result, 7);
|
|
6797
|
+
} else {
|
|
6798
|
+
return prevDate(result, day);
|
|
6799
|
+
}
|
|
6800
|
+
};
|
|
6801
|
+
|
|
6802
|
+
const getWeekNumber = function(date) {
|
|
6803
|
+
// 支持多种输入类型
|
|
6804
|
+
if (!date||!isDate(date)) {
|
|
6805
|
+
date = new Date();
|
|
6806
|
+
}
|
|
6807
|
+
if (typeof date === 'string') {
|
|
6808
|
+
date = new Date(date);
|
|
6809
|
+
}
|
|
6810
|
+
|
|
6811
|
+
// 验证日期有效性
|
|
6812
|
+
if (!isDate(date)) return null;
|
|
6813
|
+
|
|
6814
|
+
const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
6815
|
+
// 设置为最近的星期四:当前日期 + 4 - 当前星期数
|
|
6816
|
+
// 将星期日的星期数设为7
|
|
6817
|
+
d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
|
|
6818
|
+
// 获取当年的第一天
|
|
6819
|
+
const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
6820
|
+
// 计算到最近的星期四的完整周数
|
|
6821
|
+
const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
|
|
6822
|
+
// 返回周数
|
|
6823
|
+
return weekNo;
|
|
6824
|
+
};
|
|
6825
|
+
|
|
6826
|
+
const getRangeHours = function(ranges) {
|
|
6827
|
+
const hours = [];
|
|
6828
|
+
let disabledHours = [];
|
|
6829
|
+
|
|
6830
|
+
(ranges || []).forEach(range => {
|
|
6831
|
+
const value = range.map(date => date.getHours());
|
|
6832
|
+
|
|
6833
|
+
disabledHours = disabledHours.concat(newArray(value[0], value[1]));
|
|
6834
|
+
});
|
|
6835
|
+
|
|
6836
|
+
if (disabledHours.length) {
|
|
6837
|
+
for (let i = 0; i < 24; i++) {
|
|
6838
|
+
hours[i] = disabledHours.indexOf(i) === -1;
|
|
6839
|
+
}
|
|
6840
|
+
} else {
|
|
6841
|
+
for (let i = 0; i < 24; i++) {
|
|
6842
|
+
hours[i] = false;
|
|
6843
|
+
}
|
|
6844
|
+
}
|
|
6845
|
+
|
|
6846
|
+
return hours;
|
|
6847
|
+
};
|
|
6848
|
+
|
|
6849
|
+
const getPrevMonthLastDays = (date, amount) => {
|
|
6850
|
+
if (amount <= 0) return [];
|
|
6851
|
+
const temp = new Date(date.getTime());
|
|
6852
|
+
temp.setDate(0);
|
|
6853
|
+
const lastDay = temp.getDate();
|
|
6854
|
+
return range(amount).map((_, index) => lastDay - (amount - index - 1));
|
|
6855
|
+
};
|
|
6856
|
+
|
|
6857
|
+
const getMonthDays = (date) => {
|
|
6858
|
+
const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
6859
|
+
const days = temp.getDate();
|
|
6860
|
+
return range(days).map((_, index) => index + 1);
|
|
6861
|
+
};
|
|
6862
|
+
|
|
6863
|
+
function setRangeData(arr, start, end, value) {
|
|
6864
|
+
for (let i = start; i < end; i++) {
|
|
6865
|
+
arr[i] = value;
|
|
6866
|
+
}
|
|
6867
|
+
}
|
|
6868
|
+
|
|
6869
|
+
const getRangeMinutes = function(ranges, hour) {
|
|
6870
|
+
const minutes = new Array(60);
|
|
6871
|
+
|
|
6872
|
+
if (ranges.length > 0) {
|
|
6873
|
+
ranges.forEach(range => {
|
|
6874
|
+
const start = range[0];
|
|
6875
|
+
const end = range[1];
|
|
6876
|
+
const startHour = start.getHours();
|
|
6877
|
+
const startMinute = start.getMinutes();
|
|
6878
|
+
const endHour = end.getHours();
|
|
6879
|
+
const endMinute = end.getMinutes();
|
|
6880
|
+
if (startHour === hour && endHour !== hour) {
|
|
6881
|
+
setRangeData(minutes, startMinute, 60, true);
|
|
6882
|
+
} else if (startHour === hour && endHour === hour) {
|
|
6883
|
+
setRangeData(minutes, startMinute, endMinute + 1, true);
|
|
6884
|
+
} else if (startHour !== hour && endHour === hour) {
|
|
6885
|
+
setRangeData(minutes, 0, endMinute + 1, true);
|
|
6886
|
+
} else if (startHour < hour && endHour > hour) {
|
|
6887
|
+
setRangeData(minutes, 0, 60, true);
|
|
6888
|
+
}
|
|
6889
|
+
});
|
|
6890
|
+
} else {
|
|
6891
|
+
setRangeData(minutes, 0, 60, true);
|
|
6892
|
+
}
|
|
6893
|
+
return minutes;
|
|
6894
|
+
};
|
|
6895
|
+
|
|
6896
|
+
const range = function(n) {
|
|
6897
|
+
// see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
|
|
6898
|
+
return Array.apply(null, {length: n}).map((_, n) => n);
|
|
6899
|
+
};
|
|
6900
|
+
|
|
6901
|
+
const modifyDate = function(date, y, m, d) {
|
|
6902
|
+
return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
6903
|
+
};
|
|
6904
|
+
|
|
6905
|
+
const modifyTime = function(date, h, m, s) {
|
|
6906
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
|
|
6907
|
+
};
|
|
6908
|
+
|
|
6909
|
+
const modifyWithTimeString = (date, time) => {
|
|
6910
|
+
if (date == null || !time) {
|
|
6911
|
+
return date;
|
|
6912
|
+
}
|
|
6913
|
+
time = parseDate(time, 'HH:mm:ss');
|
|
6914
|
+
return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
|
|
6915
|
+
};
|
|
6916
|
+
|
|
6917
|
+
const clearTime = function(date) {
|
|
6918
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
6919
|
+
};
|
|
6920
|
+
|
|
6921
|
+
const clearMilliseconds = function(date) {
|
|
6922
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
|
|
6923
|
+
};
|
|
6924
|
+
|
|
6925
|
+
const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
|
|
6926
|
+
// TODO: refactory a more elegant solution
|
|
6927
|
+
if (ranges.length === 0) return date;
|
|
6928
|
+
const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
|
|
6929
|
+
const ndate = normalizeDate(date);
|
|
6930
|
+
const nranges = ranges.map(range => range.map(normalizeDate));
|
|
6931
|
+
if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
|
|
6932
|
+
|
|
6933
|
+
let minDate = nranges[0][0];
|
|
6934
|
+
let maxDate = nranges[0][0];
|
|
6935
|
+
|
|
6936
|
+
nranges.forEach(nrange => {
|
|
6937
|
+
minDate = new Date(Math.min(nrange[0], minDate));
|
|
6938
|
+
maxDate = new Date(Math.max(nrange[1], minDate));
|
|
6939
|
+
});
|
|
6940
|
+
|
|
6941
|
+
const ret = ndate < minDate ? minDate : maxDate;
|
|
6942
|
+
// preserve Year/Month/Date
|
|
6943
|
+
return modifyDate(
|
|
6944
|
+
ret,
|
|
6945
|
+
date.getFullYear(),
|
|
6946
|
+
date.getMonth(),
|
|
6947
|
+
date.getDate()
|
|
6948
|
+
);
|
|
6949
|
+
};
|
|
6950
|
+
|
|
6951
|
+
const timeWithinRange = function(date, selectableRange, format) {
|
|
6952
|
+
const limitedDate = limitTimeRange(date, selectableRange, format);
|
|
6953
|
+
return limitedDate.getTime() === date.getTime();
|
|
6954
|
+
};
|
|
6955
|
+
|
|
6956
|
+
const changeYearMonthAndClampDate = function(date, year, month) {
|
|
6957
|
+
// clamp date to the number of days in `year`, `month`
|
|
6958
|
+
// eg: (2010-1-31, 2010, 2) => 2010-2-28
|
|
6959
|
+
const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
|
|
6960
|
+
return modifyDate(date, year, month, monthDate);
|
|
6961
|
+
};
|
|
6962
|
+
|
|
6963
|
+
const prevMonth = function(date) {
|
|
6964
|
+
const year = date.getFullYear();
|
|
6965
|
+
const month = date.getMonth();
|
|
6966
|
+
return month === 0
|
|
6967
|
+
? changeYearMonthAndClampDate(date, year - 1, 11)
|
|
6968
|
+
: changeYearMonthAndClampDate(date, year, month - 1);
|
|
6969
|
+
};
|
|
6970
|
+
|
|
6971
|
+
const nextMonth = function(date) {
|
|
6972
|
+
const year = date.getFullYear();
|
|
6973
|
+
const month = date.getMonth();
|
|
6974
|
+
return month === 11
|
|
6975
|
+
? changeYearMonthAndClampDate(date, year + 1, 0)
|
|
6976
|
+
: changeYearMonthAndClampDate(date, year, month + 1);
|
|
6977
|
+
};
|
|
6978
|
+
|
|
6979
|
+
const prevYear = function(date, amount = 1) {
|
|
6980
|
+
const year = date.getFullYear();
|
|
6981
|
+
const month = date.getMonth();
|
|
6982
|
+
return changeYearMonthAndClampDate(date, year - amount, month);
|
|
6983
|
+
};
|
|
6984
|
+
|
|
6985
|
+
const nextYear = function(date, amount = 1) {
|
|
6986
|
+
const year = date.getFullYear();
|
|
6987
|
+
const month = date.getMonth();
|
|
6988
|
+
return changeYearMonthAndClampDate(date, year + amount, month);
|
|
6989
|
+
};
|
|
6990
|
+
|
|
6991
|
+
const extractDateFormat = function(format) {
|
|
6992
|
+
return format
|
|
6993
|
+
.replace(/\W?m{1,2}|\W?ZZ/g, '')
|
|
6994
|
+
.replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
|
|
6995
|
+
.trim();
|
|
6996
|
+
};
|
|
6997
|
+
|
|
6998
|
+
const extractTimeFormat = function(format) {
|
|
6999
|
+
return format
|
|
7000
|
+
.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
|
|
7001
|
+
.trim();
|
|
7002
|
+
};
|
|
7003
|
+
|
|
7004
|
+
const validateRangeInOneMonth = function(start, end) {
|
|
7005
|
+
return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
|
|
7006
|
+
};
|
|
7007
|
+
|
|
6990
7008
|
/**
|
|
6991
7009
|
* 计算两个日期之间的工作日数量(不包括周末和节假日)
|
|
6992
7010
|
* @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
|
|
6993
7011
|
* @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
|
|
6994
7012
|
* @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
|
|
6995
7013
|
* @returns {number} 工作日数量
|
|
6996
|
-
*/
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
}
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
7008
|
-
throw new Error(
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
}
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7014
|
+
*/
|
|
7015
|
+
const calculateNetworkDays = function (start_date, end_date, holidays = []) {
|
|
7016
|
+
if (typeof start_date !== 'string' || typeof end_date !== 'string') {
|
|
7017
|
+
throw new Error(
|
|
7018
|
+
"Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
7019
|
+
);
|
|
7020
|
+
}
|
|
7021
|
+
|
|
7022
|
+
const startDateObj = new Date(start_date);
|
|
7023
|
+
const endDateObj = new Date(end_date);
|
|
7024
|
+
|
|
7025
|
+
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
7026
|
+
throw new Error(
|
|
7027
|
+
"Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
7028
|
+
);
|
|
7029
|
+
}
|
|
7030
|
+
|
|
7031
|
+
if (startDateObj > endDateObj) {
|
|
7032
|
+
throw new Error('Start date should be earlier than or equal to end date.');
|
|
7033
|
+
}
|
|
7034
|
+
|
|
7035
|
+
let workdays = 0;
|
|
7036
|
+
|
|
7037
|
+
// Iterate through each day in the date range
|
|
7038
|
+
for (
|
|
7039
|
+
let currentDate = new Date(startDateObj);
|
|
7040
|
+
currentDate <= endDateObj;
|
|
7041
|
+
currentDate.setDate(currentDate.getDate() + 1)
|
|
7042
|
+
) {
|
|
7043
|
+
// Check if the current day is a weekend (Saturday or Sunday)
|
|
7044
|
+
const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
|
|
7045
|
+
|
|
7046
|
+
// Check if the current day is a holiday
|
|
7047
|
+
const isHoliday = holidays.some((holiday) => {
|
|
7048
|
+
const holidayDate = new Date(holiday);
|
|
7049
|
+
return currentDate.toDateString() === holidayDate.toDateString();
|
|
7050
|
+
});
|
|
7051
|
+
|
|
7052
|
+
// If it's a workday (not a weekend or holiday), increment the workdays count
|
|
7053
|
+
if (!isWeekend && !isHoliday) {
|
|
7054
|
+
workdays++;
|
|
7055
|
+
}
|
|
7056
|
+
}
|
|
7057
|
+
|
|
7058
|
+
return workdays;
|
|
7059
|
+
};
|
|
7060
|
+
|
|
7042
7061
|
/**
|
|
7043
7062
|
* 日期加减天数
|
|
7044
7063
|
* @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
|
|
7045
7064
|
* @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
|
|
7046
7065
|
* @returns {string} 结果日期,格式为 "YYYY-MM-DD"
|
|
7047
|
-
*/
|
|
7048
|
-
|
|
7049
|
-
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
7050
|
-
throw new Error(
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7066
|
+
*/
|
|
7067
|
+
const dateAddDays = function (start_date, days) {
|
|
7068
|
+
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
7069
|
+
throw new Error(
|
|
7070
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
|
|
7071
|
+
);
|
|
7072
|
+
}
|
|
7073
|
+
|
|
7074
|
+
const startDateObj = new Date(start_date);
|
|
7075
|
+
if (isNaN(startDateObj.getTime())) {
|
|
7076
|
+
throw new Error(
|
|
7077
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
7078
|
+
);
|
|
7079
|
+
}
|
|
7080
|
+
|
|
7081
|
+
const resultDateObj = new Date(startDateObj);
|
|
7082
|
+
resultDateObj.setDate(resultDateObj.getDate() + days);
|
|
7083
|
+
|
|
7084
|
+
const resultYear = resultDateObj.getFullYear();
|
|
7085
|
+
const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
|
|
7086
|
+
const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
|
|
7087
|
+
|
|
7088
|
+
return `${resultYear}-${resultMonth}-${resultDay}`;
|
|
7089
|
+
};
|
|
7090
|
+
|
|
7068
7091
|
/**
|
|
7069
7092
|
* 计算两个日期之间的差值
|
|
7070
7093
|
* @date 2023年12月14日
|
|
@@ -7072,180 +7095,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
|
|
|
7072
7095
|
* @param {String} end_date - 结束日期字符串
|
|
7073
7096
|
* @param {String} unit - 单位:year/month/day
|
|
7074
7097
|
* @returns {Number} 差值
|
|
7075
|
-
*/
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
if (unit === '
|
|
7089
|
-
return
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
}
|
|
7099
|
-
|
|
7098
|
+
*/
|
|
7099
|
+
const dateDiff = function (start_date, end_date, unit = 'day') {
|
|
7100
|
+
// Assuming date strings are in "YYYY-MM-DD" format
|
|
7101
|
+
var startDate = new Date(start_date);
|
|
7102
|
+
var endDate = new Date(end_date);
|
|
7103
|
+
|
|
7104
|
+
// If the date is invalid, return 0
|
|
7105
|
+
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
7106
|
+
return 0;
|
|
7107
|
+
}
|
|
7108
|
+
|
|
7109
|
+
if (unit === 'year') {
|
|
7110
|
+
return endDate.getFullYear() - startDate.getFullYear();
|
|
7111
|
+
} else if (unit === 'month') {
|
|
7112
|
+
return (
|
|
7113
|
+
(endDate.getFullYear() - startDate.getFullYear()) * 12 +
|
|
7114
|
+
(endDate.getMonth() - startDate.getMonth())
|
|
7115
|
+
);
|
|
7116
|
+
} else {
|
|
7117
|
+
// Default to day
|
|
7118
|
+
var timeDifference = endDate - startDate;
|
|
7119
|
+
// Calculate days (86400000 milliseconds per day)
|
|
7120
|
+
return Math.floor(timeDifference / 86400000);
|
|
7121
|
+
}
|
|
7122
|
+
};
|
|
7123
|
+
|
|
7100
7124
|
/**
|
|
7101
7125
|
* 获取月份中的日期
|
|
7102
7126
|
* @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
|
|
7103
7127
|
* @returns {number} 月份中的日期(1-31)
|
|
7104
|
-
*/
|
|
7105
|
-
|
|
7106
|
-
if (typeof date !== 'string') {
|
|
7107
|
-
throw new Error(
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7128
|
+
*/
|
|
7129
|
+
const dayOfMonth = function (date) {
|
|
7130
|
+
if (typeof date !== 'string') {
|
|
7131
|
+
throw new Error(
|
|
7132
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
7133
|
+
);
|
|
7134
|
+
}
|
|
7135
|
+
|
|
7136
|
+
const dateObj = new Date(date);
|
|
7137
|
+
if (isNaN(dateObj.getTime())) {
|
|
7138
|
+
throw new Error(
|
|
7139
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
7140
|
+
);
|
|
7141
|
+
}
|
|
7142
|
+
|
|
7143
|
+
return dateObj.getDate();
|
|
7144
|
+
};
|
|
7145
|
+
|
|
7118
7146
|
/**
|
|
7119
7147
|
* 获取当前日期
|
|
7120
7148
|
* @date 2022年5月7日
|
|
7121
7149
|
* @param {string} format - 日期格式,默认为'YYYY-MM-DD'
|
|
7122
7150
|
* @returns {string} 当前日期的格式化字符串
|
|
7123
|
-
*/
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
};
|
|
7129
|
-
|
|
7151
|
+
*/
|
|
7152
|
+
const getCurrentDate = function (format = 'YYYY-MM-DD') {
|
|
7153
|
+
return formatDate(new Date(), format);
|
|
7154
|
+
};
|
|
7155
|
+
|
|
7130
7156
|
/**
|
|
7131
7157
|
* 获取当前日期时间
|
|
7132
7158
|
* @date 2022年5月7日
|
|
7133
7159
|
* @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
|
|
7134
7160
|
* @returns {string} 当前日期时间的格式化字符串
|
|
7135
|
-
*/
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
};
|
|
7141
|
-
|
|
7161
|
+
*/
|
|
7162
|
+
const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
|
|
7163
|
+
return formatDate(new Date(), format);
|
|
7164
|
+
};
|
|
7165
|
+
|
|
7142
7166
|
/**
|
|
7143
7167
|
* 获取小时
|
|
7144
7168
|
* @date 2022年5月7日
|
|
7145
7169
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
7146
7170
|
* @returns {number} 小时数(0-23)
|
|
7147
|
-
*/
|
|
7148
|
-
|
|
7149
|
-
if (!date) {
|
|
7150
|
-
return new Date().getHours();
|
|
7151
|
-
}
|
|
7152
|
-
if (typeof date === 'string') {
|
|
7153
|
-
date = new Date(date);
|
|
7154
|
-
}
|
|
7155
|
-
return date.getHours();
|
|
7156
|
-
};
|
|
7157
|
-
|
|
7171
|
+
*/
|
|
7172
|
+
const getHour = function (date) {
|
|
7173
|
+
if (!date) {
|
|
7174
|
+
return new Date().getHours();
|
|
7175
|
+
}
|
|
7176
|
+
if (typeof date === 'string') {
|
|
7177
|
+
date = new Date(date);
|
|
7178
|
+
}
|
|
7179
|
+
return date.getHours();
|
|
7180
|
+
};
|
|
7181
|
+
|
|
7158
7182
|
/**
|
|
7159
7183
|
* 获取分钟
|
|
7160
7184
|
* @date 2022年5月7日
|
|
7161
7185
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
7162
7186
|
* @returns {number} 分钟数(0-59)
|
|
7163
|
-
*/
|
|
7164
|
-
|
|
7165
|
-
if (!date) {
|
|
7166
|
-
return new Date().getMinutes();
|
|
7167
|
-
}
|
|
7168
|
-
if (typeof date === 'string') {
|
|
7169
|
-
date = new Date(date);
|
|
7170
|
-
}
|
|
7171
|
-
return date.getMinutes();
|
|
7172
|
-
};
|
|
7173
|
-
|
|
7187
|
+
*/
|
|
7188
|
+
const getMinute = function (date) {
|
|
7189
|
+
if (!date) {
|
|
7190
|
+
return new Date().getMinutes();
|
|
7191
|
+
}
|
|
7192
|
+
if (typeof date === 'string') {
|
|
7193
|
+
date = new Date(date);
|
|
7194
|
+
}
|
|
7195
|
+
return date.getMinutes();
|
|
7196
|
+
};
|
|
7197
|
+
|
|
7174
7198
|
/**
|
|
7175
7199
|
* 获取月份
|
|
7176
7200
|
* @date 2022年5月7日
|
|
7177
7201
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
7178
7202
|
* @returns {number} 月份数(1-12)
|
|
7179
|
-
*/
|
|
7180
|
-
|
|
7181
|
-
if (!date) {
|
|
7182
|
-
return new Date().getMonth() + 1;
|
|
7183
|
-
}
|
|
7184
|
-
if (typeof date === 'string') {
|
|
7185
|
-
date = new Date(date);
|
|
7186
|
-
}
|
|
7187
|
-
return date.getMonth() + 1;
|
|
7188
|
-
};
|
|
7189
|
-
|
|
7203
|
+
*/
|
|
7204
|
+
const getMonth = function (date) {
|
|
7205
|
+
if (!date) {
|
|
7206
|
+
return new Date().getMonth() + 1;
|
|
7207
|
+
}
|
|
7208
|
+
if (typeof date === 'string') {
|
|
7209
|
+
date = new Date(date);
|
|
7210
|
+
}
|
|
7211
|
+
return date.getMonth() + 1;
|
|
7212
|
+
};
|
|
7213
|
+
|
|
7190
7214
|
/**
|
|
7191
7215
|
* 获取秒
|
|
7192
7216
|
* @date 2022年5月7日
|
|
7193
7217
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
7194
7218
|
* @returns {number} 秒数(0-59)
|
|
7195
|
-
*/
|
|
7196
|
-
|
|
7197
|
-
if (!date) {
|
|
7198
|
-
return new Date().getSeconds();
|
|
7199
|
-
}
|
|
7200
|
-
if (typeof date === 'string') {
|
|
7201
|
-
date = new Date(date);
|
|
7202
|
-
}
|
|
7203
|
-
return date.getSeconds();
|
|
7204
|
-
};
|
|
7205
|
-
|
|
7219
|
+
*/
|
|
7220
|
+
const getSecond = function (date) {
|
|
7221
|
+
if (!date) {
|
|
7222
|
+
return new Date().getSeconds();
|
|
7223
|
+
}
|
|
7224
|
+
if (typeof date === 'string') {
|
|
7225
|
+
date = new Date(date);
|
|
7226
|
+
}
|
|
7227
|
+
return date.getSeconds();
|
|
7228
|
+
};
|
|
7229
|
+
|
|
7206
7230
|
/**
|
|
7207
7231
|
* 获取星期几
|
|
7208
7232
|
* @date 2022年5月7日
|
|
7209
7233
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
7210
7234
|
* @returns {number} 星期几(0-6,0表示星期日)
|
|
7211
|
-
*/
|
|
7212
|
-
|
|
7213
|
-
if (!date) {
|
|
7214
|
-
return new Date().getDay();
|
|
7215
|
-
}
|
|
7216
|
-
if (typeof date === 'string') {
|
|
7217
|
-
date = new Date(date);
|
|
7218
|
-
}
|
|
7219
|
-
return date.getDay();
|
|
7220
|
-
};
|
|
7221
|
-
|
|
7235
|
+
*/
|
|
7236
|
+
const getWeekday = function (date) {
|
|
7237
|
+
if (!date) {
|
|
7238
|
+
return new Date().getDay();
|
|
7239
|
+
}
|
|
7240
|
+
if (typeof date === 'string') {
|
|
7241
|
+
date = new Date(date);
|
|
7242
|
+
}
|
|
7243
|
+
return date.getDay();
|
|
7244
|
+
};
|
|
7245
|
+
|
|
7246
|
+
|
|
7222
7247
|
/**
|
|
7223
7248
|
* @desc 获取上午/下午/晚上
|
|
7224
7249
|
* @author huangbo
|
|
7225
7250
|
* @date 2022年5月7日
|
|
7226
7251
|
* @param {String} [time] - 时间
|
|
7227
|
-
**/
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
if (!time) {
|
|
7231
|
-
hour = new Date().getHours();
|
|
7232
|
-
} else if (typeof time === 'string') {
|
|
7233
|
-
// 从时间字符串中提取小时
|
|
7234
|
-
|
|
7235
|
-
if (match) {
|
|
7236
|
-
hour = parseInt(match[1], 10);
|
|
7237
|
-
}
|
|
7238
|
-
} else if (typeof time === 'number') {
|
|
7239
|
-
hour = time;
|
|
7240
|
-
}
|
|
7241
|
-
// 判断时间段
|
|
7242
|
-
if (hour >= 5 && hour < 12) {
|
|
7243
|
-
return '上午';
|
|
7244
|
-
} else if (hour >= 12 && hour < 18) {
|
|
7245
|
-
return '下午';
|
|
7246
|
-
} else {
|
|
7247
|
-
return '晚上';
|
|
7248
|
-
}
|
|
7252
|
+
**/
|
|
7253
|
+
const timeCycle = function (time) {
|
|
7254
|
+
let hour = 0;
|
|
7255
|
+
if (!time) {
|
|
7256
|
+
hour = new Date().getHours();
|
|
7257
|
+
} else if (typeof time === 'string') {
|
|
7258
|
+
// 从时间字符串中提取小时
|
|
7259
|
+
const match = time.match(/^(\d{1,2})/);
|
|
7260
|
+
if (match) {
|
|
7261
|
+
hour = parseInt(match[1], 10);
|
|
7262
|
+
}
|
|
7263
|
+
} else if (typeof time === 'number') {
|
|
7264
|
+
hour = time;
|
|
7265
|
+
}
|
|
7266
|
+
// 判断时间段
|
|
7267
|
+
if (hour >= 5 && hour < 12) {
|
|
7268
|
+
return '上午';
|
|
7269
|
+
} else if (hour >= 12 && hour < 18) {
|
|
7270
|
+
return '下午';
|
|
7271
|
+
} else {
|
|
7272
|
+
return '晚上';
|
|
7273
|
+
}
|
|
7249
7274
|
};
|
|
7250
7275
|
|
|
7251
7276
|
/***/ }),
|
|
@@ -7330,17 +7355,10 @@ module.exports = require("fetch-request-source");
|
|
|
7330
7355
|
|
|
7331
7356
|
/***/ }),
|
|
7332
7357
|
|
|
7333
|
-
/***/ 28:
|
|
7334
|
-
/***/ (function(module, exports) {
|
|
7335
|
-
|
|
7336
|
-
module.exports = require("qs");
|
|
7337
|
-
|
|
7338
|
-
/***/ }),
|
|
7339
|
-
|
|
7340
7358
|
/***/ 29:
|
|
7341
7359
|
/***/ (function(module, exports) {
|
|
7342
7360
|
|
|
7343
|
-
module.exports = require("
|
|
7361
|
+
module.exports = require("qs");
|
|
7344
7362
|
|
|
7345
7363
|
/***/ }),
|
|
7346
7364
|
|
|
@@ -7452,6 +7470,13 @@ function normalizeComponent(
|
|
|
7452
7470
|
/***/ 30:
|
|
7453
7471
|
/***/ (function(module, exports) {
|
|
7454
7472
|
|
|
7473
|
+
module.exports = require("axios");
|
|
7474
|
+
|
|
7475
|
+
/***/ }),
|
|
7476
|
+
|
|
7477
|
+
/***/ 31:
|
|
7478
|
+
/***/ (function(module, exports) {
|
|
7479
|
+
|
|
7455
7480
|
module.exports = require("json-bigint");
|
|
7456
7481
|
|
|
7457
7482
|
/***/ }),
|
|
@@ -7546,7 +7571,7 @@ function isDefined(val) {
|
|
|
7546
7571
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doQrLogin; });
|
|
7547
7572
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return logout; });
|
|
7548
7573
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return initLogin; });
|
|
7549
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7574
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return switchUserTo; });
|
|
7550
7575
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return changeImg; });
|
|
7551
7576
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getLoginCode; });
|
|
7552
7577
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCodeLogin; });
|
|
@@ -7564,13 +7589,13 @@ function isDefined(val) {
|
|
|
7564
7589
|
/* unused harmony export scanCodeRetrialAuth */
|
|
7565
7590
|
/* unused harmony export codeRetrialAuth */
|
|
7566
7591
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return doAssistanceQrLogin; });
|
|
7567
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7592
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return userOnline; });
|
|
7568
7593
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUserAppWithTag; });
|
|
7569
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7594
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return recordUserApp; });
|
|
7570
7595
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserRecordApp; });
|
|
7571
7596
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return mainConfig; });
|
|
7572
7597
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initUserSet; });
|
|
7573
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7598
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateUserInfo; });
|
|
7574
7599
|
/* unused harmony export getUserImgUrl */
|
|
7575
7600
|
/* unused harmony export getDoorIndex */
|
|
7576
7601
|
/* unused harmony export refreshOnlineUsers */
|
|
@@ -7582,22 +7607,22 @@ function isDefined(val) {
|
|
|
7582
7607
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getByType; });
|
|
7583
7608
|
/* unused harmony export getUserCustomInfo */
|
|
7584
7609
|
/* unused harmony export updateUserCustomInfo */
|
|
7585
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7586
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7610
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveOrUpdate; });
|
|
7611
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return sysMsgPage; });
|
|
7587
7612
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreSysMsg; });
|
|
7588
7613
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return ignoreAllSysMsg; });
|
|
7589
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7614
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return searchType; });
|
|
7590
7615
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSysParam; });
|
|
7591
7616
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctProperties; });
|
|
7592
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7593
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7617
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploads; });
|
|
7618
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadOnlyOne; });
|
|
7594
7619
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getAdjunctFileInfos; });
|
|
7595
7620
|
/* unused harmony export uploadSort */
|
|
7596
7621
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return downloadByAdjunctId; });
|
|
7597
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7598
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7599
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7600
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7622
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadDownloads; });
|
|
7623
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct; });
|
|
7624
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct2; });
|
|
7625
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunctOffice; });
|
|
7601
7626
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return delAdjunct; });
|
|
7602
7627
|
/* unused harmony export upload_updateClassify */
|
|
7603
7628
|
/* unused harmony export getDeleteAdjunctFileInfos */
|
|
@@ -7612,13 +7637,13 @@ function isDefined(val) {
|
|
|
7612
7637
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return gethelpdoc; });
|
|
7613
7638
|
/* unused harmony export getCurrentuser */
|
|
7614
7639
|
/* unused harmony export mainDetail */
|
|
7615
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7616
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7640
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartFlow; });
|
|
7641
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tempSave; });
|
|
7617
7642
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return commonOpion; });
|
|
7618
7643
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
|
|
7619
7644
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return editCommonOpion; });
|
|
7620
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7621
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7645
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveCommonOpinion; });
|
|
7646
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateCommonOpinion; });
|
|
7622
7647
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return deleteCommonOpion; });
|
|
7623
7648
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getProcessDefList; });
|
|
7624
7649
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getNodeInfo; });
|
|
@@ -7627,27 +7652,27 @@ function isDefined(val) {
|
|
|
7627
7652
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCodes; });
|
|
7628
7653
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNotificationMsg; });
|
|
7629
7654
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getHandleInfoHtml; });
|
|
7630
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7655
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskHandleHtml; });
|
|
7631
7656
|
/* unused harmony export getView */
|
|
7632
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7633
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7634
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7635
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7636
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7637
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7638
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7639
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7640
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7641
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7657
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return register; });
|
|
7658
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pendedhistoryList; });
|
|
7659
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskRejectHtml; });
|
|
7660
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskRejectHtml; });
|
|
7661
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskRead; });
|
|
7662
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskReadIndex; });
|
|
7663
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskReadHtml; });
|
|
7664
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return rejectAndEnd; });
|
|
7665
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toSendMsg; });
|
|
7666
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return sendMsg; });
|
|
7642
7667
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowHtml; });
|
|
7643
7668
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return handleInfo; });
|
|
7644
7669
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return loginUserInfo; });
|
|
7645
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7646
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7670
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return wss; });
|
|
7671
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return topic; });
|
|
7647
7672
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getPresetCustomInfo; });
|
|
7648
7673
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetNodeInfo; });
|
|
7649
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7650
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7674
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTransferIndex; });
|
|
7675
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTransfer; });
|
|
7651
7676
|
/* unused harmony export toPresetInfoListIndex */
|
|
7652
7677
|
/* unused harmony export deletePresetInfo */
|
|
7653
7678
|
/* unused harmony export historyListJson */
|
|
@@ -7655,24 +7680,24 @@ function isDefined(val) {
|
|
|
7655
7680
|
/* unused harmony export pressListJson */
|
|
7656
7681
|
/* unused harmony export deleteFlow */
|
|
7657
7682
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isCanStartSubFlow; });
|
|
7658
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7659
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7660
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7661
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7662
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7663
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7664
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7665
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7666
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7667
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7668
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7669
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7670
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7671
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7672
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7673
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7674
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7675
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7683
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionExamine; });
|
|
7684
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionExamine; });
|
|
7685
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTakeAdvice; });
|
|
7686
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTakeAdvice; });
|
|
7687
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskStartDraft; });
|
|
7688
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSupervise; });
|
|
7689
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSuperviseSub; });
|
|
7690
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskStartDraft; });
|
|
7691
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskReview; });
|
|
7692
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskReview; });
|
|
7693
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionSeal; });
|
|
7694
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionSeal; });
|
|
7695
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTwoOfficesDispatch; });
|
|
7696
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return twoOfficesDispatch; });
|
|
7697
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toResetProcessIndex; });
|
|
7698
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return resetProcess; });
|
|
7699
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskContinuationIndex; });
|
|
7700
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskContinuation; });
|
|
7676
7701
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getFreeStartFlowParams; });
|
|
7677
7702
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlowWithSubmitTask; });
|
|
7678
7703
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkForeignOrgStartedCircularRead; });
|
|
@@ -7680,7 +7705,7 @@ function isDefined(val) {
|
|
|
7680
7705
|
/* unused harmony export fyListJson */
|
|
7681
7706
|
/* unused harmony export circularReadWithdraw */
|
|
7682
7707
|
/* unused harmony export taskReadWithDraw */
|
|
7683
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7708
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
|
|
7684
7709
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return checkBusinessIdStartedReadTransferHandle; });
|
|
7685
7710
|
/* unused harmony export sendList */
|
|
7686
7711
|
/* unused harmony export sendInfo */
|
|
@@ -7694,23 +7719,24 @@ function isDefined(val) {
|
|
|
7694
7719
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfoForStart; });
|
|
7695
7720
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return freeStartFlow; });
|
|
7696
7721
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getUrgencyLevelChangedNotificationType; });
|
|
7697
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7722
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toFreeTaskCircularRead; });
|
|
7698
7723
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeTaskCircularRead; });
|
|
7699
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7724
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageLists; });
|
|
7700
7725
|
/* unused harmony export publishedLists */
|
|
7701
7726
|
/* unused harmony export pageInfo */
|
|
7702
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7703
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return
|
|
7727
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageGroup; });
|
|
7728
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageSave; });
|
|
7729
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageUpdate; });
|
|
7704
7730
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return pageDelete; });
|
|
7705
7731
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchSave; });
|
|
7706
7732
|
/* unused harmony export batchUpdate */
|
|
7707
7733
|
/* unused harmony export batchDelete */
|
|
7708
7734
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchList; });
|
|
7709
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7710
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7711
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7712
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7713
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7735
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processListJson; });
|
|
7736
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processInfo; });
|
|
7737
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processDeleteJson; });
|
|
7738
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processSave; });
|
|
7739
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processUpdate; });
|
|
7714
7740
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeListJson; });
|
|
7715
7741
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return nodeDeleteJson; });
|
|
7716
7742
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeSave; });
|
|
@@ -7721,22 +7747,22 @@ function isDefined(val) {
|
|
|
7721
7747
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return moduleDelete; });
|
|
7722
7748
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleSave; });
|
|
7723
7749
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleUpdate; });
|
|
7724
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7725
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7726
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7727
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7750
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleListJson; });
|
|
7751
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleEdit; });
|
|
7752
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleRead; });
|
|
7753
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleSave; });
|
|
7728
7754
|
/* unused harmony export ruleSupplement */
|
|
7729
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7730
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7755
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleUndore; });
|
|
7756
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleAdd; });
|
|
7731
7757
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return companyDetail; });
|
|
7732
7758
|
/* unused harmony export issueDetailList */
|
|
7733
7759
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteRule; });
|
|
7734
7760
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParamV1; });
|
|
7735
7761
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyList; });
|
|
7736
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7762
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return supplement; });
|
|
7737
7763
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return isAddSource; });
|
|
7738
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7739
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
7764
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tiggerInTime; });
|
|
7765
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateHistory; });
|
|
7740
7766
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
|
|
7741
7767
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeInTime; });
|
|
7742
7768
|
var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
|
|
@@ -8018,6 +8044,9 @@ var pageLists = '/main2/pageComponentConfig/listJson';
|
|
|
8018
8044
|
var publishedLists = '/main2/pageComponentConfig/listPublished';
|
|
8019
8045
|
// 获取自定义配置详情
|
|
8020
8046
|
var pageInfo = '/main2/pageComponentConfig/info';
|
|
8047
|
+
// 获取自定义配置授权列表
|
|
8048
|
+
var pageGroup = 'main2/pageComponentTarget/listByConfigIdAndTypeGroup';
|
|
8049
|
+
|
|
8021
8050
|
// 保存自定义配置,发布也调这个接口但要加上字段status=1
|
|
8022
8051
|
var pageSave = '/main2/pageComponentConfig/save';
|
|
8023
8052
|
// 更新自定义配置
|
|
@@ -8125,12 +8154,12 @@ module.exports = require("eoss/lib/message-box");
|
|
|
8125
8154
|
/* unused harmony export downloadZip */
|
|
8126
8155
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
|
|
8127
8156
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
|
|
8128
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8157
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
|
|
8129
8158
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
|
|
8130
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
8159
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);
|
|
8131
8160
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
8132
8161
|
/* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
|
|
8133
|
-
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
8162
|
+
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
|
|
8134
8163
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
|
|
8135
8164
|
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
|
|
8136
8165
|
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24);
|
|
@@ -8372,7 +8401,7 @@ var ajax = function ajax(_ref) {
|
|
|
8372
8401
|
delete params[key];
|
|
8373
8402
|
}
|
|
8374
8403
|
}
|
|
8375
|
-
url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
8404
|
+
url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: url, param: encodedParams });
|
|
8376
8405
|
}
|
|
8377
8406
|
} else {
|
|
8378
8407
|
params = {};
|
|
@@ -8730,7 +8759,7 @@ function redirectToLogin() {
|
|
|
8730
8759
|
|
|
8731
8760
|
if (loginPage) {
|
|
8732
8761
|
// 处理相对路径
|
|
8733
|
-
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "
|
|
8762
|
+
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
|
|
8734
8763
|
var pathname = '';
|
|
8735
8764
|
try {
|
|
8736
8765
|
pathname = window.top.location.pathname;
|
|
@@ -8762,7 +8791,7 @@ function redirectToLogin() {
|
|
|
8762
8791
|
* @returns {Promise} 认证完成后 resolve
|
|
8763
8792
|
*/
|
|
8764
8793
|
var initAuth = function initAuth() {
|
|
8765
|
-
var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "
|
|
8794
|
+
var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])();
|
|
8766
8795
|
var token = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('token') || Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('Authorization');
|
|
8767
8796
|
|
|
8768
8797
|
// 已有 token 或没有认证参数,直接返回
|
|
@@ -8770,7 +8799,7 @@ var initAuth = function initAuth() {
|
|
|
8770
8799
|
return Promise.resolve();
|
|
8771
8800
|
}
|
|
8772
8801
|
|
|
8773
|
-
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "
|
|
8802
|
+
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('页面加载中...');
|
|
8774
8803
|
|
|
8775
8804
|
return ajax({
|
|
8776
8805
|
method: 'post',
|
|
@@ -8849,7 +8878,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
8849
8878
|
|
|
8850
8879
|
// 处理cookie参数
|
|
8851
8880
|
if (cookie === undefined) {
|
|
8852
|
-
cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "
|
|
8881
|
+
cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])({ name: 'cookie' });
|
|
8853
8882
|
}
|
|
8854
8883
|
|
|
8855
8884
|
// 处理登录页面路径
|
|
@@ -8864,7 +8893,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
8864
8893
|
sessionStorage.setItem('loginPage', loginPage);
|
|
8865
8894
|
|
|
8866
8895
|
// 处理相对路径
|
|
8867
|
-
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "
|
|
8896
|
+
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
|
|
8868
8897
|
if (pathname !== '/') {
|
|
8869
8898
|
var pathParts = pathname.split('/');
|
|
8870
8899
|
pathParts.splice(pathParts.length - 1);
|
|
@@ -8889,7 +8918,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
8889
8918
|
|
|
8890
8919
|
// 处理重定向
|
|
8891
8920
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
8892
|
-
window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
8921
|
+
window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: '.' + to.path + '.html', param: to.query }));
|
|
8893
8922
|
} else {
|
|
8894
8923
|
next();
|
|
8895
8924
|
}
|
|
@@ -9092,7 +9121,7 @@ var downloadFile = function downloadFile(_ref6) {
|
|
|
9092
9121
|
|
|
9093
9122
|
// 拼接URL参数
|
|
9094
9123
|
if (Object.keys(params).length > 0) {
|
|
9095
|
-
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
9124
|
+
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
|
|
9096
9125
|
}
|
|
9097
9126
|
} else if (file.raw) {
|
|
9098
9127
|
downloadUrl = URL.createObjectURL(file.raw);
|
|
@@ -9138,7 +9167,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
9138
9167
|
code = _ref7.code,
|
|
9139
9168
|
option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
|
|
9140
9169
|
|
|
9141
|
-
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "
|
|
9170
|
+
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Nc"] };
|
|
9142
9171
|
|
|
9143
9172
|
// 处理URL和参数
|
|
9144
9173
|
var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
|
|
@@ -9154,7 +9183,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
9154
9183
|
|
|
9155
9184
|
// 拼接URL参数
|
|
9156
9185
|
if (Object.keys(params).length > 0) {
|
|
9157
|
-
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
9186
|
+
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
|
|
9158
9187
|
}
|
|
9159
9188
|
|
|
9160
9189
|
// 创建a标签
|
|
@@ -9259,7 +9288,7 @@ var getTableData = function getTableData(_ref9) {
|
|
|
9259
9288
|
onSuccess = _ref9.onSuccess,
|
|
9260
9289
|
onError = _ref9.onError;
|
|
9261
9290
|
|
|
9262
|
-
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "
|
|
9291
|
+
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('数据加载中...');
|
|
9263
9292
|
return new Promise(function (resolve, reject) {
|
|
9264
9293
|
ajax({
|
|
9265
9294
|
method: method,
|