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/flow.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 = 171);
|
|
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
|
+
/***/ 171:
|
|
3486
3493
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3487
3494
|
|
|
3488
3495
|
"use strict";
|
|
@@ -7681,7 +7688,7 @@ var _components;
|
|
|
7681
7688
|
cancelButtonText: '取消',
|
|
7682
7689
|
type: 'warning'
|
|
7683
7690
|
}).then(function () {
|
|
7684
|
-
_this3.loading = Object(util["
|
|
7691
|
+
_this3.loading = Object(util["K" /* loading */])('删除中');
|
|
7685
7692
|
Object(ajax["a" /* ajax */])({
|
|
7686
7693
|
url: api["n" /* deleteCommonOpion */],
|
|
7687
7694
|
params: {
|
|
@@ -7727,9 +7734,9 @@ var _components;
|
|
|
7727
7734
|
for (var key in data) {
|
|
7728
7735
|
info['bean.' + key] = data[key];
|
|
7729
7736
|
}
|
|
7730
|
-
this.loading = Object(util["
|
|
7737
|
+
this.loading = Object(util["K" /* loading */])('提交中');
|
|
7731
7738
|
Object(ajax["a" /* ajax */])({
|
|
7732
|
-
url: data.id ? api["
|
|
7739
|
+
url: data.id ? api["Kc" /* updateCommonOpinion */] : api["Xb" /* saveCommonOpinion */],
|
|
7733
7740
|
data: info,
|
|
7734
7741
|
header: { 'Content-Type': 'multipart/form-data' },
|
|
7735
7742
|
method: 'post'
|
|
@@ -9207,7 +9214,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
9207
9214
|
if (_this4.mix) {
|
|
9208
9215
|
_this4.newOptions.push(_extends({}, item, {
|
|
9209
9216
|
id: item.showid,
|
|
9210
|
-
name: Object(util["
|
|
9217
|
+
name: Object(util["u" /* getTypePrefix */])(item.stype) + item.showname
|
|
9211
9218
|
}));
|
|
9212
9219
|
} else {
|
|
9213
9220
|
_this4.newOptions.push(_extends({}, item, {
|
|
@@ -10902,7 +10909,7 @@ var Preset_component = Object(componentNormalizer["a" /* default */])(
|
|
|
10902
10909
|
},
|
|
10903
10910
|
changeCustomLimitTime: function changeCustomLimitTime(val) {
|
|
10904
10911
|
if (!Number(val) || val.indexOf('.') != -1 || Number(val) < 0) {
|
|
10905
|
-
Object(util["
|
|
10912
|
+
Object(util["ab" /* warning */])('请输入正确的天数');
|
|
10906
10913
|
this.nextNode.customLimitTime = '';
|
|
10907
10914
|
}
|
|
10908
10915
|
},
|
|
@@ -10998,7 +11005,7 @@ var Preset_component = Object(componentNormalizer["a" /* default */])(
|
|
|
10998
11005
|
if (this.showBtn) {
|
|
10999
11006
|
this.loading = true;
|
|
11000
11007
|
} else {
|
|
11001
|
-
this.loading = Object(util["
|
|
11008
|
+
this.loading = Object(util["K" /* loading */])();
|
|
11002
11009
|
}
|
|
11003
11010
|
this.nextNode.nodeInfo = this.operationList[val].list;
|
|
11004
11011
|
if (this.nextNode.nodeInfo.length > 0) {
|
|
@@ -11095,17 +11102,17 @@ var Preset_component = Object(componentNormalizer["a" /* default */])(
|
|
|
11095
11102
|
|
|
11096
11103
|
if (_this5.isShowNextUser) {
|
|
11097
11104
|
if (nextUser == '' || _this5.multiple && nextUser.length == 0) {
|
|
11098
|
-
return Object(util["
|
|
11105
|
+
return Object(util["ab" /* warning */])('请选择下步办理人');
|
|
11099
11106
|
}
|
|
11100
11107
|
} else {
|
|
11101
11108
|
if (nextOrgId == '' || _this5.multiple && nextOrgId.length == 0) {
|
|
11102
|
-
return Object(util["
|
|
11109
|
+
return Object(util["ab" /* warning */])('请选择办理对象');
|
|
11103
11110
|
}
|
|
11104
11111
|
}
|
|
11105
11112
|
if (_this5.showBtn) {
|
|
11106
11113
|
_this5.loading = true;
|
|
11107
11114
|
} else {
|
|
11108
|
-
_this5.loading = Object(util["
|
|
11115
|
+
_this5.loading = Object(util["K" /* loading */])();
|
|
11109
11116
|
}
|
|
11110
11117
|
var newNextUser = [];
|
|
11111
11118
|
if (_this5.multiple) {
|
|
@@ -11136,11 +11143,11 @@ var Preset_component = Object(componentNormalizer["a" /* default */])(
|
|
|
11136
11143
|
if (_this5.enableCustomLimitTimeSetting) {
|
|
11137
11144
|
params.customLimitTime = customLimitTime;
|
|
11138
11145
|
if (!customLimitTime) {
|
|
11139
|
-
Object(util["
|
|
11146
|
+
Object(util["ab" /* warning */])('请选择或输入限时办理的天数');
|
|
11140
11147
|
_this5.nextNode.customLimitTime = '';
|
|
11141
11148
|
return;
|
|
11142
11149
|
} else if (!Number(customLimitTime) || customLimitTime.indexOf('.') != -1 || Number(customLimitTime) < 0) {
|
|
11143
|
-
Object(util["
|
|
11150
|
+
Object(util["ab" /* warning */])('请输入正确的天数');
|
|
11144
11151
|
_this5.nextNode.customLimitTime = '';
|
|
11145
11152
|
return;
|
|
11146
11153
|
}
|
|
@@ -11176,7 +11183,7 @@ var Preset_component = Object(componentNormalizer["a" /* default */])(
|
|
|
11176
11183
|
delete params.businessId;
|
|
11177
11184
|
}
|
|
11178
11185
|
Object(ajax["a" /* ajax */])({
|
|
11179
|
-
url: _this5.isFreeStartFlow ? api["E" /* freeStartFlowWithSubmitTask */] : _this5.formType == 'readTransfer' ? api["
|
|
11186
|
+
url: _this5.isFreeStartFlow ? api["E" /* freeStartFlowWithSubmitTask */] : _this5.formType == 'readTransfer' ? api["bc" /* startReadTransferHandleFlowWithTaskReadEnd */] : _this5.copyHistory ? api["D" /* freeStartFlow */] : api["Ob" /* register */],
|
|
11180
11187
|
method: 'post',
|
|
11181
11188
|
data: params
|
|
11182
11189
|
}).then(function (res) {
|
|
@@ -11393,7 +11400,7 @@ var Preset_component = Object(componentNormalizer["a" /* default */])(
|
|
|
11393
11400
|
if (this.showBtn) {
|
|
11394
11401
|
this.loading = true;
|
|
11395
11402
|
} else {
|
|
11396
|
-
this.loading = Object(util["
|
|
11403
|
+
this.loading = Object(util["K" /* loading */])();
|
|
11397
11404
|
}
|
|
11398
11405
|
this.businessId = this.id;
|
|
11399
11406
|
var params = {
|
|
@@ -11402,7 +11409,7 @@ var Preset_component = Object(componentNormalizer["a" /* default */])(
|
|
|
11402
11409
|
businessId: this.businessId
|
|
11403
11410
|
};
|
|
11404
11411
|
// 获取节点
|
|
11405
|
-
Object(ajax["a" /* ajax */])({ url: api["
|
|
11412
|
+
Object(ajax["a" /* ajax */])({ url: api["uc" /* toStartFlow */], params: params }).then(function (res) {
|
|
11406
11413
|
//pc接口返回数据处理
|
|
11407
11414
|
var status = res.status,
|
|
11408
11415
|
message = res.message,
|
|
@@ -12146,7 +12153,7 @@ var utils_date = __webpack_require__(2);
|
|
|
12146
12153
|
notificationType = _sendInfo.notificationType;
|
|
12147
12154
|
|
|
12148
12155
|
var params = {
|
|
12149
|
-
url: api["
|
|
12156
|
+
url: api["ac" /* sendMsg */],
|
|
12150
12157
|
headers: { Accept: 'application/json,text/plain' },
|
|
12151
12158
|
method: 'post',
|
|
12152
12159
|
data: {
|
|
@@ -12211,7 +12218,7 @@ var utils_date = __webpack_require__(2);
|
|
|
12211
12218
|
|
|
12212
12219
|
this.loading = true;
|
|
12213
12220
|
Object(ajax["a" /* ajax */])({
|
|
12214
|
-
url: api["
|
|
12221
|
+
url: api["tc" /* toSendMsg */],
|
|
12215
12222
|
params: { pendingId: this.$attrs.pendingId }
|
|
12216
12223
|
}).then(function (res) {
|
|
12217
12224
|
var status = res.status,
|
|
@@ -13118,7 +13125,7 @@ processRejectvue_type_template_id_7937b3b0_render._withStripped = true
|
|
|
13118
13125
|
this.$refs[formName].validate(function (valid) {
|
|
13119
13126
|
if (valid) {
|
|
13120
13127
|
if (!_this2.option && _this2.isOpinionRequired === 1) {
|
|
13121
|
-
Object(util["
|
|
13128
|
+
Object(util["ab" /* warning */])('请选择输入审批意见');
|
|
13122
13129
|
return;
|
|
13123
13130
|
}
|
|
13124
13131
|
_this2.loading = true;
|
|
@@ -13131,7 +13138,7 @@ processRejectvue_type_template_id_7937b3b0_render._withStripped = true
|
|
|
13131
13138
|
userId: Object(storage["a" /* getStorage */])('userId'),
|
|
13132
13139
|
nextNodeId: _this2.nextNode.nextNodeId
|
|
13133
13140
|
};
|
|
13134
|
-
Object(ajax["a" /* ajax */])({ url: api["
|
|
13141
|
+
Object(ajax["a" /* ajax */])({ url: api["ic" /* taskRejectHtml */], method: 'post', data: params }).then(function (res) {
|
|
13135
13142
|
var status = res.status,
|
|
13136
13143
|
message = res.message;
|
|
13137
13144
|
|
|
@@ -13196,7 +13203,7 @@ processRejectvue_type_template_id_7937b3b0_render._withStripped = true
|
|
|
13196
13203
|
isSinglePage: false,
|
|
13197
13204
|
opinion: this.option
|
|
13198
13205
|
};
|
|
13199
|
-
Object(ajax["a" /* ajax */])({ url: api["
|
|
13206
|
+
Object(ajax["a" /* ajax */])({ url: api["yc" /* toTaskRejectHtml */], params: params }).then(function (res) {
|
|
13200
13207
|
_this4.loading = false;
|
|
13201
13208
|
if (res.status === 'success') {
|
|
13202
13209
|
var _res$data = res.data,
|
|
@@ -14021,7 +14028,7 @@ var startTaskReadvue_type_script_lang_js_components;
|
|
|
14021
14028
|
taskExamine = this.taskExamine;
|
|
14022
14029
|
|
|
14023
14030
|
var params = {
|
|
14024
|
-
url: api["
|
|
14031
|
+
url: api["Ec" /* toTaskTransferIndex */],
|
|
14025
14032
|
params: {
|
|
14026
14033
|
opinion: opinion,
|
|
14027
14034
|
pendingId: pendingId,
|
|
@@ -14143,7 +14150,7 @@ var startTaskReadvue_type_script_lang_js_components;
|
|
|
14143
14150
|
var _this4 = this;
|
|
14144
14151
|
|
|
14145
14152
|
var params = {
|
|
14146
|
-
url: api["
|
|
14153
|
+
url: api["vc" /* toStartTaskRead */],
|
|
14147
14154
|
params: startTaskReadvue_type_script_lang_js_extends({
|
|
14148
14155
|
pendingId: this.pendingId,
|
|
14149
14156
|
taskAction: this.type
|
|
@@ -14233,7 +14240,7 @@ var startTaskReadvue_type_script_lang_js_components;
|
|
|
14233
14240
|
type = this.type;
|
|
14234
14241
|
|
|
14235
14242
|
var params = {
|
|
14236
|
-
url: api["
|
|
14243
|
+
url: api["mc" /* taskTransfer */],
|
|
14237
14244
|
data: {
|
|
14238
14245
|
choiceDeptId: choiceDeptId,
|
|
14239
14246
|
choiceOrgId: choiceOrgId,
|
|
@@ -14277,7 +14284,7 @@ var startTaskReadvue_type_script_lang_js_components;
|
|
|
14277
14284
|
this.$refs[formName].validate(function (valid) {
|
|
14278
14285
|
if (valid) {
|
|
14279
14286
|
if (!_this8.option && _this8.isOpinionRequired === 1) {
|
|
14280
|
-
Object(util["
|
|
14287
|
+
Object(util["ab" /* warning */])('请选择输入审批意见');
|
|
14281
14288
|
return;
|
|
14282
14289
|
}
|
|
14283
14290
|
// let nextUser = [];
|
|
@@ -14285,7 +14292,7 @@ var startTaskReadvue_type_script_lang_js_components;
|
|
|
14285
14292
|
// nextUser.push(item);
|
|
14286
14293
|
// });
|
|
14287
14294
|
if (_this8.nextNode.nextUser.length == 0) {
|
|
14288
|
-
Object(util["
|
|
14295
|
+
Object(util["ab" /* warning */])('\u8BF7\u9009\u62E9' + (_this8.type === 'transfer' ? '转办对象' : _this8.configInfo.isCdjxjTaskHandle == 'true' ? '接收人' : '办理用户'));
|
|
14289
14296
|
return;
|
|
14290
14297
|
}
|
|
14291
14298
|
var noticeType = '';
|
|
@@ -14343,7 +14350,7 @@ var startTaskReadvue_type_script_lang_js_components;
|
|
|
14343
14350
|
}
|
|
14344
14351
|
delete _this8.configInfo.taskExamine.taskExamineParam;
|
|
14345
14352
|
Object(ajax["a" /* ajax */])({
|
|
14346
|
-
url: api["
|
|
14353
|
+
url: api["hc" /* taskReadHtml */],
|
|
14347
14354
|
params: { taskAction: _this8.type },
|
|
14348
14355
|
headers: {
|
|
14349
14356
|
Accept: 'application/json,text/plain'
|
|
@@ -15511,19 +15518,19 @@ var resetvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
15511
15518
|
if (_this4.nodeInfoExtAttr.nodeType != 1 && _this4.nodeInfoExtAttr.nodeType != 2 && !_this4.showRoleUser) {
|
|
15512
15519
|
if (_this4.isShowNextUser) {
|
|
15513
15520
|
if (nextUser == '' || _this4.multiple && nextUser.length == 0) {
|
|
15514
|
-
return Object(util["
|
|
15521
|
+
return Object(util["ab" /* warning */])('请选择下步办理人');
|
|
15515
15522
|
}
|
|
15516
15523
|
} else {
|
|
15517
15524
|
if (nextOrgId == '' || _this4.multiple && nextOrgId.length == 0) {
|
|
15518
|
-
return Object(util["
|
|
15525
|
+
return Object(util["ab" /* warning */])('请选择办理对象');
|
|
15519
15526
|
}
|
|
15520
15527
|
}
|
|
15521
15528
|
}
|
|
15522
15529
|
if (_this4.showRoleUser && nextRoleId == '' || _this4.multiple && nextUser.length == 0) {
|
|
15523
|
-
return Object(util["
|
|
15530
|
+
return Object(util["ab" /* warning */])('请选择办理角色');
|
|
15524
15531
|
}
|
|
15525
15532
|
if (_this4.isOpinionRequired && !_this4.newOpinion && !newOpinion) {
|
|
15526
|
-
return Object(util["
|
|
15533
|
+
return Object(util["ab" /* warning */])('请选择输入审批意见');
|
|
15527
15534
|
}
|
|
15528
15535
|
_this4.loading = true;
|
|
15529
15536
|
var newNextUser = [];
|
|
@@ -15561,7 +15568,7 @@ var resetvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
15561
15568
|
}
|
|
15562
15569
|
if (_this4.activeNames != '1') delete params.customPresetUserJson;
|
|
15563
15570
|
Object(ajax["a" /* ajax */])({
|
|
15564
|
-
url: _this4.type == 'reset' ? api["
|
|
15571
|
+
url: _this4.type == 'reset' ? api["Qb" /* resetProcess */] : api["fc" /* taskContinuation */],
|
|
15565
15572
|
method: 'post',
|
|
15566
15573
|
data: params
|
|
15567
15574
|
}).then(function (res) {
|
|
@@ -15768,7 +15775,7 @@ var resetvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
15768
15775
|
var _this7 = this;
|
|
15769
15776
|
|
|
15770
15777
|
var params = {
|
|
15771
|
-
url: this.type == 'continuation' ? api["
|
|
15778
|
+
url: this.type == 'continuation' ? api["xc" /* toTaskContinuationIndex */] : api["sc" /* toResetProcessIndex */],
|
|
15772
15779
|
params: resetvue_type_script_lang_js_extends({
|
|
15773
15780
|
appId: this.appId
|
|
15774
15781
|
}, this.flowParams)
|
|
@@ -16589,7 +16596,7 @@ taskUnionExaminevue_type_template_id_22547d2b_render._withStripped = true
|
|
|
16589
16596
|
pendingId = this.pendingId;
|
|
16590
16597
|
|
|
16591
16598
|
var params = {
|
|
16592
|
-
url: api["
|
|
16599
|
+
url: api["jc" /* taskReview */],
|
|
16593
16600
|
data: {
|
|
16594
16601
|
nextUserId: nextOtherOrgObj.join(','),
|
|
16595
16602
|
notificationType: noticeType.join(','),
|
|
@@ -16628,7 +16635,7 @@ taskUnionExaminevue_type_template_id_22547d2b_render._withStripped = true
|
|
|
16628
16635
|
var _this2 = this;
|
|
16629
16636
|
|
|
16630
16637
|
var params = {
|
|
16631
|
-
url: api["
|
|
16638
|
+
url: api["zc" /* toTaskReview */],
|
|
16632
16639
|
params: { pendingId: this.pendingId }
|
|
16633
16640
|
};
|
|
16634
16641
|
Object(ajax["a" /* ajax */])(params).then(function (res) {
|
|
@@ -16661,7 +16668,7 @@ taskUnionExaminevue_type_template_id_22547d2b_render._withStripped = true
|
|
|
16661
16668
|
var _this3 = this;
|
|
16662
16669
|
|
|
16663
16670
|
var params = {
|
|
16664
|
-
url: this.type == 'takeAdvice' ? api["
|
|
16671
|
+
url: this.type == 'takeAdvice' ? api["Dc" /* toTaskTakeAdvice */] : this.type === 'startDraf' ? api["Ac" /* toTaskStartDraft */] : this.type == 'unionSeal' ? api["Gc" /* toTaskUnionSeal */] : this.type == 'twoOfficesDispatch' ? api["Hc" /* toTwoOfficesDispatch */] : api["Fc" /* toTaskUnionExamine */],
|
|
16665
16672
|
params: { pendingId: this.pendingId },
|
|
16666
16673
|
headers: { Accept: 'application/json,text/plain' }
|
|
16667
16674
|
};
|
|
@@ -16793,16 +16800,16 @@ taskUnionExaminevue_type_template_id_22547d2b_render._withStripped = true
|
|
|
16793
16800
|
pendingId = this.pendingId;
|
|
16794
16801
|
|
|
16795
16802
|
if (type == 'takeAdvice' && !nextCurrentOrgObj && isHideCurrentOrg == 0 && nextCurrentOrgObj.length == 0 && isHideOtherOrg == 0 && (!nextOtherOrgObj || nextOtherOrgObj.length == 0)) {
|
|
16796
|
-
return Object(util["
|
|
16803
|
+
return Object(util["ab" /* warning */])('请选择处理对象!');
|
|
16797
16804
|
} else if (isHideCurrentOrg == 0 && (!nextOtherOrgObj || nextOtherOrgObj.length == 0) && (!nextCurrentOrgObj || nextCurrentOrgObj.length == 0)) {
|
|
16798
|
-
return Object(util["
|
|
16805
|
+
return Object(util["ab" /* warning */])('请选择处理对象!');
|
|
16799
16806
|
}
|
|
16800
16807
|
|
|
16801
16808
|
if (isOpinionRequired == 1 && (opinion == '' || opinion == null)) {
|
|
16802
|
-
return Object(util["
|
|
16809
|
+
return Object(util["ab" /* warning */])('当前步骤必须输入意见!');
|
|
16803
16810
|
}
|
|
16804
16811
|
var param = {
|
|
16805
|
-
url: this.type === 'startDraf' ? api["
|
|
16812
|
+
url: this.type === 'startDraf' ? api["kc" /* taskStartDraft */] : this.type == 'unionSeal' ? api["oc" /* taskUnionSeal */] : this.type === 'twoOfficesDispatch' ? api["Jc" /* twoOfficesDispatch */] : this.type == 'takeAdvice' ? api["lc" /* taskTakeAdvice */] : api["nc" /* taskUnionExamine */],
|
|
16806
16813
|
data: {
|
|
16807
16814
|
opinion: opinion,
|
|
16808
16815
|
pendingId: pendingId,
|
|
@@ -20074,7 +20081,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20074
20081
|
showFlowChart: false, // 展示流程图弹窗
|
|
20075
20082
|
isReject: false, // 是否驳回
|
|
20076
20083
|
showTaskUnionExamine: false, //展示联合审核弹窗
|
|
20077
|
-
charUrl: Object(util["
|
|
20084
|
+
charUrl: Object(util["w" /* getWinTop */])().location.origin,
|
|
20078
20085
|
endFlow: false, // 是否结束流程
|
|
20079
20086
|
isCurrentNodeForbiddenChangeCandidate: 0, //是否禁止选择办理人
|
|
20080
20087
|
isSubmitButtonShowAgreeAndDisagree: 0, //是否展示同意和不同意按钮
|
|
@@ -20314,7 +20321,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20314
20321
|
},
|
|
20315
20322
|
customLoading: function customLoading(type) {
|
|
20316
20323
|
if (type != 'end') {
|
|
20317
|
-
this.loading = Object(util["
|
|
20324
|
+
this.loading = Object(util["K" /* loading */])();
|
|
20318
20325
|
} else {
|
|
20319
20326
|
this.loading.close();
|
|
20320
20327
|
}
|
|
@@ -20330,7 +20337,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20330
20337
|
cancelButtonText: '取消',
|
|
20331
20338
|
type: 'warning'
|
|
20332
20339
|
}).then(function () {
|
|
20333
|
-
_this2.loading = Object(util["
|
|
20340
|
+
_this2.loading = Object(util["K" /* loading */])('提交中');
|
|
20334
20341
|
var _taskExamineInfo = _this2.taskExamineInfo,
|
|
20335
20342
|
businessId = _taskExamineInfo.businessId,
|
|
20336
20343
|
appId = _taskExamineInfo.appId,
|
|
@@ -20346,7 +20353,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20346
20353
|
taskAction: 'complete'
|
|
20347
20354
|
};
|
|
20348
20355
|
Object(ajax["a" /* ajax */])({
|
|
20349
|
-
url: api["
|
|
20356
|
+
url: api["hc" /* taskReadHtml */],
|
|
20350
20357
|
params: { taskAction: 'complete' },
|
|
20351
20358
|
headers: {
|
|
20352
20359
|
Accept: 'application/json,text/plain'
|
|
@@ -20383,9 +20390,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20383
20390
|
getTaskReadFlow: function getTaskReadFlow() {
|
|
20384
20391
|
var _this3 = this;
|
|
20385
20392
|
|
|
20386
|
-
this.loading = Object(util["
|
|
20393
|
+
this.loading = Object(util["K" /* loading */])();
|
|
20387
20394
|
Object(ajax["a" /* ajax */])({
|
|
20388
|
-
url: api["
|
|
20395
|
+
url: api["wc" /* toStartTaskReadIndex */],
|
|
20389
20396
|
params: { pendingId: this.pendingId }
|
|
20390
20397
|
}).then(function (res) {
|
|
20391
20398
|
var status = res.status,
|
|
@@ -20511,8 +20518,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20511
20518
|
opinion: this.value,
|
|
20512
20519
|
pendingId: this.pendingId
|
|
20513
20520
|
};
|
|
20514
|
-
this.loading = Object(util["
|
|
20515
|
-
Object(ajax["a" /* ajax */])({ url: api["
|
|
20521
|
+
this.loading = Object(util["K" /* loading */])('保存中');
|
|
20522
|
+
Object(ajax["a" /* ajax */])({ url: api["pc" /* tempSave */], params: params }).then(function (res) {
|
|
20516
20523
|
var status = res.status,
|
|
20517
20524
|
message = res.message;
|
|
20518
20525
|
|
|
@@ -20667,7 +20674,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20667
20674
|
notificationType: _this13.nextNode.notificationType.join(',')
|
|
20668
20675
|
})
|
|
20669
20676
|
};
|
|
20670
|
-
_this13.loading = Object(util["
|
|
20677
|
+
_this13.loading = Object(util["K" /* loading */])('提交中');
|
|
20671
20678
|
Object(ajax["a" /* ajax */])(params).then(function (res) {
|
|
20672
20679
|
var status = res.status,
|
|
20673
20680
|
message = res.message;
|
|
@@ -20781,7 +20788,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20781
20788
|
// this.flowTitle = res.value;
|
|
20782
20789
|
// this.toStartDraf(res);
|
|
20783
20790
|
} else {
|
|
20784
|
-
Object(util["
|
|
20791
|
+
Object(util["ab" /* warning */])('暂未开放,敬请期待!');
|
|
20785
20792
|
}
|
|
20786
20793
|
// isCanStartSubFlow
|
|
20787
20794
|
},
|
|
@@ -20815,7 +20822,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20815
20822
|
method: 'post',
|
|
20816
20823
|
headers: { Accept: 'application/json,text/plain' }
|
|
20817
20824
|
};
|
|
20818
|
-
this.loading = Object(util["
|
|
20825
|
+
this.loading = Object(util["K" /* loading */])();
|
|
20819
20826
|
Object(ajax["a" /* ajax */])(params).then(function (res) {
|
|
20820
20827
|
var message = res.message;
|
|
20821
20828
|
|
|
@@ -20913,7 +20920,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20913
20920
|
|
|
20914
20921
|
this.$confirm('确认' + res.value + '?').then(function () {
|
|
20915
20922
|
var params = {
|
|
20916
|
-
url: api["
|
|
20923
|
+
url: api["Pb" /* rejectAndEnd */],
|
|
20917
20924
|
headers: { Accept: 'application/json,text/plain' },
|
|
20918
20925
|
method: 'post',
|
|
20919
20926
|
data: {
|
|
@@ -20922,7 +20929,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20922
20929
|
isSinglePage: false
|
|
20923
20930
|
}
|
|
20924
20931
|
};
|
|
20925
|
-
_this20.loading = Object(util["
|
|
20932
|
+
_this20.loading = Object(util["K" /* loading */])('提交中');
|
|
20926
20933
|
Object(ajax["a" /* ajax */])(params).then(function (res) {
|
|
20927
20934
|
var status = res.status,
|
|
20928
20935
|
message = res.message;
|
|
@@ -21083,7 +21090,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
21083
21090
|
selecNext: function selecNext(val, type, isDef) {
|
|
21084
21091
|
var _this23 = this;
|
|
21085
21092
|
|
|
21086
|
-
this.loading = Object(util["
|
|
21093
|
+
this.loading = Object(util["K" /* loading */])({});
|
|
21087
21094
|
if (this.multiple) {
|
|
21088
21095
|
this.nextNode.nextUserId = [];
|
|
21089
21096
|
} else {
|
|
@@ -21232,7 +21239,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
21232
21239
|
getHedInfo: function getHedInfo() {
|
|
21233
21240
|
var _this24 = this;
|
|
21234
21241
|
|
|
21235
|
-
this.loading = Object(util["
|
|
21242
|
+
this.loading = Object(util["K" /* loading */])();
|
|
21236
21243
|
var params = {
|
|
21237
21244
|
pendingId: this.pendingId,
|
|
21238
21245
|
userId: Object(storage["a" /* getStorage */])('userId')
|
|
@@ -21450,7 +21457,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
21450
21457
|
if (res.status === 'taskCompleted') {
|
|
21451
21458
|
_this24.$emit('shrink', true);
|
|
21452
21459
|
_this24.shrinkAbled = true;
|
|
21453
|
-
Object(util["
|
|
21460
|
+
Object(util["ab" /* warning */])(res.message || '系统错误,请联系管理员!');
|
|
21454
21461
|
} else {
|
|
21455
21462
|
Object(util["m" /* error */])(res.message || '系统错误,请联系管理员!');
|
|
21456
21463
|
}
|
|
@@ -21525,7 +21532,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
21525
21532
|
onlyShowDefaultProcess: this.defaultProcessShowStrategy == 'onlyShowDefaultProcess'
|
|
21526
21533
|
// onlyFlag: true
|
|
21527
21534
|
};
|
|
21528
|
-
this.loading = Object(util["
|
|
21535
|
+
this.loading = Object(util["K" /* loading */])();
|
|
21529
21536
|
Object(ajax["a" /* ajax */])({ url: api["V" /* getProcessDefList */], params: params }).then(function (res) {
|
|
21530
21537
|
var status = res.status,
|
|
21531
21538
|
message = res.message,
|
|
@@ -21576,7 +21583,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
21576
21583
|
userId: Object(storage["a" /* getStorage */])('userId'),
|
|
21577
21584
|
type: 2
|
|
21578
21585
|
};
|
|
21579
|
-
Object(ajax["a" /* ajax */])({ url: api["
|
|
21586
|
+
Object(ajax["a" /* ajax */])({ url: api["Eb" /* pendedhistoryList */], data: params, method: 'post' }).then(function (res) {
|
|
21580
21587
|
var rCode = res.rCode,
|
|
21581
21588
|
msg = res.msg,
|
|
21582
21589
|
results = res.results;
|
|
@@ -21626,31 +21633,31 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
21626
21633
|
if (!this.endFlow && this.newTypeCode != 'fenyue' && !this.shrink && this.nextNode.isAddSign != '1' && this.nextNode.isRemoveSign != '1' && this.isSpecial && !this.isReject && this.nodeInfos.length != 0 && this.isNextUser) {
|
|
21627
21634
|
if (this.isShowNextUser) {
|
|
21628
21635
|
if (this.nextNode.nextUserId == '' || this.multiple && this.nextNode.nextUserId.length == 0) {
|
|
21629
|
-
Object(util["
|
|
21636
|
+
Object(util["ab" /* warning */])('请选择下步办理人');
|
|
21630
21637
|
return false;
|
|
21631
21638
|
}
|
|
21632
21639
|
} else {
|
|
21633
21640
|
if (this.nextNode.nextOrgId == '' || this.multiple && this.nextNode.nextOrgId.length == 0) {
|
|
21634
|
-
Object(util["
|
|
21641
|
+
Object(util["ab" /* warning */])('请选择办理对象');
|
|
21635
21642
|
return false;
|
|
21636
21643
|
}
|
|
21637
21644
|
}
|
|
21638
21645
|
}
|
|
21639
21646
|
|
|
21640
21647
|
if (this.nextNode.isAddSign == '1' && this.nextNode.addSignUserId.length == 0) {
|
|
21641
|
-
Object(util["
|
|
21648
|
+
Object(util["ab" /* warning */])('请选择加签办理人');
|
|
21642
21649
|
return false;
|
|
21643
21650
|
}
|
|
21644
21651
|
if (this.nextNode.isRemoveSign == '1' && this.nextNode.removeSignUserId.length == 0) {
|
|
21645
|
-
Object(util["
|
|
21652
|
+
Object(util["ab" /* warning */])('请选择减签办理人');
|
|
21646
21653
|
return false;
|
|
21647
21654
|
}
|
|
21648
21655
|
if (!this.value && this.isOpinionRequired === 1) {
|
|
21649
|
-
Object(util["
|
|
21656
|
+
Object(util["ab" /* warning */])('请选择输入审批意见');
|
|
21650
21657
|
return false;
|
|
21651
21658
|
}
|
|
21652
21659
|
if (this.isHideCurrentOrg && !this.nextNode.nextCurrentOrgObjJson) {
|
|
21653
|
-
Object(util["
|
|
21660
|
+
Object(util["ab" /* warning */])('\u8BF7\u9009\u62E9' + (this.currentOrgName || '本单位'));
|
|
21654
21661
|
return false;
|
|
21655
21662
|
}
|
|
21656
21663
|
return true;
|
|
@@ -21722,7 +21729,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
21722
21729
|
return _this28.saveInfo('subMit');
|
|
21723
21730
|
|
|
21724
21731
|
case 17:
|
|
21725
|
-
_this28.loading = Object(util["
|
|
21732
|
+
_this28.loading = Object(util["K" /* loading */])('提交中');
|
|
21726
21733
|
|
|
21727
21734
|
notificationType = '';
|
|
21728
21735
|
|
|
@@ -21754,7 +21761,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
21754
21761
|
if (_this28.nextNode.isAddSign != '1') {
|
|
21755
21762
|
delete params.addSignUserId;
|
|
21756
21763
|
}
|
|
21757
|
-
_this28.loading = Object(util["
|
|
21764
|
+
_this28.loading = Object(util["K" /* loading */])('提交中');
|
|
21758
21765
|
isEndUserTask = _this28.isEndUserTask, choiceOrgId = _this28.choiceOrgId, choiceDeptId = _this28.choiceDeptId, pOrgId = _this28.pOrgId, taskExamineInfo = _this28.taskExamineInfo, needRetrialAuth = _this28.needRetrialAuth;
|
|
21759
21766
|
|
|
21760
21767
|
params.isEndUserTask = isEndUserTask;
|
|
@@ -21768,7 +21775,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
21768
21775
|
params.isSubFlow = taskExamineInfo.isSubFlow;
|
|
21769
21776
|
params.nodeId = taskExamineInfo.nodeId;
|
|
21770
21777
|
params.needRetrialAuth = needRetrialAuth;
|
|
21771
|
-
return _context.abrupt('return', Object(ajax["a" /* ajax */])({ url: api["
|
|
21778
|
+
return _context.abrupt('return', Object(ajax["a" /* ajax */])({ url: api["gc" /* taskHandleHtml */], method: 'post', data: params }).then(function (res) {
|
|
21772
21779
|
var status = res.status,
|
|
21773
21780
|
message = res.message;
|
|
21774
21781
|
|
|
@@ -22159,11 +22166,11 @@ var supervisevue_type_script_lang_js_extends = Object.assign || function (target
|
|
|
22159
22166
|
var _this = this;
|
|
22160
22167
|
|
|
22161
22168
|
if (this.nextNode.noticeType.length == 0) {
|
|
22162
|
-
Object(util["
|
|
22169
|
+
Object(util["ab" /* warning */])('请选择通知方式');
|
|
22163
22170
|
return;
|
|
22164
22171
|
}
|
|
22165
22172
|
if (this.nextNode.noticeType.length != 0 && !this.nextNode.notifyMessage) {
|
|
22166
|
-
Object(util["
|
|
22173
|
+
Object(util["ab" /* warning */])('请填写通知消息内容');
|
|
22167
22174
|
return;
|
|
22168
22175
|
}
|
|
22169
22176
|
var _nextNode = this.nextNode,
|
|
@@ -22172,7 +22179,7 @@ var supervisevue_type_script_lang_js_extends = Object.assign || function (target
|
|
|
22172
22179
|
pendingUserIds = _nextNode.pendingUserIds;
|
|
22173
22180
|
|
|
22174
22181
|
var params = {
|
|
22175
|
-
url: api["
|
|
22182
|
+
url: api["Cc" /* toTaskSuperviseSub */],
|
|
22176
22183
|
params: {
|
|
22177
22184
|
userId: Object(storage["a" /* getStorage */])('userId'),
|
|
22178
22185
|
urgeUserIds: pendingUserIds,
|
|
@@ -22182,7 +22189,7 @@ var supervisevue_type_script_lang_js_extends = Object.assign || function (target
|
|
|
22182
22189
|
appId: this.appId
|
|
22183
22190
|
}
|
|
22184
22191
|
};
|
|
22185
|
-
this.loading = Object(util["
|
|
22192
|
+
this.loading = Object(util["K" /* loading */])('提交中');
|
|
22186
22193
|
Object(ajax["a" /* ajax */])(params).then(function (res) {
|
|
22187
22194
|
_this.loading.close();
|
|
22188
22195
|
if (res.rCode == 0 || res.status == 'success') {
|
|
@@ -22204,9 +22211,9 @@ var supervisevue_type_script_lang_js_extends = Object.assign || function (target
|
|
|
22204
22211
|
getFlowInfo: function getFlowInfo() {
|
|
22205
22212
|
var _this2 = this;
|
|
22206
22213
|
|
|
22207
|
-
this.loading = Object(util["
|
|
22214
|
+
this.loading = Object(util["K" /* loading */])();
|
|
22208
22215
|
Object(ajax["a" /* ajax */])({
|
|
22209
|
-
url: api["
|
|
22216
|
+
url: api["Bc" /* toTaskSupervise */],
|
|
22210
22217
|
params: {
|
|
22211
22218
|
businessId: this.businessId,
|
|
22212
22219
|
appId: this.appId,
|
|
@@ -22731,7 +22738,7 @@ Circulatevue_type_template_id_ac7c7900_render._withStripped = true
|
|
|
22731
22738
|
businessId = this.businessId;
|
|
22732
22739
|
|
|
22733
22740
|
if ((!nextCurrentOrgObj || nextCurrentOrgObj.length == 0) && (!nextOtherOrgObj || nextOtherOrgObj.length == 0)) {
|
|
22734
|
-
return Object(util["
|
|
22741
|
+
return Object(util["ab" /* warning */])('请选择处理对象!');
|
|
22735
22742
|
}
|
|
22736
22743
|
var param = {
|
|
22737
22744
|
url: this.showBtn || this.startFlowPageEmbeddedIntoStartFlowIndex ? api["p" /* directStartTaskCircularRead */] : api["x" /* endFlowAndStartTaskCircularRead */],
|
|
@@ -22752,9 +22759,9 @@ Circulatevue_type_template_id_ac7c7900_render._withStripped = true
|
|
|
22752
22759
|
if (!this.showBtn && !this.startFlowPageEmbeddedIntoStartFlowIndex) {
|
|
22753
22760
|
param.data.pendingId = this.pendingId;
|
|
22754
22761
|
delete param.data.processDefinitionId;
|
|
22755
|
-
this.subLoading = Object(util["
|
|
22762
|
+
this.subLoading = Object(util["K" /* loading */])('提交中');
|
|
22756
22763
|
} else if (this.startFlowPageEmbeddedIntoStartFlowIndex) {
|
|
22757
|
-
this.subLoading = Object(util["
|
|
22764
|
+
this.subLoading = Object(util["K" /* loading */])('提交中');
|
|
22758
22765
|
} else {
|
|
22759
22766
|
this.loading = true;
|
|
22760
22767
|
}
|
|
@@ -23164,7 +23171,7 @@ FreeCirculationvue_type_template_id_7010c957_render._withStripped = true
|
|
|
23164
23171
|
},
|
|
23165
23172
|
method: 'post'
|
|
23166
23173
|
};
|
|
23167
|
-
this.loading = Object(util["
|
|
23174
|
+
this.loading = Object(util["K" /* loading */])('提交中');
|
|
23168
23175
|
Object(ajax["a" /* ajax */])(param).then(function (res) {
|
|
23169
23176
|
_this.loading.close();
|
|
23170
23177
|
if (res.rCode == 0 || res.status == 'success') {
|
|
@@ -23191,10 +23198,10 @@ FreeCirculationvue_type_template_id_7010c957_render._withStripped = true
|
|
|
23191
23198
|
var _this2 = this;
|
|
23192
23199
|
|
|
23193
23200
|
var param = {
|
|
23194
|
-
url: api["
|
|
23201
|
+
url: api["rc" /* toFreeTaskCircularRead */],
|
|
23195
23202
|
params: { appId: this.appId || this.params.appId }
|
|
23196
23203
|
};
|
|
23197
|
-
this.loading = Object(util["
|
|
23204
|
+
this.loading = Object(util["K" /* loading */])();
|
|
23198
23205
|
Object(ajax["a" /* ajax */])(param).then(function (res) {
|
|
23199
23206
|
_this2.loading.close();
|
|
23200
23207
|
if (res.rCode == 0 || res.status == 'success') {
|
|
@@ -25230,7 +25237,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
25230
25237
|
},
|
|
25231
25238
|
changeCustomLimitTime: function changeCustomLimitTime(val) {
|
|
25232
25239
|
if (!Number(val) || val.indexOf('.') != -1 || Number(val) < 0) {
|
|
25233
|
-
Object(util["
|
|
25240
|
+
Object(util["ab" /* warning */])('请输入正确的天数');
|
|
25234
25241
|
this.nextNode.customLimitTime = '';
|
|
25235
25242
|
}
|
|
25236
25243
|
},
|
|
@@ -25395,7 +25402,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
25395
25402
|
},
|
|
25396
25403
|
customLoading: function customLoading(type) {
|
|
25397
25404
|
if (type != 'end') {
|
|
25398
|
-
this.loading = Object(util["
|
|
25405
|
+
this.loading = Object(util["K" /* loading */])();
|
|
25399
25406
|
} else {
|
|
25400
25407
|
this.loading.close();
|
|
25401
25408
|
}
|
|
@@ -25411,7 +25418,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
25411
25418
|
cancelButtonText: '取消',
|
|
25412
25419
|
type: 'warning'
|
|
25413
25420
|
}).then(function () {
|
|
25414
|
-
_this6.loading = Object(util["
|
|
25421
|
+
_this6.loading = Object(util["K" /* loading */])();
|
|
25415
25422
|
var _taskExamineInfo2 = _this6.taskExamineInfo,
|
|
25416
25423
|
businessId = _taskExamineInfo2.businessId,
|
|
25417
25424
|
appId = _taskExamineInfo2.appId,
|
|
@@ -25427,7 +25434,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
25427
25434
|
taskAction: 'complete'
|
|
25428
25435
|
};
|
|
25429
25436
|
Object(ajax["a" /* ajax */])({
|
|
25430
|
-
url: api["
|
|
25437
|
+
url: api["hc" /* taskReadHtml */],
|
|
25431
25438
|
params: { taskAction: 'complete' },
|
|
25432
25439
|
headers: {
|
|
25433
25440
|
Accept: 'application/json,text/plain'
|
|
@@ -25472,9 +25479,9 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
25472
25479
|
getTaskReadFlow: function getTaskReadFlow() {
|
|
25473
25480
|
var _this8 = this;
|
|
25474
25481
|
|
|
25475
|
-
this.loading = Object(util["
|
|
25482
|
+
this.loading = Object(util["K" /* loading */])();
|
|
25476
25483
|
Object(ajax["a" /* ajax */])({
|
|
25477
|
-
url: api["
|
|
25484
|
+
url: api["wc" /* toStartTaskReadIndex */],
|
|
25478
25485
|
params: { pendingId: this.pendingId }
|
|
25479
25486
|
}).then(function (res) {
|
|
25480
25487
|
var status = res.status,
|
|
@@ -25609,8 +25616,8 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
25609
25616
|
opinion: this.value,
|
|
25610
25617
|
pendingId: this.pendingId
|
|
25611
25618
|
};
|
|
25612
|
-
this.loading = Object(util["
|
|
25613
|
-
Object(ajax["a" /* ajax */])({ url: api["
|
|
25619
|
+
this.loading = Object(util["K" /* loading */])('保存中');
|
|
25620
|
+
Object(ajax["a" /* ajax */])({ url: api["pc" /* tempSave */], data: params, method: 'post' }).then(function (res) {
|
|
25614
25621
|
var status = res.status,
|
|
25615
25622
|
message = res.message;
|
|
25616
25623
|
|
|
@@ -25726,14 +25733,14 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
25726
25733
|
nodeId: nodeId
|
|
25727
25734
|
}
|
|
25728
25735
|
};
|
|
25729
|
-
this.loading = Object(util["
|
|
25736
|
+
this.loading = Object(util["K" /* loading */])();
|
|
25730
25737
|
Object(ajax["a" /* ajax */])(param).then(function (res) {
|
|
25731
25738
|
_this16.loading.close();
|
|
25732
25739
|
if (res.rCode == 0 || res.status == 'success') {
|
|
25733
25740
|
_this16.freeStartFlowParams = res.results;
|
|
25734
25741
|
if (res.results.useScene === 'multiInsMidwayWithSubmitScene') _this16.subProcess('同意。', res.results.useScene);
|
|
25735
25742
|
if (!_this16.freeValid) return;
|
|
25736
|
-
if (res.results.startFlowIndexProcessKeys && res.results.startFlowIndexProcessKeys.length == 0 || !res.results.startFlowIndexProcessKeys) return Object(util["
|
|
25743
|
+
if (res.results.startFlowIndexProcessKeys && res.results.startFlowIndexProcessKeys.length == 0 || !res.results.startFlowIndexProcessKeys) return Object(util["ab" /* warning */])('未找到流程定义!');
|
|
25737
25744
|
if (res.results.startFlowIndexProcessKeys.length == 1) {
|
|
25738
25745
|
_this16.freeStartFlowNextNode = res.results.startFlowIndexProcessKeys[0];
|
|
25739
25746
|
// this.handleVisible = true;
|
|
@@ -25785,7 +25792,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
25785
25792
|
notificationType: _this18.nextNode.notificationType.join(',')
|
|
25786
25793
|
})
|
|
25787
25794
|
};
|
|
25788
|
-
_this18.loading = Object(util["
|
|
25795
|
+
_this18.loading = Object(util["K" /* loading */])();
|
|
25789
25796
|
Object(ajax["a" /* ajax */])(params).then(function (res) {
|
|
25790
25797
|
var status = res.status,
|
|
25791
25798
|
message = res.message;
|
|
@@ -25900,7 +25907,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
25900
25907
|
} else if (res.fun == 'default') {
|
|
25901
25908
|
this.btnType = 'default';
|
|
25902
25909
|
} else {
|
|
25903
|
-
Object(util["
|
|
25910
|
+
Object(util["ab" /* warning */])('暂未开放,敬请期待!');
|
|
25904
25911
|
}
|
|
25905
25912
|
// isCanStartSubFlow
|
|
25906
25913
|
},
|
|
@@ -25934,7 +25941,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
25934
25941
|
method: 'post',
|
|
25935
25942
|
headers: { Accept: 'application/json,text/plain' }
|
|
25936
25943
|
};
|
|
25937
|
-
this.loading = Object(util["
|
|
25944
|
+
this.loading = Object(util["K" /* loading */])();
|
|
25938
25945
|
Object(ajax["a" /* ajax */])(params).then(function (res) {
|
|
25939
25946
|
var message = res.message;
|
|
25940
25947
|
|
|
@@ -26054,7 +26061,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
26054
26061
|
|
|
26055
26062
|
this.$confirm('确认' + res.value + '?').then(function () {
|
|
26056
26063
|
var params = {
|
|
26057
|
-
url: api["
|
|
26064
|
+
url: api["Pb" /* rejectAndEnd */],
|
|
26058
26065
|
headers: { Accept: 'application/json,text/plain' },
|
|
26059
26066
|
method: 'post',
|
|
26060
26067
|
data: {
|
|
@@ -26063,7 +26070,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
26063
26070
|
isSinglePage: false
|
|
26064
26071
|
}
|
|
26065
26072
|
};
|
|
26066
|
-
_this25.loading = Object(util["
|
|
26073
|
+
_this25.loading = Object(util["K" /* loading */])();
|
|
26067
26074
|
Object(ajax["a" /* ajax */])(params).then(function (res) {
|
|
26068
26075
|
var status = res.status,
|
|
26069
26076
|
message = res.message;
|
|
@@ -26233,7 +26240,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
26233
26240
|
return x.key == val;
|
|
26234
26241
|
})[0].isNextNode;
|
|
26235
26242
|
}
|
|
26236
|
-
this.loading = Object(util["
|
|
26243
|
+
this.loading = Object(util["K" /* loading */])();
|
|
26237
26244
|
if (this.multiple) {
|
|
26238
26245
|
this.nextNode.nextUserId = [];
|
|
26239
26246
|
} else {
|
|
@@ -26399,7 +26406,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
26399
26406
|
getHedInfo: function getHedInfo() {
|
|
26400
26407
|
var _this29 = this;
|
|
26401
26408
|
|
|
26402
|
-
this.loading = Object(util["
|
|
26409
|
+
this.loading = Object(util["K" /* loading */])();
|
|
26403
26410
|
var params = {
|
|
26404
26411
|
pendingId: this.pendingId,
|
|
26405
26412
|
userId: Object(storage["a" /* getStorage */])('userId')
|
|
@@ -26679,7 +26686,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
26679
26686
|
if (res.status === 'taskCompleted') {
|
|
26680
26687
|
_this29.$emit('shrink', true);
|
|
26681
26688
|
_this29.shrinkAbled = true;
|
|
26682
|
-
Object(util["
|
|
26689
|
+
Object(util["ab" /* warning */])(res.message || '系统错误,请联系管理员!');
|
|
26683
26690
|
} else {
|
|
26684
26691
|
Object(util["m" /* error */])(res.message || '系统错误,请联系管理员!');
|
|
26685
26692
|
}
|
|
@@ -26759,7 +26766,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
26759
26766
|
isOnly: true,
|
|
26760
26767
|
hideTempSave: true
|
|
26761
26768
|
}, this.param);
|
|
26762
|
-
this.loading = Object(util["
|
|
26769
|
+
this.loading = Object(util["K" /* loading */])();
|
|
26763
26770
|
Object(ajax["a" /* ajax */])({ url: api["V" /* getProcessDefList */], params: params }).then(function (res) {
|
|
26764
26771
|
var status = res.status,
|
|
26765
26772
|
message = res.message,
|
|
@@ -26819,7 +26826,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
26819
26826
|
userId: Object(storage["a" /* getStorage */])('userId'),
|
|
26820
26827
|
type: 2
|
|
26821
26828
|
};
|
|
26822
|
-
Object(ajax["a" /* ajax */])({ url: api["
|
|
26829
|
+
Object(ajax["a" /* ajax */])({ url: api["Eb" /* pendedhistoryList */], data: params, method: 'post' }).then(function (res) {
|
|
26823
26830
|
var rCode = res.rCode,
|
|
26824
26831
|
msg = res.msg,
|
|
26825
26832
|
results = res.results;
|
|
@@ -26848,7 +26855,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
26848
26855
|
currentBusinessId: _that.taskExamineInfo.businessId
|
|
26849
26856
|
}
|
|
26850
26857
|
};
|
|
26851
|
-
this.loading = Object(util["
|
|
26858
|
+
this.loading = Object(util["K" /* loading */])('提交中');
|
|
26852
26859
|
Object(ajax["a" /* ajax */])(params).then(function (res) {
|
|
26853
26860
|
_this32.loading && _this32.loading.close();
|
|
26854
26861
|
if (res.rCode == 0) {
|
|
@@ -26885,7 +26892,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
26885
26892
|
|
|
26886
26893
|
if (this.btnType != 'default') {
|
|
26887
26894
|
if (this.btnType == 'reject' && this.$refs[this.btnType].rejectObj.length == 0) {
|
|
26888
|
-
Object(util["
|
|
26895
|
+
Object(util["ab" /* warning */])('暂无可驳回节点及对象');
|
|
26889
26896
|
return;
|
|
26890
26897
|
}
|
|
26891
26898
|
this.$refs[this.btnType].subProcess('nextNode');
|
|
@@ -26929,32 +26936,32 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
26929
26936
|
if (!this.endFlow && this.newTypeCode != 'fenyue' && !this.shrink && this.nextNode.isAddSign != '1' && this.nextNode.isRemoveSign != '1' && this.isSpecial && !this.isReject && this.nodeInfos.length != 0 && this.isNextUser) {
|
|
26930
26937
|
if (this.isShowNextUser) {
|
|
26931
26938
|
if (this.nextNode.nextUserId == '' || this.multiple && this.nextNode.nextUserId.length == 0) {
|
|
26932
|
-
Object(util["
|
|
26939
|
+
Object(util["ab" /* warning */])('请选择下步办理人');
|
|
26933
26940
|
return false;
|
|
26934
26941
|
}
|
|
26935
26942
|
} else {
|
|
26936
26943
|
if (this.nextNode.nextOrgId == '' || this.multiple && this.nextNode.nextOrgId.length == 0) {
|
|
26937
|
-
Object(util["
|
|
26944
|
+
Object(util["ab" /* warning */])('请选择办理对象');
|
|
26938
26945
|
return false;
|
|
26939
26946
|
}
|
|
26940
26947
|
}
|
|
26941
26948
|
}
|
|
26942
26949
|
|
|
26943
26950
|
if (this.nextNode.isAddSign == '1' && this.nextNode.addSignUserId.length == 0) {
|
|
26944
|
-
Object(util["
|
|
26951
|
+
Object(util["ab" /* warning */])('请选择加签办理人');
|
|
26945
26952
|
return false;
|
|
26946
26953
|
}
|
|
26947
26954
|
if (this.nextNode.isRemoveSign == '1' && this.nextNode.removeSignUserId.length == 0) {
|
|
26948
|
-
Object(util["
|
|
26955
|
+
Object(util["ab" /* warning */])('请选择减签办理人');
|
|
26949
26956
|
return false;
|
|
26950
26957
|
}
|
|
26951
26958
|
if (!this.value && this.isOpinionRequired === 1) {
|
|
26952
|
-
Object(util["
|
|
26959
|
+
Object(util["ab" /* warning */])('请选择输入审批意见');
|
|
26953
26960
|
return false;
|
|
26954
26961
|
}
|
|
26955
26962
|
|
|
26956
26963
|
if ((this.currentNodeIsCircularReadNode || this.isHideOtherOrg && this.isHideCurrentOrg) && this.nextNode.nextCurrentOrgObj.length == 0 && this.nextNode.nextOtherOrgObj.length == 0 && this.nextNode.isReturnSubmitter != 1) {
|
|
26957
|
-
Object(util["
|
|
26964
|
+
Object(util["ab" /* warning */])('\u8BF7\u9009\u62E9\u4E0B\u6B65\u529E\u7406\u5BF9\u8C61!');
|
|
26958
26965
|
return false;
|
|
26959
26966
|
}
|
|
26960
26967
|
return true;
|
|
@@ -27074,7 +27081,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
27074
27081
|
return _this35.saveInfo('subMit');
|
|
27075
27082
|
|
|
27076
27083
|
case 21:
|
|
27077
|
-
_this35.loading = Object(util["
|
|
27084
|
+
_this35.loading = Object(util["K" /* loading */])();
|
|
27078
27085
|
|
|
27079
27086
|
case 22:
|
|
27080
27087
|
notificationType = '';
|
|
@@ -27124,7 +27131,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
27124
27131
|
return _context.abrupt('return');
|
|
27125
27132
|
|
|
27126
27133
|
case 37:
|
|
27127
|
-
_this35.loading = Object(util["
|
|
27134
|
+
_this35.loading = Object(util["K" /* loading */])('提交中');
|
|
27128
27135
|
isEndUserTask = _this35.isEndUserTask, choiceOrgId = _this35.choiceOrgId, choiceDeptId = _this35.choiceDeptId, pOrgId = _this35.pOrgId, taskExamineInfo = _this35.taskExamineInfo, currentNodeIsCircularReadNode = _this35.currentNodeIsCircularReadNode, needRetrialAuth = _this35.needRetrialAuth, circularReadParamsMap = _this35.circularReadParamsMap, currentNodeEnableItemHandleDescription = _this35.currentNodeEnableItemHandleDescription;
|
|
27129
27136
|
|
|
27130
27137
|
params.isEndUserTask = isEndUserTask;
|
|
@@ -27145,7 +27152,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
27145
27152
|
if (!currentNodeEnableItemHandleDescription) {
|
|
27146
27153
|
delete params.nextItemHandleDescription;
|
|
27147
27154
|
}
|
|
27148
|
-
return _context.abrupt('return', Object(ajax["a" /* ajax */])({ url: api["
|
|
27155
|
+
return _context.abrupt('return', Object(ajax["a" /* ajax */])({ url: api["gc" /* taskHandleHtml */], method: 'post', data: params }).then(function (res) {
|
|
27149
27156
|
var status = res.status,
|
|
27150
27157
|
message = res.message;
|
|
27151
27158
|
|
|
@@ -27246,13 +27253,6 @@ main.install = function (Vue) {
|
|
|
27246
27253
|
|
|
27247
27254
|
/***/ }),
|
|
27248
27255
|
|
|
27249
|
-
/***/ 18:
|
|
27250
|
-
/***/ (function(module, exports) {
|
|
27251
|
-
|
|
27252
|
-
module.exports = require("eoss/lib/loading");
|
|
27253
|
-
|
|
27254
|
-
/***/ }),
|
|
27255
|
-
|
|
27256
27256
|
/***/ 19:
|
|
27257
27257
|
/***/ (function(module, exports) {
|
|
27258
27258
|
|
|
@@ -27310,736 +27310,759 @@ module.exports = require("lodash/get");
|
|
|
27310
27310
|
/* unused harmony export getSecond */
|
|
27311
27311
|
/* unused harmony export getWeekday */
|
|
27312
27312
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
|
|
27313
|
-
|
|
27314
|
-
|
|
27313
|
+
/* Modified from https://github.com/taylorhakes/fecha
|
|
27314
|
+
*
|
|
27315
|
+
* The MIT License (MIT)
|
|
27316
|
+
*
|
|
27317
|
+
* Copyright (c) 2015 Taylor Hakes
|
|
27318
|
+
*
|
|
27319
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
27320
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
27321
|
+
* in the Software without restriction, including without limitation the rights
|
|
27322
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
27323
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
27324
|
+
* furnished to do so, subject to the following conditions:
|
|
27325
|
+
*
|
|
27326
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
27327
|
+
* copies or substantial portions of the Software.
|
|
27328
|
+
*
|
|
27329
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
27330
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27331
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27332
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27333
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27334
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27335
|
+
* SOFTWARE.
|
|
27336
|
+
*/
|
|
27337
|
+
|
|
27338
|
+
/*eslint-disable*/
|
|
27339
|
+
// 把 YYYY-MM-DD 改成了 yyyy-MM-dd
|
|
27340
|
+
|
|
27341
|
+
|
|
27315
27342
|
/**
|
|
27316
27343
|
* Parse or format dates
|
|
27317
27344
|
* @class fecha
|
|
27318
|
-
*/
|
|
27319
|
-
|
|
27320
|
-
|
|
27321
|
-
|
|
27322
|
-
|
|
27323
|
-
|
|
27324
|
-
|
|
27325
|
-
|
|
27326
|
-
|
|
27327
|
-
|
|
27328
|
-
function regexEscape(str) {
|
|
27329
|
-
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
27330
|
-
}
|
|
27331
|
-
|
|
27332
|
-
function shorten(arr, sLen) {
|
|
27333
|
-
|
|
27334
|
-
for (
|
|
27335
|
-
newArr.push(arr[i].substr(0, sLen));
|
|
27336
|
-
}
|
|
27337
|
-
return newArr;
|
|
27338
|
-
}
|
|
27339
|
-
|
|
27340
|
-
function monthUpdate() {
|
|
27341
|
-
return function (d, v) {
|
|
27342
|
-
|
|
27343
|
-
if (~index) {
|
|
27344
|
-
d.month = index;
|
|
27345
|
-
}
|
|
27346
|
-
};
|
|
27347
|
-
}
|
|
27348
|
-
|
|
27349
|
-
function pad(val, len) {
|
|
27350
|
-
val = String(val);
|
|
27351
|
-
len = len || 2;
|
|
27352
|
-
while (val.length < len) {
|
|
27353
|
-
val = '0' + val;
|
|
27354
|
-
}
|
|
27355
|
-
return val;
|
|
27356
|
-
}
|
|
27357
|
-
|
|
27358
|
-
// 直接使用中文日期名称常量
|
|
27359
|
-
|
|
27360
|
-
|
|
27361
|
-
|
|
27362
|
-
|
|
27363
|
-
|
|
27364
|
-
|
|
27365
|
-
return D + '日';
|
|
27366
|
-
};
|
|
27367
|
-
|
|
27368
|
-
|
|
27369
|
-
D: function
|
|
27370
|
-
return dateObj.getDay();
|
|
27371
|
-
},
|
|
27372
|
-
DD: function
|
|
27373
|
-
return pad(dateObj.getDay());
|
|
27374
|
-
},
|
|
27375
|
-
Do: function
|
|
27376
|
-
return DoFn(dateObj.getDate());
|
|
27377
|
-
},
|
|
27378
|
-
d: function
|
|
27379
|
-
return dateObj.getDate();
|
|
27380
|
-
},
|
|
27381
|
-
dd: function
|
|
27382
|
-
return pad(dateObj.getDate());
|
|
27383
|
-
},
|
|
27384
|
-
ddd: function
|
|
27385
|
-
return dayNamesShort[dateObj.getDay()];
|
|
27386
|
-
},
|
|
27387
|
-
dddd: function
|
|
27388
|
-
return dayNames[dateObj.getDay()];
|
|
27389
|
-
},
|
|
27390
|
-
M: function
|
|
27391
|
-
return dateObj.getMonth() + 1;
|
|
27392
|
-
},
|
|
27393
|
-
MM: function
|
|
27394
|
-
return pad(dateObj.getMonth() + 1);
|
|
27395
|
-
},
|
|
27396
|
-
MMM: function
|
|
27397
|
-
return monthNamesShort[dateObj.getMonth()];
|
|
27398
|
-
},
|
|
27399
|
-
MMMM: function
|
|
27400
|
-
return monthNames[dateObj.getMonth()];
|
|
27401
|
-
},
|
|
27402
|
-
yy: function
|
|
27403
|
-
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
27404
|
-
},
|
|
27405
|
-
yyyy: function
|
|
27406
|
-
return pad(dateObj.getFullYear(), 4);
|
|
27407
|
-
},
|
|
27408
|
-
h: function
|
|
27409
|
-
return dateObj.getHours() % 12 || 12;
|
|
27410
|
-
},
|
|
27411
|
-
hh: function
|
|
27412
|
-
return pad(dateObj.getHours() % 12 || 12);
|
|
27413
|
-
},
|
|
27414
|
-
H: function
|
|
27415
|
-
return dateObj.getHours();
|
|
27416
|
-
},
|
|
27417
|
-
HH: function
|
|
27418
|
-
return pad(dateObj.getHours());
|
|
27419
|
-
},
|
|
27420
|
-
m: function
|
|
27421
|
-
return dateObj.getMinutes();
|
|
27422
|
-
},
|
|
27423
|
-
mm: function
|
|
27424
|
-
return pad(dateObj.getMinutes());
|
|
27425
|
-
},
|
|
27426
|
-
s: function
|
|
27427
|
-
return dateObj.getSeconds();
|
|
27428
|
-
},
|
|
27429
|
-
ss: function
|
|
27430
|
-
return pad(dateObj.getSeconds());
|
|
27431
|
-
},
|
|
27432
|
-
S: function
|
|
27433
|
-
return Math.round(dateObj.getMilliseconds() / 100);
|
|
27434
|
-
},
|
|
27435
|
-
SS: function
|
|
27436
|
-
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
27437
|
-
},
|
|
27438
|
-
SSS: function
|
|
27439
|
-
return pad(dateObj.getMilliseconds(), 3);
|
|
27440
|
-
},
|
|
27441
|
-
a: function
|
|
27442
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
27443
|
-
},
|
|
27444
|
-
A: function
|
|
27445
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
27446
|
-
},
|
|
27447
|
-
ZZ: function
|
|
27448
|
-
|
|
27449
|
-
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
27450
|
-
}
|
|
27451
|
-
};
|
|
27452
|
-
|
|
27453
|
-
|
|
27454
|
-
d: [twoDigits, function (d, v) {
|
|
27455
|
-
d.day = v;
|
|
27456
|
-
}],
|
|
27457
|
-
Do: [twoDigits + word, function (d, v) {
|
|
27458
|
-
d.day = parseInt(v, 10);
|
|
27459
|
-
}],
|
|
27460
|
-
M: [twoDigits, function (d, v) {
|
|
27461
|
-
d.month = v - 1;
|
|
27462
|
-
}],
|
|
27463
|
-
yy: [twoDigits, function (d, v) {
|
|
27464
|
-
|
|
27465
|
-
|
|
27466
|
-
|
|
27467
|
-
|
|
27468
|
-
|
|
27469
|
-
|
|
27470
|
-
|
|
27471
|
-
|
|
27472
|
-
|
|
27473
|
-
|
|
27474
|
-
|
|
27475
|
-
|
|
27476
|
-
|
|
27477
|
-
|
|
27478
|
-
|
|
27479
|
-
|
|
27480
|
-
|
|
27481
|
-
|
|
27482
|
-
}
|
|
27483
|
-
|
|
27484
|
-
|
|
27485
|
-
|
|
27486
|
-
|
|
27487
|
-
|
|
27488
|
-
|
|
27489
|
-
|
|
27490
|
-
|
|
27491
|
-
|
|
27492
|
-
|
|
27493
|
-
|
|
27494
|
-
|
|
27495
|
-
|
|
27496
|
-
|
|
27497
|
-
|
|
27498
|
-
|
|
27499
|
-
|
|
27500
|
-
|
|
27501
|
-
|
|
27502
|
-
|
|
27503
|
-
|
|
27504
|
-
|
|
27505
|
-
|
|
27506
|
-
|
|
27507
|
-
|
|
27508
|
-
|
|
27509
|
-
|
|
27510
|
-
|
|
27511
|
-
parseFlags.
|
|
27512
|
-
parseFlags.
|
|
27513
|
-
parseFlags.
|
|
27514
|
-
parseFlags.
|
|
27515
|
-
parseFlags.
|
|
27516
|
-
parseFlags.
|
|
27517
|
-
|
|
27518
|
-
|
|
27519
|
-
|
|
27520
|
-
|
|
27521
|
-
|
|
27522
|
-
|
|
27523
|
-
|
|
27524
|
-
|
|
27525
|
-
|
|
27526
|
-
|
|
27527
|
-
|
|
27528
|
-
|
|
27529
|
-
|
|
27530
|
-
|
|
27531
|
-
|
|
27345
|
+
*/
|
|
27346
|
+
const fecha = {};
|
|
27347
|
+
const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
|
|
27348
|
+
const twoDigits = '\\d\\d?';
|
|
27349
|
+
const threeDigits = '\\d{3}';
|
|
27350
|
+
const fourDigits = '\\d{4}';
|
|
27351
|
+
const word = '[^\\s]+';
|
|
27352
|
+
const literal = /\[([^]*?)\]/gm;
|
|
27353
|
+
const noop = function () {};
|
|
27354
|
+
|
|
27355
|
+
function regexEscape(str) {
|
|
27356
|
+
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
27357
|
+
}
|
|
27358
|
+
|
|
27359
|
+
function shorten(arr, sLen) {
|
|
27360
|
+
const newArr = [];
|
|
27361
|
+
for (let i = 0, len = arr.length; i < len; i++) {
|
|
27362
|
+
newArr.push(arr[i].substr(0, sLen));
|
|
27363
|
+
}
|
|
27364
|
+
return newArr;
|
|
27365
|
+
}
|
|
27366
|
+
|
|
27367
|
+
function monthUpdate() {
|
|
27368
|
+
return function (d, v) {
|
|
27369
|
+
const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
|
|
27370
|
+
if (~index) {
|
|
27371
|
+
d.month = index;
|
|
27372
|
+
}
|
|
27373
|
+
};
|
|
27374
|
+
}
|
|
27375
|
+
|
|
27376
|
+
function pad(val, len) {
|
|
27377
|
+
val = String(val);
|
|
27378
|
+
len = len || 2;
|
|
27379
|
+
while (val.length < len) {
|
|
27380
|
+
val = '0' + val;
|
|
27381
|
+
}
|
|
27382
|
+
return val;
|
|
27383
|
+
}
|
|
27384
|
+
|
|
27385
|
+
// 直接使用中文日期名称常量
|
|
27386
|
+
const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
27387
|
+
const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
|
|
27388
|
+
const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
|
|
27389
|
+
const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
|
|
27390
|
+
const amPm = ['上午', '下午'];
|
|
27391
|
+
const DoFn = function DoFn(D) {
|
|
27392
|
+
return D + '日';
|
|
27393
|
+
};
|
|
27394
|
+
|
|
27395
|
+
const formatFlags = {
|
|
27396
|
+
D: function(dateObj) {
|
|
27397
|
+
return dateObj.getDay();
|
|
27398
|
+
},
|
|
27399
|
+
DD: function(dateObj) {
|
|
27400
|
+
return pad(dateObj.getDay());
|
|
27401
|
+
},
|
|
27402
|
+
Do: function(dateObj) {
|
|
27403
|
+
return DoFn(dateObj.getDate());
|
|
27404
|
+
},
|
|
27405
|
+
d: function(dateObj) {
|
|
27406
|
+
return dateObj.getDate();
|
|
27407
|
+
},
|
|
27408
|
+
dd: function(dateObj) {
|
|
27409
|
+
return pad(dateObj.getDate());
|
|
27410
|
+
},
|
|
27411
|
+
ddd: function(dateObj) {
|
|
27412
|
+
return dayNamesShort[dateObj.getDay()];
|
|
27413
|
+
},
|
|
27414
|
+
dddd: function(dateObj) {
|
|
27415
|
+
return dayNames[dateObj.getDay()];
|
|
27416
|
+
},
|
|
27417
|
+
M: function(dateObj) {
|
|
27418
|
+
return dateObj.getMonth() + 1;
|
|
27419
|
+
},
|
|
27420
|
+
MM: function(dateObj) {
|
|
27421
|
+
return pad(dateObj.getMonth() + 1);
|
|
27422
|
+
},
|
|
27423
|
+
MMM: function(dateObj) {
|
|
27424
|
+
return monthNamesShort[dateObj.getMonth()];
|
|
27425
|
+
},
|
|
27426
|
+
MMMM: function(dateObj) {
|
|
27427
|
+
return monthNames[dateObj.getMonth()];
|
|
27428
|
+
},
|
|
27429
|
+
yy: function(dateObj) {
|
|
27430
|
+
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
27431
|
+
},
|
|
27432
|
+
yyyy: function(dateObj) {
|
|
27433
|
+
return pad(dateObj.getFullYear(), 4);
|
|
27434
|
+
},
|
|
27435
|
+
h: function(dateObj) {
|
|
27436
|
+
return dateObj.getHours() % 12 || 12;
|
|
27437
|
+
},
|
|
27438
|
+
hh: function(dateObj) {
|
|
27439
|
+
return pad(dateObj.getHours() % 12 || 12);
|
|
27440
|
+
},
|
|
27441
|
+
H: function(dateObj) {
|
|
27442
|
+
return dateObj.getHours();
|
|
27443
|
+
},
|
|
27444
|
+
HH: function(dateObj) {
|
|
27445
|
+
return pad(dateObj.getHours());
|
|
27446
|
+
},
|
|
27447
|
+
m: function(dateObj) {
|
|
27448
|
+
return dateObj.getMinutes();
|
|
27449
|
+
},
|
|
27450
|
+
mm: function(dateObj) {
|
|
27451
|
+
return pad(dateObj.getMinutes());
|
|
27452
|
+
},
|
|
27453
|
+
s: function(dateObj) {
|
|
27454
|
+
return dateObj.getSeconds();
|
|
27455
|
+
},
|
|
27456
|
+
ss: function(dateObj) {
|
|
27457
|
+
return pad(dateObj.getSeconds());
|
|
27458
|
+
},
|
|
27459
|
+
S: function(dateObj) {
|
|
27460
|
+
return Math.round(dateObj.getMilliseconds() / 100);
|
|
27461
|
+
},
|
|
27462
|
+
SS: function(dateObj) {
|
|
27463
|
+
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
27464
|
+
},
|
|
27465
|
+
SSS: function(dateObj) {
|
|
27466
|
+
return pad(dateObj.getMilliseconds(), 3);
|
|
27467
|
+
},
|
|
27468
|
+
a: function(dateObj) {
|
|
27469
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
27470
|
+
},
|
|
27471
|
+
A: function(dateObj) {
|
|
27472
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
27473
|
+
},
|
|
27474
|
+
ZZ: function(dateObj) {
|
|
27475
|
+
const o = dateObj.getTimezoneOffset();
|
|
27476
|
+
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
27477
|
+
}
|
|
27478
|
+
};
|
|
27479
|
+
|
|
27480
|
+
const parseFlags = {
|
|
27481
|
+
d: [twoDigits, function (d, v) {
|
|
27482
|
+
d.day = v;
|
|
27483
|
+
}],
|
|
27484
|
+
Do: [twoDigits + word, function (d, v) {
|
|
27485
|
+
d.day = parseInt(v, 10);
|
|
27486
|
+
}],
|
|
27487
|
+
M: [twoDigits, function (d, v) {
|
|
27488
|
+
d.month = v - 1;
|
|
27489
|
+
}],
|
|
27490
|
+
yy: [twoDigits, function (d, v) {
|
|
27491
|
+
const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
|
|
27492
|
+
d.year = '' + (v > 68 ? cent - 1 : cent) + v;
|
|
27493
|
+
}],
|
|
27494
|
+
h: [twoDigits, function (d, v) {
|
|
27495
|
+
d.hour = v;
|
|
27496
|
+
}],
|
|
27497
|
+
m: [twoDigits, function (d, v) {
|
|
27498
|
+
d.minute = v;
|
|
27499
|
+
}],
|
|
27500
|
+
s: [twoDigits, function (d, v) {
|
|
27501
|
+
d.second = v;
|
|
27502
|
+
}],
|
|
27503
|
+
yyyy: [fourDigits, function (d, v) {
|
|
27504
|
+
d.year = v;
|
|
27505
|
+
}],
|
|
27506
|
+
S: ['\\d', function (d, v) {
|
|
27507
|
+
d.millisecond = v * 100;
|
|
27508
|
+
}],
|
|
27509
|
+
SS: ['\\d{2}', function (d, v) {
|
|
27510
|
+
d.millisecond = v * 10;
|
|
27511
|
+
}],
|
|
27512
|
+
SSS: [threeDigits, function (d, v) {
|
|
27513
|
+
d.millisecond = v;
|
|
27514
|
+
}],
|
|
27515
|
+
D: [twoDigits, noop],
|
|
27516
|
+
ddd: [word, noop],
|
|
27517
|
+
MMM: [word, monthUpdate('monthNamesShort')],
|
|
27518
|
+
MMMM: [word, monthUpdate('monthNames')],
|
|
27519
|
+
a: [word, function (d, v) {
|
|
27520
|
+
const val = v.toLowerCase();
|
|
27521
|
+
if (val === '上午') {
|
|
27522
|
+
d.isPm = false;
|
|
27523
|
+
} else if (val === '下午') {
|
|
27524
|
+
d.isPm = true;
|
|
27525
|
+
}
|
|
27526
|
+
}],
|
|
27527
|
+
ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
|
|
27528
|
+
let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
|
|
27529
|
+
|
|
27530
|
+
if (parts) {
|
|
27531
|
+
minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
|
|
27532
|
+
d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
|
|
27533
|
+
}
|
|
27534
|
+
}]
|
|
27535
|
+
};
|
|
27536
|
+
parseFlags.dd = parseFlags.d;
|
|
27537
|
+
parseFlags.dddd = parseFlags.ddd;
|
|
27538
|
+
parseFlags.DD = parseFlags.D;
|
|
27539
|
+
parseFlags.mm = parseFlags.m;
|
|
27540
|
+
parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
|
|
27541
|
+
parseFlags.MM = parseFlags.M;
|
|
27542
|
+
parseFlags.ss = parseFlags.s;
|
|
27543
|
+
parseFlags.A = parseFlags.a;
|
|
27544
|
+
|
|
27545
|
+
|
|
27546
|
+
// Some common format strings
|
|
27547
|
+
fecha.masks = {
|
|
27548
|
+
default: 'ddd MMM dd yyyy HH:mm:ss',
|
|
27549
|
+
shortDate: 'M/D/yy',
|
|
27550
|
+
mediumDate: 'MMM d, yyyy',
|
|
27551
|
+
longDate: 'MMMM d, yyyy',
|
|
27552
|
+
fullDate: 'dddd, MMMM d, yyyy',
|
|
27553
|
+
shortTime: 'HH:mm',
|
|
27554
|
+
mediumTime: 'HH:mm:ss',
|
|
27555
|
+
longTime: 'HH:mm:ss.SSS'
|
|
27556
|
+
};
|
|
27557
|
+
|
|
27532
27558
|
/***
|
|
27533
27559
|
* Format a date
|
|
27534
27560
|
* @method format
|
|
27535
27561
|
* @param {Date|number} dateObj
|
|
27536
27562
|
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
|
|
27537
|
-
*/
|
|
27538
|
-
fecha.format = function (dateObj, mask) {
|
|
27539
|
-
if (typeof dateObj === 'number') {
|
|
27540
|
-
dateObj = new Date(dateObj);
|
|
27541
|
-
}
|
|
27542
|
-
|
|
27543
|
-
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
27544
|
-
throw new Error('Invalid Date in fecha.format');
|
|
27545
|
-
}
|
|
27546
|
-
|
|
27547
|
-
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
27548
|
-
|
|
27549
|
-
|
|
27550
|
-
|
|
27551
|
-
// Make literals inactive by replacing them with ??
|
|
27552
|
-
mask = mask.replace(literal, function
|
|
27553
|
-
literals.push($1);
|
|
27554
|
-
return '@@@';
|
|
27555
|
-
});
|
|
27556
|
-
// Apply formatting rules
|
|
27557
|
-
mask = mask.replace(token, function ($0) {
|
|
27558
|
-
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
27559
|
-
});
|
|
27560
|
-
// Inline literal values back into the formatted value
|
|
27561
|
-
return mask.replace(/@@@/g, function
|
|
27562
|
-
return literals.shift();
|
|
27563
|
-
});
|
|
27564
|
-
};
|
|
27565
|
-
|
|
27563
|
+
*/
|
|
27564
|
+
fecha.format = function (dateObj, mask) {
|
|
27565
|
+
if (typeof dateObj === 'number') {
|
|
27566
|
+
dateObj = new Date(dateObj);
|
|
27567
|
+
}
|
|
27568
|
+
|
|
27569
|
+
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
27570
|
+
throw new Error('Invalid Date in fecha.format');
|
|
27571
|
+
}
|
|
27572
|
+
|
|
27573
|
+
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
27574
|
+
|
|
27575
|
+
const literals = [];
|
|
27576
|
+
|
|
27577
|
+
// Make literals inactive by replacing them with ??
|
|
27578
|
+
mask = mask.replace(literal, function($0, $1) {
|
|
27579
|
+
literals.push($1);
|
|
27580
|
+
return '@@@';
|
|
27581
|
+
});
|
|
27582
|
+
// Apply formatting rules
|
|
27583
|
+
mask = mask.replace(token, function ($0) {
|
|
27584
|
+
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
27585
|
+
});
|
|
27586
|
+
// Inline literal values back into the formatted value
|
|
27587
|
+
return mask.replace(/@@@/g, function() {
|
|
27588
|
+
return literals.shift();
|
|
27589
|
+
});
|
|
27590
|
+
};
|
|
27591
|
+
|
|
27566
27592
|
/**
|
|
27567
27593
|
* Parse a date string into an object, changes - into /
|
|
27568
27594
|
* @method parse
|
|
27569
27595
|
* @param {string} dateStr Date string
|
|
27570
27596
|
* @param {string} format Date parse format
|
|
27571
27597
|
* @returns {Date|boolean}
|
|
27572
|
-
*/
|
|
27573
|
-
fecha.parse = function (dateStr, format) {
|
|
27574
|
-
if (typeof format !== 'string') {
|
|
27575
|
-
throw new Error('Invalid format in fecha.parse');
|
|
27576
|
-
}
|
|
27577
|
-
|
|
27578
|
-
format = fecha.masks[format] || format;
|
|
27579
|
-
|
|
27580
|
-
// Avoid regular expression denial of service, fail early for really long strings
|
|
27581
|
-
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
27582
|
-
if (dateStr.length > 1000) {
|
|
27583
|
-
return null;
|
|
27584
|
-
}
|
|
27585
|
-
|
|
27586
|
-
|
|
27587
|
-
|
|
27588
|
-
|
|
27589
|
-
format = format.replace(literal, function
|
|
27590
|
-
literals.push($1);
|
|
27591
|
-
return '@@@';
|
|
27592
|
-
});
|
|
27593
|
-
|
|
27594
|
-
if (parseFlags[$0]) {
|
|
27595
|
-
|
|
27596
|
-
parseInfo.push(info[1]);
|
|
27597
|
-
return '(' + info[0] + ')';
|
|
27598
|
-
}
|
|
27599
|
-
|
|
27600
|
-
return $0;
|
|
27601
|
-
});
|
|
27602
|
-
newFormat = newFormat.replace(/@@@/g, function
|
|
27603
|
-
return literals.shift();
|
|
27604
|
-
});
|
|
27605
|
-
|
|
27606
|
-
if (!matches) {
|
|
27607
|
-
return null;
|
|
27608
|
-
}
|
|
27609
|
-
|
|
27610
|
-
for (
|
|
27611
|
-
parseInfo[i - 1](dateInfo, matches[i]);
|
|
27612
|
-
}
|
|
27613
|
-
|
|
27614
|
-
|
|
27615
|
-
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
27616
|
-
dateInfo.hour = +dateInfo.hour + 12;
|
|
27617
|
-
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
27618
|
-
dateInfo.hour = 0;
|
|
27619
|
-
}
|
|
27620
|
-
|
|
27621
|
-
|
|
27622
|
-
if (dateInfo.timezoneOffset != null) {
|
|
27623
|
-
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
27624
|
-
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
27625
|
-
|
|
27626
|
-
|
|
27627
|
-
|
|
27628
|
-
|
|
27629
|
-
}
|
|
27630
|
-
|
|
27631
|
-
|
|
27632
|
-
|
|
27633
|
-
|
|
27634
|
-
|
|
27635
|
-
|
|
27636
|
-
|
|
27637
|
-
|
|
27638
|
-
|
|
27639
|
-
|
|
27640
|
-
|
|
27641
|
-
}
|
|
27642
|
-
|
|
27643
|
-
|
|
27644
|
-
|
|
27645
|
-
|
|
27646
|
-
|
|
27647
|
-
|
|
27648
|
-
|
|
27649
|
-
|
|
27650
|
-
|
|
27651
|
-
|
|
27652
|
-
|
|
27653
|
-
|
|
27654
|
-
|
|
27655
|
-
|
|
27656
|
-
|
|
27657
|
-
|
|
27658
|
-
|
|
27659
|
-
|
|
27660
|
-
if (
|
|
27661
|
-
return
|
|
27662
|
-
|
|
27663
|
-
|
|
27664
|
-
|
|
27665
|
-
|
|
27666
|
-
|
|
27667
|
-
|
|
27668
|
-
|
|
27669
|
-
|
|
27670
|
-
|
|
27671
|
-
// 处理多种输入类型
|
|
27672
|
-
if (!date) return '';
|
|
27673
|
-
|
|
27674
|
-
// 如果是时间戳,转成日期对象
|
|
27675
|
-
if (typeof date === 'number') {
|
|
27676
|
-
date = new Date(date);
|
|
27677
|
-
}
|
|
27678
|
-
// 如果是字符串,转成日期对象
|
|
27679
|
-
if (typeof date === 'string') {
|
|
27680
|
-
date = new Date(date);
|
|
27681
|
-
}
|
|
27682
|
-
|
|
27683
|
-
// 调用toDate进一步验证和转换
|
|
27684
|
-
date = toDate(date);
|
|
27685
|
-
if (!date) return '';
|
|
27686
|
-
|
|
27687
|
-
// 兼容大写和小写的格式标记
|
|
27688
|
-
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
27689
|
-
|
|
27690
|
-
|
|
27691
|
-
|
|
27692
|
-
|
|
27693
|
-
|
|
27694
|
-
|
|
27695
|
-
|
|
27696
|
-
|
|
27697
|
-
|
|
27698
|
-
|
|
27699
|
-
|
|
27700
|
-
|
|
27701
|
-
|
|
27702
|
-
|
|
27703
|
-
|
|
27704
|
-
|
|
27705
|
-
|
|
27706
|
-
|
|
27707
|
-
|
|
27708
|
-
|
|
27709
|
-
return
|
|
27710
|
-
}
|
|
27711
|
-
|
|
27712
|
-
|
|
27713
|
-
|
|
27714
|
-
|
|
27715
|
-
|
|
27716
|
-
|
|
27717
|
-
|
|
27718
|
-
|
|
27719
|
-
|
|
27720
|
-
|
|
27721
|
-
|
|
27722
|
-
|
|
27723
|
-
|
|
27724
|
-
|
|
27725
|
-
|
|
27726
|
-
|
|
27727
|
-
|
|
27728
|
-
|
|
27729
|
-
//
|
|
27730
|
-
|
|
27731
|
-
|
|
27732
|
-
|
|
27733
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
27734
|
-
};
|
|
27735
|
-
|
|
27736
|
-
|
|
27737
|
-
|
|
27738
|
-
|
|
27739
|
-
|
|
27740
|
-
|
|
27741
|
-
|
|
27742
|
-
|
|
27743
|
-
|
|
27744
|
-
|
|
27745
|
-
|
|
27746
|
-
|
|
27747
|
-
return prevDate(result,
|
|
27748
|
-
}
|
|
27749
|
-
|
|
27750
|
-
|
|
27751
|
-
|
|
27752
|
-
|
|
27753
|
-
|
|
27754
|
-
|
|
27755
|
-
|
|
27756
|
-
|
|
27757
|
-
|
|
27758
|
-
|
|
27759
|
-
|
|
27760
|
-
|
|
27761
|
-
|
|
27762
|
-
|
|
27763
|
-
|
|
27764
|
-
|
|
27765
|
-
|
|
27766
|
-
|
|
27767
|
-
//
|
|
27768
|
-
|
|
27769
|
-
//
|
|
27770
|
-
|
|
27771
|
-
//
|
|
27772
|
-
|
|
27773
|
-
|
|
27774
|
-
|
|
27775
|
-
|
|
27776
|
-
|
|
27777
|
-
|
|
27778
|
-
|
|
27779
|
-
|
|
27780
|
-
|
|
27781
|
-
|
|
27782
|
-
|
|
27783
|
-
|
|
27784
|
-
|
|
27785
|
-
|
|
27786
|
-
|
|
27787
|
-
|
|
27788
|
-
|
|
27789
|
-
|
|
27790
|
-
for (
|
|
27791
|
-
hours[i] =
|
|
27792
|
-
}
|
|
27793
|
-
}
|
|
27794
|
-
|
|
27795
|
-
|
|
27796
|
-
|
|
27797
|
-
|
|
27798
|
-
|
|
27799
|
-
return
|
|
27800
|
-
|
|
27801
|
-
|
|
27802
|
-
|
|
27803
|
-
|
|
27804
|
-
|
|
27805
|
-
|
|
27806
|
-
|
|
27807
|
-
|
|
27808
|
-
|
|
27809
|
-
|
|
27810
|
-
};
|
|
27811
|
-
|
|
27812
|
-
|
|
27813
|
-
|
|
27814
|
-
|
|
27815
|
-
|
|
27816
|
-
|
|
27817
|
-
|
|
27818
|
-
|
|
27819
|
-
|
|
27820
|
-
|
|
27821
|
-
|
|
27822
|
-
|
|
27823
|
-
|
|
27824
|
-
|
|
27825
|
-
|
|
27826
|
-
|
|
27827
|
-
|
|
27828
|
-
|
|
27829
|
-
|
|
27830
|
-
|
|
27831
|
-
|
|
27832
|
-
|
|
27833
|
-
|
|
27834
|
-
|
|
27835
|
-
|
|
27836
|
-
|
|
27837
|
-
|
|
27838
|
-
|
|
27839
|
-
|
|
27840
|
-
|
|
27841
|
-
|
|
27842
|
-
|
|
27843
|
-
|
|
27844
|
-
|
|
27845
|
-
|
|
27846
|
-
|
|
27847
|
-
}
|
|
27848
|
-
|
|
27849
|
-
|
|
27850
|
-
|
|
27851
|
-
|
|
27852
|
-
|
|
27853
|
-
|
|
27854
|
-
|
|
27855
|
-
return
|
|
27856
|
-
|
|
27857
|
-
|
|
27858
|
-
|
|
27859
|
-
|
|
27860
|
-
|
|
27861
|
-
|
|
27862
|
-
|
|
27863
|
-
|
|
27864
|
-
|
|
27865
|
-
|
|
27866
|
-
|
|
27867
|
-
|
|
27868
|
-
|
|
27869
|
-
|
|
27870
|
-
|
|
27871
|
-
|
|
27872
|
-
|
|
27873
|
-
|
|
27874
|
-
|
|
27875
|
-
|
|
27876
|
-
|
|
27877
|
-
|
|
27878
|
-
|
|
27879
|
-
|
|
27880
|
-
|
|
27881
|
-
|
|
27882
|
-
|
|
27883
|
-
|
|
27884
|
-
|
|
27885
|
-
|
|
27886
|
-
|
|
27887
|
-
|
|
27888
|
-
|
|
27889
|
-
|
|
27890
|
-
|
|
27891
|
-
|
|
27892
|
-
|
|
27893
|
-
|
|
27894
|
-
|
|
27895
|
-
|
|
27896
|
-
|
|
27897
|
-
|
|
27898
|
-
|
|
27899
|
-
|
|
27900
|
-
|
|
27901
|
-
|
|
27902
|
-
|
|
27903
|
-
|
|
27904
|
-
|
|
27905
|
-
|
|
27906
|
-
|
|
27907
|
-
|
|
27908
|
-
|
|
27909
|
-
|
|
27910
|
-
|
|
27911
|
-
|
|
27912
|
-
|
|
27913
|
-
|
|
27914
|
-
|
|
27915
|
-
return
|
|
27916
|
-
|
|
27917
|
-
|
|
27918
|
-
|
|
27919
|
-
|
|
27920
|
-
|
|
27921
|
-
|
|
27922
|
-
|
|
27923
|
-
|
|
27924
|
-
|
|
27925
|
-
|
|
27926
|
-
|
|
27927
|
-
|
|
27928
|
-
|
|
27929
|
-
|
|
27930
|
-
|
|
27931
|
-
|
|
27932
|
-
|
|
27933
|
-
|
|
27934
|
-
|
|
27935
|
-
|
|
27936
|
-
|
|
27937
|
-
|
|
27938
|
-
|
|
27939
|
-
|
|
27940
|
-
|
|
27941
|
-
|
|
27942
|
-
|
|
27943
|
-
}
|
|
27944
|
-
|
|
27945
|
-
|
|
27946
|
-
|
|
27947
|
-
|
|
27948
|
-
|
|
27949
|
-
|
|
27950
|
-
|
|
27951
|
-
};
|
|
27952
|
-
|
|
27953
|
-
|
|
27954
|
-
return
|
|
27955
|
-
};
|
|
27956
|
-
|
|
27957
|
-
var extractTimeFormat = function extractTimeFormat(format) {
|
|
27958
|
-
return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
|
|
27959
|
-
};
|
|
27960
|
-
|
|
27961
|
-
var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
|
|
27962
|
-
return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
|
|
27963
|
-
};
|
|
27964
|
-
|
|
27598
|
+
*/
|
|
27599
|
+
fecha.parse = function (dateStr, format) {
|
|
27600
|
+
if (typeof format !== 'string') {
|
|
27601
|
+
throw new Error('Invalid format in fecha.parse');
|
|
27602
|
+
}
|
|
27603
|
+
|
|
27604
|
+
format = fecha.masks[format] || format;
|
|
27605
|
+
|
|
27606
|
+
// Avoid regular expression denial of service, fail early for really long strings
|
|
27607
|
+
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
27608
|
+
if (dateStr.length > 1000) {
|
|
27609
|
+
return null;
|
|
27610
|
+
}
|
|
27611
|
+
|
|
27612
|
+
const dateInfo = {};
|
|
27613
|
+
const parseInfo = [];
|
|
27614
|
+
const literals = [];
|
|
27615
|
+
format = format.replace(literal, function($0, $1) {
|
|
27616
|
+
literals.push($1);
|
|
27617
|
+
return '@@@';
|
|
27618
|
+
});
|
|
27619
|
+
let newFormat = regexEscape(format).replace(token, function ($0) {
|
|
27620
|
+
if (parseFlags[$0]) {
|
|
27621
|
+
const info = parseFlags[$0];
|
|
27622
|
+
parseInfo.push(info[1]);
|
|
27623
|
+
return '(' + info[0] + ')';
|
|
27624
|
+
}
|
|
27625
|
+
|
|
27626
|
+
return $0;
|
|
27627
|
+
});
|
|
27628
|
+
newFormat = newFormat.replace(/@@@/g, function() {
|
|
27629
|
+
return literals.shift();
|
|
27630
|
+
});
|
|
27631
|
+
const matches = dateStr.match(new RegExp(newFormat, 'i'));
|
|
27632
|
+
if (!matches) {
|
|
27633
|
+
return null;
|
|
27634
|
+
}
|
|
27635
|
+
|
|
27636
|
+
for (let i = 1; i < matches.length; i++) {
|
|
27637
|
+
parseInfo[i - 1](dateInfo, matches[i]);
|
|
27638
|
+
}
|
|
27639
|
+
|
|
27640
|
+
const today = new Date();
|
|
27641
|
+
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
27642
|
+
dateInfo.hour = +dateInfo.hour + 12;
|
|
27643
|
+
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
27644
|
+
dateInfo.hour = 0;
|
|
27645
|
+
}
|
|
27646
|
+
|
|
27647
|
+
let date;
|
|
27648
|
+
if (dateInfo.timezoneOffset != null) {
|
|
27649
|
+
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
27650
|
+
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
27651
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
|
|
27652
|
+
} else {
|
|
27653
|
+
date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
27654
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
|
|
27655
|
+
}
|
|
27656
|
+
return date;
|
|
27657
|
+
};
|
|
27658
|
+
|
|
27659
|
+
// 导出fecha对象
|
|
27660
|
+
|
|
27661
|
+
|
|
27662
|
+
// 以下是从date-util.js合并的函数
|
|
27663
|
+
const newArray = function(start, end) {
|
|
27664
|
+
let result = [];
|
|
27665
|
+
for (let i = start; i <= end; i++) {
|
|
27666
|
+
result.push(i);
|
|
27667
|
+
}
|
|
27668
|
+
return result;
|
|
27669
|
+
};
|
|
27670
|
+
|
|
27671
|
+
const getSettings = () => {
|
|
27672
|
+
return {
|
|
27673
|
+
dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
|
|
27674
|
+
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
|
|
27675
|
+
monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
27676
|
+
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
|
27677
|
+
amPm: ['上午', '下午']
|
|
27678
|
+
};
|
|
27679
|
+
};
|
|
27680
|
+
|
|
27681
|
+
const toDate = function(date) {
|
|
27682
|
+
return isDate(date) ? new Date(date) : null;
|
|
27683
|
+
};
|
|
27684
|
+
|
|
27685
|
+
const isDate = function(date) {
|
|
27686
|
+
if (date === null || date === undefined) return false;
|
|
27687
|
+
if (isNaN(new Date(date).getTime())) return false;
|
|
27688
|
+
if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
|
|
27689
|
+
return true;
|
|
27690
|
+
};
|
|
27691
|
+
|
|
27692
|
+
const isDateObject = function(val) {
|
|
27693
|
+
return val instanceof Date;
|
|
27694
|
+
};
|
|
27695
|
+
|
|
27696
|
+
const formatDate = function (date, format = 'yyyy-MM-dd') {
|
|
27697
|
+
// 处理多种输入类型
|
|
27698
|
+
if (!date) return '';
|
|
27699
|
+
|
|
27700
|
+
// 如果是时间戳,转成日期对象
|
|
27701
|
+
if (typeof date === 'number') {
|
|
27702
|
+
date = new Date(date);
|
|
27703
|
+
}
|
|
27704
|
+
// 如果是字符串,转成日期对象
|
|
27705
|
+
if (typeof date === 'string') {
|
|
27706
|
+
date = new Date(date);
|
|
27707
|
+
}
|
|
27708
|
+
|
|
27709
|
+
// 调用toDate进一步验证和转换
|
|
27710
|
+
date = toDate(date);
|
|
27711
|
+
if (!date) return '';
|
|
27712
|
+
|
|
27713
|
+
// 兼容大写和小写的格式标记
|
|
27714
|
+
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
27715
|
+
const lowercaseFormat = format
|
|
27716
|
+
.replace(/YYYY/g, 'yyyy')
|
|
27717
|
+
.replace(/D/g, 'd')
|
|
27718
|
+
|
|
27719
|
+
// 使用fecha库进行格式化,支持中文配置
|
|
27720
|
+
const str = fecha.format(date, lowercaseFormat, getSettings());
|
|
27721
|
+
return str;
|
|
27722
|
+
};
|
|
27723
|
+
|
|
27724
|
+
const parseDate = function(string, format) {
|
|
27725
|
+
return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
|
|
27726
|
+
};
|
|
27727
|
+
|
|
27728
|
+
const getDayCountOfMonth = function(year, month) {
|
|
27729
|
+
if (month === 3 || month === 5 || month === 8 || month === 10) {
|
|
27730
|
+
return 30;
|
|
27731
|
+
}
|
|
27732
|
+
|
|
27733
|
+
if (month === 1) {
|
|
27734
|
+
if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
|
|
27735
|
+
return 29;
|
|
27736
|
+
} else {
|
|
27737
|
+
return 28;
|
|
27738
|
+
}
|
|
27739
|
+
}
|
|
27740
|
+
|
|
27741
|
+
return 31;
|
|
27742
|
+
};
|
|
27743
|
+
|
|
27744
|
+
const getDayCountOfYear = function(year) {
|
|
27745
|
+
const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
|
|
27746
|
+
return isLeapYear ? 366 : 365;
|
|
27747
|
+
};
|
|
27748
|
+
|
|
27749
|
+
const getFirstDayOfMonth = function(date) {
|
|
27750
|
+
const temp = new Date(date.getTime());
|
|
27751
|
+
temp.setDate(1);
|
|
27752
|
+
return temp.getDay();
|
|
27753
|
+
};
|
|
27754
|
+
|
|
27755
|
+
// see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
|
|
27756
|
+
// {prev, next} Date should work for Daylight Saving Time
|
|
27757
|
+
// Adding 24 * 60 * 60 * 1000 does not work in the above scenario
|
|
27758
|
+
const prevDate = function(date, amount = 1) {
|
|
27759
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
27760
|
+
};
|
|
27761
|
+
|
|
27762
|
+
const nextDate = function(date, amount = 1) {
|
|
27763
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
|
|
27764
|
+
};
|
|
27765
|
+
|
|
27766
|
+
const getStartDateOfMonth = function(year, month) {
|
|
27767
|
+
const result = new Date(year, month, 1);
|
|
27768
|
+
const day = result.getDay();
|
|
27769
|
+
|
|
27770
|
+
if (day === 0) {
|
|
27771
|
+
return prevDate(result, 7);
|
|
27772
|
+
} else {
|
|
27773
|
+
return prevDate(result, day);
|
|
27774
|
+
}
|
|
27775
|
+
};
|
|
27776
|
+
|
|
27777
|
+
const getWeekNumber = function(date) {
|
|
27778
|
+
// 支持多种输入类型
|
|
27779
|
+
if (!date||!isDate(date)) {
|
|
27780
|
+
date = new Date();
|
|
27781
|
+
}
|
|
27782
|
+
if (typeof date === 'string') {
|
|
27783
|
+
date = new Date(date);
|
|
27784
|
+
}
|
|
27785
|
+
|
|
27786
|
+
// 验证日期有效性
|
|
27787
|
+
if (!isDate(date)) return null;
|
|
27788
|
+
|
|
27789
|
+
const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
27790
|
+
// 设置为最近的星期四:当前日期 + 4 - 当前星期数
|
|
27791
|
+
// 将星期日的星期数设为7
|
|
27792
|
+
d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
|
|
27793
|
+
// 获取当年的第一天
|
|
27794
|
+
const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
27795
|
+
// 计算到最近的星期四的完整周数
|
|
27796
|
+
const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
|
|
27797
|
+
// 返回周数
|
|
27798
|
+
return weekNo;
|
|
27799
|
+
};
|
|
27800
|
+
|
|
27801
|
+
const getRangeHours = function(ranges) {
|
|
27802
|
+
const hours = [];
|
|
27803
|
+
let disabledHours = [];
|
|
27804
|
+
|
|
27805
|
+
(ranges || []).forEach(range => {
|
|
27806
|
+
const value = range.map(date => date.getHours());
|
|
27807
|
+
|
|
27808
|
+
disabledHours = disabledHours.concat(newArray(value[0], value[1]));
|
|
27809
|
+
});
|
|
27810
|
+
|
|
27811
|
+
if (disabledHours.length) {
|
|
27812
|
+
for (let i = 0; i < 24; i++) {
|
|
27813
|
+
hours[i] = disabledHours.indexOf(i) === -1;
|
|
27814
|
+
}
|
|
27815
|
+
} else {
|
|
27816
|
+
for (let i = 0; i < 24; i++) {
|
|
27817
|
+
hours[i] = false;
|
|
27818
|
+
}
|
|
27819
|
+
}
|
|
27820
|
+
|
|
27821
|
+
return hours;
|
|
27822
|
+
};
|
|
27823
|
+
|
|
27824
|
+
const getPrevMonthLastDays = (date, amount) => {
|
|
27825
|
+
if (amount <= 0) return [];
|
|
27826
|
+
const temp = new Date(date.getTime());
|
|
27827
|
+
temp.setDate(0);
|
|
27828
|
+
const lastDay = temp.getDate();
|
|
27829
|
+
return range(amount).map((_, index) => lastDay - (amount - index - 1));
|
|
27830
|
+
};
|
|
27831
|
+
|
|
27832
|
+
const getMonthDays = (date) => {
|
|
27833
|
+
const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
27834
|
+
const days = temp.getDate();
|
|
27835
|
+
return range(days).map((_, index) => index + 1);
|
|
27836
|
+
};
|
|
27837
|
+
|
|
27838
|
+
function setRangeData(arr, start, end, value) {
|
|
27839
|
+
for (let i = start; i < end; i++) {
|
|
27840
|
+
arr[i] = value;
|
|
27841
|
+
}
|
|
27842
|
+
}
|
|
27843
|
+
|
|
27844
|
+
const getRangeMinutes = function(ranges, hour) {
|
|
27845
|
+
const minutes = new Array(60);
|
|
27846
|
+
|
|
27847
|
+
if (ranges.length > 0) {
|
|
27848
|
+
ranges.forEach(range => {
|
|
27849
|
+
const start = range[0];
|
|
27850
|
+
const end = range[1];
|
|
27851
|
+
const startHour = start.getHours();
|
|
27852
|
+
const startMinute = start.getMinutes();
|
|
27853
|
+
const endHour = end.getHours();
|
|
27854
|
+
const endMinute = end.getMinutes();
|
|
27855
|
+
if (startHour === hour && endHour !== hour) {
|
|
27856
|
+
setRangeData(minutes, startMinute, 60, true);
|
|
27857
|
+
} else if (startHour === hour && endHour === hour) {
|
|
27858
|
+
setRangeData(minutes, startMinute, endMinute + 1, true);
|
|
27859
|
+
} else if (startHour !== hour && endHour === hour) {
|
|
27860
|
+
setRangeData(minutes, 0, endMinute + 1, true);
|
|
27861
|
+
} else if (startHour < hour && endHour > hour) {
|
|
27862
|
+
setRangeData(minutes, 0, 60, true);
|
|
27863
|
+
}
|
|
27864
|
+
});
|
|
27865
|
+
} else {
|
|
27866
|
+
setRangeData(minutes, 0, 60, true);
|
|
27867
|
+
}
|
|
27868
|
+
return minutes;
|
|
27869
|
+
};
|
|
27870
|
+
|
|
27871
|
+
const range = function(n) {
|
|
27872
|
+
// see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
|
|
27873
|
+
return Array.apply(null, {length: n}).map((_, n) => n);
|
|
27874
|
+
};
|
|
27875
|
+
|
|
27876
|
+
const modifyDate = function(date, y, m, d) {
|
|
27877
|
+
return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
27878
|
+
};
|
|
27879
|
+
|
|
27880
|
+
const modifyTime = function(date, h, m, s) {
|
|
27881
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
|
|
27882
|
+
};
|
|
27883
|
+
|
|
27884
|
+
const modifyWithTimeString = (date, time) => {
|
|
27885
|
+
if (date == null || !time) {
|
|
27886
|
+
return date;
|
|
27887
|
+
}
|
|
27888
|
+
time = parseDate(time, 'HH:mm:ss');
|
|
27889
|
+
return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
|
|
27890
|
+
};
|
|
27891
|
+
|
|
27892
|
+
const clearTime = function(date) {
|
|
27893
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
27894
|
+
};
|
|
27895
|
+
|
|
27896
|
+
const clearMilliseconds = function(date) {
|
|
27897
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
|
|
27898
|
+
};
|
|
27899
|
+
|
|
27900
|
+
const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
|
|
27901
|
+
// TODO: refactory a more elegant solution
|
|
27902
|
+
if (ranges.length === 0) return date;
|
|
27903
|
+
const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
|
|
27904
|
+
const ndate = normalizeDate(date);
|
|
27905
|
+
const nranges = ranges.map(range => range.map(normalizeDate));
|
|
27906
|
+
if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
|
|
27907
|
+
|
|
27908
|
+
let minDate = nranges[0][0];
|
|
27909
|
+
let maxDate = nranges[0][0];
|
|
27910
|
+
|
|
27911
|
+
nranges.forEach(nrange => {
|
|
27912
|
+
minDate = new Date(Math.min(nrange[0], minDate));
|
|
27913
|
+
maxDate = new Date(Math.max(nrange[1], minDate));
|
|
27914
|
+
});
|
|
27915
|
+
|
|
27916
|
+
const ret = ndate < minDate ? minDate : maxDate;
|
|
27917
|
+
// preserve Year/Month/Date
|
|
27918
|
+
return modifyDate(
|
|
27919
|
+
ret,
|
|
27920
|
+
date.getFullYear(),
|
|
27921
|
+
date.getMonth(),
|
|
27922
|
+
date.getDate()
|
|
27923
|
+
);
|
|
27924
|
+
};
|
|
27925
|
+
|
|
27926
|
+
const timeWithinRange = function(date, selectableRange, format) {
|
|
27927
|
+
const limitedDate = limitTimeRange(date, selectableRange, format);
|
|
27928
|
+
return limitedDate.getTime() === date.getTime();
|
|
27929
|
+
};
|
|
27930
|
+
|
|
27931
|
+
const changeYearMonthAndClampDate = function(date, year, month) {
|
|
27932
|
+
// clamp date to the number of days in `year`, `month`
|
|
27933
|
+
// eg: (2010-1-31, 2010, 2) => 2010-2-28
|
|
27934
|
+
const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
|
|
27935
|
+
return modifyDate(date, year, month, monthDate);
|
|
27936
|
+
};
|
|
27937
|
+
|
|
27938
|
+
const prevMonth = function(date) {
|
|
27939
|
+
const year = date.getFullYear();
|
|
27940
|
+
const month = date.getMonth();
|
|
27941
|
+
return month === 0
|
|
27942
|
+
? changeYearMonthAndClampDate(date, year - 1, 11)
|
|
27943
|
+
: changeYearMonthAndClampDate(date, year, month - 1);
|
|
27944
|
+
};
|
|
27945
|
+
|
|
27946
|
+
const nextMonth = function(date) {
|
|
27947
|
+
const year = date.getFullYear();
|
|
27948
|
+
const month = date.getMonth();
|
|
27949
|
+
return month === 11
|
|
27950
|
+
? changeYearMonthAndClampDate(date, year + 1, 0)
|
|
27951
|
+
: changeYearMonthAndClampDate(date, year, month + 1);
|
|
27952
|
+
};
|
|
27953
|
+
|
|
27954
|
+
const prevYear = function(date, amount = 1) {
|
|
27955
|
+
const year = date.getFullYear();
|
|
27956
|
+
const month = date.getMonth();
|
|
27957
|
+
return changeYearMonthAndClampDate(date, year - amount, month);
|
|
27958
|
+
};
|
|
27959
|
+
|
|
27960
|
+
const nextYear = function(date, amount = 1) {
|
|
27961
|
+
const year = date.getFullYear();
|
|
27962
|
+
const month = date.getMonth();
|
|
27963
|
+
return changeYearMonthAndClampDate(date, year + amount, month);
|
|
27964
|
+
};
|
|
27965
|
+
|
|
27966
|
+
const extractDateFormat = function(format) {
|
|
27967
|
+
return format
|
|
27968
|
+
.replace(/\W?m{1,2}|\W?ZZ/g, '')
|
|
27969
|
+
.replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
|
|
27970
|
+
.trim();
|
|
27971
|
+
};
|
|
27972
|
+
|
|
27973
|
+
const extractTimeFormat = function(format) {
|
|
27974
|
+
return format
|
|
27975
|
+
.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
|
|
27976
|
+
.trim();
|
|
27977
|
+
};
|
|
27978
|
+
|
|
27979
|
+
const validateRangeInOneMonth = function(start, end) {
|
|
27980
|
+
return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
|
|
27981
|
+
};
|
|
27982
|
+
|
|
27965
27983
|
/**
|
|
27966
27984
|
* 计算两个日期之间的工作日数量(不包括周末和节假日)
|
|
27967
27985
|
* @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
|
|
27968
27986
|
* @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
|
|
27969
27987
|
* @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
|
|
27970
27988
|
* @returns {number} 工作日数量
|
|
27971
|
-
*/
|
|
27972
|
-
|
|
27973
|
-
|
|
27974
|
-
|
|
27975
|
-
|
|
27976
|
-
|
|
27977
|
-
}
|
|
27978
|
-
|
|
27979
|
-
|
|
27980
|
-
|
|
27981
|
-
|
|
27982
|
-
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
27983
|
-
throw new Error(
|
|
27984
|
-
|
|
27985
|
-
|
|
27986
|
-
|
|
27987
|
-
|
|
27988
|
-
|
|
27989
|
-
|
|
27990
|
-
|
|
27991
|
-
|
|
27992
|
-
|
|
27993
|
-
|
|
27994
|
-
|
|
27995
|
-
|
|
27996
|
-
|
|
27997
|
-
|
|
27998
|
-
|
|
27999
|
-
|
|
28000
|
-
|
|
28001
|
-
|
|
28002
|
-
|
|
28003
|
-
|
|
28004
|
-
|
|
28005
|
-
|
|
28006
|
-
|
|
28007
|
-
}
|
|
28008
|
-
|
|
28009
|
-
|
|
28010
|
-
|
|
28011
|
-
|
|
28012
|
-
|
|
28013
|
-
|
|
28014
|
-
|
|
28015
|
-
|
|
28016
|
-
|
|
27989
|
+
*/
|
|
27990
|
+
const calculateNetworkDays = function (start_date, end_date, holidays = []) {
|
|
27991
|
+
if (typeof start_date !== 'string' || typeof end_date !== 'string') {
|
|
27992
|
+
throw new Error(
|
|
27993
|
+
"Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
27994
|
+
);
|
|
27995
|
+
}
|
|
27996
|
+
|
|
27997
|
+
const startDateObj = new Date(start_date);
|
|
27998
|
+
const endDateObj = new Date(end_date);
|
|
27999
|
+
|
|
28000
|
+
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
28001
|
+
throw new Error(
|
|
28002
|
+
"Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
28003
|
+
);
|
|
28004
|
+
}
|
|
28005
|
+
|
|
28006
|
+
if (startDateObj > endDateObj) {
|
|
28007
|
+
throw new Error('Start date should be earlier than or equal to end date.');
|
|
28008
|
+
}
|
|
28009
|
+
|
|
28010
|
+
let workdays = 0;
|
|
28011
|
+
|
|
28012
|
+
// Iterate through each day in the date range
|
|
28013
|
+
for (
|
|
28014
|
+
let currentDate = new Date(startDateObj);
|
|
28015
|
+
currentDate <= endDateObj;
|
|
28016
|
+
currentDate.setDate(currentDate.getDate() + 1)
|
|
28017
|
+
) {
|
|
28018
|
+
// Check if the current day is a weekend (Saturday or Sunday)
|
|
28019
|
+
const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
|
|
28020
|
+
|
|
28021
|
+
// Check if the current day is a holiday
|
|
28022
|
+
const isHoliday = holidays.some((holiday) => {
|
|
28023
|
+
const holidayDate = new Date(holiday);
|
|
28024
|
+
return currentDate.toDateString() === holidayDate.toDateString();
|
|
28025
|
+
});
|
|
28026
|
+
|
|
28027
|
+
// If it's a workday (not a weekend or holiday), increment the workdays count
|
|
28028
|
+
if (!isWeekend && !isHoliday) {
|
|
28029
|
+
workdays++;
|
|
28030
|
+
}
|
|
28031
|
+
}
|
|
28032
|
+
|
|
28033
|
+
return workdays;
|
|
28034
|
+
};
|
|
28035
|
+
|
|
28017
28036
|
/**
|
|
28018
28037
|
* 日期加减天数
|
|
28019
28038
|
* @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
|
|
28020
28039
|
* @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
|
|
28021
28040
|
* @returns {string} 结果日期,格式为 "YYYY-MM-DD"
|
|
28022
|
-
*/
|
|
28023
|
-
|
|
28024
|
-
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
28025
|
-
throw new Error(
|
|
28026
|
-
|
|
28027
|
-
|
|
28028
|
-
|
|
28029
|
-
|
|
28030
|
-
|
|
28031
|
-
|
|
28032
|
-
|
|
28033
|
-
|
|
28034
|
-
|
|
28035
|
-
|
|
28036
|
-
|
|
28037
|
-
|
|
28038
|
-
|
|
28039
|
-
|
|
28040
|
-
|
|
28041
|
-
|
|
28042
|
-
|
|
28041
|
+
*/
|
|
28042
|
+
const dateAddDays = function (start_date, days) {
|
|
28043
|
+
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
28044
|
+
throw new Error(
|
|
28045
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
|
|
28046
|
+
);
|
|
28047
|
+
}
|
|
28048
|
+
|
|
28049
|
+
const startDateObj = new Date(start_date);
|
|
28050
|
+
if (isNaN(startDateObj.getTime())) {
|
|
28051
|
+
throw new Error(
|
|
28052
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
28053
|
+
);
|
|
28054
|
+
}
|
|
28055
|
+
|
|
28056
|
+
const resultDateObj = new Date(startDateObj);
|
|
28057
|
+
resultDateObj.setDate(resultDateObj.getDate() + days);
|
|
28058
|
+
|
|
28059
|
+
const resultYear = resultDateObj.getFullYear();
|
|
28060
|
+
const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
|
|
28061
|
+
const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
|
|
28062
|
+
|
|
28063
|
+
return `${resultYear}-${resultMonth}-${resultDay}`;
|
|
28064
|
+
};
|
|
28065
|
+
|
|
28043
28066
|
/**
|
|
28044
28067
|
* 计算两个日期之间的差值
|
|
28045
28068
|
* @date 2023年12月14日
|
|
@@ -28047,180 +28070,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
|
|
|
28047
28070
|
* @param {String} end_date - 结束日期字符串
|
|
28048
28071
|
* @param {String} unit - 单位:year/month/day
|
|
28049
28072
|
* @returns {Number} 差值
|
|
28050
|
-
*/
|
|
28051
|
-
|
|
28052
|
-
|
|
28053
|
-
|
|
28054
|
-
|
|
28055
|
-
|
|
28056
|
-
|
|
28057
|
-
|
|
28058
|
-
|
|
28059
|
-
|
|
28060
|
-
|
|
28061
|
-
|
|
28062
|
-
|
|
28063
|
-
if (unit === '
|
|
28064
|
-
return
|
|
28065
|
-
|
|
28066
|
-
|
|
28067
|
-
|
|
28068
|
-
|
|
28069
|
-
|
|
28070
|
-
|
|
28071
|
-
|
|
28072
|
-
|
|
28073
|
-
}
|
|
28074
|
-
|
|
28073
|
+
*/
|
|
28074
|
+
const dateDiff = function (start_date, end_date, unit = 'day') {
|
|
28075
|
+
// Assuming date strings are in "YYYY-MM-DD" format
|
|
28076
|
+
var startDate = new Date(start_date);
|
|
28077
|
+
var endDate = new Date(end_date);
|
|
28078
|
+
|
|
28079
|
+
// If the date is invalid, return 0
|
|
28080
|
+
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
28081
|
+
return 0;
|
|
28082
|
+
}
|
|
28083
|
+
|
|
28084
|
+
if (unit === 'year') {
|
|
28085
|
+
return endDate.getFullYear() - startDate.getFullYear();
|
|
28086
|
+
} else if (unit === 'month') {
|
|
28087
|
+
return (
|
|
28088
|
+
(endDate.getFullYear() - startDate.getFullYear()) * 12 +
|
|
28089
|
+
(endDate.getMonth() - startDate.getMonth())
|
|
28090
|
+
);
|
|
28091
|
+
} else {
|
|
28092
|
+
// Default to day
|
|
28093
|
+
var timeDifference = endDate - startDate;
|
|
28094
|
+
// Calculate days (86400000 milliseconds per day)
|
|
28095
|
+
return Math.floor(timeDifference / 86400000);
|
|
28096
|
+
}
|
|
28097
|
+
};
|
|
28098
|
+
|
|
28075
28099
|
/**
|
|
28076
28100
|
* 获取月份中的日期
|
|
28077
28101
|
* @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
|
|
28078
28102
|
* @returns {number} 月份中的日期(1-31)
|
|
28079
|
-
*/
|
|
28080
|
-
|
|
28081
|
-
if (typeof date !== 'string') {
|
|
28082
|
-
throw new Error(
|
|
28083
|
-
|
|
28084
|
-
|
|
28085
|
-
|
|
28086
|
-
|
|
28087
|
-
|
|
28088
|
-
|
|
28089
|
-
|
|
28090
|
-
|
|
28091
|
-
|
|
28092
|
-
|
|
28103
|
+
*/
|
|
28104
|
+
const dayOfMonth = function (date) {
|
|
28105
|
+
if (typeof date !== 'string') {
|
|
28106
|
+
throw new Error(
|
|
28107
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
28108
|
+
);
|
|
28109
|
+
}
|
|
28110
|
+
|
|
28111
|
+
const dateObj = new Date(date);
|
|
28112
|
+
if (isNaN(dateObj.getTime())) {
|
|
28113
|
+
throw new Error(
|
|
28114
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
28115
|
+
);
|
|
28116
|
+
}
|
|
28117
|
+
|
|
28118
|
+
return dateObj.getDate();
|
|
28119
|
+
};
|
|
28120
|
+
|
|
28093
28121
|
/**
|
|
28094
28122
|
* 获取当前日期
|
|
28095
28123
|
* @date 2022年5月7日
|
|
28096
28124
|
* @param {string} format - 日期格式,默认为'YYYY-MM-DD'
|
|
28097
28125
|
* @returns {string} 当前日期的格式化字符串
|
|
28098
|
-
*/
|
|
28099
|
-
|
|
28100
|
-
|
|
28101
|
-
|
|
28102
|
-
|
|
28103
|
-
};
|
|
28104
|
-
|
|
28126
|
+
*/
|
|
28127
|
+
const getCurrentDate = function (format = 'YYYY-MM-DD') {
|
|
28128
|
+
return formatDate(new Date(), format);
|
|
28129
|
+
};
|
|
28130
|
+
|
|
28105
28131
|
/**
|
|
28106
28132
|
* 获取当前日期时间
|
|
28107
28133
|
* @date 2022年5月7日
|
|
28108
28134
|
* @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
|
|
28109
28135
|
* @returns {string} 当前日期时间的格式化字符串
|
|
28110
|
-
*/
|
|
28111
|
-
|
|
28112
|
-
|
|
28113
|
-
|
|
28114
|
-
|
|
28115
|
-
};
|
|
28116
|
-
|
|
28136
|
+
*/
|
|
28137
|
+
const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
|
|
28138
|
+
return formatDate(new Date(), format);
|
|
28139
|
+
};
|
|
28140
|
+
|
|
28117
28141
|
/**
|
|
28118
28142
|
* 获取小时
|
|
28119
28143
|
* @date 2022年5月7日
|
|
28120
28144
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
28121
28145
|
* @returns {number} 小时数(0-23)
|
|
28122
|
-
*/
|
|
28123
|
-
|
|
28124
|
-
if (!date) {
|
|
28125
|
-
return new Date().getHours();
|
|
28126
|
-
}
|
|
28127
|
-
if (typeof date === 'string') {
|
|
28128
|
-
date = new Date(date);
|
|
28129
|
-
}
|
|
28130
|
-
return date.getHours();
|
|
28131
|
-
};
|
|
28132
|
-
|
|
28146
|
+
*/
|
|
28147
|
+
const getHour = function (date) {
|
|
28148
|
+
if (!date) {
|
|
28149
|
+
return new Date().getHours();
|
|
28150
|
+
}
|
|
28151
|
+
if (typeof date === 'string') {
|
|
28152
|
+
date = new Date(date);
|
|
28153
|
+
}
|
|
28154
|
+
return date.getHours();
|
|
28155
|
+
};
|
|
28156
|
+
|
|
28133
28157
|
/**
|
|
28134
28158
|
* 获取分钟
|
|
28135
28159
|
* @date 2022年5月7日
|
|
28136
28160
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
28137
28161
|
* @returns {number} 分钟数(0-59)
|
|
28138
|
-
*/
|
|
28139
|
-
|
|
28140
|
-
if (!date) {
|
|
28141
|
-
return new Date().getMinutes();
|
|
28142
|
-
}
|
|
28143
|
-
if (typeof date === 'string') {
|
|
28144
|
-
date = new Date(date);
|
|
28145
|
-
}
|
|
28146
|
-
return date.getMinutes();
|
|
28147
|
-
};
|
|
28148
|
-
|
|
28162
|
+
*/
|
|
28163
|
+
const getMinute = function (date) {
|
|
28164
|
+
if (!date) {
|
|
28165
|
+
return new Date().getMinutes();
|
|
28166
|
+
}
|
|
28167
|
+
if (typeof date === 'string') {
|
|
28168
|
+
date = new Date(date);
|
|
28169
|
+
}
|
|
28170
|
+
return date.getMinutes();
|
|
28171
|
+
};
|
|
28172
|
+
|
|
28149
28173
|
/**
|
|
28150
28174
|
* 获取月份
|
|
28151
28175
|
* @date 2022年5月7日
|
|
28152
28176
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
28153
28177
|
* @returns {number} 月份数(1-12)
|
|
28154
|
-
*/
|
|
28155
|
-
|
|
28156
|
-
if (!date) {
|
|
28157
|
-
return new Date().getMonth() + 1;
|
|
28158
|
-
}
|
|
28159
|
-
if (typeof date === 'string') {
|
|
28160
|
-
date = new Date(date);
|
|
28161
|
-
}
|
|
28162
|
-
return date.getMonth() + 1;
|
|
28163
|
-
};
|
|
28164
|
-
|
|
28178
|
+
*/
|
|
28179
|
+
const getMonth = function (date) {
|
|
28180
|
+
if (!date) {
|
|
28181
|
+
return new Date().getMonth() + 1;
|
|
28182
|
+
}
|
|
28183
|
+
if (typeof date === 'string') {
|
|
28184
|
+
date = new Date(date);
|
|
28185
|
+
}
|
|
28186
|
+
return date.getMonth() + 1;
|
|
28187
|
+
};
|
|
28188
|
+
|
|
28165
28189
|
/**
|
|
28166
28190
|
* 获取秒
|
|
28167
28191
|
* @date 2022年5月7日
|
|
28168
28192
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
28169
28193
|
* @returns {number} 秒数(0-59)
|
|
28170
|
-
*/
|
|
28171
|
-
|
|
28172
|
-
if (!date) {
|
|
28173
|
-
return new Date().getSeconds();
|
|
28174
|
-
}
|
|
28175
|
-
if (typeof date === 'string') {
|
|
28176
|
-
date = new Date(date);
|
|
28177
|
-
}
|
|
28178
|
-
return date.getSeconds();
|
|
28179
|
-
};
|
|
28180
|
-
|
|
28194
|
+
*/
|
|
28195
|
+
const getSecond = function (date) {
|
|
28196
|
+
if (!date) {
|
|
28197
|
+
return new Date().getSeconds();
|
|
28198
|
+
}
|
|
28199
|
+
if (typeof date === 'string') {
|
|
28200
|
+
date = new Date(date);
|
|
28201
|
+
}
|
|
28202
|
+
return date.getSeconds();
|
|
28203
|
+
};
|
|
28204
|
+
|
|
28181
28205
|
/**
|
|
28182
28206
|
* 获取星期几
|
|
28183
28207
|
* @date 2022年5月7日
|
|
28184
28208
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
28185
28209
|
* @returns {number} 星期几(0-6,0表示星期日)
|
|
28186
|
-
*/
|
|
28187
|
-
|
|
28188
|
-
if (!date) {
|
|
28189
|
-
return new Date().getDay();
|
|
28190
|
-
}
|
|
28191
|
-
if (typeof date === 'string') {
|
|
28192
|
-
date = new Date(date);
|
|
28193
|
-
}
|
|
28194
|
-
return date.getDay();
|
|
28195
|
-
};
|
|
28196
|
-
|
|
28210
|
+
*/
|
|
28211
|
+
const getWeekday = function (date) {
|
|
28212
|
+
if (!date) {
|
|
28213
|
+
return new Date().getDay();
|
|
28214
|
+
}
|
|
28215
|
+
if (typeof date === 'string') {
|
|
28216
|
+
date = new Date(date);
|
|
28217
|
+
}
|
|
28218
|
+
return date.getDay();
|
|
28219
|
+
};
|
|
28220
|
+
|
|
28221
|
+
|
|
28197
28222
|
/**
|
|
28198
28223
|
* @desc 获取上午/下午/晚上
|
|
28199
28224
|
* @author huangbo
|
|
28200
28225
|
* @date 2022年5月7日
|
|
28201
28226
|
* @param {String} [time] - 时间
|
|
28202
|
-
**/
|
|
28203
|
-
|
|
28204
|
-
|
|
28205
|
-
if (!time) {
|
|
28206
|
-
hour = new Date().getHours();
|
|
28207
|
-
} else if (typeof time === 'string') {
|
|
28208
|
-
// 从时间字符串中提取小时
|
|
28209
|
-
|
|
28210
|
-
if (match) {
|
|
28211
|
-
hour = parseInt(match[1], 10);
|
|
28212
|
-
}
|
|
28213
|
-
} else if (typeof time === 'number') {
|
|
28214
|
-
hour = time;
|
|
28215
|
-
}
|
|
28216
|
-
// 判断时间段
|
|
28217
|
-
if (hour >= 5 && hour < 12) {
|
|
28218
|
-
return '上午';
|
|
28219
|
-
} else if (hour >= 12 && hour < 18) {
|
|
28220
|
-
return '下午';
|
|
28221
|
-
} else {
|
|
28222
|
-
return '晚上';
|
|
28223
|
-
}
|
|
28227
|
+
**/
|
|
28228
|
+
const timeCycle = function (time) {
|
|
28229
|
+
let hour = 0;
|
|
28230
|
+
if (!time) {
|
|
28231
|
+
hour = new Date().getHours();
|
|
28232
|
+
} else if (typeof time === 'string') {
|
|
28233
|
+
// 从时间字符串中提取小时
|
|
28234
|
+
const match = time.match(/^(\d{1,2})/);
|
|
28235
|
+
if (match) {
|
|
28236
|
+
hour = parseInt(match[1], 10);
|
|
28237
|
+
}
|
|
28238
|
+
} else if (typeof time === 'number') {
|
|
28239
|
+
hour = time;
|
|
28240
|
+
}
|
|
28241
|
+
// 判断时间段
|
|
28242
|
+
if (hour >= 5 && hour < 12) {
|
|
28243
|
+
return '上午';
|
|
28244
|
+
} else if (hour >= 12 && hour < 18) {
|
|
28245
|
+
return '下午';
|
|
28246
|
+
} else {
|
|
28247
|
+
return '晚上';
|
|
28248
|
+
}
|
|
28224
28249
|
};
|
|
28225
28250
|
|
|
28226
28251
|
/***/ }),
|
|
@@ -28305,17 +28330,10 @@ module.exports = require("fetch-request-source");
|
|
|
28305
28330
|
|
|
28306
28331
|
/***/ }),
|
|
28307
28332
|
|
|
28308
|
-
/***/ 28:
|
|
28309
|
-
/***/ (function(module, exports) {
|
|
28310
|
-
|
|
28311
|
-
module.exports = require("qs");
|
|
28312
|
-
|
|
28313
|
-
/***/ }),
|
|
28314
|
-
|
|
28315
28333
|
/***/ 29:
|
|
28316
28334
|
/***/ (function(module, exports) {
|
|
28317
28335
|
|
|
28318
|
-
module.exports = require("
|
|
28336
|
+
module.exports = require("qs");
|
|
28319
28337
|
|
|
28320
28338
|
/***/ }),
|
|
28321
28339
|
|
|
@@ -28427,6 +28445,13 @@ function normalizeComponent(
|
|
|
28427
28445
|
/***/ 30:
|
|
28428
28446
|
/***/ (function(module, exports) {
|
|
28429
28447
|
|
|
28448
|
+
module.exports = require("axios");
|
|
28449
|
+
|
|
28450
|
+
/***/ }),
|
|
28451
|
+
|
|
28452
|
+
/***/ 31:
|
|
28453
|
+
/***/ (function(module, exports) {
|
|
28454
|
+
|
|
28430
28455
|
module.exports = require("json-bigint");
|
|
28431
28456
|
|
|
28432
28457
|
/***/ }),
|
|
@@ -28521,7 +28546,7 @@ function isDefined(val) {
|
|
|
28521
28546
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doQrLogin; });
|
|
28522
28547
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return logout; });
|
|
28523
28548
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return initLogin; });
|
|
28524
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28549
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return switchUserTo; });
|
|
28525
28550
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return changeImg; });
|
|
28526
28551
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getLoginCode; });
|
|
28527
28552
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCodeLogin; });
|
|
@@ -28539,13 +28564,13 @@ function isDefined(val) {
|
|
|
28539
28564
|
/* unused harmony export scanCodeRetrialAuth */
|
|
28540
28565
|
/* unused harmony export codeRetrialAuth */
|
|
28541
28566
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return doAssistanceQrLogin; });
|
|
28542
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28567
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return userOnline; });
|
|
28543
28568
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUserAppWithTag; });
|
|
28544
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28569
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return recordUserApp; });
|
|
28545
28570
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserRecordApp; });
|
|
28546
28571
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return mainConfig; });
|
|
28547
28572
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initUserSet; });
|
|
28548
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28573
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateUserInfo; });
|
|
28549
28574
|
/* unused harmony export getUserImgUrl */
|
|
28550
28575
|
/* unused harmony export getDoorIndex */
|
|
28551
28576
|
/* unused harmony export refreshOnlineUsers */
|
|
@@ -28557,22 +28582,22 @@ function isDefined(val) {
|
|
|
28557
28582
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getByType; });
|
|
28558
28583
|
/* unused harmony export getUserCustomInfo */
|
|
28559
28584
|
/* unused harmony export updateUserCustomInfo */
|
|
28560
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28561
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28585
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveOrUpdate; });
|
|
28586
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return sysMsgPage; });
|
|
28562
28587
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreSysMsg; });
|
|
28563
28588
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return ignoreAllSysMsg; });
|
|
28564
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28589
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return searchType; });
|
|
28565
28590
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSysParam; });
|
|
28566
28591
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctProperties; });
|
|
28567
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28568
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28592
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploads; });
|
|
28593
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadOnlyOne; });
|
|
28569
28594
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getAdjunctFileInfos; });
|
|
28570
28595
|
/* unused harmony export uploadSort */
|
|
28571
28596
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return downloadByAdjunctId; });
|
|
28572
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28573
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28574
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28575
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28597
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadDownloads; });
|
|
28598
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct; });
|
|
28599
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct2; });
|
|
28600
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunctOffice; });
|
|
28576
28601
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return delAdjunct; });
|
|
28577
28602
|
/* unused harmony export upload_updateClassify */
|
|
28578
28603
|
/* unused harmony export getDeleteAdjunctFileInfos */
|
|
@@ -28587,13 +28612,13 @@ function isDefined(val) {
|
|
|
28587
28612
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return gethelpdoc; });
|
|
28588
28613
|
/* unused harmony export getCurrentuser */
|
|
28589
28614
|
/* unused harmony export mainDetail */
|
|
28590
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28591
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28615
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartFlow; });
|
|
28616
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tempSave; });
|
|
28592
28617
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return commonOpion; });
|
|
28593
28618
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
|
|
28594
28619
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return editCommonOpion; });
|
|
28595
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28596
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28620
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveCommonOpinion; });
|
|
28621
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateCommonOpinion; });
|
|
28597
28622
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return deleteCommonOpion; });
|
|
28598
28623
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getProcessDefList; });
|
|
28599
28624
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getNodeInfo; });
|
|
@@ -28602,27 +28627,27 @@ function isDefined(val) {
|
|
|
28602
28627
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCodes; });
|
|
28603
28628
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNotificationMsg; });
|
|
28604
28629
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getHandleInfoHtml; });
|
|
28605
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28630
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskHandleHtml; });
|
|
28606
28631
|
/* unused harmony export getView */
|
|
28607
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28608
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28609
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28610
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28611
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28612
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28613
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28614
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28615
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28616
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28632
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return register; });
|
|
28633
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pendedhistoryList; });
|
|
28634
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskRejectHtml; });
|
|
28635
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskRejectHtml; });
|
|
28636
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskRead; });
|
|
28637
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskReadIndex; });
|
|
28638
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskReadHtml; });
|
|
28639
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return rejectAndEnd; });
|
|
28640
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toSendMsg; });
|
|
28641
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return sendMsg; });
|
|
28617
28642
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowHtml; });
|
|
28618
28643
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return handleInfo; });
|
|
28619
28644
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return loginUserInfo; });
|
|
28620
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28621
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28645
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return wss; });
|
|
28646
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return topic; });
|
|
28622
28647
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getPresetCustomInfo; });
|
|
28623
28648
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetNodeInfo; });
|
|
28624
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28625
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28649
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTransferIndex; });
|
|
28650
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTransfer; });
|
|
28626
28651
|
/* unused harmony export toPresetInfoListIndex */
|
|
28627
28652
|
/* unused harmony export deletePresetInfo */
|
|
28628
28653
|
/* unused harmony export historyListJson */
|
|
@@ -28630,24 +28655,24 @@ function isDefined(val) {
|
|
|
28630
28655
|
/* unused harmony export pressListJson */
|
|
28631
28656
|
/* unused harmony export deleteFlow */
|
|
28632
28657
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isCanStartSubFlow; });
|
|
28633
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28634
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28635
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28636
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28637
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28638
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28639
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28640
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28641
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28642
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28643
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28644
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28645
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28646
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28647
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28648
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28649
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28650
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28658
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionExamine; });
|
|
28659
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionExamine; });
|
|
28660
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTakeAdvice; });
|
|
28661
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTakeAdvice; });
|
|
28662
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskStartDraft; });
|
|
28663
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSupervise; });
|
|
28664
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSuperviseSub; });
|
|
28665
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskStartDraft; });
|
|
28666
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskReview; });
|
|
28667
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskReview; });
|
|
28668
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionSeal; });
|
|
28669
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionSeal; });
|
|
28670
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTwoOfficesDispatch; });
|
|
28671
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return twoOfficesDispatch; });
|
|
28672
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toResetProcessIndex; });
|
|
28673
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return resetProcess; });
|
|
28674
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskContinuationIndex; });
|
|
28675
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskContinuation; });
|
|
28651
28676
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getFreeStartFlowParams; });
|
|
28652
28677
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlowWithSubmitTask; });
|
|
28653
28678
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkForeignOrgStartedCircularRead; });
|
|
@@ -28655,7 +28680,7 @@ function isDefined(val) {
|
|
|
28655
28680
|
/* unused harmony export fyListJson */
|
|
28656
28681
|
/* unused harmony export circularReadWithdraw */
|
|
28657
28682
|
/* unused harmony export taskReadWithDraw */
|
|
28658
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28683
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
|
|
28659
28684
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return checkBusinessIdStartedReadTransferHandle; });
|
|
28660
28685
|
/* unused harmony export sendList */
|
|
28661
28686
|
/* unused harmony export sendInfo */
|
|
@@ -28669,23 +28694,24 @@ function isDefined(val) {
|
|
|
28669
28694
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfoForStart; });
|
|
28670
28695
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return freeStartFlow; });
|
|
28671
28696
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getUrgencyLevelChangedNotificationType; });
|
|
28672
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28697
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toFreeTaskCircularRead; });
|
|
28673
28698
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeTaskCircularRead; });
|
|
28674
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28699
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageLists; });
|
|
28675
28700
|
/* unused harmony export publishedLists */
|
|
28676
28701
|
/* unused harmony export pageInfo */
|
|
28677
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28678
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return
|
|
28702
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageGroup; });
|
|
28703
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageSave; });
|
|
28704
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageUpdate; });
|
|
28679
28705
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return pageDelete; });
|
|
28680
28706
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchSave; });
|
|
28681
28707
|
/* unused harmony export batchUpdate */
|
|
28682
28708
|
/* unused harmony export batchDelete */
|
|
28683
28709
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchList; });
|
|
28684
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28685
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28686
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28687
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28688
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28710
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processListJson; });
|
|
28711
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processInfo; });
|
|
28712
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processDeleteJson; });
|
|
28713
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processSave; });
|
|
28714
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processUpdate; });
|
|
28689
28715
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeListJson; });
|
|
28690
28716
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return nodeDeleteJson; });
|
|
28691
28717
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeSave; });
|
|
@@ -28696,22 +28722,22 @@ function isDefined(val) {
|
|
|
28696
28722
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return moduleDelete; });
|
|
28697
28723
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleSave; });
|
|
28698
28724
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleUpdate; });
|
|
28699
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28700
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28701
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28702
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28725
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleListJson; });
|
|
28726
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleEdit; });
|
|
28727
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleRead; });
|
|
28728
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleSave; });
|
|
28703
28729
|
/* unused harmony export ruleSupplement */
|
|
28704
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28705
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28730
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleUndore; });
|
|
28731
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleAdd; });
|
|
28706
28732
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return companyDetail; });
|
|
28707
28733
|
/* unused harmony export issueDetailList */
|
|
28708
28734
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteRule; });
|
|
28709
28735
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParamV1; });
|
|
28710
28736
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyList; });
|
|
28711
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28737
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return supplement; });
|
|
28712
28738
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return isAddSource; });
|
|
28713
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28714
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
28739
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tiggerInTime; });
|
|
28740
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateHistory; });
|
|
28715
28741
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
|
|
28716
28742
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeInTime; });
|
|
28717
28743
|
var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
|
|
@@ -28993,6 +29019,9 @@ var pageLists = '/main2/pageComponentConfig/listJson';
|
|
|
28993
29019
|
var publishedLists = '/main2/pageComponentConfig/listPublished';
|
|
28994
29020
|
// 获取自定义配置详情
|
|
28995
29021
|
var pageInfo = '/main2/pageComponentConfig/info';
|
|
29022
|
+
// 获取自定义配置授权列表
|
|
29023
|
+
var pageGroup = 'main2/pageComponentTarget/listByConfigIdAndTypeGroup';
|
|
29024
|
+
|
|
28996
29025
|
// 保存自定义配置,发布也调这个接口但要加上字段status=1
|
|
28997
29026
|
var pageSave = '/main2/pageComponentConfig/save';
|
|
28998
29027
|
// 更新自定义配置
|
|
@@ -29100,12 +29129,12 @@ module.exports = require("eoss/lib/message-box");
|
|
|
29100
29129
|
/* unused harmony export downloadZip */
|
|
29101
29130
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
|
|
29102
29131
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
|
|
29103
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
29132
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
|
|
29104
29133
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
|
|
29105
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
29134
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);
|
|
29106
29135
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
29107
29136
|
/* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
|
|
29108
|
-
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
29137
|
+
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
|
|
29109
29138
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
|
|
29110
29139
|
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
|
|
29111
29140
|
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24);
|
|
@@ -29347,7 +29376,7 @@ var ajax = function ajax(_ref) {
|
|
|
29347
29376
|
delete params[key];
|
|
29348
29377
|
}
|
|
29349
29378
|
}
|
|
29350
|
-
url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
29379
|
+
url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: url, param: encodedParams });
|
|
29351
29380
|
}
|
|
29352
29381
|
} else {
|
|
29353
29382
|
params = {};
|
|
@@ -29705,7 +29734,7 @@ function redirectToLogin() {
|
|
|
29705
29734
|
|
|
29706
29735
|
if (loginPage) {
|
|
29707
29736
|
// 处理相对路径
|
|
29708
|
-
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "
|
|
29737
|
+
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
|
|
29709
29738
|
var pathname = '';
|
|
29710
29739
|
try {
|
|
29711
29740
|
pathname = window.top.location.pathname;
|
|
@@ -29737,7 +29766,7 @@ function redirectToLogin() {
|
|
|
29737
29766
|
* @returns {Promise} 认证完成后 resolve
|
|
29738
29767
|
*/
|
|
29739
29768
|
var initAuth = function initAuth() {
|
|
29740
|
-
var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "
|
|
29769
|
+
var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])();
|
|
29741
29770
|
var token = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('token') || Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('Authorization');
|
|
29742
29771
|
|
|
29743
29772
|
// 已有 token 或没有认证参数,直接返回
|
|
@@ -29745,7 +29774,7 @@ var initAuth = function initAuth() {
|
|
|
29745
29774
|
return Promise.resolve();
|
|
29746
29775
|
}
|
|
29747
29776
|
|
|
29748
|
-
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "
|
|
29777
|
+
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('页面加载中...');
|
|
29749
29778
|
|
|
29750
29779
|
return ajax({
|
|
29751
29780
|
method: 'post',
|
|
@@ -29824,7 +29853,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
29824
29853
|
|
|
29825
29854
|
// 处理cookie参数
|
|
29826
29855
|
if (cookie === undefined) {
|
|
29827
|
-
cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "
|
|
29856
|
+
cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])({ name: 'cookie' });
|
|
29828
29857
|
}
|
|
29829
29858
|
|
|
29830
29859
|
// 处理登录页面路径
|
|
@@ -29839,7 +29868,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
29839
29868
|
sessionStorage.setItem('loginPage', loginPage);
|
|
29840
29869
|
|
|
29841
29870
|
// 处理相对路径
|
|
29842
|
-
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "
|
|
29871
|
+
if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
|
|
29843
29872
|
if (pathname !== '/') {
|
|
29844
29873
|
var pathParts = pathname.split('/');
|
|
29845
29874
|
pathParts.splice(pathParts.length - 1);
|
|
@@ -29864,7 +29893,7 @@ var isLogined = function isLogined(_ref3) {
|
|
|
29864
29893
|
|
|
29865
29894
|
// 处理重定向
|
|
29866
29895
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
29867
|
-
window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
29896
|
+
window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: '.' + to.path + '.html', param: to.query }));
|
|
29868
29897
|
} else {
|
|
29869
29898
|
next();
|
|
29870
29899
|
}
|
|
@@ -30067,7 +30096,7 @@ var downloadFile = function downloadFile(_ref6) {
|
|
|
30067
30096
|
|
|
30068
30097
|
// 拼接URL参数
|
|
30069
30098
|
if (Object.keys(params).length > 0) {
|
|
30070
|
-
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
30099
|
+
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
|
|
30071
30100
|
}
|
|
30072
30101
|
} else if (file.raw) {
|
|
30073
30102
|
downloadUrl = URL.createObjectURL(file.raw);
|
|
@@ -30113,7 +30142,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
30113
30142
|
code = _ref7.code,
|
|
30114
30143
|
option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
|
|
30115
30144
|
|
|
30116
|
-
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "
|
|
30145
|
+
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Nc"] };
|
|
30117
30146
|
|
|
30118
30147
|
// 处理URL和参数
|
|
30119
30148
|
var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
|
|
@@ -30129,7 +30158,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
30129
30158
|
|
|
30130
30159
|
// 拼接URL参数
|
|
30131
30160
|
if (Object.keys(params).length > 0) {
|
|
30132
|
-
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "
|
|
30161
|
+
downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
|
|
30133
30162
|
}
|
|
30134
30163
|
|
|
30135
30164
|
// 创建a标签
|
|
@@ -30234,7 +30263,7 @@ var getTableData = function getTableData(_ref9) {
|
|
|
30234
30263
|
onSuccess = _ref9.onSuccess,
|
|
30235
30264
|
onError = _ref9.onError;
|
|
30236
30265
|
|
|
30237
|
-
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "
|
|
30266
|
+
var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('数据加载中...');
|
|
30238
30267
|
return new Promise(function (resolve, reject) {
|
|
30239
30268
|
ajax({
|
|
30240
30269
|
method: method,
|