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-rule.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 = 195);
|
|
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");
|
|
@@ -3521,7 +3521,7 @@ module.exports = require("lodash/cloneDeep");
|
|
|
3521
3521
|
|
|
3522
3522
|
/***/ }),
|
|
3523
3523
|
|
|
3524
|
-
/***/
|
|
3524
|
+
/***/ 195:
|
|
3525
3525
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3526
3526
|
|
|
3527
3527
|
"use strict";
|
|
@@ -4396,7 +4396,7 @@ companyReportDetailvue_type_template_id_5a9330b4_render._withStripped = true
|
|
|
4396
4396
|
// CONCATENATED MODULE: ./packages/process-rule/src/companyReportDetail.vue?vue&type=template&id=5a9330b4&
|
|
4397
4397
|
|
|
4398
4398
|
// EXTERNAL MODULE: external "eoss/lib/data-table"
|
|
4399
|
-
var data_table_ = __webpack_require__(
|
|
4399
|
+
var data_table_ = __webpack_require__(47);
|
|
4400
4400
|
var data_table_default = /*#__PURE__*/__webpack_require__.n(data_table_);
|
|
4401
4401
|
|
|
4402
4402
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-rule/src/companyReportDetail.vue?vue&type=script&lang=js&
|
|
@@ -4466,7 +4466,7 @@ var data_table_default = /*#__PURE__*/__webpack_require__.n(data_table_);
|
|
|
4466
4466
|
|
|
4467
4467
|
computed: {
|
|
4468
4468
|
reportDetailUrl: function reportDetailUrl() {
|
|
4469
|
-
return '/' + this.bootName + api["
|
|
4469
|
+
return '/' + this.bootName + api["n" /* companyDetail */] + '?ruleid=' + this.ruleid;
|
|
4470
4470
|
}
|
|
4471
4471
|
},
|
|
4472
4472
|
mounted: function mounted() {
|
|
@@ -4519,7 +4519,7 @@ var companyReportDetail_component = Object(componentNormalizer["a" /* default */
|
|
|
4519
4519
|
|
|
4520
4520
|
/* harmony default export */ var companyReportDetail = (companyReportDetail_component.exports);
|
|
4521
4521
|
// EXTERNAL MODULE: external "eoss/lib/dialog"
|
|
4522
|
-
var dialog_ = __webpack_require__(
|
|
4522
|
+
var dialog_ = __webpack_require__(37);
|
|
4523
4523
|
var dialog_default = /*#__PURE__*/__webpack_require__.n(dialog_);
|
|
4524
4524
|
|
|
4525
4525
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-rule/src/main.vue?vue&type=script&lang=js&
|
|
@@ -4647,22 +4647,22 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
4647
4647
|
return { modulecode: this.code };
|
|
4648
4648
|
},
|
|
4649
4649
|
url: function url() {
|
|
4650
|
-
return '/' + this.bootName + api["
|
|
4650
|
+
return '/' + this.bootName + api["bc" /* ruleListJson */];
|
|
4651
4651
|
},
|
|
4652
4652
|
add: function add() {
|
|
4653
|
-
return '/' + this.bootName + api["
|
|
4653
|
+
return '/' + this.bootName + api["Zb" /* ruleAdd */];
|
|
4654
4654
|
},
|
|
4655
4655
|
edit: function edit() {
|
|
4656
|
-
return '/' + this.bootName + api["
|
|
4656
|
+
return '/' + this.bootName + api["ac" /* ruleEdit */];
|
|
4657
4657
|
},
|
|
4658
4658
|
read: function read() {
|
|
4659
|
-
return '/' + this.bootName + api["
|
|
4659
|
+
return '/' + this.bootName + api["cc" /* ruleRead */];
|
|
4660
4660
|
},
|
|
4661
4661
|
org: function org() {
|
|
4662
|
-
return '' + api["
|
|
4662
|
+
return '' + api["eb" /* getSysParamV1 */];
|
|
4663
4663
|
},
|
|
4664
4664
|
detail: function detail() {
|
|
4665
|
-
return '/' + this.bootName + api["
|
|
4665
|
+
return '/' + this.bootName + api["o" /* companyList */];
|
|
4666
4666
|
},
|
|
4667
4667
|
companyparam: function companyparam() {
|
|
4668
4668
|
return { id: this.id };
|
|
@@ -4923,7 +4923,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
4923
4923
|
var _this3 = this;
|
|
4924
4924
|
|
|
4925
4925
|
Object(ajax["a" /* ajax */])({
|
|
4926
|
-
url: '/' + this.bootName + api["
|
|
4926
|
+
url: '/' + this.bootName + api["rb" /* isAddSource */],
|
|
4927
4927
|
params: this.params
|
|
4928
4928
|
}).then(function (res) {
|
|
4929
4929
|
if (res.rCode === 0) {
|
|
@@ -4935,7 +4935,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
4935
4935
|
var _this4 = this;
|
|
4936
4936
|
|
|
4937
4937
|
Object(ajax["a" /* ajax */])({
|
|
4938
|
-
url: '/' + this.bootName + api["
|
|
4938
|
+
url: '/' + this.bootName + api["zb" /* moduleListJson */],
|
|
4939
4939
|
params: this.params
|
|
4940
4940
|
}).then(function (res) {
|
|
4941
4941
|
if (res.rCode === 0) {
|
|
@@ -4975,7 +4975,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
4975
4975
|
var loadingInstance = Object(util["K" /* loading */])('加载中...');
|
|
4976
4976
|
Object(ajax["a" /* ajax */])({
|
|
4977
4977
|
method: 'post',
|
|
4978
|
-
url: '/' + this.bootName + api["
|
|
4978
|
+
url: '/' + this.bootName + api["ec" /* ruleUndore */],
|
|
4979
4979
|
data: { ids: id }
|
|
4980
4980
|
}).then(function (res) {
|
|
4981
4981
|
loadingInstance.close();
|
|
@@ -5029,7 +5029,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
5029
5029
|
|
|
5030
5030
|
var loadingInstance = Object(util["K" /* loading */])('加载中...');
|
|
5031
5031
|
Object(ajax["a" /* ajax */])({
|
|
5032
|
-
url: '/' + this.bootName + api["
|
|
5032
|
+
url: '/' + this.bootName + api["lc" /* supplement */],
|
|
5033
5033
|
method: 'post',
|
|
5034
5034
|
data: { ids: ids }
|
|
5035
5035
|
}).then(function (res) {
|
|
@@ -5126,7 +5126,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
5126
5126
|
|
|
5127
5127
|
var loadingInstance = Object(util["K" /* loading */])('提交中...');
|
|
5128
5128
|
Object(ajax["a" /* ajax */])({
|
|
5129
|
-
url: '/' + this.bootName + api["
|
|
5129
|
+
url: '/' + this.bootName + api["zc" /* tiggerInTime */],
|
|
5130
5130
|
params: { id: id }
|
|
5131
5131
|
}).then(function (res) {
|
|
5132
5132
|
loadingInstance.close();
|
|
@@ -5165,7 +5165,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
5165
5165
|
}
|
|
5166
5166
|
Object(ajax["a" /* ajax */])({
|
|
5167
5167
|
method: 'post',
|
|
5168
|
-
url: '/' + this.bootName + api["
|
|
5168
|
+
url: '/' + this.bootName + api["dc" /* ruleSave */],
|
|
5169
5169
|
// params: {debug: true},
|
|
5170
5170
|
data: _extends({
|
|
5171
5171
|
fillUsername: Object(storage["a" /* getStorage */])('userName'),
|
|
@@ -5195,7 +5195,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
5195
5195
|
}).then(function () {
|
|
5196
5196
|
Object(ajax["a" /* ajax */])({
|
|
5197
5197
|
method: 'post',
|
|
5198
|
-
url: '/' + _this10.bootName + api["
|
|
5198
|
+
url: '/' + _this10.bootName + api["r" /* deleteRule */],
|
|
5199
5199
|
data: { id: id }
|
|
5200
5200
|
}).then(function (res) {
|
|
5201
5201
|
if (res.rCode === 0) {
|
|
@@ -5271,7 +5271,7 @@ module.exports = require("vue");
|
|
|
5271
5271
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
|
|
5272
5272
|
/* unused harmony export doDecrypt */
|
|
5273
5273
|
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
5274
|
-
var sm2 = __webpack_require__(
|
|
5274
|
+
var sm2 = __webpack_require__(42).sm2;
|
|
5275
5275
|
|
|
5276
5276
|
|
|
5277
5277
|
/**
|
|
@@ -5323,7 +5323,7 @@ var doDecrypt = function doDecrypt(_ref2) {
|
|
|
5323
5323
|
|
|
5324
5324
|
/***/ }),
|
|
5325
5325
|
|
|
5326
|
-
/***/
|
|
5326
|
+
/***/ 21:
|
|
5327
5327
|
/***/ (function(module, exports) {
|
|
5328
5328
|
|
|
5329
5329
|
module.exports = require("fetch-request-source");
|
|
@@ -5337,6 +5337,20 @@ module.exports = require("eoss/lib/form");
|
|
|
5337
5337
|
|
|
5338
5338
|
/***/ }),
|
|
5339
5339
|
|
|
5340
|
+
/***/ 28:
|
|
5341
|
+
/***/ (function(module, exports) {
|
|
5342
|
+
|
|
5343
|
+
module.exports = require("qs");
|
|
5344
|
+
|
|
5345
|
+
/***/ }),
|
|
5346
|
+
|
|
5347
|
+
/***/ 29:
|
|
5348
|
+
/***/ (function(module, exports) {
|
|
5349
|
+
|
|
5350
|
+
module.exports = require("axios");
|
|
5351
|
+
|
|
5352
|
+
/***/ }),
|
|
5353
|
+
|
|
5340
5354
|
/***/ 3:
|
|
5341
5355
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5342
5356
|
|
|
@@ -5404,28 +5418,21 @@ function isDefined(val) {
|
|
|
5404
5418
|
|
|
5405
5419
|
/***/ }),
|
|
5406
5420
|
|
|
5407
|
-
/***/
|
|
5408
|
-
/***/ (function(module, exports) {
|
|
5409
|
-
|
|
5410
|
-
module.exports = require("qs");
|
|
5411
|
-
|
|
5412
|
-
/***/ }),
|
|
5413
|
-
|
|
5414
|
-
/***/ 32:
|
|
5421
|
+
/***/ 30:
|
|
5415
5422
|
/***/ (function(module, exports) {
|
|
5416
5423
|
|
|
5417
|
-
module.exports = require("
|
|
5424
|
+
module.exports = require("json-bigint");
|
|
5418
5425
|
|
|
5419
5426
|
/***/ }),
|
|
5420
5427
|
|
|
5421
|
-
/***/
|
|
5428
|
+
/***/ 31:
|
|
5422
5429
|
/***/ (function(module, exports) {
|
|
5423
5430
|
|
|
5424
|
-
module.exports = require("
|
|
5431
|
+
module.exports = require("eoss/lib/retrial-auth");
|
|
5425
5432
|
|
|
5426
5433
|
/***/ }),
|
|
5427
5434
|
|
|
5428
|
-
/***/
|
|
5435
|
+
/***/ 37:
|
|
5429
5436
|
/***/ (function(module, exports) {
|
|
5430
5437
|
|
|
5431
5438
|
module.exports = require("eoss/lib/dialog");
|
|
@@ -5537,14 +5544,14 @@ function normalizeComponent(
|
|
|
5537
5544
|
|
|
5538
5545
|
/***/ }),
|
|
5539
5546
|
|
|
5540
|
-
/***/
|
|
5547
|
+
/***/ 42:
|
|
5541
5548
|
/***/ (function(module, exports) {
|
|
5542
5549
|
|
|
5543
5550
|
module.exports = require("sm-crypto");
|
|
5544
5551
|
|
|
5545
5552
|
/***/ }),
|
|
5546
5553
|
|
|
5547
|
-
/***/
|
|
5554
|
+
/***/ 47:
|
|
5548
5555
|
/***/ (function(module, exports) {
|
|
5549
5556
|
|
|
5550
5557
|
module.exports = require("eoss/lib/data-table");
|
|
@@ -5555,146 +5562,146 @@ module.exports = require("eoss/lib/data-table");
|
|
|
5555
5562
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5556
5563
|
|
|
5557
5564
|
"use strict";
|
|
5558
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5559
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5560
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5561
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5562
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5563
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5565
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCaLogin; });
|
|
5566
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return doUserLogin; });
|
|
5567
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doQrLogin; });
|
|
5568
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return logout; });
|
|
5569
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initLogin; });
|
|
5570
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return switchUserTo; });
|
|
5564
5571
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
|
|
5565
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5566
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5572
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getLoginCode; });
|
|
5573
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doCodeLogin; });
|
|
5567
5574
|
/* unused harmony export updateCode */
|
|
5568
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5575
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getModifyPassCode; });
|
|
5569
5576
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
|
|
5570
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5577
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return loginModifyPassword; });
|
|
5571
5578
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
|
|
5572
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5579
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return initModifyPassword; });
|
|
5573
5580
|
/* unused harmony export doWechatQrLogin */
|
|
5574
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5581
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getTwoFactorLoginCode; });
|
|
5575
5582
|
/* unused harmony export doTwoFactorLogin */
|
|
5576
|
-
/*
|
|
5577
|
-
/*
|
|
5578
|
-
/*
|
|
5579
|
-
/*
|
|
5580
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5581
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5582
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5583
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5584
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5585
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5586
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5587
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5583
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return initRetrialAuth; });
|
|
5584
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getRetrialAuthCode; });
|
|
5585
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return scanCodeRetrialAuth; });
|
|
5586
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return codeRetrialAuth; });
|
|
5587
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doAssistanceQrLogin; });
|
|
5588
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zc", function() { return userOnline; });
|
|
5589
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return getUserAppWithTag; });
|
|
5590
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return recordUserApp; });
|
|
5591
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return getUserRecordApp; });
|
|
5592
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return mainConfig; });
|
|
5593
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return initUserSet; });
|
|
5594
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return updateUserInfo; });
|
|
5588
5595
|
/* unused harmony export getUserImgUrl */
|
|
5589
5596
|
/* unused harmony export getDoorIndex */
|
|
5590
5597
|
/* unused harmony export refreshOnlineUsers */
|
|
5591
5598
|
/* unused harmony export getQuickMenuIds */
|
|
5592
5599
|
/* unused harmony export getApplicationIdArray */
|
|
5593
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5594
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5595
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5596
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5600
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplications; });
|
|
5601
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getComplexApplicationsNew; });
|
|
5602
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getMainAppWithTag; });
|
|
5603
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getByType; });
|
|
5597
5604
|
/* unused harmony export getUserCustomInfo */
|
|
5598
5605
|
/* unused harmony export updateUserCustomInfo */
|
|
5599
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5600
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5601
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5602
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5603
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5604
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5605
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5606
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5607
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5608
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5606
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return saveOrUpdate; });
|
|
5607
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return sysMsgPage; });
|
|
5608
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return ignoreSysMsg; });
|
|
5609
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return ignoreAllSysMsg; });
|
|
5610
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return searchType; });
|
|
5611
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getSysParam; });
|
|
5612
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getAdjunctProperties; });
|
|
5613
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yc", function() { return uploads; });
|
|
5614
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xc", function() { return uploadOnlyOne; });
|
|
5615
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctFileInfos; });
|
|
5609
5616
|
/* unused harmony export uploadSort */
|
|
5610
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5611
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5612
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5613
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5614
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5615
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5617
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return downloadByAdjunctId; });
|
|
5618
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return uploadDownloads; });
|
|
5619
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return previewAdjunct; });
|
|
5620
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return previewAdjunct2; });
|
|
5621
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return previewAdjunctOffice; });
|
|
5622
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return delAdjunct; });
|
|
5616
5623
|
/* unused harmony export upload_updateClassify */
|
|
5617
5624
|
/* unused harmony export getDeleteAdjunctFileInfos */
|
|
5618
5625
|
/* unused harmony export getPictureBase64 */
|
|
5619
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5620
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5621
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5626
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSelectorOrgTree; });
|
|
5627
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSelectorOrgDetail; });
|
|
5628
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getOrgMainTree; });
|
|
5622
5629
|
/* unused harmony export getSelectOrgsubids */
|
|
5623
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5630
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCode; });
|
|
5624
5631
|
/* unused harmony export getDictList */
|
|
5625
5632
|
/* unused harmony export findUserBaseInfo */
|
|
5626
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5633
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return gethelpdoc; });
|
|
5627
5634
|
/* unused harmony export getCurrentuser */
|
|
5628
5635
|
/* unused harmony export mainDetail */
|
|
5629
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5630
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5631
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5636
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toStartFlow; });
|
|
5637
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return tempSave; });
|
|
5638
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return commonOpion; });
|
|
5632
5639
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
|
|
5633
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5634
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5635
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5636
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5637
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5638
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5639
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5640
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5641
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5642
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5643
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5644
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5640
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return editCommonOpion; });
|
|
5641
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return saveCommonOpinion; });
|
|
5642
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return updateCommonOpinion; });
|
|
5643
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteCommonOpion; });
|
|
5644
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getProcessDefList; });
|
|
5645
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfo; });
|
|
5646
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findCodeValues; });
|
|
5647
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return findSysParam; });
|
|
5648
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysCodes; });
|
|
5649
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getNotificationMsg; });
|
|
5650
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getHandleInfoHtml; });
|
|
5651
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskHandleHtml; });
|
|
5645
5652
|
/* unused harmony export getView */
|
|
5646
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5647
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5648
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5649
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5650
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5651
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5652
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5653
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5654
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5655
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5656
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5657
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5658
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5659
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5660
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5661
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5662
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5663
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5664
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5653
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return register; });
|
|
5654
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return pendedhistoryList; });
|
|
5655
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskRejectHtml; });
|
|
5656
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskRejectHtml; });
|
|
5657
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toStartTaskRead; });
|
|
5658
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toStartTaskReadIndex; });
|
|
5659
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskReadHtml; });
|
|
5660
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return rejectAndEnd; });
|
|
5661
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toSendMsg; });
|
|
5662
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sendMsg; });
|
|
5663
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return endFlowHtml; });
|
|
5664
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return handleInfo; });
|
|
5665
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return loginUserInfo; });
|
|
5666
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ad", function() { return wss; });
|
|
5667
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return topic; });
|
|
5668
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetCustomInfo; });
|
|
5669
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getPresetNodeInfo; });
|
|
5670
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return toTaskTransferIndex; });
|
|
5671
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return taskTransfer; });
|
|
5665
5672
|
/* unused harmony export toPresetInfoListIndex */
|
|
5666
5673
|
/* unused harmony export deletePresetInfo */
|
|
5667
5674
|
/* unused harmony export historyListJson */
|
|
5668
5675
|
/* unused harmony export pendedhistoryListJson */
|
|
5669
5676
|
/* unused harmony export pressListJson */
|
|
5670
5677
|
/* unused harmony export deleteFlow */
|
|
5671
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5672
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5673
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5674
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5675
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5676
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5677
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5678
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5679
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5680
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5681
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5682
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5683
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5684
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5685
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5686
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5687
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5688
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5689
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5690
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5691
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5678
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return isCanStartSubFlow; });
|
|
5679
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return toTaskUnionExamine; });
|
|
5680
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return taskUnionExamine; });
|
|
5681
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTaskTakeAdvice; });
|
|
5682
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return taskTakeAdvice; });
|
|
5683
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskStartDraft; });
|
|
5684
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskSupervise; });
|
|
5685
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskSuperviseSub; });
|
|
5686
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskStartDraft; });
|
|
5687
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskReview; });
|
|
5688
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskReview; });
|
|
5689
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return toTaskUnionSeal; });
|
|
5690
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return taskUnionSeal; });
|
|
5691
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return toTwoOfficesDispatch; });
|
|
5692
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return twoOfficesDispatch; });
|
|
5693
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toResetProcessIndex; });
|
|
5694
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return resetProcess; });
|
|
5695
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskContinuationIndex; });
|
|
5696
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskContinuation; });
|
|
5697
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getFreeStartFlowParams; });
|
|
5698
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeStartFlowWithSubmitTask; });
|
|
5692
5699
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
|
|
5693
5700
|
/* unused harmony export pendedhistoryListWithCircularReadJson */
|
|
5694
5701
|
/* unused harmony export fyListJson */
|
|
5695
5702
|
/* unused harmony export circularReadWithdraw */
|
|
5696
5703
|
/* unused harmony export taskReadWithDraw */
|
|
5697
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5704
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
|
|
5698
5705
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
|
|
5699
5706
|
/* unused harmony export sendList */
|
|
5700
5707
|
/* unused harmony export sendInfo */
|
|
@@ -5703,56 +5710,56 @@ module.exports = require("eoss/lib/data-table");
|
|
|
5703
5710
|
/* unused harmony export sendDelete */
|
|
5704
5711
|
/* unused harmony export sendBatch */
|
|
5705
5712
|
/* unused harmony export formContents */
|
|
5706
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5707
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5708
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5709
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5710
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5711
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5712
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5713
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5713
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return directStartTaskCircularRead; });
|
|
5714
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowAndStartTaskCircularRead; });
|
|
5715
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNodeInfoForStart; });
|
|
5716
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlow; });
|
|
5717
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUrgencyLevelChangedNotificationType; });
|
|
5718
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toFreeTaskCircularRead; });
|
|
5719
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return freeTaskCircularRead; });
|
|
5720
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pageLists; });
|
|
5714
5721
|
/* unused harmony export publishedLists */
|
|
5715
5722
|
/* unused harmony export pageInfo */
|
|
5716
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5717
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5718
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5719
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5723
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageGroup; });
|
|
5724
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return pageSave; });
|
|
5725
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return pageUpdate; });
|
|
5726
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageDelete; });
|
|
5720
5727
|
/* unused harmony export pageTargetDelete */
|
|
5721
5728
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
|
|
5722
5729
|
/* unused harmony export batchUpdate */
|
|
5723
5730
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
|
|
5724
5731
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
|
|
5725
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5726
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5727
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5728
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5729
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5730
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5731
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5732
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5733
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5734
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5735
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5736
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5737
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5738
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5739
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5740
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5741
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5742
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5743
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5732
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return processListJson; });
|
|
5733
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processInfo; });
|
|
5734
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processDeleteJson; });
|
|
5735
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return processSave; });
|
|
5736
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return processUpdate; });
|
|
5737
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return nodeListJson; });
|
|
5738
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeDeleteJson; });
|
|
5739
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return nodeSave; });
|
|
5740
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return nodeUpdate; });
|
|
5741
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeInfo; });
|
|
5742
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return moduleListJson; });
|
|
5743
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleInfo; });
|
|
5744
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleDelete; });
|
|
5745
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return moduleSave; });
|
|
5746
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return moduleUpdate; });
|
|
5747
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleListJson; });
|
|
5748
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleEdit; });
|
|
5749
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return ruleRead; });
|
|
5750
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return ruleSave; });
|
|
5744
5751
|
/* unused harmony export ruleSupplement */
|
|
5745
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5746
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5747
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5752
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return ruleUndore; });
|
|
5753
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleAdd; });
|
|
5754
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyDetail; });
|
|
5748
5755
|
/* unused harmony export issueDetailList */
|
|
5749
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5750
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5751
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5752
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5753
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5754
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5755
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
5756
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return deleteRule; });
|
|
5757
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getSysParamV1; });
|
|
5758
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return companyList; });
|
|
5759
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return supplement; });
|
|
5760
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return isAddSource; });
|
|
5761
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return tiggerInTime; });
|
|
5762
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return updateHistory; });
|
|
5756
5763
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
|
|
5757
5764
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
|
|
5758
5765
|
var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
|
|
@@ -6174,736 +6181,759 @@ var changeInTime = '/baseIssueRules/changeInTime';
|
|
|
6174
6181
|
/* unused harmony export getSecond */
|
|
6175
6182
|
/* unused harmony export getWeekday */
|
|
6176
6183
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
|
|
6177
|
-
|
|
6178
|
-
|
|
6184
|
+
/* Modified from https://github.com/taylorhakes/fecha
|
|
6185
|
+
*
|
|
6186
|
+
* The MIT License (MIT)
|
|
6187
|
+
*
|
|
6188
|
+
* Copyright (c) 2015 Taylor Hakes
|
|
6189
|
+
*
|
|
6190
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6191
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
6192
|
+
* in the Software without restriction, including without limitation the rights
|
|
6193
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
6194
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
6195
|
+
* furnished to do so, subject to the following conditions:
|
|
6196
|
+
*
|
|
6197
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
6198
|
+
* copies or substantial portions of the Software.
|
|
6199
|
+
*
|
|
6200
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
6201
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
6202
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
6203
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
6204
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
6205
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
6206
|
+
* SOFTWARE.
|
|
6207
|
+
*/
|
|
6208
|
+
|
|
6209
|
+
/*eslint-disable*/
|
|
6210
|
+
// 把 YYYY-MM-DD 改成了 yyyy-MM-dd
|
|
6211
|
+
|
|
6212
|
+
|
|
6179
6213
|
/**
|
|
6180
6214
|
* Parse or format dates
|
|
6181
6215
|
* @class fecha
|
|
6182
|
-
*/
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
function regexEscape(str) {
|
|
6193
|
-
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
6194
|
-
}
|
|
6195
|
-
|
|
6196
|
-
function shorten(arr, sLen) {
|
|
6197
|
-
|
|
6198
|
-
for (
|
|
6199
|
-
newArr.push(arr[i].substr(0, sLen));
|
|
6200
|
-
}
|
|
6201
|
-
return newArr;
|
|
6202
|
-
}
|
|
6203
|
-
|
|
6204
|
-
function monthUpdate() {
|
|
6205
|
-
return function (d, v) {
|
|
6206
|
-
|
|
6207
|
-
if (~index) {
|
|
6208
|
-
d.month = index;
|
|
6209
|
-
}
|
|
6210
|
-
};
|
|
6211
|
-
}
|
|
6212
|
-
|
|
6213
|
-
function pad(val, len) {
|
|
6214
|
-
val = String(val);
|
|
6215
|
-
len = len || 2;
|
|
6216
|
-
while (val.length < len) {
|
|
6217
|
-
val = '0' + val;
|
|
6218
|
-
}
|
|
6219
|
-
return val;
|
|
6220
|
-
}
|
|
6221
|
-
|
|
6222
|
-
// 直接使用中文日期名称常量
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
return D + '日';
|
|
6230
|
-
};
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
D: function
|
|
6234
|
-
return dateObj.getDay();
|
|
6235
|
-
},
|
|
6236
|
-
DD: function
|
|
6237
|
-
return pad(dateObj.getDay());
|
|
6238
|
-
},
|
|
6239
|
-
Do: function
|
|
6240
|
-
return DoFn(dateObj.getDate());
|
|
6241
|
-
},
|
|
6242
|
-
d: function
|
|
6243
|
-
return dateObj.getDate();
|
|
6244
|
-
},
|
|
6245
|
-
dd: function
|
|
6246
|
-
return pad(dateObj.getDate());
|
|
6247
|
-
},
|
|
6248
|
-
ddd: function
|
|
6249
|
-
return dayNamesShort[dateObj.getDay()];
|
|
6250
|
-
},
|
|
6251
|
-
dddd: function
|
|
6252
|
-
return dayNames[dateObj.getDay()];
|
|
6253
|
-
},
|
|
6254
|
-
M: function
|
|
6255
|
-
return dateObj.getMonth() + 1;
|
|
6256
|
-
},
|
|
6257
|
-
MM: function
|
|
6258
|
-
return pad(dateObj.getMonth() + 1);
|
|
6259
|
-
},
|
|
6260
|
-
MMM: function
|
|
6261
|
-
return monthNamesShort[dateObj.getMonth()];
|
|
6262
|
-
},
|
|
6263
|
-
MMMM: function
|
|
6264
|
-
return monthNames[dateObj.getMonth()];
|
|
6265
|
-
},
|
|
6266
|
-
yy: function
|
|
6267
|
-
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
6268
|
-
},
|
|
6269
|
-
yyyy: function
|
|
6270
|
-
return pad(dateObj.getFullYear(), 4);
|
|
6271
|
-
},
|
|
6272
|
-
h: function
|
|
6273
|
-
return dateObj.getHours() % 12 || 12;
|
|
6274
|
-
},
|
|
6275
|
-
hh: function
|
|
6276
|
-
return pad(dateObj.getHours() % 12 || 12);
|
|
6277
|
-
},
|
|
6278
|
-
H: function
|
|
6279
|
-
return dateObj.getHours();
|
|
6280
|
-
},
|
|
6281
|
-
HH: function
|
|
6282
|
-
return pad(dateObj.getHours());
|
|
6283
|
-
},
|
|
6284
|
-
m: function
|
|
6285
|
-
return dateObj.getMinutes();
|
|
6286
|
-
},
|
|
6287
|
-
mm: function
|
|
6288
|
-
return pad(dateObj.getMinutes());
|
|
6289
|
-
},
|
|
6290
|
-
s: function
|
|
6291
|
-
return dateObj.getSeconds();
|
|
6292
|
-
},
|
|
6293
|
-
ss: function
|
|
6294
|
-
return pad(dateObj.getSeconds());
|
|
6295
|
-
},
|
|
6296
|
-
S: function
|
|
6297
|
-
return Math.round(dateObj.getMilliseconds() / 100);
|
|
6298
|
-
},
|
|
6299
|
-
SS: function
|
|
6300
|
-
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
6301
|
-
},
|
|
6302
|
-
SSS: function
|
|
6303
|
-
return pad(dateObj.getMilliseconds(), 3);
|
|
6304
|
-
},
|
|
6305
|
-
a: function
|
|
6306
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
6307
|
-
},
|
|
6308
|
-
A: function
|
|
6309
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
6310
|
-
},
|
|
6311
|
-
ZZ: function
|
|
6312
|
-
|
|
6313
|
-
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
6314
|
-
}
|
|
6315
|
-
};
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
d: [twoDigits, function (d, v) {
|
|
6319
|
-
d.day = v;
|
|
6320
|
-
}],
|
|
6321
|
-
Do: [twoDigits + word, function (d, v) {
|
|
6322
|
-
d.day = parseInt(v, 10);
|
|
6323
|
-
}],
|
|
6324
|
-
M: [twoDigits, function (d, v) {
|
|
6325
|
-
d.month = v - 1;
|
|
6326
|
-
}],
|
|
6327
|
-
yy: [twoDigits, function (d, v) {
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
}
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
parseFlags.
|
|
6376
|
-
parseFlags.
|
|
6377
|
-
parseFlags.
|
|
6378
|
-
parseFlags.
|
|
6379
|
-
parseFlags.
|
|
6380
|
-
parseFlags.
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6216
|
+
*/
|
|
6217
|
+
const fecha = {};
|
|
6218
|
+
const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
|
|
6219
|
+
const twoDigits = '\\d\\d?';
|
|
6220
|
+
const threeDigits = '\\d{3}';
|
|
6221
|
+
const fourDigits = '\\d{4}';
|
|
6222
|
+
const word = '[^\\s]+';
|
|
6223
|
+
const literal = /\[([^]*?)\]/gm;
|
|
6224
|
+
const noop = function () {};
|
|
6225
|
+
|
|
6226
|
+
function regexEscape(str) {
|
|
6227
|
+
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
6228
|
+
}
|
|
6229
|
+
|
|
6230
|
+
function shorten(arr, sLen) {
|
|
6231
|
+
const newArr = [];
|
|
6232
|
+
for (let i = 0, len = arr.length; i < len; i++) {
|
|
6233
|
+
newArr.push(arr[i].substr(0, sLen));
|
|
6234
|
+
}
|
|
6235
|
+
return newArr;
|
|
6236
|
+
}
|
|
6237
|
+
|
|
6238
|
+
function monthUpdate() {
|
|
6239
|
+
return function (d, v) {
|
|
6240
|
+
const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
|
|
6241
|
+
if (~index) {
|
|
6242
|
+
d.month = index;
|
|
6243
|
+
}
|
|
6244
|
+
};
|
|
6245
|
+
}
|
|
6246
|
+
|
|
6247
|
+
function pad(val, len) {
|
|
6248
|
+
val = String(val);
|
|
6249
|
+
len = len || 2;
|
|
6250
|
+
while (val.length < len) {
|
|
6251
|
+
val = '0' + val;
|
|
6252
|
+
}
|
|
6253
|
+
return val;
|
|
6254
|
+
}
|
|
6255
|
+
|
|
6256
|
+
// 直接使用中文日期名称常量
|
|
6257
|
+
const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
6258
|
+
const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
|
|
6259
|
+
const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
|
|
6260
|
+
const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
|
|
6261
|
+
const amPm = ['上午', '下午'];
|
|
6262
|
+
const DoFn = function DoFn(D) {
|
|
6263
|
+
return D + '日';
|
|
6264
|
+
};
|
|
6265
|
+
|
|
6266
|
+
const formatFlags = {
|
|
6267
|
+
D: function(dateObj) {
|
|
6268
|
+
return dateObj.getDay();
|
|
6269
|
+
},
|
|
6270
|
+
DD: function(dateObj) {
|
|
6271
|
+
return pad(dateObj.getDay());
|
|
6272
|
+
},
|
|
6273
|
+
Do: function(dateObj) {
|
|
6274
|
+
return DoFn(dateObj.getDate());
|
|
6275
|
+
},
|
|
6276
|
+
d: function(dateObj) {
|
|
6277
|
+
return dateObj.getDate();
|
|
6278
|
+
},
|
|
6279
|
+
dd: function(dateObj) {
|
|
6280
|
+
return pad(dateObj.getDate());
|
|
6281
|
+
},
|
|
6282
|
+
ddd: function(dateObj) {
|
|
6283
|
+
return dayNamesShort[dateObj.getDay()];
|
|
6284
|
+
},
|
|
6285
|
+
dddd: function(dateObj) {
|
|
6286
|
+
return dayNames[dateObj.getDay()];
|
|
6287
|
+
},
|
|
6288
|
+
M: function(dateObj) {
|
|
6289
|
+
return dateObj.getMonth() + 1;
|
|
6290
|
+
},
|
|
6291
|
+
MM: function(dateObj) {
|
|
6292
|
+
return pad(dateObj.getMonth() + 1);
|
|
6293
|
+
},
|
|
6294
|
+
MMM: function(dateObj) {
|
|
6295
|
+
return monthNamesShort[dateObj.getMonth()];
|
|
6296
|
+
},
|
|
6297
|
+
MMMM: function(dateObj) {
|
|
6298
|
+
return monthNames[dateObj.getMonth()];
|
|
6299
|
+
},
|
|
6300
|
+
yy: function(dateObj) {
|
|
6301
|
+
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
6302
|
+
},
|
|
6303
|
+
yyyy: function(dateObj) {
|
|
6304
|
+
return pad(dateObj.getFullYear(), 4);
|
|
6305
|
+
},
|
|
6306
|
+
h: function(dateObj) {
|
|
6307
|
+
return dateObj.getHours() % 12 || 12;
|
|
6308
|
+
},
|
|
6309
|
+
hh: function(dateObj) {
|
|
6310
|
+
return pad(dateObj.getHours() % 12 || 12);
|
|
6311
|
+
},
|
|
6312
|
+
H: function(dateObj) {
|
|
6313
|
+
return dateObj.getHours();
|
|
6314
|
+
},
|
|
6315
|
+
HH: function(dateObj) {
|
|
6316
|
+
return pad(dateObj.getHours());
|
|
6317
|
+
},
|
|
6318
|
+
m: function(dateObj) {
|
|
6319
|
+
return dateObj.getMinutes();
|
|
6320
|
+
},
|
|
6321
|
+
mm: function(dateObj) {
|
|
6322
|
+
return pad(dateObj.getMinutes());
|
|
6323
|
+
},
|
|
6324
|
+
s: function(dateObj) {
|
|
6325
|
+
return dateObj.getSeconds();
|
|
6326
|
+
},
|
|
6327
|
+
ss: function(dateObj) {
|
|
6328
|
+
return pad(dateObj.getSeconds());
|
|
6329
|
+
},
|
|
6330
|
+
S: function(dateObj) {
|
|
6331
|
+
return Math.round(dateObj.getMilliseconds() / 100);
|
|
6332
|
+
},
|
|
6333
|
+
SS: function(dateObj) {
|
|
6334
|
+
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
6335
|
+
},
|
|
6336
|
+
SSS: function(dateObj) {
|
|
6337
|
+
return pad(dateObj.getMilliseconds(), 3);
|
|
6338
|
+
},
|
|
6339
|
+
a: function(dateObj) {
|
|
6340
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
6341
|
+
},
|
|
6342
|
+
A: function(dateObj) {
|
|
6343
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
6344
|
+
},
|
|
6345
|
+
ZZ: function(dateObj) {
|
|
6346
|
+
const o = dateObj.getTimezoneOffset();
|
|
6347
|
+
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
6348
|
+
}
|
|
6349
|
+
};
|
|
6350
|
+
|
|
6351
|
+
const parseFlags = {
|
|
6352
|
+
d: [twoDigits, function (d, v) {
|
|
6353
|
+
d.day = v;
|
|
6354
|
+
}],
|
|
6355
|
+
Do: [twoDigits + word, function (d, v) {
|
|
6356
|
+
d.day = parseInt(v, 10);
|
|
6357
|
+
}],
|
|
6358
|
+
M: [twoDigits, function (d, v) {
|
|
6359
|
+
d.month = v - 1;
|
|
6360
|
+
}],
|
|
6361
|
+
yy: [twoDigits, function (d, v) {
|
|
6362
|
+
const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
|
|
6363
|
+
d.year = '' + (v > 68 ? cent - 1 : cent) + v;
|
|
6364
|
+
}],
|
|
6365
|
+
h: [twoDigits, function (d, v) {
|
|
6366
|
+
d.hour = v;
|
|
6367
|
+
}],
|
|
6368
|
+
m: [twoDigits, function (d, v) {
|
|
6369
|
+
d.minute = v;
|
|
6370
|
+
}],
|
|
6371
|
+
s: [twoDigits, function (d, v) {
|
|
6372
|
+
d.second = v;
|
|
6373
|
+
}],
|
|
6374
|
+
yyyy: [fourDigits, function (d, v) {
|
|
6375
|
+
d.year = v;
|
|
6376
|
+
}],
|
|
6377
|
+
S: ['\\d', function (d, v) {
|
|
6378
|
+
d.millisecond = v * 100;
|
|
6379
|
+
}],
|
|
6380
|
+
SS: ['\\d{2}', function (d, v) {
|
|
6381
|
+
d.millisecond = v * 10;
|
|
6382
|
+
}],
|
|
6383
|
+
SSS: [threeDigits, function (d, v) {
|
|
6384
|
+
d.millisecond = v;
|
|
6385
|
+
}],
|
|
6386
|
+
D: [twoDigits, noop],
|
|
6387
|
+
ddd: [word, noop],
|
|
6388
|
+
MMM: [word, monthUpdate('monthNamesShort')],
|
|
6389
|
+
MMMM: [word, monthUpdate('monthNames')],
|
|
6390
|
+
a: [word, function (d, v) {
|
|
6391
|
+
const val = v.toLowerCase();
|
|
6392
|
+
if (val === '上午') {
|
|
6393
|
+
d.isPm = false;
|
|
6394
|
+
} else if (val === '下午') {
|
|
6395
|
+
d.isPm = true;
|
|
6396
|
+
}
|
|
6397
|
+
}],
|
|
6398
|
+
ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
|
|
6399
|
+
let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
|
|
6400
|
+
|
|
6401
|
+
if (parts) {
|
|
6402
|
+
minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
|
|
6403
|
+
d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
|
|
6404
|
+
}
|
|
6405
|
+
}]
|
|
6406
|
+
};
|
|
6407
|
+
parseFlags.dd = parseFlags.d;
|
|
6408
|
+
parseFlags.dddd = parseFlags.ddd;
|
|
6409
|
+
parseFlags.DD = parseFlags.D;
|
|
6410
|
+
parseFlags.mm = parseFlags.m;
|
|
6411
|
+
parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
|
|
6412
|
+
parseFlags.MM = parseFlags.M;
|
|
6413
|
+
parseFlags.ss = parseFlags.s;
|
|
6414
|
+
parseFlags.A = parseFlags.a;
|
|
6415
|
+
|
|
6416
|
+
|
|
6417
|
+
// Some common format strings
|
|
6418
|
+
fecha.masks = {
|
|
6419
|
+
default: 'ddd MMM dd yyyy HH:mm:ss',
|
|
6420
|
+
shortDate: 'M/D/yy',
|
|
6421
|
+
mediumDate: 'MMM d, yyyy',
|
|
6422
|
+
longDate: 'MMMM d, yyyy',
|
|
6423
|
+
fullDate: 'dddd, MMMM d, yyyy',
|
|
6424
|
+
shortTime: 'HH:mm',
|
|
6425
|
+
mediumTime: 'HH:mm:ss',
|
|
6426
|
+
longTime: 'HH:mm:ss.SSS'
|
|
6427
|
+
};
|
|
6428
|
+
|
|
6396
6429
|
/***
|
|
6397
6430
|
* Format a date
|
|
6398
6431
|
* @method format
|
|
6399
6432
|
* @param {Date|number} dateObj
|
|
6400
6433
|
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
|
|
6401
|
-
*/
|
|
6402
|
-
fecha.format = function (dateObj, mask) {
|
|
6403
|
-
if (typeof dateObj === 'number') {
|
|
6404
|
-
dateObj = new Date(dateObj);
|
|
6405
|
-
}
|
|
6406
|
-
|
|
6407
|
-
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
6408
|
-
throw new Error('Invalid Date in fecha.format');
|
|
6409
|
-
}
|
|
6410
|
-
|
|
6411
|
-
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
// Make literals inactive by replacing them with ??
|
|
6416
|
-
mask = mask.replace(literal, function
|
|
6417
|
-
literals.push($1);
|
|
6418
|
-
return '@@@';
|
|
6419
|
-
});
|
|
6420
|
-
// Apply formatting rules
|
|
6421
|
-
mask = mask.replace(token, function ($0) {
|
|
6422
|
-
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
6423
|
-
});
|
|
6424
|
-
// Inline literal values back into the formatted value
|
|
6425
|
-
return mask.replace(/@@@/g, function
|
|
6426
|
-
return literals.shift();
|
|
6427
|
-
});
|
|
6428
|
-
};
|
|
6429
|
-
|
|
6434
|
+
*/
|
|
6435
|
+
fecha.format = function (dateObj, mask) {
|
|
6436
|
+
if (typeof dateObj === 'number') {
|
|
6437
|
+
dateObj = new Date(dateObj);
|
|
6438
|
+
}
|
|
6439
|
+
|
|
6440
|
+
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
6441
|
+
throw new Error('Invalid Date in fecha.format');
|
|
6442
|
+
}
|
|
6443
|
+
|
|
6444
|
+
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
6445
|
+
|
|
6446
|
+
const literals = [];
|
|
6447
|
+
|
|
6448
|
+
// Make literals inactive by replacing them with ??
|
|
6449
|
+
mask = mask.replace(literal, function($0, $1) {
|
|
6450
|
+
literals.push($1);
|
|
6451
|
+
return '@@@';
|
|
6452
|
+
});
|
|
6453
|
+
// Apply formatting rules
|
|
6454
|
+
mask = mask.replace(token, function ($0) {
|
|
6455
|
+
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
6456
|
+
});
|
|
6457
|
+
// Inline literal values back into the formatted value
|
|
6458
|
+
return mask.replace(/@@@/g, function() {
|
|
6459
|
+
return literals.shift();
|
|
6460
|
+
});
|
|
6461
|
+
};
|
|
6462
|
+
|
|
6430
6463
|
/**
|
|
6431
6464
|
* Parse a date string into an object, changes - into /
|
|
6432
6465
|
* @method parse
|
|
6433
6466
|
* @param {string} dateStr Date string
|
|
6434
6467
|
* @param {string} format Date parse format
|
|
6435
6468
|
* @returns {Date|boolean}
|
|
6436
|
-
*/
|
|
6437
|
-
fecha.parse = function (dateStr, format) {
|
|
6438
|
-
if (typeof format !== 'string') {
|
|
6439
|
-
throw new Error('Invalid format in fecha.parse');
|
|
6440
|
-
}
|
|
6441
|
-
|
|
6442
|
-
format = fecha.masks[format] || format;
|
|
6443
|
-
|
|
6444
|
-
// Avoid regular expression denial of service, fail early for really long strings
|
|
6445
|
-
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
6446
|
-
if (dateStr.length > 1000) {
|
|
6447
|
-
return null;
|
|
6448
|
-
}
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
format = format.replace(literal, function
|
|
6454
|
-
literals.push($1);
|
|
6455
|
-
return '@@@';
|
|
6456
|
-
});
|
|
6457
|
-
|
|
6458
|
-
if (parseFlags[$0]) {
|
|
6459
|
-
|
|
6460
|
-
parseInfo.push(info[1]);
|
|
6461
|
-
return '(' + info[0] + ')';
|
|
6462
|
-
}
|
|
6463
|
-
|
|
6464
|
-
return $0;
|
|
6465
|
-
});
|
|
6466
|
-
newFormat = newFormat.replace(/@@@/g, function
|
|
6467
|
-
return literals.shift();
|
|
6468
|
-
});
|
|
6469
|
-
|
|
6470
|
-
if (!matches) {
|
|
6471
|
-
return null;
|
|
6472
|
-
}
|
|
6473
|
-
|
|
6474
|
-
for (
|
|
6475
|
-
parseInfo[i - 1](dateInfo, matches[i]);
|
|
6476
|
-
}
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
6480
|
-
dateInfo.hour = +dateInfo.hour + 12;
|
|
6481
|
-
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
6482
|
-
dateInfo.hour = 0;
|
|
6483
|
-
}
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
if (dateInfo.timezoneOffset != null) {
|
|
6487
|
-
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
6488
|
-
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
}
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
}
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
if (
|
|
6525
|
-
return
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
// 处理多种输入类型
|
|
6536
|
-
if (!date) return '';
|
|
6537
|
-
|
|
6538
|
-
// 如果是时间戳,转成日期对象
|
|
6539
|
-
if (typeof date === 'number') {
|
|
6540
|
-
date = new Date(date);
|
|
6541
|
-
}
|
|
6542
|
-
// 如果是字符串,转成日期对象
|
|
6543
|
-
if (typeof date === 'string') {
|
|
6544
|
-
date = new Date(date);
|
|
6545
|
-
}
|
|
6546
|
-
|
|
6547
|
-
// 调用toDate进一步验证和转换
|
|
6548
|
-
date = toDate(date);
|
|
6549
|
-
if (!date) return '';
|
|
6550
|
-
|
|
6551
|
-
// 兼容大写和小写的格式标记
|
|
6552
|
-
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
return
|
|
6574
|
-
}
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
//
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
6598
|
-
};
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
return prevDate(result,
|
|
6612
|
-
}
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
//
|
|
6632
|
-
|
|
6633
|
-
//
|
|
6634
|
-
|
|
6635
|
-
//
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
for (
|
|
6655
|
-
hours[i] =
|
|
6656
|
-
}
|
|
6657
|
-
}
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
return
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
};
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
}
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
return
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
return
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
}
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
};
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
return
|
|
6819
|
-
};
|
|
6820
|
-
|
|
6821
|
-
var extractTimeFormat = function extractTimeFormat(format) {
|
|
6822
|
-
return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
|
|
6823
|
-
};
|
|
6824
|
-
|
|
6825
|
-
var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
|
|
6826
|
-
return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
|
|
6827
|
-
};
|
|
6828
|
-
|
|
6469
|
+
*/
|
|
6470
|
+
fecha.parse = function (dateStr, format) {
|
|
6471
|
+
if (typeof format !== 'string') {
|
|
6472
|
+
throw new Error('Invalid format in fecha.parse');
|
|
6473
|
+
}
|
|
6474
|
+
|
|
6475
|
+
format = fecha.masks[format] || format;
|
|
6476
|
+
|
|
6477
|
+
// Avoid regular expression denial of service, fail early for really long strings
|
|
6478
|
+
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
6479
|
+
if (dateStr.length > 1000) {
|
|
6480
|
+
return null;
|
|
6481
|
+
}
|
|
6482
|
+
|
|
6483
|
+
const dateInfo = {};
|
|
6484
|
+
const parseInfo = [];
|
|
6485
|
+
const literals = [];
|
|
6486
|
+
format = format.replace(literal, function($0, $1) {
|
|
6487
|
+
literals.push($1);
|
|
6488
|
+
return '@@@';
|
|
6489
|
+
});
|
|
6490
|
+
let newFormat = regexEscape(format).replace(token, function ($0) {
|
|
6491
|
+
if (parseFlags[$0]) {
|
|
6492
|
+
const info = parseFlags[$0];
|
|
6493
|
+
parseInfo.push(info[1]);
|
|
6494
|
+
return '(' + info[0] + ')';
|
|
6495
|
+
}
|
|
6496
|
+
|
|
6497
|
+
return $0;
|
|
6498
|
+
});
|
|
6499
|
+
newFormat = newFormat.replace(/@@@/g, function() {
|
|
6500
|
+
return literals.shift();
|
|
6501
|
+
});
|
|
6502
|
+
const matches = dateStr.match(new RegExp(newFormat, 'i'));
|
|
6503
|
+
if (!matches) {
|
|
6504
|
+
return null;
|
|
6505
|
+
}
|
|
6506
|
+
|
|
6507
|
+
for (let i = 1; i < matches.length; i++) {
|
|
6508
|
+
parseInfo[i - 1](dateInfo, matches[i]);
|
|
6509
|
+
}
|
|
6510
|
+
|
|
6511
|
+
const today = new Date();
|
|
6512
|
+
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
6513
|
+
dateInfo.hour = +dateInfo.hour + 12;
|
|
6514
|
+
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
6515
|
+
dateInfo.hour = 0;
|
|
6516
|
+
}
|
|
6517
|
+
|
|
6518
|
+
let date;
|
|
6519
|
+
if (dateInfo.timezoneOffset != null) {
|
|
6520
|
+
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
6521
|
+
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
6522
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
|
|
6523
|
+
} else {
|
|
6524
|
+
date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
6525
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
|
|
6526
|
+
}
|
|
6527
|
+
return date;
|
|
6528
|
+
};
|
|
6529
|
+
|
|
6530
|
+
// 导出fecha对象
|
|
6531
|
+
|
|
6532
|
+
|
|
6533
|
+
// 以下是从date-util.js合并的函数
|
|
6534
|
+
const newArray = function(start, end) {
|
|
6535
|
+
let result = [];
|
|
6536
|
+
for (let i = start; i <= end; i++) {
|
|
6537
|
+
result.push(i);
|
|
6538
|
+
}
|
|
6539
|
+
return result;
|
|
6540
|
+
};
|
|
6541
|
+
|
|
6542
|
+
const getSettings = () => {
|
|
6543
|
+
return {
|
|
6544
|
+
dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
|
|
6545
|
+
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
|
|
6546
|
+
monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
6547
|
+
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
|
6548
|
+
amPm: ['上午', '下午']
|
|
6549
|
+
};
|
|
6550
|
+
};
|
|
6551
|
+
|
|
6552
|
+
const toDate = function(date) {
|
|
6553
|
+
return isDate(date) ? new Date(date) : null;
|
|
6554
|
+
};
|
|
6555
|
+
|
|
6556
|
+
const isDate = function(date) {
|
|
6557
|
+
if (date === null || date === undefined) return false;
|
|
6558
|
+
if (isNaN(new Date(date).getTime())) return false;
|
|
6559
|
+
if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
|
|
6560
|
+
return true;
|
|
6561
|
+
};
|
|
6562
|
+
|
|
6563
|
+
const isDateObject = function(val) {
|
|
6564
|
+
return val instanceof Date;
|
|
6565
|
+
};
|
|
6566
|
+
|
|
6567
|
+
const formatDate = function (date, format = 'yyyy-MM-dd') {
|
|
6568
|
+
// 处理多种输入类型
|
|
6569
|
+
if (!date) return '';
|
|
6570
|
+
|
|
6571
|
+
// 如果是时间戳,转成日期对象
|
|
6572
|
+
if (typeof date === 'number') {
|
|
6573
|
+
date = new Date(date);
|
|
6574
|
+
}
|
|
6575
|
+
// 如果是字符串,转成日期对象
|
|
6576
|
+
if (typeof date === 'string') {
|
|
6577
|
+
date = new Date(date);
|
|
6578
|
+
}
|
|
6579
|
+
|
|
6580
|
+
// 调用toDate进一步验证和转换
|
|
6581
|
+
date = toDate(date);
|
|
6582
|
+
if (!date) return '';
|
|
6583
|
+
|
|
6584
|
+
// 兼容大写和小写的格式标记
|
|
6585
|
+
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
6586
|
+
const lowercaseFormat = format
|
|
6587
|
+
.replace(/YYYY/g, 'yyyy')
|
|
6588
|
+
.replace(/D/g, 'd')
|
|
6589
|
+
|
|
6590
|
+
// 使用fecha库进行格式化,支持中文配置
|
|
6591
|
+
const str = fecha.format(date, lowercaseFormat, getSettings());
|
|
6592
|
+
return str;
|
|
6593
|
+
};
|
|
6594
|
+
|
|
6595
|
+
const parseDate = function(string, format) {
|
|
6596
|
+
return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
|
|
6597
|
+
};
|
|
6598
|
+
|
|
6599
|
+
const getDayCountOfMonth = function(year, month) {
|
|
6600
|
+
if (month === 3 || month === 5 || month === 8 || month === 10) {
|
|
6601
|
+
return 30;
|
|
6602
|
+
}
|
|
6603
|
+
|
|
6604
|
+
if (month === 1) {
|
|
6605
|
+
if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
|
|
6606
|
+
return 29;
|
|
6607
|
+
} else {
|
|
6608
|
+
return 28;
|
|
6609
|
+
}
|
|
6610
|
+
}
|
|
6611
|
+
|
|
6612
|
+
return 31;
|
|
6613
|
+
};
|
|
6614
|
+
|
|
6615
|
+
const getDayCountOfYear = function(year) {
|
|
6616
|
+
const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
|
|
6617
|
+
return isLeapYear ? 366 : 365;
|
|
6618
|
+
};
|
|
6619
|
+
|
|
6620
|
+
const getFirstDayOfMonth = function(date) {
|
|
6621
|
+
const temp = new Date(date.getTime());
|
|
6622
|
+
temp.setDate(1);
|
|
6623
|
+
return temp.getDay();
|
|
6624
|
+
};
|
|
6625
|
+
|
|
6626
|
+
// see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
|
|
6627
|
+
// {prev, next} Date should work for Daylight Saving Time
|
|
6628
|
+
// Adding 24 * 60 * 60 * 1000 does not work in the above scenario
|
|
6629
|
+
const prevDate = function(date, amount = 1) {
|
|
6630
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
6631
|
+
};
|
|
6632
|
+
|
|
6633
|
+
const nextDate = function(date, amount = 1) {
|
|
6634
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
|
|
6635
|
+
};
|
|
6636
|
+
|
|
6637
|
+
const getStartDateOfMonth = function(year, month) {
|
|
6638
|
+
const result = new Date(year, month, 1);
|
|
6639
|
+
const day = result.getDay();
|
|
6640
|
+
|
|
6641
|
+
if (day === 0) {
|
|
6642
|
+
return prevDate(result, 7);
|
|
6643
|
+
} else {
|
|
6644
|
+
return prevDate(result, day);
|
|
6645
|
+
}
|
|
6646
|
+
};
|
|
6647
|
+
|
|
6648
|
+
const getWeekNumber = function(date) {
|
|
6649
|
+
// 支持多种输入类型
|
|
6650
|
+
if (!date||!isDate(date)) {
|
|
6651
|
+
date = new Date();
|
|
6652
|
+
}
|
|
6653
|
+
if (typeof date === 'string') {
|
|
6654
|
+
date = new Date(date);
|
|
6655
|
+
}
|
|
6656
|
+
|
|
6657
|
+
// 验证日期有效性
|
|
6658
|
+
if (!isDate(date)) return null;
|
|
6659
|
+
|
|
6660
|
+
const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
6661
|
+
// 设置为最近的星期四:当前日期 + 4 - 当前星期数
|
|
6662
|
+
// 将星期日的星期数设为7
|
|
6663
|
+
d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
|
|
6664
|
+
// 获取当年的第一天
|
|
6665
|
+
const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
6666
|
+
// 计算到最近的星期四的完整周数
|
|
6667
|
+
const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
|
|
6668
|
+
// 返回周数
|
|
6669
|
+
return weekNo;
|
|
6670
|
+
};
|
|
6671
|
+
|
|
6672
|
+
const getRangeHours = function(ranges) {
|
|
6673
|
+
const hours = [];
|
|
6674
|
+
let disabledHours = [];
|
|
6675
|
+
|
|
6676
|
+
(ranges || []).forEach(range => {
|
|
6677
|
+
const value = range.map(date => date.getHours());
|
|
6678
|
+
|
|
6679
|
+
disabledHours = disabledHours.concat(newArray(value[0], value[1]));
|
|
6680
|
+
});
|
|
6681
|
+
|
|
6682
|
+
if (disabledHours.length) {
|
|
6683
|
+
for (let i = 0; i < 24; i++) {
|
|
6684
|
+
hours[i] = disabledHours.indexOf(i) === -1;
|
|
6685
|
+
}
|
|
6686
|
+
} else {
|
|
6687
|
+
for (let i = 0; i < 24; i++) {
|
|
6688
|
+
hours[i] = false;
|
|
6689
|
+
}
|
|
6690
|
+
}
|
|
6691
|
+
|
|
6692
|
+
return hours;
|
|
6693
|
+
};
|
|
6694
|
+
|
|
6695
|
+
const getPrevMonthLastDays = (date, amount) => {
|
|
6696
|
+
if (amount <= 0) return [];
|
|
6697
|
+
const temp = new Date(date.getTime());
|
|
6698
|
+
temp.setDate(0);
|
|
6699
|
+
const lastDay = temp.getDate();
|
|
6700
|
+
return range(amount).map((_, index) => lastDay - (amount - index - 1));
|
|
6701
|
+
};
|
|
6702
|
+
|
|
6703
|
+
const getMonthDays = (date) => {
|
|
6704
|
+
const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
6705
|
+
const days = temp.getDate();
|
|
6706
|
+
return range(days).map((_, index) => index + 1);
|
|
6707
|
+
};
|
|
6708
|
+
|
|
6709
|
+
function setRangeData(arr, start, end, value) {
|
|
6710
|
+
for (let i = start; i < end; i++) {
|
|
6711
|
+
arr[i] = value;
|
|
6712
|
+
}
|
|
6713
|
+
}
|
|
6714
|
+
|
|
6715
|
+
const getRangeMinutes = function(ranges, hour) {
|
|
6716
|
+
const minutes = new Array(60);
|
|
6717
|
+
|
|
6718
|
+
if (ranges.length > 0) {
|
|
6719
|
+
ranges.forEach(range => {
|
|
6720
|
+
const start = range[0];
|
|
6721
|
+
const end = range[1];
|
|
6722
|
+
const startHour = start.getHours();
|
|
6723
|
+
const startMinute = start.getMinutes();
|
|
6724
|
+
const endHour = end.getHours();
|
|
6725
|
+
const endMinute = end.getMinutes();
|
|
6726
|
+
if (startHour === hour && endHour !== hour) {
|
|
6727
|
+
setRangeData(minutes, startMinute, 60, true);
|
|
6728
|
+
} else if (startHour === hour && endHour === hour) {
|
|
6729
|
+
setRangeData(minutes, startMinute, endMinute + 1, true);
|
|
6730
|
+
} else if (startHour !== hour && endHour === hour) {
|
|
6731
|
+
setRangeData(minutes, 0, endMinute + 1, true);
|
|
6732
|
+
} else if (startHour < hour && endHour > hour) {
|
|
6733
|
+
setRangeData(minutes, 0, 60, true);
|
|
6734
|
+
}
|
|
6735
|
+
});
|
|
6736
|
+
} else {
|
|
6737
|
+
setRangeData(minutes, 0, 60, true);
|
|
6738
|
+
}
|
|
6739
|
+
return minutes;
|
|
6740
|
+
};
|
|
6741
|
+
|
|
6742
|
+
const range = function(n) {
|
|
6743
|
+
// see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
|
|
6744
|
+
return Array.apply(null, {length: n}).map((_, n) => n);
|
|
6745
|
+
};
|
|
6746
|
+
|
|
6747
|
+
const modifyDate = function(date, y, m, d) {
|
|
6748
|
+
return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
6749
|
+
};
|
|
6750
|
+
|
|
6751
|
+
const modifyTime = function(date, h, m, s) {
|
|
6752
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
|
|
6753
|
+
};
|
|
6754
|
+
|
|
6755
|
+
const modifyWithTimeString = (date, time) => {
|
|
6756
|
+
if (date == null || !time) {
|
|
6757
|
+
return date;
|
|
6758
|
+
}
|
|
6759
|
+
time = parseDate(time, 'HH:mm:ss');
|
|
6760
|
+
return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
|
|
6761
|
+
};
|
|
6762
|
+
|
|
6763
|
+
const clearTime = function(date) {
|
|
6764
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
6765
|
+
};
|
|
6766
|
+
|
|
6767
|
+
const clearMilliseconds = function(date) {
|
|
6768
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
|
|
6769
|
+
};
|
|
6770
|
+
|
|
6771
|
+
const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
|
|
6772
|
+
// TODO: refactory a more elegant solution
|
|
6773
|
+
if (ranges.length === 0) return date;
|
|
6774
|
+
const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
|
|
6775
|
+
const ndate = normalizeDate(date);
|
|
6776
|
+
const nranges = ranges.map(range => range.map(normalizeDate));
|
|
6777
|
+
if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
|
|
6778
|
+
|
|
6779
|
+
let minDate = nranges[0][0];
|
|
6780
|
+
let maxDate = nranges[0][0];
|
|
6781
|
+
|
|
6782
|
+
nranges.forEach(nrange => {
|
|
6783
|
+
minDate = new Date(Math.min(nrange[0], minDate));
|
|
6784
|
+
maxDate = new Date(Math.max(nrange[1], minDate));
|
|
6785
|
+
});
|
|
6786
|
+
|
|
6787
|
+
const ret = ndate < minDate ? minDate : maxDate;
|
|
6788
|
+
// preserve Year/Month/Date
|
|
6789
|
+
return modifyDate(
|
|
6790
|
+
ret,
|
|
6791
|
+
date.getFullYear(),
|
|
6792
|
+
date.getMonth(),
|
|
6793
|
+
date.getDate()
|
|
6794
|
+
);
|
|
6795
|
+
};
|
|
6796
|
+
|
|
6797
|
+
const timeWithinRange = function(date, selectableRange, format) {
|
|
6798
|
+
const limitedDate = limitTimeRange(date, selectableRange, format);
|
|
6799
|
+
return limitedDate.getTime() === date.getTime();
|
|
6800
|
+
};
|
|
6801
|
+
|
|
6802
|
+
const changeYearMonthAndClampDate = function(date, year, month) {
|
|
6803
|
+
// clamp date to the number of days in `year`, `month`
|
|
6804
|
+
// eg: (2010-1-31, 2010, 2) => 2010-2-28
|
|
6805
|
+
const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
|
|
6806
|
+
return modifyDate(date, year, month, monthDate);
|
|
6807
|
+
};
|
|
6808
|
+
|
|
6809
|
+
const prevMonth = function(date) {
|
|
6810
|
+
const year = date.getFullYear();
|
|
6811
|
+
const month = date.getMonth();
|
|
6812
|
+
return month === 0
|
|
6813
|
+
? changeYearMonthAndClampDate(date, year - 1, 11)
|
|
6814
|
+
: changeYearMonthAndClampDate(date, year, month - 1);
|
|
6815
|
+
};
|
|
6816
|
+
|
|
6817
|
+
const nextMonth = function(date) {
|
|
6818
|
+
const year = date.getFullYear();
|
|
6819
|
+
const month = date.getMonth();
|
|
6820
|
+
return month === 11
|
|
6821
|
+
? changeYearMonthAndClampDate(date, year + 1, 0)
|
|
6822
|
+
: changeYearMonthAndClampDate(date, year, month + 1);
|
|
6823
|
+
};
|
|
6824
|
+
|
|
6825
|
+
const prevYear = function(date, amount = 1) {
|
|
6826
|
+
const year = date.getFullYear();
|
|
6827
|
+
const month = date.getMonth();
|
|
6828
|
+
return changeYearMonthAndClampDate(date, year - amount, month);
|
|
6829
|
+
};
|
|
6830
|
+
|
|
6831
|
+
const nextYear = function(date, amount = 1) {
|
|
6832
|
+
const year = date.getFullYear();
|
|
6833
|
+
const month = date.getMonth();
|
|
6834
|
+
return changeYearMonthAndClampDate(date, year + amount, month);
|
|
6835
|
+
};
|
|
6836
|
+
|
|
6837
|
+
const extractDateFormat = function(format) {
|
|
6838
|
+
return format
|
|
6839
|
+
.replace(/\W?m{1,2}|\W?ZZ/g, '')
|
|
6840
|
+
.replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
|
|
6841
|
+
.trim();
|
|
6842
|
+
};
|
|
6843
|
+
|
|
6844
|
+
const extractTimeFormat = function(format) {
|
|
6845
|
+
return format
|
|
6846
|
+
.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
|
|
6847
|
+
.trim();
|
|
6848
|
+
};
|
|
6849
|
+
|
|
6850
|
+
const validateRangeInOneMonth = function(start, end) {
|
|
6851
|
+
return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
|
|
6852
|
+
};
|
|
6853
|
+
|
|
6829
6854
|
/**
|
|
6830
6855
|
* 计算两个日期之间的工作日数量(不包括周末和节假日)
|
|
6831
6856
|
* @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
|
|
6832
6857
|
* @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
|
|
6833
6858
|
* @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
|
|
6834
6859
|
* @returns {number} 工作日数量
|
|
6835
|
-
*/
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
}
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
6847
|
-
throw new Error(
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
}
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6860
|
+
*/
|
|
6861
|
+
const calculateNetworkDays = function (start_date, end_date, holidays = []) {
|
|
6862
|
+
if (typeof start_date !== 'string' || typeof end_date !== 'string') {
|
|
6863
|
+
throw new Error(
|
|
6864
|
+
"Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
6865
|
+
);
|
|
6866
|
+
}
|
|
6867
|
+
|
|
6868
|
+
const startDateObj = new Date(start_date);
|
|
6869
|
+
const endDateObj = new Date(end_date);
|
|
6870
|
+
|
|
6871
|
+
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
6872
|
+
throw new Error(
|
|
6873
|
+
"Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
6874
|
+
);
|
|
6875
|
+
}
|
|
6876
|
+
|
|
6877
|
+
if (startDateObj > endDateObj) {
|
|
6878
|
+
throw new Error('Start date should be earlier than or equal to end date.');
|
|
6879
|
+
}
|
|
6880
|
+
|
|
6881
|
+
let workdays = 0;
|
|
6882
|
+
|
|
6883
|
+
// Iterate through each day in the date range
|
|
6884
|
+
for (
|
|
6885
|
+
let currentDate = new Date(startDateObj);
|
|
6886
|
+
currentDate <= endDateObj;
|
|
6887
|
+
currentDate.setDate(currentDate.getDate() + 1)
|
|
6888
|
+
) {
|
|
6889
|
+
// Check if the current day is a weekend (Saturday or Sunday)
|
|
6890
|
+
const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
|
|
6891
|
+
|
|
6892
|
+
// Check if the current day is a holiday
|
|
6893
|
+
const isHoliday = holidays.some((holiday) => {
|
|
6894
|
+
const holidayDate = new Date(holiday);
|
|
6895
|
+
return currentDate.toDateString() === holidayDate.toDateString();
|
|
6896
|
+
});
|
|
6897
|
+
|
|
6898
|
+
// If it's a workday (not a weekend or holiday), increment the workdays count
|
|
6899
|
+
if (!isWeekend && !isHoliday) {
|
|
6900
|
+
workdays++;
|
|
6901
|
+
}
|
|
6902
|
+
}
|
|
6903
|
+
|
|
6904
|
+
return workdays;
|
|
6905
|
+
};
|
|
6906
|
+
|
|
6881
6907
|
/**
|
|
6882
6908
|
* 日期加减天数
|
|
6883
6909
|
* @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
|
|
6884
6910
|
* @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
|
|
6885
6911
|
* @returns {string} 结果日期,格式为 "YYYY-MM-DD"
|
|
6886
|
-
*/
|
|
6887
|
-
|
|
6888
|
-
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
6889
|
-
throw new Error(
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6912
|
+
*/
|
|
6913
|
+
const dateAddDays = function (start_date, days) {
|
|
6914
|
+
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
6915
|
+
throw new Error(
|
|
6916
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
|
|
6917
|
+
);
|
|
6918
|
+
}
|
|
6919
|
+
|
|
6920
|
+
const startDateObj = new Date(start_date);
|
|
6921
|
+
if (isNaN(startDateObj.getTime())) {
|
|
6922
|
+
throw new Error(
|
|
6923
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
6924
|
+
);
|
|
6925
|
+
}
|
|
6926
|
+
|
|
6927
|
+
const resultDateObj = new Date(startDateObj);
|
|
6928
|
+
resultDateObj.setDate(resultDateObj.getDate() + days);
|
|
6929
|
+
|
|
6930
|
+
const resultYear = resultDateObj.getFullYear();
|
|
6931
|
+
const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
|
|
6932
|
+
const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
|
|
6933
|
+
|
|
6934
|
+
return `${resultYear}-${resultMonth}-${resultDay}`;
|
|
6935
|
+
};
|
|
6936
|
+
|
|
6907
6937
|
/**
|
|
6908
6938
|
* 计算两个日期之间的差值
|
|
6909
6939
|
* @date 2023年12月14日
|
|
@@ -6911,180 +6941,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
|
|
|
6911
6941
|
* @param {String} end_date - 结束日期字符串
|
|
6912
6942
|
* @param {String} unit - 单位:year/month/day
|
|
6913
6943
|
* @returns {Number} 差值
|
|
6914
|
-
*/
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
if (unit === '
|
|
6928
|
-
return
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
}
|
|
6938
|
-
|
|
6944
|
+
*/
|
|
6945
|
+
const dateDiff = function (start_date, end_date, unit = 'day') {
|
|
6946
|
+
// Assuming date strings are in "YYYY-MM-DD" format
|
|
6947
|
+
var startDate = new Date(start_date);
|
|
6948
|
+
var endDate = new Date(end_date);
|
|
6949
|
+
|
|
6950
|
+
// If the date is invalid, return 0
|
|
6951
|
+
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
6952
|
+
return 0;
|
|
6953
|
+
}
|
|
6954
|
+
|
|
6955
|
+
if (unit === 'year') {
|
|
6956
|
+
return endDate.getFullYear() - startDate.getFullYear();
|
|
6957
|
+
} else if (unit === 'month') {
|
|
6958
|
+
return (
|
|
6959
|
+
(endDate.getFullYear() - startDate.getFullYear()) * 12 +
|
|
6960
|
+
(endDate.getMonth() - startDate.getMonth())
|
|
6961
|
+
);
|
|
6962
|
+
} else {
|
|
6963
|
+
// Default to day
|
|
6964
|
+
var timeDifference = endDate - startDate;
|
|
6965
|
+
// Calculate days (86400000 milliseconds per day)
|
|
6966
|
+
return Math.floor(timeDifference / 86400000);
|
|
6967
|
+
}
|
|
6968
|
+
};
|
|
6969
|
+
|
|
6939
6970
|
/**
|
|
6940
6971
|
* 获取月份中的日期
|
|
6941
6972
|
* @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
|
|
6942
6973
|
* @returns {number} 月份中的日期(1-31)
|
|
6943
|
-
*/
|
|
6944
|
-
|
|
6945
|
-
if (typeof date !== 'string') {
|
|
6946
|
-
throw new Error(
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6974
|
+
*/
|
|
6975
|
+
const dayOfMonth = function (date) {
|
|
6976
|
+
if (typeof date !== 'string') {
|
|
6977
|
+
throw new Error(
|
|
6978
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
6979
|
+
);
|
|
6980
|
+
}
|
|
6981
|
+
|
|
6982
|
+
const dateObj = new Date(date);
|
|
6983
|
+
if (isNaN(dateObj.getTime())) {
|
|
6984
|
+
throw new Error(
|
|
6985
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
6986
|
+
);
|
|
6987
|
+
}
|
|
6988
|
+
|
|
6989
|
+
return dateObj.getDate();
|
|
6990
|
+
};
|
|
6991
|
+
|
|
6957
6992
|
/**
|
|
6958
6993
|
* 获取当前日期
|
|
6959
6994
|
* @date 2022年5月7日
|
|
6960
6995
|
* @param {string} format - 日期格式,默认为'YYYY-MM-DD'
|
|
6961
6996
|
* @returns {string} 当前日期的格式化字符串
|
|
6962
|
-
*/
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
};
|
|
6968
|
-
|
|
6997
|
+
*/
|
|
6998
|
+
const getCurrentDate = function (format = 'YYYY-MM-DD') {
|
|
6999
|
+
return formatDate(new Date(), format);
|
|
7000
|
+
};
|
|
7001
|
+
|
|
6969
7002
|
/**
|
|
6970
7003
|
* 获取当前日期时间
|
|
6971
7004
|
* @date 2022年5月7日
|
|
6972
7005
|
* @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
|
|
6973
7006
|
* @returns {string} 当前日期时间的格式化字符串
|
|
6974
|
-
*/
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
};
|
|
6980
|
-
|
|
7007
|
+
*/
|
|
7008
|
+
const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
|
|
7009
|
+
return formatDate(new Date(), format);
|
|
7010
|
+
};
|
|
7011
|
+
|
|
6981
7012
|
/**
|
|
6982
7013
|
* 获取小时
|
|
6983
7014
|
* @date 2022年5月7日
|
|
6984
7015
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
6985
7016
|
* @returns {number} 小时数(0-23)
|
|
6986
|
-
*/
|
|
6987
|
-
|
|
6988
|
-
if (!date) {
|
|
6989
|
-
return new Date().getHours();
|
|
6990
|
-
}
|
|
6991
|
-
if (typeof date === 'string') {
|
|
6992
|
-
date = new Date(date);
|
|
6993
|
-
}
|
|
6994
|
-
return date.getHours();
|
|
6995
|
-
};
|
|
6996
|
-
|
|
7017
|
+
*/
|
|
7018
|
+
const getHour = function (date) {
|
|
7019
|
+
if (!date) {
|
|
7020
|
+
return new Date().getHours();
|
|
7021
|
+
}
|
|
7022
|
+
if (typeof date === 'string') {
|
|
7023
|
+
date = new Date(date);
|
|
7024
|
+
}
|
|
7025
|
+
return date.getHours();
|
|
7026
|
+
};
|
|
7027
|
+
|
|
6997
7028
|
/**
|
|
6998
7029
|
* 获取分钟
|
|
6999
7030
|
* @date 2022年5月7日
|
|
7000
7031
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
7001
7032
|
* @returns {number} 分钟数(0-59)
|
|
7002
|
-
*/
|
|
7003
|
-
|
|
7004
|
-
if (!date) {
|
|
7005
|
-
return new Date().getMinutes();
|
|
7006
|
-
}
|
|
7007
|
-
if (typeof date === 'string') {
|
|
7008
|
-
date = new Date(date);
|
|
7009
|
-
}
|
|
7010
|
-
return date.getMinutes();
|
|
7011
|
-
};
|
|
7012
|
-
|
|
7033
|
+
*/
|
|
7034
|
+
const getMinute = function (date) {
|
|
7035
|
+
if (!date) {
|
|
7036
|
+
return new Date().getMinutes();
|
|
7037
|
+
}
|
|
7038
|
+
if (typeof date === 'string') {
|
|
7039
|
+
date = new Date(date);
|
|
7040
|
+
}
|
|
7041
|
+
return date.getMinutes();
|
|
7042
|
+
};
|
|
7043
|
+
|
|
7013
7044
|
/**
|
|
7014
7045
|
* 获取月份
|
|
7015
7046
|
* @date 2022年5月7日
|
|
7016
7047
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
7017
7048
|
* @returns {number} 月份数(1-12)
|
|
7018
|
-
*/
|
|
7019
|
-
|
|
7020
|
-
if (!date) {
|
|
7021
|
-
return new Date().getMonth() + 1;
|
|
7022
|
-
}
|
|
7023
|
-
if (typeof date === 'string') {
|
|
7024
|
-
date = new Date(date);
|
|
7025
|
-
}
|
|
7026
|
-
return date.getMonth() + 1;
|
|
7027
|
-
};
|
|
7028
|
-
|
|
7049
|
+
*/
|
|
7050
|
+
const getMonth = function (date) {
|
|
7051
|
+
if (!date) {
|
|
7052
|
+
return new Date().getMonth() + 1;
|
|
7053
|
+
}
|
|
7054
|
+
if (typeof date === 'string') {
|
|
7055
|
+
date = new Date(date);
|
|
7056
|
+
}
|
|
7057
|
+
return date.getMonth() + 1;
|
|
7058
|
+
};
|
|
7059
|
+
|
|
7029
7060
|
/**
|
|
7030
7061
|
* 获取秒
|
|
7031
7062
|
* @date 2022年5月7日
|
|
7032
7063
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
7033
7064
|
* @returns {number} 秒数(0-59)
|
|
7034
|
-
*/
|
|
7035
|
-
|
|
7036
|
-
if (!date) {
|
|
7037
|
-
return new Date().getSeconds();
|
|
7038
|
-
}
|
|
7039
|
-
if (typeof date === 'string') {
|
|
7040
|
-
date = new Date(date);
|
|
7041
|
-
}
|
|
7042
|
-
return date.getSeconds();
|
|
7043
|
-
};
|
|
7044
|
-
|
|
7065
|
+
*/
|
|
7066
|
+
const getSecond = function (date) {
|
|
7067
|
+
if (!date) {
|
|
7068
|
+
return new Date().getSeconds();
|
|
7069
|
+
}
|
|
7070
|
+
if (typeof date === 'string') {
|
|
7071
|
+
date = new Date(date);
|
|
7072
|
+
}
|
|
7073
|
+
return date.getSeconds();
|
|
7074
|
+
};
|
|
7075
|
+
|
|
7045
7076
|
/**
|
|
7046
7077
|
* 获取星期几
|
|
7047
7078
|
* @date 2022年5月7日
|
|
7048
7079
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
7049
7080
|
* @returns {number} 星期几(0-6,0表示星期日)
|
|
7050
|
-
*/
|
|
7051
|
-
|
|
7052
|
-
if (!date) {
|
|
7053
|
-
return new Date().getDay();
|
|
7054
|
-
}
|
|
7055
|
-
if (typeof date === 'string') {
|
|
7056
|
-
date = new Date(date);
|
|
7057
|
-
}
|
|
7058
|
-
return date.getDay();
|
|
7059
|
-
};
|
|
7060
|
-
|
|
7081
|
+
*/
|
|
7082
|
+
const getWeekday = function (date) {
|
|
7083
|
+
if (!date) {
|
|
7084
|
+
return new Date().getDay();
|
|
7085
|
+
}
|
|
7086
|
+
if (typeof date === 'string') {
|
|
7087
|
+
date = new Date(date);
|
|
7088
|
+
}
|
|
7089
|
+
return date.getDay();
|
|
7090
|
+
};
|
|
7091
|
+
|
|
7092
|
+
|
|
7061
7093
|
/**
|
|
7062
7094
|
* @desc 获取上午/下午/晚上
|
|
7063
7095
|
* @author huangbo
|
|
7064
7096
|
* @date 2022年5月7日
|
|
7065
7097
|
* @param {String} [time] - 时间
|
|
7066
|
-
**/
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
if (!time) {
|
|
7070
|
-
hour = new Date().getHours();
|
|
7071
|
-
} else if (typeof time === 'string') {
|
|
7072
|
-
// 从时间字符串中提取小时
|
|
7073
|
-
|
|
7074
|
-
if (match) {
|
|
7075
|
-
hour = parseInt(match[1], 10);
|
|
7076
|
-
}
|
|
7077
|
-
} else if (typeof time === 'number') {
|
|
7078
|
-
hour = time;
|
|
7079
|
-
}
|
|
7080
|
-
// 判断时间段
|
|
7081
|
-
if (hour >= 5 && hour < 12) {
|
|
7082
|
-
return '上午';
|
|
7083
|
-
} else if (hour >= 12 && hour < 18) {
|
|
7084
|
-
return '下午';
|
|
7085
|
-
} else {
|
|
7086
|
-
return '晚上';
|
|
7087
|
-
}
|
|
7098
|
+
**/
|
|
7099
|
+
const timeCycle = function (time) {
|
|
7100
|
+
let hour = 0;
|
|
7101
|
+
if (!time) {
|
|
7102
|
+
hour = new Date().getHours();
|
|
7103
|
+
} else if (typeof time === 'string') {
|
|
7104
|
+
// 从时间字符串中提取小时
|
|
7105
|
+
const match = time.match(/^(\d{1,2})/);
|
|
7106
|
+
if (match) {
|
|
7107
|
+
hour = parseInt(match[1], 10);
|
|
7108
|
+
}
|
|
7109
|
+
} else if (typeof time === 'number') {
|
|
7110
|
+
hour = time;
|
|
7111
|
+
}
|
|
7112
|
+
// 判断时间段
|
|
7113
|
+
if (hour >= 5 && hour < 12) {
|
|
7114
|
+
return '上午';
|
|
7115
|
+
} else if (hour >= 12 && hour < 18) {
|
|
7116
|
+
return '下午';
|
|
7117
|
+
} else {
|
|
7118
|
+
return '晚上';
|
|
7119
|
+
}
|
|
7088
7120
|
};
|
|
7089
7121
|
|
|
7090
7122
|
/***/ }),
|
|
@@ -7111,22 +7143,24 @@ module.exports = require("eoss/lib/message-box");
|
|
|
7111
7143
|
/* unused harmony export downloadZip */
|
|
7112
7144
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
|
|
7113
7145
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
|
|
7114
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
7146
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
|
|
7115
7147
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
|
|
7116
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
7148
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
|
|
7117
7149
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
7118
7150
|
/* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20);
|
|
7119
|
-
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
7151
|
+
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30);
|
|
7120
7152
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
|
|
7121
7153
|
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0);
|
|
7122
|
-
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
7154
|
+
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21);
|
|
7123
7155
|
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(fetch_request_source__WEBPACK_IMPORTED_MODULE_5__);
|
|
7124
7156
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1);
|
|
7125
7157
|
/* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6);
|
|
7126
7158
|
/* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8);
|
|
7127
7159
|
/* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__);
|
|
7128
|
-
/* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
7160
|
+
/* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(10);
|
|
7129
7161
|
/* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__);
|
|
7162
|
+
/* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31);
|
|
7163
|
+
/* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__);
|
|
7130
7164
|
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; };
|
|
7131
7165
|
|
|
7132
7166
|
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; }
|
|
@@ -7149,6 +7183,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
7149
7183
|
|
|
7150
7184
|
|
|
7151
7185
|
|
|
7186
|
+
|
|
7152
7187
|
// 常量定义
|
|
7153
7188
|
var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ storeAsString: true });
|
|
7154
7189
|
var statusMap = {
|
|
@@ -7685,7 +7720,7 @@ var responses = function responses(data) {
|
|
|
7685
7720
|
onlyFirst: true,
|
|
7686
7721
|
customClass: 'es-retrial-auth-msg',
|
|
7687
7722
|
render: function render(h, msgBox) {
|
|
7688
|
-
return h(
|
|
7723
|
+
return h(eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10___default.a, {
|
|
7689
7724
|
ref: 'auth',
|
|
7690
7725
|
props: {
|
|
7691
7726
|
reload: data.results.reload || data.results.refresh,
|
|
@@ -7928,7 +7963,7 @@ function redirectToLoginPage(loginPage, next) {
|
|
|
7928
7963
|
* @param {function} callback - 回调函数
|
|
7929
7964
|
**/
|
|
7930
7965
|
var getMainConfig = function getMainConfig(callback) {
|
|
7931
|
-
ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "
|
|
7966
|
+
ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "wb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
|
|
7932
7967
|
if (res && res.rCode === 0) {
|
|
7933
7968
|
callback(res.results);
|
|
7934
7969
|
}
|
|
@@ -7951,7 +7986,7 @@ var getSysCodeList = function getSysCodeList(_ref4) {
|
|
|
7951
7986
|
method = _ref4$method === undefined ? 'POST' : _ref4$method,
|
|
7952
7987
|
service = _ref4.service,
|
|
7953
7988
|
_ref4$url = _ref4.url,
|
|
7954
|
-
url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "
|
|
7989
|
+
url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "D"] : _ref4$url,
|
|
7955
7990
|
sysCode = _ref4.sysCode,
|
|
7956
7991
|
_ref4$param = _ref4.param,
|
|
7957
7992
|
param = _ref4$param === undefined ? {} : _ref4$param,
|
|
@@ -8061,7 +8096,7 @@ var downloadFile = function downloadFile(_ref6) {
|
|
|
8061
8096
|
file = _ref6.file,
|
|
8062
8097
|
withToken = _ref6.withToken;
|
|
8063
8098
|
|
|
8064
|
-
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "
|
|
8099
|
+
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "y"] };
|
|
8065
8100
|
|
|
8066
8101
|
var downloadUrl = '';
|
|
8067
8102
|
if (file.adjunctId || file.response && file.response.adjunctId) {
|
|
@@ -8124,7 +8159,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
8124
8159
|
code = _ref7.code,
|
|
8125
8160
|
option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
|
|
8126
8161
|
|
|
8127
|
-
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "
|
|
8162
|
+
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Wc"] };
|
|
8128
8163
|
|
|
8129
8164
|
// 处理URL和参数
|
|
8130
8165
|
var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
|
|
@@ -8176,7 +8211,7 @@ var deleteFile = function deleteFile(_ref8) {
|
|
|
8176
8211
|
onSuccess = _ref8.onSuccess,
|
|
8177
8212
|
onError = _ref8.onError;
|
|
8178
8213
|
|
|
8179
|
-
var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "
|
|
8214
|
+
var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "p"] + '\' }');
|
|
8180
8215
|
|
|
8181
8216
|
// 处理URL和参数
|
|
8182
8217
|
var deleteUrl = url ? url : dochubConfig.deleteDocumentUrl;
|