eoss 0.1.0-alpha.35 → 0.1.0-alpha.37
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 +1101 -1035
- package/lib/alert.js +2 -2
- package/lib/aside.js +2 -2
- package/lib/audit-trajectory.js +150 -150
- package/lib/autocomplete.js +2095 -1871
- 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 +4 -4
- package/lib/button.js +2 -2
- package/lib/ca-login.js +862 -837
- package/lib/calendar.js +864 -839
- package/lib/card.js +2 -2
- package/lib/carousel-item.js +864 -839
- package/lib/carousel.js +866 -841
- package/lib/cascader-panel.js +878 -853
- package/lib/cascader.js +2325 -2101
- package/lib/checkbox-button.js +4 -4
- package/lib/checkbox-group.js +1060 -1025
- package/lib/checkbox.js +6 -6
- package/lib/col.js +2 -2
- package/lib/collapse-item.js +920 -895
- package/lib/collapse.js +913 -888
- package/lib/color-picker.js +1155 -956
- package/lib/container.js +2 -2
- package/lib/cron.js +18 -18
- package/lib/data-table.js +1053 -1018
- package/lib/date-picker.js +2094 -1870
- package/lib/descriptions-item.js +144 -0
- package/lib/descriptions.js +561 -0
- package/lib/dialog.js +943 -918
- package/lib/divider.js +2 -2
- package/lib/drawer.js +12 -12
- package/lib/dropdown-item.js +6 -6
- package/lib/dropdown-menu.js +1157 -958
- package/lib/dropdown.js +870 -845
- package/lib/email-login.js +1047 -1012
- package/lib/empty.js +2 -2
- package/lib/eoss.common.js +3493 -2313
- package/lib/flip.js +2 -2
- package/lib/flow-group.js +876 -851
- package/lib/flow.js +1184 -1149
- package/lib/flows.js +1080 -1045
- package/lib/footer.js +2 -2
- package/lib/form-item.js +877 -852
- package/lib/form.js +1123 -1087
- package/lib/guide.js +2 -2
- package/lib/header.js +2 -2
- package/lib/icon.js +1009 -984
- package/lib/icons.js +6 -6
- package/lib/image-viewer.js +862 -837
- package/lib/image.js +4 -4
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +2 -2
- package/lib/input-number.js +6 -6
- package/lib/input.js +870 -845
- package/lib/link.js +2 -2
- package/lib/loading.js +13 -13
- package/lib/login.js +1116 -1066
- package/lib/lowcode-view.js +1078 -1043
- package/lib/lowcode.js +1131 -1096
- package/lib/main.js +1185 -1148
- package/lib/marquee.js +862 -837
- package/lib/menu-item-group.js +20 -17
- package/lib/menu-item.js +8 -8
- package/lib/menu.js +2390 -2164
- package/lib/message-box.js +950 -925
- package/lib/message.js +941 -916
- package/lib/notification.js +962 -937
- package/lib/option-group.js +4 -4
- package/lib/option.js +871 -846
- package/lib/page-header.js +2 -2
- package/lib/pagination.js +866 -841
- package/lib/phone-login.js +1049 -1014
- package/lib/popconfirm.js +4 -4
- package/lib/popover.js +2100 -1876
- package/lib/process-config.js +1065 -1030
- package/lib/process-module.js +1053 -1018
- package/lib/process-rule.js +1062 -1027
- package/lib/progress.js +2 -2
- package/lib/qr-code.js +4 -4
- package/lib/qrcode-login.js +1052 -1017
- package/lib/radio-button.js +4 -4
- package/lib/radio-group.js +2608 -2573
- package/lib/radio.js +6 -6
- package/lib/rate.js +864 -839
- package/lib/retrial-auth.js +7063 -0
- package/lib/row.js +2 -2
- package/lib/scrollbar.js +868 -843
- package/lib/select.js +2591 -2357
- package/lib/selector-panel.js +2659 -2624
- package/lib/selector.js +1068 -1033
- package/lib/slider.js +6 -6
- package/lib/step.js +44 -44
- package/lib/steps.js +911 -886
- package/lib/submenu.js +1439 -1236
- package/lib/switch.js +866 -841
- package/lib/tab-pane.js +4 -4
- package/lib/table-column.js +936 -911
- package/lib/table.js +2318 -2084
- package/lib/tabs.js +866 -841
- package/lib/tag.js +2 -2
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/descriptions.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/retrial-auth.css +1 -0
- package/lib/time-picker.js +2047 -1823
- package/lib/time-select.js +2041 -1817
- package/lib/timeline-item.js +2 -2
- package/lib/timeline.js +2 -2
- package/lib/tips.js +1047 -1012
- package/lib/toolbar.js +36 -17
- package/lib/tooltip.js +2080 -1856
- package/lib/transfer.js +881 -856
- package/lib/tree-group.js +1020 -995
- package/lib/tree.js +1062 -1027
- package/lib/update-history.js +151 -151
- package/lib/upload.js +1082 -1047
- package/lib/utils/ajax.js +5 -1
- package/lib/utils/popper.js +97 -48
- package/lib/wujie.js +866 -841
- package/package.json +1 -1
- package/packages/account-login/src/account-login.vue +29 -0
- package/packages/descriptions/index.js +8 -0
- package/packages/descriptions/src/index.js +181 -0
- package/packages/descriptions/src/item.js +30 -0
- package/packages/descriptions/src/row.js +120 -0
- package/packages/descriptions-item/index.js +8 -0
- package/packages/login/src/login.vue +8 -0
- package/packages/login/src/mixins.js +3 -1
- package/packages/main/src/minxs.js +1 -0
- package/packages/menu/src/menu.vue +0 -1
- package/packages/menu/src/mixins.js +4 -3
- package/packages/menu/src/submenu.vue +4 -4
- package/packages/retrial-auth/index.js +5 -0
- package/packages/retrial-auth/src/main.vue +300 -0
- package/packages/theme-chalk/src/base.scss +2 -1
- package/packages/theme-chalk/src/descriptions.scss +0 -1
- package/packages/theme-chalk/src/index.scss +3 -0
- package/packages/theme-chalk/src/retrial-auth.scss +38 -0
- package/packages/toolbar/src/toolbar.vue +5 -0
- package/src/index.js +336 -327
- package/src/utils/ajax.js +2 -1
- package/src/utils/popper.js +109 -70
package/lib/process-module.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 = 203);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -3285,7 +3285,7 @@ var warning = function warning(content, _callback3) {
|
|
|
3285
3285
|
|
|
3286
3286
|
/***/ }),
|
|
3287
3287
|
|
|
3288
|
-
/***/
|
|
3288
|
+
/***/ 10:
|
|
3289
3289
|
/***/ (function(module, exports) {
|
|
3290
3290
|
|
|
3291
3291
|
module.exports = require("eoss/lib/message");
|
|
@@ -3535,7 +3535,7 @@ module.exports = require("vue");
|
|
|
3535
3535
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
|
|
3536
3536
|
/* unused harmony export doDecrypt */
|
|
3537
3537
|
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
3538
|
-
var sm2 = __webpack_require__(
|
|
3538
|
+
var sm2 = __webpack_require__(42).sm2;
|
|
3539
3539
|
|
|
3540
3540
|
|
|
3541
3541
|
/**
|
|
@@ -3587,7 +3587,7 @@ var doDecrypt = function doDecrypt(_ref2) {
|
|
|
3587
3587
|
|
|
3588
3588
|
/***/ }),
|
|
3589
3589
|
|
|
3590
|
-
/***/
|
|
3590
|
+
/***/ 203:
|
|
3591
3591
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3592
3592
|
|
|
3593
3593
|
"use strict";
|
|
@@ -3889,11 +3889,11 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
3889
3889
|
|
|
3890
3890
|
/* harmony default export */ var FormList = (component.exports);
|
|
3891
3891
|
// EXTERNAL MODULE: external "eoss/lib/data-table"
|
|
3892
|
-
var data_table_ = __webpack_require__(
|
|
3892
|
+
var data_table_ = __webpack_require__(47);
|
|
3893
3893
|
var data_table_default = /*#__PURE__*/__webpack_require__.n(data_table_);
|
|
3894
3894
|
|
|
3895
3895
|
// EXTERNAL MODULE: external "eoss/lib/dialog"
|
|
3896
|
-
var dialog_ = __webpack_require__(
|
|
3896
|
+
var dialog_ = __webpack_require__(37);
|
|
3897
3897
|
var dialog_default = /*#__PURE__*/__webpack_require__.n(dialog_);
|
|
3898
3898
|
|
|
3899
3899
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-module/src/main.vue?vue&type=script&lang=js&
|
|
@@ -4001,10 +4001,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
4001
4001
|
|
|
4002
4002
|
computed: {
|
|
4003
4003
|
url: function url() {
|
|
4004
|
-
return '/' + this.bootName + api["
|
|
4004
|
+
return '/' + this.bootName + api["zb" /* moduleListJson */];
|
|
4005
4005
|
},
|
|
4006
4006
|
info: function info() {
|
|
4007
|
-
return '/' + this.bootName + api["
|
|
4007
|
+
return '/' + this.bootName + api["yb" /* moduleInfo */];
|
|
4008
4008
|
},
|
|
4009
4009
|
computedParam: function computedParam() {
|
|
4010
4010
|
return _extends({}, this.param);
|
|
@@ -4045,7 +4045,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
4045
4045
|
}, data);
|
|
4046
4046
|
Object(ajax["a" /* ajax */])({
|
|
4047
4047
|
method: 'post',
|
|
4048
|
-
url: '/' + this.bootName + api["
|
|
4048
|
+
url: '/' + this.bootName + api["Ab" /* moduleSave */],
|
|
4049
4049
|
data: postData
|
|
4050
4050
|
|
|
4051
4051
|
// headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
|
|
@@ -4068,7 +4068,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
4068
4068
|
delete data.updateTime;
|
|
4069
4069
|
Object(ajax["a" /* ajax */])({
|
|
4070
4070
|
method: 'post',
|
|
4071
|
-
url: '/' + this.bootName + api["
|
|
4071
|
+
url: '/' + this.bootName + api["Bb" /* moduleUpdate */],
|
|
4072
4072
|
data: data
|
|
4073
4073
|
}).then(function (res) {
|
|
4074
4074
|
loadingInstance.close();
|
|
@@ -4092,7 +4092,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
4092
4092
|
var loadingInstance = Object(util["K" /* loading */])('删除中...');
|
|
4093
4093
|
Object(ajax["a" /* ajax */])({
|
|
4094
4094
|
method: 'post',
|
|
4095
|
-
url: '/' + this.bootName + api["
|
|
4095
|
+
url: '/' + this.bootName + api["xb" /* moduleDelete */],
|
|
4096
4096
|
data: { id: id }
|
|
4097
4097
|
}).then(function (res) {
|
|
4098
4098
|
loadingInstance.close();
|
|
@@ -4149,7 +4149,7 @@ main.install = function (Vue) {
|
|
|
4149
4149
|
|
|
4150
4150
|
/***/ }),
|
|
4151
4151
|
|
|
4152
|
-
/***/
|
|
4152
|
+
/***/ 21:
|
|
4153
4153
|
/***/ (function(module, exports) {
|
|
4154
4154
|
|
|
4155
4155
|
module.exports = require("fetch-request-source");
|
|
@@ -4163,6 +4163,20 @@ module.exports = require("eoss/lib/form");
|
|
|
4163
4163
|
|
|
4164
4164
|
/***/ }),
|
|
4165
4165
|
|
|
4166
|
+
/***/ 28:
|
|
4167
|
+
/***/ (function(module, exports) {
|
|
4168
|
+
|
|
4169
|
+
module.exports = require("qs");
|
|
4170
|
+
|
|
4171
|
+
/***/ }),
|
|
4172
|
+
|
|
4173
|
+
/***/ 29:
|
|
4174
|
+
/***/ (function(module, exports) {
|
|
4175
|
+
|
|
4176
|
+
module.exports = require("axios");
|
|
4177
|
+
|
|
4178
|
+
/***/ }),
|
|
4179
|
+
|
|
4166
4180
|
/***/ 3:
|
|
4167
4181
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4168
4182
|
|
|
@@ -4230,28 +4244,21 @@ function isDefined(val) {
|
|
|
4230
4244
|
|
|
4231
4245
|
/***/ }),
|
|
4232
4246
|
|
|
4233
|
-
/***/
|
|
4234
|
-
/***/ (function(module, exports) {
|
|
4235
|
-
|
|
4236
|
-
module.exports = require("qs");
|
|
4237
|
-
|
|
4238
|
-
/***/ }),
|
|
4239
|
-
|
|
4240
|
-
/***/ 32:
|
|
4247
|
+
/***/ 30:
|
|
4241
4248
|
/***/ (function(module, exports) {
|
|
4242
4249
|
|
|
4243
|
-
module.exports = require("
|
|
4250
|
+
module.exports = require("json-bigint");
|
|
4244
4251
|
|
|
4245
4252
|
/***/ }),
|
|
4246
4253
|
|
|
4247
|
-
/***/
|
|
4254
|
+
/***/ 31:
|
|
4248
4255
|
/***/ (function(module, exports) {
|
|
4249
4256
|
|
|
4250
|
-
module.exports = require("
|
|
4257
|
+
module.exports = require("eoss/lib/retrial-auth");
|
|
4251
4258
|
|
|
4252
4259
|
/***/ }),
|
|
4253
4260
|
|
|
4254
|
-
/***/
|
|
4261
|
+
/***/ 37:
|
|
4255
4262
|
/***/ (function(module, exports) {
|
|
4256
4263
|
|
|
4257
4264
|
module.exports = require("eoss/lib/dialog");
|
|
@@ -4363,14 +4370,14 @@ function normalizeComponent(
|
|
|
4363
4370
|
|
|
4364
4371
|
/***/ }),
|
|
4365
4372
|
|
|
4366
|
-
/***/
|
|
4373
|
+
/***/ 42:
|
|
4367
4374
|
/***/ (function(module, exports) {
|
|
4368
4375
|
|
|
4369
4376
|
module.exports = require("sm-crypto");
|
|
4370
4377
|
|
|
4371
4378
|
/***/ }),
|
|
4372
4379
|
|
|
4373
|
-
/***/
|
|
4380
|
+
/***/ 47:
|
|
4374
4381
|
/***/ (function(module, exports) {
|
|
4375
4382
|
|
|
4376
4383
|
module.exports = require("eoss/lib/data-table");
|
|
@@ -4381,146 +4388,146 @@ module.exports = require("eoss/lib/data-table");
|
|
|
4381
4388
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4382
4389
|
|
|
4383
4390
|
"use strict";
|
|
4384
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4385
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4386
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4387
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4388
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4389
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4391
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCaLogin; });
|
|
4392
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return doUserLogin; });
|
|
4393
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doQrLogin; });
|
|
4394
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return logout; });
|
|
4395
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initLogin; });
|
|
4396
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return switchUserTo; });
|
|
4390
4397
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
|
|
4391
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4392
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4398
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getLoginCode; });
|
|
4399
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doCodeLogin; });
|
|
4393
4400
|
/* unused harmony export updateCode */
|
|
4394
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4401
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getModifyPassCode; });
|
|
4395
4402
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
|
|
4396
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4403
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return loginModifyPassword; });
|
|
4397
4404
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
|
|
4398
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4405
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return initModifyPassword; });
|
|
4399
4406
|
/* unused harmony export doWechatQrLogin */
|
|
4400
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4407
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getTwoFactorLoginCode; });
|
|
4401
4408
|
/* unused harmony export doTwoFactorLogin */
|
|
4402
|
-
/*
|
|
4403
|
-
/*
|
|
4404
|
-
/*
|
|
4405
|
-
/*
|
|
4406
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4407
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4408
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4409
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4410
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4411
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4412
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4413
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4409
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return initRetrialAuth; });
|
|
4410
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getRetrialAuthCode; });
|
|
4411
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return scanCodeRetrialAuth; });
|
|
4412
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return codeRetrialAuth; });
|
|
4413
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doAssistanceQrLogin; });
|
|
4414
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zc", function() { return userOnline; });
|
|
4415
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return getUserAppWithTag; });
|
|
4416
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return recordUserApp; });
|
|
4417
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return getUserRecordApp; });
|
|
4418
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return mainConfig; });
|
|
4419
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return initUserSet; });
|
|
4420
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return updateUserInfo; });
|
|
4414
4421
|
/* unused harmony export getUserImgUrl */
|
|
4415
4422
|
/* unused harmony export getDoorIndex */
|
|
4416
4423
|
/* unused harmony export refreshOnlineUsers */
|
|
4417
4424
|
/* unused harmony export getQuickMenuIds */
|
|
4418
4425
|
/* unused harmony export getApplicationIdArray */
|
|
4419
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4420
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4421
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4422
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4426
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplications; });
|
|
4427
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getComplexApplicationsNew; });
|
|
4428
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getMainAppWithTag; });
|
|
4429
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getByType; });
|
|
4423
4430
|
/* unused harmony export getUserCustomInfo */
|
|
4424
4431
|
/* unused harmony export updateUserCustomInfo */
|
|
4425
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4426
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4427
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4428
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4429
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4430
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4431
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4432
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4433
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4434
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4432
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return saveOrUpdate; });
|
|
4433
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return sysMsgPage; });
|
|
4434
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return ignoreSysMsg; });
|
|
4435
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return ignoreAllSysMsg; });
|
|
4436
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return searchType; });
|
|
4437
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getSysParam; });
|
|
4438
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getAdjunctProperties; });
|
|
4439
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yc", function() { return uploads; });
|
|
4440
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xc", function() { return uploadOnlyOne; });
|
|
4441
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctFileInfos; });
|
|
4435
4442
|
/* unused harmony export uploadSort */
|
|
4436
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4437
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4438
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4439
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4440
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4441
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4443
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return downloadByAdjunctId; });
|
|
4444
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return uploadDownloads; });
|
|
4445
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return previewAdjunct; });
|
|
4446
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return previewAdjunct2; });
|
|
4447
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return previewAdjunctOffice; });
|
|
4448
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return delAdjunct; });
|
|
4442
4449
|
/* unused harmony export upload_updateClassify */
|
|
4443
4450
|
/* unused harmony export getDeleteAdjunctFileInfos */
|
|
4444
4451
|
/* unused harmony export getPictureBase64 */
|
|
4445
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4446
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4447
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4452
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSelectorOrgTree; });
|
|
4453
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSelectorOrgDetail; });
|
|
4454
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getOrgMainTree; });
|
|
4448
4455
|
/* unused harmony export getSelectOrgsubids */
|
|
4449
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4456
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCode; });
|
|
4450
4457
|
/* unused harmony export getDictList */
|
|
4451
4458
|
/* unused harmony export findUserBaseInfo */
|
|
4452
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4459
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return gethelpdoc; });
|
|
4453
4460
|
/* unused harmony export getCurrentuser */
|
|
4454
4461
|
/* unused harmony export mainDetail */
|
|
4455
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4456
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4457
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4462
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toStartFlow; });
|
|
4463
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return tempSave; });
|
|
4464
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return commonOpion; });
|
|
4458
4465
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
|
|
4459
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4460
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4461
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4462
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4463
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4464
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4465
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4466
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4467
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4468
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4469
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4470
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4466
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return editCommonOpion; });
|
|
4467
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return saveCommonOpinion; });
|
|
4468
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return updateCommonOpinion; });
|
|
4469
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteCommonOpion; });
|
|
4470
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getProcessDefList; });
|
|
4471
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfo; });
|
|
4472
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findCodeValues; });
|
|
4473
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return findSysParam; });
|
|
4474
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysCodes; });
|
|
4475
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getNotificationMsg; });
|
|
4476
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getHandleInfoHtml; });
|
|
4477
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskHandleHtml; });
|
|
4471
4478
|
/* unused harmony export getView */
|
|
4472
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4473
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4474
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4475
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4476
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4477
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4478
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4479
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4480
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4481
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4482
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4483
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4484
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4485
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4486
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4487
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4488
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4489
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4490
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4479
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return register; });
|
|
4480
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return pendedhistoryList; });
|
|
4481
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskRejectHtml; });
|
|
4482
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskRejectHtml; });
|
|
4483
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toStartTaskRead; });
|
|
4484
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toStartTaskReadIndex; });
|
|
4485
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskReadHtml; });
|
|
4486
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return rejectAndEnd; });
|
|
4487
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toSendMsg; });
|
|
4488
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sendMsg; });
|
|
4489
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return endFlowHtml; });
|
|
4490
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return handleInfo; });
|
|
4491
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return loginUserInfo; });
|
|
4492
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ad", function() { return wss; });
|
|
4493
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return topic; });
|
|
4494
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetCustomInfo; });
|
|
4495
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getPresetNodeInfo; });
|
|
4496
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return toTaskTransferIndex; });
|
|
4497
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return taskTransfer; });
|
|
4491
4498
|
/* unused harmony export toPresetInfoListIndex */
|
|
4492
4499
|
/* unused harmony export deletePresetInfo */
|
|
4493
4500
|
/* unused harmony export historyListJson */
|
|
4494
4501
|
/* unused harmony export pendedhistoryListJson */
|
|
4495
4502
|
/* unused harmony export pressListJson */
|
|
4496
4503
|
/* unused harmony export deleteFlow */
|
|
4497
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4498
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4499
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4500
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4501
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4502
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4503
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4504
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4505
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4506
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4507
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4508
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4509
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4510
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4511
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4512
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4513
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4514
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4515
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4516
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4517
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4504
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return isCanStartSubFlow; });
|
|
4505
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return toTaskUnionExamine; });
|
|
4506
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return taskUnionExamine; });
|
|
4507
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTaskTakeAdvice; });
|
|
4508
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return taskTakeAdvice; });
|
|
4509
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskStartDraft; });
|
|
4510
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskSupervise; });
|
|
4511
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskSuperviseSub; });
|
|
4512
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskStartDraft; });
|
|
4513
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskReview; });
|
|
4514
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskReview; });
|
|
4515
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return toTaskUnionSeal; });
|
|
4516
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return taskUnionSeal; });
|
|
4517
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return toTwoOfficesDispatch; });
|
|
4518
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return twoOfficesDispatch; });
|
|
4519
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toResetProcessIndex; });
|
|
4520
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return resetProcess; });
|
|
4521
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskContinuationIndex; });
|
|
4522
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskContinuation; });
|
|
4523
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getFreeStartFlowParams; });
|
|
4524
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeStartFlowWithSubmitTask; });
|
|
4518
4525
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
|
|
4519
4526
|
/* unused harmony export pendedhistoryListWithCircularReadJson */
|
|
4520
4527
|
/* unused harmony export fyListJson */
|
|
4521
4528
|
/* unused harmony export circularReadWithdraw */
|
|
4522
4529
|
/* unused harmony export taskReadWithDraw */
|
|
4523
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4530
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
|
|
4524
4531
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
|
|
4525
4532
|
/* unused harmony export sendList */
|
|
4526
4533
|
/* unused harmony export sendInfo */
|
|
@@ -4529,56 +4536,56 @@ module.exports = require("eoss/lib/data-table");
|
|
|
4529
4536
|
/* unused harmony export sendDelete */
|
|
4530
4537
|
/* unused harmony export sendBatch */
|
|
4531
4538
|
/* unused harmony export formContents */
|
|
4532
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4533
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4534
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4535
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4536
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4537
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4538
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4539
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4539
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return directStartTaskCircularRead; });
|
|
4540
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowAndStartTaskCircularRead; });
|
|
4541
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNodeInfoForStart; });
|
|
4542
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlow; });
|
|
4543
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUrgencyLevelChangedNotificationType; });
|
|
4544
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toFreeTaskCircularRead; });
|
|
4545
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return freeTaskCircularRead; });
|
|
4546
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pageLists; });
|
|
4540
4547
|
/* unused harmony export publishedLists */
|
|
4541
4548
|
/* unused harmony export pageInfo */
|
|
4542
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4543
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4544
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4545
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4549
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageGroup; });
|
|
4550
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return pageSave; });
|
|
4551
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return pageUpdate; });
|
|
4552
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageDelete; });
|
|
4546
4553
|
/* unused harmony export pageTargetDelete */
|
|
4547
4554
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
|
|
4548
4555
|
/* unused harmony export batchUpdate */
|
|
4549
4556
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
|
|
4550
4557
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
|
|
4551
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4552
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4553
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4554
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4555
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4556
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4557
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4558
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4559
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4560
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4561
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4562
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4563
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4564
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4565
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4566
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4567
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4568
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4569
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4558
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return processListJson; });
|
|
4559
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processInfo; });
|
|
4560
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processDeleteJson; });
|
|
4561
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return processSave; });
|
|
4562
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return processUpdate; });
|
|
4563
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return nodeListJson; });
|
|
4564
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeDeleteJson; });
|
|
4565
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return nodeSave; });
|
|
4566
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return nodeUpdate; });
|
|
4567
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeInfo; });
|
|
4568
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return moduleListJson; });
|
|
4569
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleInfo; });
|
|
4570
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleDelete; });
|
|
4571
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return moduleSave; });
|
|
4572
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return moduleUpdate; });
|
|
4573
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleListJson; });
|
|
4574
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleEdit; });
|
|
4575
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return ruleRead; });
|
|
4576
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return ruleSave; });
|
|
4570
4577
|
/* unused harmony export ruleSupplement */
|
|
4571
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4572
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4573
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4578
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return ruleUndore; });
|
|
4579
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleAdd; });
|
|
4580
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyDetail; });
|
|
4574
4581
|
/* unused harmony export issueDetailList */
|
|
4575
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4576
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4577
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4578
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4579
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4580
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4581
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
4582
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return deleteRule; });
|
|
4583
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getSysParamV1; });
|
|
4584
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return companyList; });
|
|
4585
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return supplement; });
|
|
4586
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return isAddSource; });
|
|
4587
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return tiggerInTime; });
|
|
4588
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return updateHistory; });
|
|
4582
4589
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
|
|
4583
4590
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
|
|
4584
4591
|
var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
|
|
@@ -5000,736 +5007,759 @@ var changeInTime = '/baseIssueRules/changeInTime';
|
|
|
5000
5007
|
/* unused harmony export getSecond */
|
|
5001
5008
|
/* unused harmony export getWeekday */
|
|
5002
5009
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
|
|
5003
|
-
|
|
5004
|
-
|
|
5010
|
+
/* Modified from https://github.com/taylorhakes/fecha
|
|
5011
|
+
*
|
|
5012
|
+
* The MIT License (MIT)
|
|
5013
|
+
*
|
|
5014
|
+
* Copyright (c) 2015 Taylor Hakes
|
|
5015
|
+
*
|
|
5016
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5017
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
5018
|
+
* in the Software without restriction, including without limitation the rights
|
|
5019
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
5020
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
5021
|
+
* furnished to do so, subject to the following conditions:
|
|
5022
|
+
*
|
|
5023
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
5024
|
+
* copies or substantial portions of the Software.
|
|
5025
|
+
*
|
|
5026
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
5027
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
5028
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
5029
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
5030
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
5031
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
5032
|
+
* SOFTWARE.
|
|
5033
|
+
*/
|
|
5034
|
+
|
|
5035
|
+
/*eslint-disable*/
|
|
5036
|
+
// 把 YYYY-MM-DD 改成了 yyyy-MM-dd
|
|
5037
|
+
|
|
5038
|
+
|
|
5005
5039
|
/**
|
|
5006
5040
|
* Parse or format dates
|
|
5007
5041
|
* @class fecha
|
|
5008
|
-
*/
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
function regexEscape(str) {
|
|
5019
|
-
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
5020
|
-
}
|
|
5021
|
-
|
|
5022
|
-
function shorten(arr, sLen) {
|
|
5023
|
-
|
|
5024
|
-
for (
|
|
5025
|
-
newArr.push(arr[i].substr(0, sLen));
|
|
5026
|
-
}
|
|
5027
|
-
return newArr;
|
|
5028
|
-
}
|
|
5029
|
-
|
|
5030
|
-
function monthUpdate() {
|
|
5031
|
-
return function (d, v) {
|
|
5032
|
-
|
|
5033
|
-
if (~index) {
|
|
5034
|
-
d.month = index;
|
|
5035
|
-
}
|
|
5036
|
-
};
|
|
5037
|
-
}
|
|
5038
|
-
|
|
5039
|
-
function pad(val, len) {
|
|
5040
|
-
val = String(val);
|
|
5041
|
-
len = len || 2;
|
|
5042
|
-
while (val.length < len) {
|
|
5043
|
-
val = '0' + val;
|
|
5044
|
-
}
|
|
5045
|
-
return val;
|
|
5046
|
-
}
|
|
5047
|
-
|
|
5048
|
-
// 直接使用中文日期名称常量
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
return D + '日';
|
|
5056
|
-
};
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
D: function
|
|
5060
|
-
return dateObj.getDay();
|
|
5061
|
-
},
|
|
5062
|
-
DD: function
|
|
5063
|
-
return pad(dateObj.getDay());
|
|
5064
|
-
},
|
|
5065
|
-
Do: function
|
|
5066
|
-
return DoFn(dateObj.getDate());
|
|
5067
|
-
},
|
|
5068
|
-
d: function
|
|
5069
|
-
return dateObj.getDate();
|
|
5070
|
-
},
|
|
5071
|
-
dd: function
|
|
5072
|
-
return pad(dateObj.getDate());
|
|
5073
|
-
},
|
|
5074
|
-
ddd: function
|
|
5075
|
-
return dayNamesShort[dateObj.getDay()];
|
|
5076
|
-
},
|
|
5077
|
-
dddd: function
|
|
5078
|
-
return dayNames[dateObj.getDay()];
|
|
5079
|
-
},
|
|
5080
|
-
M: function
|
|
5081
|
-
return dateObj.getMonth() + 1;
|
|
5082
|
-
},
|
|
5083
|
-
MM: function
|
|
5084
|
-
return pad(dateObj.getMonth() + 1);
|
|
5085
|
-
},
|
|
5086
|
-
MMM: function
|
|
5087
|
-
return monthNamesShort[dateObj.getMonth()];
|
|
5088
|
-
},
|
|
5089
|
-
MMMM: function
|
|
5090
|
-
return monthNames[dateObj.getMonth()];
|
|
5091
|
-
},
|
|
5092
|
-
yy: function
|
|
5093
|
-
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
5094
|
-
},
|
|
5095
|
-
yyyy: function
|
|
5096
|
-
return pad(dateObj.getFullYear(), 4);
|
|
5097
|
-
},
|
|
5098
|
-
h: function
|
|
5099
|
-
return dateObj.getHours() % 12 || 12;
|
|
5100
|
-
},
|
|
5101
|
-
hh: function
|
|
5102
|
-
return pad(dateObj.getHours() % 12 || 12);
|
|
5103
|
-
},
|
|
5104
|
-
H: function
|
|
5105
|
-
return dateObj.getHours();
|
|
5106
|
-
},
|
|
5107
|
-
HH: function
|
|
5108
|
-
return pad(dateObj.getHours());
|
|
5109
|
-
},
|
|
5110
|
-
m: function
|
|
5111
|
-
return dateObj.getMinutes();
|
|
5112
|
-
},
|
|
5113
|
-
mm: function
|
|
5114
|
-
return pad(dateObj.getMinutes());
|
|
5115
|
-
},
|
|
5116
|
-
s: function
|
|
5117
|
-
return dateObj.getSeconds();
|
|
5118
|
-
},
|
|
5119
|
-
ss: function
|
|
5120
|
-
return pad(dateObj.getSeconds());
|
|
5121
|
-
},
|
|
5122
|
-
S: function
|
|
5123
|
-
return Math.round(dateObj.getMilliseconds() / 100);
|
|
5124
|
-
},
|
|
5125
|
-
SS: function
|
|
5126
|
-
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
5127
|
-
},
|
|
5128
|
-
SSS: function
|
|
5129
|
-
return pad(dateObj.getMilliseconds(), 3);
|
|
5130
|
-
},
|
|
5131
|
-
a: function
|
|
5132
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
5133
|
-
},
|
|
5134
|
-
A: function
|
|
5135
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
5136
|
-
},
|
|
5137
|
-
ZZ: function
|
|
5138
|
-
|
|
5139
|
-
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
5140
|
-
}
|
|
5141
|
-
};
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
d: [twoDigits, function (d, v) {
|
|
5145
|
-
d.day = v;
|
|
5146
|
-
}],
|
|
5147
|
-
Do: [twoDigits + word, function (d, v) {
|
|
5148
|
-
d.day = parseInt(v, 10);
|
|
5149
|
-
}],
|
|
5150
|
-
M: [twoDigits, function (d, v) {
|
|
5151
|
-
d.month = v - 1;
|
|
5152
|
-
}],
|
|
5153
|
-
yy: [twoDigits, function (d, v) {
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
}
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
parseFlags.
|
|
5202
|
-
parseFlags.
|
|
5203
|
-
parseFlags.
|
|
5204
|
-
parseFlags.
|
|
5205
|
-
parseFlags.
|
|
5206
|
-
parseFlags.
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5042
|
+
*/
|
|
5043
|
+
const fecha = {};
|
|
5044
|
+
const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
|
|
5045
|
+
const twoDigits = '\\d\\d?';
|
|
5046
|
+
const threeDigits = '\\d{3}';
|
|
5047
|
+
const fourDigits = '\\d{4}';
|
|
5048
|
+
const word = '[^\\s]+';
|
|
5049
|
+
const literal = /\[([^]*?)\]/gm;
|
|
5050
|
+
const noop = function () {};
|
|
5051
|
+
|
|
5052
|
+
function regexEscape(str) {
|
|
5053
|
+
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
5054
|
+
}
|
|
5055
|
+
|
|
5056
|
+
function shorten(arr, sLen) {
|
|
5057
|
+
const newArr = [];
|
|
5058
|
+
for (let i = 0, len = arr.length; i < len; i++) {
|
|
5059
|
+
newArr.push(arr[i].substr(0, sLen));
|
|
5060
|
+
}
|
|
5061
|
+
return newArr;
|
|
5062
|
+
}
|
|
5063
|
+
|
|
5064
|
+
function monthUpdate() {
|
|
5065
|
+
return function (d, v) {
|
|
5066
|
+
const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
|
|
5067
|
+
if (~index) {
|
|
5068
|
+
d.month = index;
|
|
5069
|
+
}
|
|
5070
|
+
};
|
|
5071
|
+
}
|
|
5072
|
+
|
|
5073
|
+
function pad(val, len) {
|
|
5074
|
+
val = String(val);
|
|
5075
|
+
len = len || 2;
|
|
5076
|
+
while (val.length < len) {
|
|
5077
|
+
val = '0' + val;
|
|
5078
|
+
}
|
|
5079
|
+
return val;
|
|
5080
|
+
}
|
|
5081
|
+
|
|
5082
|
+
// 直接使用中文日期名称常量
|
|
5083
|
+
const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
5084
|
+
const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
|
|
5085
|
+
const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
|
|
5086
|
+
const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
|
|
5087
|
+
const amPm = ['上午', '下午'];
|
|
5088
|
+
const DoFn = function DoFn(D) {
|
|
5089
|
+
return D + '日';
|
|
5090
|
+
};
|
|
5091
|
+
|
|
5092
|
+
const formatFlags = {
|
|
5093
|
+
D: function(dateObj) {
|
|
5094
|
+
return dateObj.getDay();
|
|
5095
|
+
},
|
|
5096
|
+
DD: function(dateObj) {
|
|
5097
|
+
return pad(dateObj.getDay());
|
|
5098
|
+
},
|
|
5099
|
+
Do: function(dateObj) {
|
|
5100
|
+
return DoFn(dateObj.getDate());
|
|
5101
|
+
},
|
|
5102
|
+
d: function(dateObj) {
|
|
5103
|
+
return dateObj.getDate();
|
|
5104
|
+
},
|
|
5105
|
+
dd: function(dateObj) {
|
|
5106
|
+
return pad(dateObj.getDate());
|
|
5107
|
+
},
|
|
5108
|
+
ddd: function(dateObj) {
|
|
5109
|
+
return dayNamesShort[dateObj.getDay()];
|
|
5110
|
+
},
|
|
5111
|
+
dddd: function(dateObj) {
|
|
5112
|
+
return dayNames[dateObj.getDay()];
|
|
5113
|
+
},
|
|
5114
|
+
M: function(dateObj) {
|
|
5115
|
+
return dateObj.getMonth() + 1;
|
|
5116
|
+
},
|
|
5117
|
+
MM: function(dateObj) {
|
|
5118
|
+
return pad(dateObj.getMonth() + 1);
|
|
5119
|
+
},
|
|
5120
|
+
MMM: function(dateObj) {
|
|
5121
|
+
return monthNamesShort[dateObj.getMonth()];
|
|
5122
|
+
},
|
|
5123
|
+
MMMM: function(dateObj) {
|
|
5124
|
+
return monthNames[dateObj.getMonth()];
|
|
5125
|
+
},
|
|
5126
|
+
yy: function(dateObj) {
|
|
5127
|
+
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
5128
|
+
},
|
|
5129
|
+
yyyy: function(dateObj) {
|
|
5130
|
+
return pad(dateObj.getFullYear(), 4);
|
|
5131
|
+
},
|
|
5132
|
+
h: function(dateObj) {
|
|
5133
|
+
return dateObj.getHours() % 12 || 12;
|
|
5134
|
+
},
|
|
5135
|
+
hh: function(dateObj) {
|
|
5136
|
+
return pad(dateObj.getHours() % 12 || 12);
|
|
5137
|
+
},
|
|
5138
|
+
H: function(dateObj) {
|
|
5139
|
+
return dateObj.getHours();
|
|
5140
|
+
},
|
|
5141
|
+
HH: function(dateObj) {
|
|
5142
|
+
return pad(dateObj.getHours());
|
|
5143
|
+
},
|
|
5144
|
+
m: function(dateObj) {
|
|
5145
|
+
return dateObj.getMinutes();
|
|
5146
|
+
},
|
|
5147
|
+
mm: function(dateObj) {
|
|
5148
|
+
return pad(dateObj.getMinutes());
|
|
5149
|
+
},
|
|
5150
|
+
s: function(dateObj) {
|
|
5151
|
+
return dateObj.getSeconds();
|
|
5152
|
+
},
|
|
5153
|
+
ss: function(dateObj) {
|
|
5154
|
+
return pad(dateObj.getSeconds());
|
|
5155
|
+
},
|
|
5156
|
+
S: function(dateObj) {
|
|
5157
|
+
return Math.round(dateObj.getMilliseconds() / 100);
|
|
5158
|
+
},
|
|
5159
|
+
SS: function(dateObj) {
|
|
5160
|
+
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
5161
|
+
},
|
|
5162
|
+
SSS: function(dateObj) {
|
|
5163
|
+
return pad(dateObj.getMilliseconds(), 3);
|
|
5164
|
+
},
|
|
5165
|
+
a: function(dateObj) {
|
|
5166
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
5167
|
+
},
|
|
5168
|
+
A: function(dateObj) {
|
|
5169
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
5170
|
+
},
|
|
5171
|
+
ZZ: function(dateObj) {
|
|
5172
|
+
const o = dateObj.getTimezoneOffset();
|
|
5173
|
+
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
5174
|
+
}
|
|
5175
|
+
};
|
|
5176
|
+
|
|
5177
|
+
const parseFlags = {
|
|
5178
|
+
d: [twoDigits, function (d, v) {
|
|
5179
|
+
d.day = v;
|
|
5180
|
+
}],
|
|
5181
|
+
Do: [twoDigits + word, function (d, v) {
|
|
5182
|
+
d.day = parseInt(v, 10);
|
|
5183
|
+
}],
|
|
5184
|
+
M: [twoDigits, function (d, v) {
|
|
5185
|
+
d.month = v - 1;
|
|
5186
|
+
}],
|
|
5187
|
+
yy: [twoDigits, function (d, v) {
|
|
5188
|
+
const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
|
|
5189
|
+
d.year = '' + (v > 68 ? cent - 1 : cent) + v;
|
|
5190
|
+
}],
|
|
5191
|
+
h: [twoDigits, function (d, v) {
|
|
5192
|
+
d.hour = v;
|
|
5193
|
+
}],
|
|
5194
|
+
m: [twoDigits, function (d, v) {
|
|
5195
|
+
d.minute = v;
|
|
5196
|
+
}],
|
|
5197
|
+
s: [twoDigits, function (d, v) {
|
|
5198
|
+
d.second = v;
|
|
5199
|
+
}],
|
|
5200
|
+
yyyy: [fourDigits, function (d, v) {
|
|
5201
|
+
d.year = v;
|
|
5202
|
+
}],
|
|
5203
|
+
S: ['\\d', function (d, v) {
|
|
5204
|
+
d.millisecond = v * 100;
|
|
5205
|
+
}],
|
|
5206
|
+
SS: ['\\d{2}', function (d, v) {
|
|
5207
|
+
d.millisecond = v * 10;
|
|
5208
|
+
}],
|
|
5209
|
+
SSS: [threeDigits, function (d, v) {
|
|
5210
|
+
d.millisecond = v;
|
|
5211
|
+
}],
|
|
5212
|
+
D: [twoDigits, noop],
|
|
5213
|
+
ddd: [word, noop],
|
|
5214
|
+
MMM: [word, monthUpdate('monthNamesShort')],
|
|
5215
|
+
MMMM: [word, monthUpdate('monthNames')],
|
|
5216
|
+
a: [word, function (d, v) {
|
|
5217
|
+
const val = v.toLowerCase();
|
|
5218
|
+
if (val === '上午') {
|
|
5219
|
+
d.isPm = false;
|
|
5220
|
+
} else if (val === '下午') {
|
|
5221
|
+
d.isPm = true;
|
|
5222
|
+
}
|
|
5223
|
+
}],
|
|
5224
|
+
ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
|
|
5225
|
+
let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
|
|
5226
|
+
|
|
5227
|
+
if (parts) {
|
|
5228
|
+
minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
|
|
5229
|
+
d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
|
|
5230
|
+
}
|
|
5231
|
+
}]
|
|
5232
|
+
};
|
|
5233
|
+
parseFlags.dd = parseFlags.d;
|
|
5234
|
+
parseFlags.dddd = parseFlags.ddd;
|
|
5235
|
+
parseFlags.DD = parseFlags.D;
|
|
5236
|
+
parseFlags.mm = parseFlags.m;
|
|
5237
|
+
parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
|
|
5238
|
+
parseFlags.MM = parseFlags.M;
|
|
5239
|
+
parseFlags.ss = parseFlags.s;
|
|
5240
|
+
parseFlags.A = parseFlags.a;
|
|
5241
|
+
|
|
5242
|
+
|
|
5243
|
+
// Some common format strings
|
|
5244
|
+
fecha.masks = {
|
|
5245
|
+
default: 'ddd MMM dd yyyy HH:mm:ss',
|
|
5246
|
+
shortDate: 'M/D/yy',
|
|
5247
|
+
mediumDate: 'MMM d, yyyy',
|
|
5248
|
+
longDate: 'MMMM d, yyyy',
|
|
5249
|
+
fullDate: 'dddd, MMMM d, yyyy',
|
|
5250
|
+
shortTime: 'HH:mm',
|
|
5251
|
+
mediumTime: 'HH:mm:ss',
|
|
5252
|
+
longTime: 'HH:mm:ss.SSS'
|
|
5253
|
+
};
|
|
5254
|
+
|
|
5222
5255
|
/***
|
|
5223
5256
|
* Format a date
|
|
5224
5257
|
* @method format
|
|
5225
5258
|
* @param {Date|number} dateObj
|
|
5226
5259
|
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
|
|
5227
|
-
*/
|
|
5228
|
-
fecha.format = function (dateObj, mask) {
|
|
5229
|
-
if (typeof dateObj === 'number') {
|
|
5230
|
-
dateObj = new Date(dateObj);
|
|
5231
|
-
}
|
|
5232
|
-
|
|
5233
|
-
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
5234
|
-
throw new Error('Invalid Date in fecha.format');
|
|
5235
|
-
}
|
|
5236
|
-
|
|
5237
|
-
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
// Make literals inactive by replacing them with ??
|
|
5242
|
-
mask = mask.replace(literal, function
|
|
5243
|
-
literals.push($1);
|
|
5244
|
-
return '@@@';
|
|
5245
|
-
});
|
|
5246
|
-
// Apply formatting rules
|
|
5247
|
-
mask = mask.replace(token, function ($0) {
|
|
5248
|
-
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
5249
|
-
});
|
|
5250
|
-
// Inline literal values back into the formatted value
|
|
5251
|
-
return mask.replace(/@@@/g, function
|
|
5252
|
-
return literals.shift();
|
|
5253
|
-
});
|
|
5254
|
-
};
|
|
5255
|
-
|
|
5260
|
+
*/
|
|
5261
|
+
fecha.format = function (dateObj, mask) {
|
|
5262
|
+
if (typeof dateObj === 'number') {
|
|
5263
|
+
dateObj = new Date(dateObj);
|
|
5264
|
+
}
|
|
5265
|
+
|
|
5266
|
+
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
5267
|
+
throw new Error('Invalid Date in fecha.format');
|
|
5268
|
+
}
|
|
5269
|
+
|
|
5270
|
+
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
5271
|
+
|
|
5272
|
+
const literals = [];
|
|
5273
|
+
|
|
5274
|
+
// Make literals inactive by replacing them with ??
|
|
5275
|
+
mask = mask.replace(literal, function($0, $1) {
|
|
5276
|
+
literals.push($1);
|
|
5277
|
+
return '@@@';
|
|
5278
|
+
});
|
|
5279
|
+
// Apply formatting rules
|
|
5280
|
+
mask = mask.replace(token, function ($0) {
|
|
5281
|
+
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
5282
|
+
});
|
|
5283
|
+
// Inline literal values back into the formatted value
|
|
5284
|
+
return mask.replace(/@@@/g, function() {
|
|
5285
|
+
return literals.shift();
|
|
5286
|
+
});
|
|
5287
|
+
};
|
|
5288
|
+
|
|
5256
5289
|
/**
|
|
5257
5290
|
* Parse a date string into an object, changes - into /
|
|
5258
5291
|
* @method parse
|
|
5259
5292
|
* @param {string} dateStr Date string
|
|
5260
5293
|
* @param {string} format Date parse format
|
|
5261
5294
|
* @returns {Date|boolean}
|
|
5262
|
-
*/
|
|
5263
|
-
fecha.parse = function (dateStr, format) {
|
|
5264
|
-
if (typeof format !== 'string') {
|
|
5265
|
-
throw new Error('Invalid format in fecha.parse');
|
|
5266
|
-
}
|
|
5267
|
-
|
|
5268
|
-
format = fecha.masks[format] || format;
|
|
5269
|
-
|
|
5270
|
-
// Avoid regular expression denial of service, fail early for really long strings
|
|
5271
|
-
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
5272
|
-
if (dateStr.length > 1000) {
|
|
5273
|
-
return null;
|
|
5274
|
-
}
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
format = format.replace(literal, function
|
|
5280
|
-
literals.push($1);
|
|
5281
|
-
return '@@@';
|
|
5282
|
-
});
|
|
5283
|
-
|
|
5284
|
-
if (parseFlags[$0]) {
|
|
5285
|
-
|
|
5286
|
-
parseInfo.push(info[1]);
|
|
5287
|
-
return '(' + info[0] + ')';
|
|
5288
|
-
}
|
|
5289
|
-
|
|
5290
|
-
return $0;
|
|
5291
|
-
});
|
|
5292
|
-
newFormat = newFormat.replace(/@@@/g, function
|
|
5293
|
-
return literals.shift();
|
|
5294
|
-
});
|
|
5295
|
-
|
|
5296
|
-
if (!matches) {
|
|
5297
|
-
return null;
|
|
5298
|
-
}
|
|
5299
|
-
|
|
5300
|
-
for (
|
|
5301
|
-
parseInfo[i - 1](dateInfo, matches[i]);
|
|
5302
|
-
}
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
5306
|
-
dateInfo.hour = +dateInfo.hour + 12;
|
|
5307
|
-
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
5308
|
-
dateInfo.hour = 0;
|
|
5309
|
-
}
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
if (dateInfo.timezoneOffset != null) {
|
|
5313
|
-
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
5314
|
-
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
}
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
}
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
if (
|
|
5351
|
-
return
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
// 处理多种输入类型
|
|
5362
|
-
if (!date) return '';
|
|
5363
|
-
|
|
5364
|
-
// 如果是时间戳,转成日期对象
|
|
5365
|
-
if (typeof date === 'number') {
|
|
5366
|
-
date = new Date(date);
|
|
5367
|
-
}
|
|
5368
|
-
// 如果是字符串,转成日期对象
|
|
5369
|
-
if (typeof date === 'string') {
|
|
5370
|
-
date = new Date(date);
|
|
5371
|
-
}
|
|
5372
|
-
|
|
5373
|
-
// 调用toDate进一步验证和转换
|
|
5374
|
-
date = toDate(date);
|
|
5375
|
-
if (!date) return '';
|
|
5376
|
-
|
|
5377
|
-
// 兼容大写和小写的格式标记
|
|
5378
|
-
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
return
|
|
5400
|
-
}
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
//
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
5424
|
-
};
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
return prevDate(result,
|
|
5438
|
-
}
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
//
|
|
5458
|
-
|
|
5459
|
-
//
|
|
5460
|
-
|
|
5461
|
-
//
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
for (
|
|
5481
|
-
hours[i] =
|
|
5482
|
-
}
|
|
5483
|
-
}
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
return
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
};
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
}
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
return
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
return
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
}
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
};
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
return
|
|
5645
|
-
};
|
|
5646
|
-
|
|
5647
|
-
var extractTimeFormat = function extractTimeFormat(format) {
|
|
5648
|
-
return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
|
|
5649
|
-
};
|
|
5650
|
-
|
|
5651
|
-
var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
|
|
5652
|
-
return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
|
|
5653
|
-
};
|
|
5654
|
-
|
|
5295
|
+
*/
|
|
5296
|
+
fecha.parse = function (dateStr, format) {
|
|
5297
|
+
if (typeof format !== 'string') {
|
|
5298
|
+
throw new Error('Invalid format in fecha.parse');
|
|
5299
|
+
}
|
|
5300
|
+
|
|
5301
|
+
format = fecha.masks[format] || format;
|
|
5302
|
+
|
|
5303
|
+
// Avoid regular expression denial of service, fail early for really long strings
|
|
5304
|
+
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
5305
|
+
if (dateStr.length > 1000) {
|
|
5306
|
+
return null;
|
|
5307
|
+
}
|
|
5308
|
+
|
|
5309
|
+
const dateInfo = {};
|
|
5310
|
+
const parseInfo = [];
|
|
5311
|
+
const literals = [];
|
|
5312
|
+
format = format.replace(literal, function($0, $1) {
|
|
5313
|
+
literals.push($1);
|
|
5314
|
+
return '@@@';
|
|
5315
|
+
});
|
|
5316
|
+
let newFormat = regexEscape(format).replace(token, function ($0) {
|
|
5317
|
+
if (parseFlags[$0]) {
|
|
5318
|
+
const info = parseFlags[$0];
|
|
5319
|
+
parseInfo.push(info[1]);
|
|
5320
|
+
return '(' + info[0] + ')';
|
|
5321
|
+
}
|
|
5322
|
+
|
|
5323
|
+
return $0;
|
|
5324
|
+
});
|
|
5325
|
+
newFormat = newFormat.replace(/@@@/g, function() {
|
|
5326
|
+
return literals.shift();
|
|
5327
|
+
});
|
|
5328
|
+
const matches = dateStr.match(new RegExp(newFormat, 'i'));
|
|
5329
|
+
if (!matches) {
|
|
5330
|
+
return null;
|
|
5331
|
+
}
|
|
5332
|
+
|
|
5333
|
+
for (let i = 1; i < matches.length; i++) {
|
|
5334
|
+
parseInfo[i - 1](dateInfo, matches[i]);
|
|
5335
|
+
}
|
|
5336
|
+
|
|
5337
|
+
const today = new Date();
|
|
5338
|
+
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
5339
|
+
dateInfo.hour = +dateInfo.hour + 12;
|
|
5340
|
+
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
5341
|
+
dateInfo.hour = 0;
|
|
5342
|
+
}
|
|
5343
|
+
|
|
5344
|
+
let date;
|
|
5345
|
+
if (dateInfo.timezoneOffset != null) {
|
|
5346
|
+
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
5347
|
+
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
5348
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
|
|
5349
|
+
} else {
|
|
5350
|
+
date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
5351
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
|
|
5352
|
+
}
|
|
5353
|
+
return date;
|
|
5354
|
+
};
|
|
5355
|
+
|
|
5356
|
+
// 导出fecha对象
|
|
5357
|
+
|
|
5358
|
+
|
|
5359
|
+
// 以下是从date-util.js合并的函数
|
|
5360
|
+
const newArray = function(start, end) {
|
|
5361
|
+
let result = [];
|
|
5362
|
+
for (let i = start; i <= end; i++) {
|
|
5363
|
+
result.push(i);
|
|
5364
|
+
}
|
|
5365
|
+
return result;
|
|
5366
|
+
};
|
|
5367
|
+
|
|
5368
|
+
const getSettings = () => {
|
|
5369
|
+
return {
|
|
5370
|
+
dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
|
|
5371
|
+
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
|
|
5372
|
+
monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
5373
|
+
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
|
5374
|
+
amPm: ['上午', '下午']
|
|
5375
|
+
};
|
|
5376
|
+
};
|
|
5377
|
+
|
|
5378
|
+
const toDate = function(date) {
|
|
5379
|
+
return isDate(date) ? new Date(date) : null;
|
|
5380
|
+
};
|
|
5381
|
+
|
|
5382
|
+
const isDate = function(date) {
|
|
5383
|
+
if (date === null || date === undefined) return false;
|
|
5384
|
+
if (isNaN(new Date(date).getTime())) return false;
|
|
5385
|
+
if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
|
|
5386
|
+
return true;
|
|
5387
|
+
};
|
|
5388
|
+
|
|
5389
|
+
const isDateObject = function(val) {
|
|
5390
|
+
return val instanceof Date;
|
|
5391
|
+
};
|
|
5392
|
+
|
|
5393
|
+
const formatDate = function (date, format = 'yyyy-MM-dd') {
|
|
5394
|
+
// 处理多种输入类型
|
|
5395
|
+
if (!date) return '';
|
|
5396
|
+
|
|
5397
|
+
// 如果是时间戳,转成日期对象
|
|
5398
|
+
if (typeof date === 'number') {
|
|
5399
|
+
date = new Date(date);
|
|
5400
|
+
}
|
|
5401
|
+
// 如果是字符串,转成日期对象
|
|
5402
|
+
if (typeof date === 'string') {
|
|
5403
|
+
date = new Date(date);
|
|
5404
|
+
}
|
|
5405
|
+
|
|
5406
|
+
// 调用toDate进一步验证和转换
|
|
5407
|
+
date = toDate(date);
|
|
5408
|
+
if (!date) return '';
|
|
5409
|
+
|
|
5410
|
+
// 兼容大写和小写的格式标记
|
|
5411
|
+
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
5412
|
+
const lowercaseFormat = format
|
|
5413
|
+
.replace(/YYYY/g, 'yyyy')
|
|
5414
|
+
.replace(/D/g, 'd')
|
|
5415
|
+
|
|
5416
|
+
// 使用fecha库进行格式化,支持中文配置
|
|
5417
|
+
const str = fecha.format(date, lowercaseFormat, getSettings());
|
|
5418
|
+
return str;
|
|
5419
|
+
};
|
|
5420
|
+
|
|
5421
|
+
const parseDate = function(string, format) {
|
|
5422
|
+
return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
|
|
5423
|
+
};
|
|
5424
|
+
|
|
5425
|
+
const getDayCountOfMonth = function(year, month) {
|
|
5426
|
+
if (month === 3 || month === 5 || month === 8 || month === 10) {
|
|
5427
|
+
return 30;
|
|
5428
|
+
}
|
|
5429
|
+
|
|
5430
|
+
if (month === 1) {
|
|
5431
|
+
if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
|
|
5432
|
+
return 29;
|
|
5433
|
+
} else {
|
|
5434
|
+
return 28;
|
|
5435
|
+
}
|
|
5436
|
+
}
|
|
5437
|
+
|
|
5438
|
+
return 31;
|
|
5439
|
+
};
|
|
5440
|
+
|
|
5441
|
+
const getDayCountOfYear = function(year) {
|
|
5442
|
+
const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
|
|
5443
|
+
return isLeapYear ? 366 : 365;
|
|
5444
|
+
};
|
|
5445
|
+
|
|
5446
|
+
const getFirstDayOfMonth = function(date) {
|
|
5447
|
+
const temp = new Date(date.getTime());
|
|
5448
|
+
temp.setDate(1);
|
|
5449
|
+
return temp.getDay();
|
|
5450
|
+
};
|
|
5451
|
+
|
|
5452
|
+
// see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
|
|
5453
|
+
// {prev, next} Date should work for Daylight Saving Time
|
|
5454
|
+
// Adding 24 * 60 * 60 * 1000 does not work in the above scenario
|
|
5455
|
+
const prevDate = function(date, amount = 1) {
|
|
5456
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
5457
|
+
};
|
|
5458
|
+
|
|
5459
|
+
const nextDate = function(date, amount = 1) {
|
|
5460
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
|
|
5461
|
+
};
|
|
5462
|
+
|
|
5463
|
+
const getStartDateOfMonth = function(year, month) {
|
|
5464
|
+
const result = new Date(year, month, 1);
|
|
5465
|
+
const day = result.getDay();
|
|
5466
|
+
|
|
5467
|
+
if (day === 0) {
|
|
5468
|
+
return prevDate(result, 7);
|
|
5469
|
+
} else {
|
|
5470
|
+
return prevDate(result, day);
|
|
5471
|
+
}
|
|
5472
|
+
};
|
|
5473
|
+
|
|
5474
|
+
const getWeekNumber = function(date) {
|
|
5475
|
+
// 支持多种输入类型
|
|
5476
|
+
if (!date||!isDate(date)) {
|
|
5477
|
+
date = new Date();
|
|
5478
|
+
}
|
|
5479
|
+
if (typeof date === 'string') {
|
|
5480
|
+
date = new Date(date);
|
|
5481
|
+
}
|
|
5482
|
+
|
|
5483
|
+
// 验证日期有效性
|
|
5484
|
+
if (!isDate(date)) return null;
|
|
5485
|
+
|
|
5486
|
+
const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
5487
|
+
// 设置为最近的星期四:当前日期 + 4 - 当前星期数
|
|
5488
|
+
// 将星期日的星期数设为7
|
|
5489
|
+
d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
|
|
5490
|
+
// 获取当年的第一天
|
|
5491
|
+
const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
5492
|
+
// 计算到最近的星期四的完整周数
|
|
5493
|
+
const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
|
|
5494
|
+
// 返回周数
|
|
5495
|
+
return weekNo;
|
|
5496
|
+
};
|
|
5497
|
+
|
|
5498
|
+
const getRangeHours = function(ranges) {
|
|
5499
|
+
const hours = [];
|
|
5500
|
+
let disabledHours = [];
|
|
5501
|
+
|
|
5502
|
+
(ranges || []).forEach(range => {
|
|
5503
|
+
const value = range.map(date => date.getHours());
|
|
5504
|
+
|
|
5505
|
+
disabledHours = disabledHours.concat(newArray(value[0], value[1]));
|
|
5506
|
+
});
|
|
5507
|
+
|
|
5508
|
+
if (disabledHours.length) {
|
|
5509
|
+
for (let i = 0; i < 24; i++) {
|
|
5510
|
+
hours[i] = disabledHours.indexOf(i) === -1;
|
|
5511
|
+
}
|
|
5512
|
+
} else {
|
|
5513
|
+
for (let i = 0; i < 24; i++) {
|
|
5514
|
+
hours[i] = false;
|
|
5515
|
+
}
|
|
5516
|
+
}
|
|
5517
|
+
|
|
5518
|
+
return hours;
|
|
5519
|
+
};
|
|
5520
|
+
|
|
5521
|
+
const getPrevMonthLastDays = (date, amount) => {
|
|
5522
|
+
if (amount <= 0) return [];
|
|
5523
|
+
const temp = new Date(date.getTime());
|
|
5524
|
+
temp.setDate(0);
|
|
5525
|
+
const lastDay = temp.getDate();
|
|
5526
|
+
return range(amount).map((_, index) => lastDay - (amount - index - 1));
|
|
5527
|
+
};
|
|
5528
|
+
|
|
5529
|
+
const getMonthDays = (date) => {
|
|
5530
|
+
const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
5531
|
+
const days = temp.getDate();
|
|
5532
|
+
return range(days).map((_, index) => index + 1);
|
|
5533
|
+
};
|
|
5534
|
+
|
|
5535
|
+
function setRangeData(arr, start, end, value) {
|
|
5536
|
+
for (let i = start; i < end; i++) {
|
|
5537
|
+
arr[i] = value;
|
|
5538
|
+
}
|
|
5539
|
+
}
|
|
5540
|
+
|
|
5541
|
+
const getRangeMinutes = function(ranges, hour) {
|
|
5542
|
+
const minutes = new Array(60);
|
|
5543
|
+
|
|
5544
|
+
if (ranges.length > 0) {
|
|
5545
|
+
ranges.forEach(range => {
|
|
5546
|
+
const start = range[0];
|
|
5547
|
+
const end = range[1];
|
|
5548
|
+
const startHour = start.getHours();
|
|
5549
|
+
const startMinute = start.getMinutes();
|
|
5550
|
+
const endHour = end.getHours();
|
|
5551
|
+
const endMinute = end.getMinutes();
|
|
5552
|
+
if (startHour === hour && endHour !== hour) {
|
|
5553
|
+
setRangeData(minutes, startMinute, 60, true);
|
|
5554
|
+
} else if (startHour === hour && endHour === hour) {
|
|
5555
|
+
setRangeData(minutes, startMinute, endMinute + 1, true);
|
|
5556
|
+
} else if (startHour !== hour && endHour === hour) {
|
|
5557
|
+
setRangeData(minutes, 0, endMinute + 1, true);
|
|
5558
|
+
} else if (startHour < hour && endHour > hour) {
|
|
5559
|
+
setRangeData(minutes, 0, 60, true);
|
|
5560
|
+
}
|
|
5561
|
+
});
|
|
5562
|
+
} else {
|
|
5563
|
+
setRangeData(minutes, 0, 60, true);
|
|
5564
|
+
}
|
|
5565
|
+
return minutes;
|
|
5566
|
+
};
|
|
5567
|
+
|
|
5568
|
+
const range = function(n) {
|
|
5569
|
+
// see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
|
|
5570
|
+
return Array.apply(null, {length: n}).map((_, n) => n);
|
|
5571
|
+
};
|
|
5572
|
+
|
|
5573
|
+
const modifyDate = function(date, y, m, d) {
|
|
5574
|
+
return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
5575
|
+
};
|
|
5576
|
+
|
|
5577
|
+
const modifyTime = function(date, h, m, s) {
|
|
5578
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
|
|
5579
|
+
};
|
|
5580
|
+
|
|
5581
|
+
const modifyWithTimeString = (date, time) => {
|
|
5582
|
+
if (date == null || !time) {
|
|
5583
|
+
return date;
|
|
5584
|
+
}
|
|
5585
|
+
time = parseDate(time, 'HH:mm:ss');
|
|
5586
|
+
return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
|
|
5587
|
+
};
|
|
5588
|
+
|
|
5589
|
+
const clearTime = function(date) {
|
|
5590
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
5591
|
+
};
|
|
5592
|
+
|
|
5593
|
+
const clearMilliseconds = function(date) {
|
|
5594
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
|
|
5595
|
+
};
|
|
5596
|
+
|
|
5597
|
+
const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
|
|
5598
|
+
// TODO: refactory a more elegant solution
|
|
5599
|
+
if (ranges.length === 0) return date;
|
|
5600
|
+
const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
|
|
5601
|
+
const ndate = normalizeDate(date);
|
|
5602
|
+
const nranges = ranges.map(range => range.map(normalizeDate));
|
|
5603
|
+
if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
|
|
5604
|
+
|
|
5605
|
+
let minDate = nranges[0][0];
|
|
5606
|
+
let maxDate = nranges[0][0];
|
|
5607
|
+
|
|
5608
|
+
nranges.forEach(nrange => {
|
|
5609
|
+
minDate = new Date(Math.min(nrange[0], minDate));
|
|
5610
|
+
maxDate = new Date(Math.max(nrange[1], minDate));
|
|
5611
|
+
});
|
|
5612
|
+
|
|
5613
|
+
const ret = ndate < minDate ? minDate : maxDate;
|
|
5614
|
+
// preserve Year/Month/Date
|
|
5615
|
+
return modifyDate(
|
|
5616
|
+
ret,
|
|
5617
|
+
date.getFullYear(),
|
|
5618
|
+
date.getMonth(),
|
|
5619
|
+
date.getDate()
|
|
5620
|
+
);
|
|
5621
|
+
};
|
|
5622
|
+
|
|
5623
|
+
const timeWithinRange = function(date, selectableRange, format) {
|
|
5624
|
+
const limitedDate = limitTimeRange(date, selectableRange, format);
|
|
5625
|
+
return limitedDate.getTime() === date.getTime();
|
|
5626
|
+
};
|
|
5627
|
+
|
|
5628
|
+
const changeYearMonthAndClampDate = function(date, year, month) {
|
|
5629
|
+
// clamp date to the number of days in `year`, `month`
|
|
5630
|
+
// eg: (2010-1-31, 2010, 2) => 2010-2-28
|
|
5631
|
+
const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
|
|
5632
|
+
return modifyDate(date, year, month, monthDate);
|
|
5633
|
+
};
|
|
5634
|
+
|
|
5635
|
+
const prevMonth = function(date) {
|
|
5636
|
+
const year = date.getFullYear();
|
|
5637
|
+
const month = date.getMonth();
|
|
5638
|
+
return month === 0
|
|
5639
|
+
? changeYearMonthAndClampDate(date, year - 1, 11)
|
|
5640
|
+
: changeYearMonthAndClampDate(date, year, month - 1);
|
|
5641
|
+
};
|
|
5642
|
+
|
|
5643
|
+
const nextMonth = function(date) {
|
|
5644
|
+
const year = date.getFullYear();
|
|
5645
|
+
const month = date.getMonth();
|
|
5646
|
+
return month === 11
|
|
5647
|
+
? changeYearMonthAndClampDate(date, year + 1, 0)
|
|
5648
|
+
: changeYearMonthAndClampDate(date, year, month + 1);
|
|
5649
|
+
};
|
|
5650
|
+
|
|
5651
|
+
const prevYear = function(date, amount = 1) {
|
|
5652
|
+
const year = date.getFullYear();
|
|
5653
|
+
const month = date.getMonth();
|
|
5654
|
+
return changeYearMonthAndClampDate(date, year - amount, month);
|
|
5655
|
+
};
|
|
5656
|
+
|
|
5657
|
+
const nextYear = function(date, amount = 1) {
|
|
5658
|
+
const year = date.getFullYear();
|
|
5659
|
+
const month = date.getMonth();
|
|
5660
|
+
return changeYearMonthAndClampDate(date, year + amount, month);
|
|
5661
|
+
};
|
|
5662
|
+
|
|
5663
|
+
const extractDateFormat = function(format) {
|
|
5664
|
+
return format
|
|
5665
|
+
.replace(/\W?m{1,2}|\W?ZZ/g, '')
|
|
5666
|
+
.replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
|
|
5667
|
+
.trim();
|
|
5668
|
+
};
|
|
5669
|
+
|
|
5670
|
+
const extractTimeFormat = function(format) {
|
|
5671
|
+
return format
|
|
5672
|
+
.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
|
|
5673
|
+
.trim();
|
|
5674
|
+
};
|
|
5675
|
+
|
|
5676
|
+
const validateRangeInOneMonth = function(start, end) {
|
|
5677
|
+
return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
|
|
5678
|
+
};
|
|
5679
|
+
|
|
5655
5680
|
/**
|
|
5656
5681
|
* 计算两个日期之间的工作日数量(不包括周末和节假日)
|
|
5657
5682
|
* @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
|
|
5658
5683
|
* @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
|
|
5659
5684
|
* @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
|
|
5660
5685
|
* @returns {number} 工作日数量
|
|
5661
|
-
*/
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
}
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
5673
|
-
throw new Error(
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
}
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5686
|
+
*/
|
|
5687
|
+
const calculateNetworkDays = function (start_date, end_date, holidays = []) {
|
|
5688
|
+
if (typeof start_date !== 'string' || typeof end_date !== 'string') {
|
|
5689
|
+
throw new Error(
|
|
5690
|
+
"Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
5691
|
+
);
|
|
5692
|
+
}
|
|
5693
|
+
|
|
5694
|
+
const startDateObj = new Date(start_date);
|
|
5695
|
+
const endDateObj = new Date(end_date);
|
|
5696
|
+
|
|
5697
|
+
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
5698
|
+
throw new Error(
|
|
5699
|
+
"Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
5700
|
+
);
|
|
5701
|
+
}
|
|
5702
|
+
|
|
5703
|
+
if (startDateObj > endDateObj) {
|
|
5704
|
+
throw new Error('Start date should be earlier than or equal to end date.');
|
|
5705
|
+
}
|
|
5706
|
+
|
|
5707
|
+
let workdays = 0;
|
|
5708
|
+
|
|
5709
|
+
// Iterate through each day in the date range
|
|
5710
|
+
for (
|
|
5711
|
+
let currentDate = new Date(startDateObj);
|
|
5712
|
+
currentDate <= endDateObj;
|
|
5713
|
+
currentDate.setDate(currentDate.getDate() + 1)
|
|
5714
|
+
) {
|
|
5715
|
+
// Check if the current day is a weekend (Saturday or Sunday)
|
|
5716
|
+
const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
|
|
5717
|
+
|
|
5718
|
+
// Check if the current day is a holiday
|
|
5719
|
+
const isHoliday = holidays.some((holiday) => {
|
|
5720
|
+
const holidayDate = new Date(holiday);
|
|
5721
|
+
return currentDate.toDateString() === holidayDate.toDateString();
|
|
5722
|
+
});
|
|
5723
|
+
|
|
5724
|
+
// If it's a workday (not a weekend or holiday), increment the workdays count
|
|
5725
|
+
if (!isWeekend && !isHoliday) {
|
|
5726
|
+
workdays++;
|
|
5727
|
+
}
|
|
5728
|
+
}
|
|
5729
|
+
|
|
5730
|
+
return workdays;
|
|
5731
|
+
};
|
|
5732
|
+
|
|
5707
5733
|
/**
|
|
5708
5734
|
* 日期加减天数
|
|
5709
5735
|
* @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
|
|
5710
5736
|
* @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
|
|
5711
5737
|
* @returns {string} 结果日期,格式为 "YYYY-MM-DD"
|
|
5712
|
-
*/
|
|
5713
|
-
|
|
5714
|
-
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
5715
|
-
throw new Error(
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5738
|
+
*/
|
|
5739
|
+
const dateAddDays = function (start_date, days) {
|
|
5740
|
+
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
5741
|
+
throw new Error(
|
|
5742
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
|
|
5743
|
+
);
|
|
5744
|
+
}
|
|
5745
|
+
|
|
5746
|
+
const startDateObj = new Date(start_date);
|
|
5747
|
+
if (isNaN(startDateObj.getTime())) {
|
|
5748
|
+
throw new Error(
|
|
5749
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
5750
|
+
);
|
|
5751
|
+
}
|
|
5752
|
+
|
|
5753
|
+
const resultDateObj = new Date(startDateObj);
|
|
5754
|
+
resultDateObj.setDate(resultDateObj.getDate() + days);
|
|
5755
|
+
|
|
5756
|
+
const resultYear = resultDateObj.getFullYear();
|
|
5757
|
+
const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
|
|
5758
|
+
const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
|
|
5759
|
+
|
|
5760
|
+
return `${resultYear}-${resultMonth}-${resultDay}`;
|
|
5761
|
+
};
|
|
5762
|
+
|
|
5733
5763
|
/**
|
|
5734
5764
|
* 计算两个日期之间的差值
|
|
5735
5765
|
* @date 2023年12月14日
|
|
@@ -5737,180 +5767,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
|
|
|
5737
5767
|
* @param {String} end_date - 结束日期字符串
|
|
5738
5768
|
* @param {String} unit - 单位:year/month/day
|
|
5739
5769
|
* @returns {Number} 差值
|
|
5740
|
-
*/
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
if (unit === '
|
|
5754
|
-
return
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
}
|
|
5764
|
-
|
|
5770
|
+
*/
|
|
5771
|
+
const dateDiff = function (start_date, end_date, unit = 'day') {
|
|
5772
|
+
// Assuming date strings are in "YYYY-MM-DD" format
|
|
5773
|
+
var startDate = new Date(start_date);
|
|
5774
|
+
var endDate = new Date(end_date);
|
|
5775
|
+
|
|
5776
|
+
// If the date is invalid, return 0
|
|
5777
|
+
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
5778
|
+
return 0;
|
|
5779
|
+
}
|
|
5780
|
+
|
|
5781
|
+
if (unit === 'year') {
|
|
5782
|
+
return endDate.getFullYear() - startDate.getFullYear();
|
|
5783
|
+
} else if (unit === 'month') {
|
|
5784
|
+
return (
|
|
5785
|
+
(endDate.getFullYear() - startDate.getFullYear()) * 12 +
|
|
5786
|
+
(endDate.getMonth() - startDate.getMonth())
|
|
5787
|
+
);
|
|
5788
|
+
} else {
|
|
5789
|
+
// Default to day
|
|
5790
|
+
var timeDifference = endDate - startDate;
|
|
5791
|
+
// Calculate days (86400000 milliseconds per day)
|
|
5792
|
+
return Math.floor(timeDifference / 86400000);
|
|
5793
|
+
}
|
|
5794
|
+
};
|
|
5795
|
+
|
|
5765
5796
|
/**
|
|
5766
5797
|
* 获取月份中的日期
|
|
5767
5798
|
* @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
|
|
5768
5799
|
* @returns {number} 月份中的日期(1-31)
|
|
5769
|
-
*/
|
|
5770
|
-
|
|
5771
|
-
if (typeof date !== 'string') {
|
|
5772
|
-
throw new Error(
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5800
|
+
*/
|
|
5801
|
+
const dayOfMonth = function (date) {
|
|
5802
|
+
if (typeof date !== 'string') {
|
|
5803
|
+
throw new Error(
|
|
5804
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
5805
|
+
);
|
|
5806
|
+
}
|
|
5807
|
+
|
|
5808
|
+
const dateObj = new Date(date);
|
|
5809
|
+
if (isNaN(dateObj.getTime())) {
|
|
5810
|
+
throw new Error(
|
|
5811
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
5812
|
+
);
|
|
5813
|
+
}
|
|
5814
|
+
|
|
5815
|
+
return dateObj.getDate();
|
|
5816
|
+
};
|
|
5817
|
+
|
|
5783
5818
|
/**
|
|
5784
5819
|
* 获取当前日期
|
|
5785
5820
|
* @date 2022年5月7日
|
|
5786
5821
|
* @param {string} format - 日期格式,默认为'YYYY-MM-DD'
|
|
5787
5822
|
* @returns {string} 当前日期的格式化字符串
|
|
5788
|
-
*/
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
};
|
|
5794
|
-
|
|
5823
|
+
*/
|
|
5824
|
+
const getCurrentDate = function (format = 'YYYY-MM-DD') {
|
|
5825
|
+
return formatDate(new Date(), format);
|
|
5826
|
+
};
|
|
5827
|
+
|
|
5795
5828
|
/**
|
|
5796
5829
|
* 获取当前日期时间
|
|
5797
5830
|
* @date 2022年5月7日
|
|
5798
5831
|
* @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
|
|
5799
5832
|
* @returns {string} 当前日期时间的格式化字符串
|
|
5800
|
-
*/
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
};
|
|
5806
|
-
|
|
5833
|
+
*/
|
|
5834
|
+
const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
|
|
5835
|
+
return formatDate(new Date(), format);
|
|
5836
|
+
};
|
|
5837
|
+
|
|
5807
5838
|
/**
|
|
5808
5839
|
* 获取小时
|
|
5809
5840
|
* @date 2022年5月7日
|
|
5810
5841
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
5811
5842
|
* @returns {number} 小时数(0-23)
|
|
5812
|
-
*/
|
|
5813
|
-
|
|
5814
|
-
if (!date) {
|
|
5815
|
-
return new Date().getHours();
|
|
5816
|
-
}
|
|
5817
|
-
if (typeof date === 'string') {
|
|
5818
|
-
date = new Date(date);
|
|
5819
|
-
}
|
|
5820
|
-
return date.getHours();
|
|
5821
|
-
};
|
|
5822
|
-
|
|
5843
|
+
*/
|
|
5844
|
+
const getHour = function (date) {
|
|
5845
|
+
if (!date) {
|
|
5846
|
+
return new Date().getHours();
|
|
5847
|
+
}
|
|
5848
|
+
if (typeof date === 'string') {
|
|
5849
|
+
date = new Date(date);
|
|
5850
|
+
}
|
|
5851
|
+
return date.getHours();
|
|
5852
|
+
};
|
|
5853
|
+
|
|
5823
5854
|
/**
|
|
5824
5855
|
* 获取分钟
|
|
5825
5856
|
* @date 2022年5月7日
|
|
5826
5857
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
5827
5858
|
* @returns {number} 分钟数(0-59)
|
|
5828
|
-
*/
|
|
5829
|
-
|
|
5830
|
-
if (!date) {
|
|
5831
|
-
return new Date().getMinutes();
|
|
5832
|
-
}
|
|
5833
|
-
if (typeof date === 'string') {
|
|
5834
|
-
date = new Date(date);
|
|
5835
|
-
}
|
|
5836
|
-
return date.getMinutes();
|
|
5837
|
-
};
|
|
5838
|
-
|
|
5859
|
+
*/
|
|
5860
|
+
const getMinute = function (date) {
|
|
5861
|
+
if (!date) {
|
|
5862
|
+
return new Date().getMinutes();
|
|
5863
|
+
}
|
|
5864
|
+
if (typeof date === 'string') {
|
|
5865
|
+
date = new Date(date);
|
|
5866
|
+
}
|
|
5867
|
+
return date.getMinutes();
|
|
5868
|
+
};
|
|
5869
|
+
|
|
5839
5870
|
/**
|
|
5840
5871
|
* 获取月份
|
|
5841
5872
|
* @date 2022年5月7日
|
|
5842
5873
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
5843
5874
|
* @returns {number} 月份数(1-12)
|
|
5844
|
-
*/
|
|
5845
|
-
|
|
5846
|
-
if (!date) {
|
|
5847
|
-
return new Date().getMonth() + 1;
|
|
5848
|
-
}
|
|
5849
|
-
if (typeof date === 'string') {
|
|
5850
|
-
date = new Date(date);
|
|
5851
|
-
}
|
|
5852
|
-
return date.getMonth() + 1;
|
|
5853
|
-
};
|
|
5854
|
-
|
|
5875
|
+
*/
|
|
5876
|
+
const getMonth = function (date) {
|
|
5877
|
+
if (!date) {
|
|
5878
|
+
return new Date().getMonth() + 1;
|
|
5879
|
+
}
|
|
5880
|
+
if (typeof date === 'string') {
|
|
5881
|
+
date = new Date(date);
|
|
5882
|
+
}
|
|
5883
|
+
return date.getMonth() + 1;
|
|
5884
|
+
};
|
|
5885
|
+
|
|
5855
5886
|
/**
|
|
5856
5887
|
* 获取秒
|
|
5857
5888
|
* @date 2022年5月7日
|
|
5858
5889
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
5859
5890
|
* @returns {number} 秒数(0-59)
|
|
5860
|
-
*/
|
|
5861
|
-
|
|
5862
|
-
if (!date) {
|
|
5863
|
-
return new Date().getSeconds();
|
|
5864
|
-
}
|
|
5865
|
-
if (typeof date === 'string') {
|
|
5866
|
-
date = new Date(date);
|
|
5867
|
-
}
|
|
5868
|
-
return date.getSeconds();
|
|
5869
|
-
};
|
|
5870
|
-
|
|
5891
|
+
*/
|
|
5892
|
+
const getSecond = function (date) {
|
|
5893
|
+
if (!date) {
|
|
5894
|
+
return new Date().getSeconds();
|
|
5895
|
+
}
|
|
5896
|
+
if (typeof date === 'string') {
|
|
5897
|
+
date = new Date(date);
|
|
5898
|
+
}
|
|
5899
|
+
return date.getSeconds();
|
|
5900
|
+
};
|
|
5901
|
+
|
|
5871
5902
|
/**
|
|
5872
5903
|
* 获取星期几
|
|
5873
5904
|
* @date 2022年5月7日
|
|
5874
5905
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
5875
5906
|
* @returns {number} 星期几(0-6,0表示星期日)
|
|
5876
|
-
*/
|
|
5877
|
-
|
|
5878
|
-
if (!date) {
|
|
5879
|
-
return new Date().getDay();
|
|
5880
|
-
}
|
|
5881
|
-
if (typeof date === 'string') {
|
|
5882
|
-
date = new Date(date);
|
|
5883
|
-
}
|
|
5884
|
-
return date.getDay();
|
|
5885
|
-
};
|
|
5886
|
-
|
|
5907
|
+
*/
|
|
5908
|
+
const getWeekday = function (date) {
|
|
5909
|
+
if (!date) {
|
|
5910
|
+
return new Date().getDay();
|
|
5911
|
+
}
|
|
5912
|
+
if (typeof date === 'string') {
|
|
5913
|
+
date = new Date(date);
|
|
5914
|
+
}
|
|
5915
|
+
return date.getDay();
|
|
5916
|
+
};
|
|
5917
|
+
|
|
5918
|
+
|
|
5887
5919
|
/**
|
|
5888
5920
|
* @desc 获取上午/下午/晚上
|
|
5889
5921
|
* @author huangbo
|
|
5890
5922
|
* @date 2022年5月7日
|
|
5891
5923
|
* @param {String} [time] - 时间
|
|
5892
|
-
**/
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
if (!time) {
|
|
5896
|
-
hour = new Date().getHours();
|
|
5897
|
-
} else if (typeof time === 'string') {
|
|
5898
|
-
// 从时间字符串中提取小时
|
|
5899
|
-
|
|
5900
|
-
if (match) {
|
|
5901
|
-
hour = parseInt(match[1], 10);
|
|
5902
|
-
}
|
|
5903
|
-
} else if (typeof time === 'number') {
|
|
5904
|
-
hour = time;
|
|
5905
|
-
}
|
|
5906
|
-
// 判断时间段
|
|
5907
|
-
if (hour >= 5 && hour < 12) {
|
|
5908
|
-
return '上午';
|
|
5909
|
-
} else if (hour >= 12 && hour < 18) {
|
|
5910
|
-
return '下午';
|
|
5911
|
-
} else {
|
|
5912
|
-
return '晚上';
|
|
5913
|
-
}
|
|
5924
|
+
**/
|
|
5925
|
+
const timeCycle = function (time) {
|
|
5926
|
+
let hour = 0;
|
|
5927
|
+
if (!time) {
|
|
5928
|
+
hour = new Date().getHours();
|
|
5929
|
+
} else if (typeof time === 'string') {
|
|
5930
|
+
// 从时间字符串中提取小时
|
|
5931
|
+
const match = time.match(/^(\d{1,2})/);
|
|
5932
|
+
if (match) {
|
|
5933
|
+
hour = parseInt(match[1], 10);
|
|
5934
|
+
}
|
|
5935
|
+
} else if (typeof time === 'number') {
|
|
5936
|
+
hour = time;
|
|
5937
|
+
}
|
|
5938
|
+
// 判断时间段
|
|
5939
|
+
if (hour >= 5 && hour < 12) {
|
|
5940
|
+
return '上午';
|
|
5941
|
+
} else if (hour >= 12 && hour < 18) {
|
|
5942
|
+
return '下午';
|
|
5943
|
+
} else {
|
|
5944
|
+
return '晚上';
|
|
5945
|
+
}
|
|
5914
5946
|
};
|
|
5915
5947
|
|
|
5916
5948
|
/***/ }),
|
|
@@ -5937,22 +5969,24 @@ module.exports = require("eoss/lib/message-box");
|
|
|
5937
5969
|
/* unused harmony export downloadZip */
|
|
5938
5970
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
|
|
5939
5971
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
|
|
5940
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
5972
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
|
|
5941
5973
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
|
|
5942
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
5974
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
|
|
5943
5975
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
5944
5976
|
/* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20);
|
|
5945
|
-
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
5977
|
+
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30);
|
|
5946
5978
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
|
|
5947
5979
|
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0);
|
|
5948
|
-
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
5980
|
+
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21);
|
|
5949
5981
|
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(fetch_request_source__WEBPACK_IMPORTED_MODULE_5__);
|
|
5950
5982
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1);
|
|
5951
5983
|
/* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6);
|
|
5952
5984
|
/* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8);
|
|
5953
5985
|
/* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__);
|
|
5954
|
-
/* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
5986
|
+
/* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(10);
|
|
5955
5987
|
/* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__);
|
|
5988
|
+
/* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31);
|
|
5989
|
+
/* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__);
|
|
5956
5990
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
5957
5991
|
|
|
5958
5992
|
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
@@ -5975,6 +6009,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
5975
6009
|
|
|
5976
6010
|
|
|
5977
6011
|
|
|
6012
|
+
|
|
5978
6013
|
// 常量定义
|
|
5979
6014
|
var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ storeAsString: true });
|
|
5980
6015
|
var statusMap = {
|
|
@@ -6511,7 +6546,7 @@ var responses = function responses(data) {
|
|
|
6511
6546
|
onlyFirst: true,
|
|
6512
6547
|
customClass: 'es-retrial-auth-msg',
|
|
6513
6548
|
render: function render(h, msgBox) {
|
|
6514
|
-
return h(
|
|
6549
|
+
return h(eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10___default.a, {
|
|
6515
6550
|
ref: 'auth',
|
|
6516
6551
|
props: {
|
|
6517
6552
|
reload: data.results.reload || data.results.refresh,
|
|
@@ -6754,7 +6789,7 @@ function redirectToLoginPage(loginPage, next) {
|
|
|
6754
6789
|
* @param {function} callback - 回调函数
|
|
6755
6790
|
**/
|
|
6756
6791
|
var getMainConfig = function getMainConfig(callback) {
|
|
6757
|
-
ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "
|
|
6792
|
+
ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "wb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
|
|
6758
6793
|
if (res && res.rCode === 0) {
|
|
6759
6794
|
callback(res.results);
|
|
6760
6795
|
}
|
|
@@ -6777,7 +6812,7 @@ var getSysCodeList = function getSysCodeList(_ref4) {
|
|
|
6777
6812
|
method = _ref4$method === undefined ? 'POST' : _ref4$method,
|
|
6778
6813
|
service = _ref4.service,
|
|
6779
6814
|
_ref4$url = _ref4.url,
|
|
6780
|
-
url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "
|
|
6815
|
+
url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "D"] : _ref4$url,
|
|
6781
6816
|
sysCode = _ref4.sysCode,
|
|
6782
6817
|
_ref4$param = _ref4.param,
|
|
6783
6818
|
param = _ref4$param === undefined ? {} : _ref4$param,
|
|
@@ -6887,7 +6922,7 @@ var downloadFile = function downloadFile(_ref6) {
|
|
|
6887
6922
|
file = _ref6.file,
|
|
6888
6923
|
withToken = _ref6.withToken;
|
|
6889
6924
|
|
|
6890
|
-
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "
|
|
6925
|
+
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "y"] };
|
|
6891
6926
|
|
|
6892
6927
|
var downloadUrl = '';
|
|
6893
6928
|
if (file.adjunctId || file.response && file.response.adjunctId) {
|
|
@@ -6950,7 +6985,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
6950
6985
|
code = _ref7.code,
|
|
6951
6986
|
option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
|
|
6952
6987
|
|
|
6953
|
-
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "
|
|
6988
|
+
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Wc"] };
|
|
6954
6989
|
|
|
6955
6990
|
// 处理URL和参数
|
|
6956
6991
|
var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
|
|
@@ -7002,7 +7037,7 @@ var deleteFile = function deleteFile(_ref8) {
|
|
|
7002
7037
|
onSuccess = _ref8.onSuccess,
|
|
7003
7038
|
onError = _ref8.onError;
|
|
7004
7039
|
|
|
7005
|
-
var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "
|
|
7040
|
+
var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "p"] + '\' }');
|
|
7006
7041
|
|
|
7007
7042
|
// 处理URL和参数
|
|
7008
7043
|
var deleteUrl = url ? url : dochubConfig.deleteDocumentUrl;
|