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/flows.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 185);
|
|
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");
|
|
@@ -3528,7 +3528,7 @@ module.exports = require("lodash/set");
|
|
|
3528
3528
|
|
|
3529
3529
|
/***/ }),
|
|
3530
3530
|
|
|
3531
|
-
/***/
|
|
3531
|
+
/***/ 185:
|
|
3532
3532
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3533
3533
|
|
|
3534
3534
|
"use strict";
|
|
@@ -4045,7 +4045,7 @@ var form_ = __webpack_require__(25);
|
|
|
4045
4045
|
var form_default = /*#__PURE__*/__webpack_require__.n(form_);
|
|
4046
4046
|
|
|
4047
4047
|
// EXTERNAL MODULE: external "eoss/lib/form-item"
|
|
4048
|
-
var form_item_ = __webpack_require__(
|
|
4048
|
+
var form_item_ = __webpack_require__(35);
|
|
4049
4049
|
var form_item_default = /*#__PURE__*/__webpack_require__.n(form_item_);
|
|
4050
4050
|
|
|
4051
4051
|
// EXTERNAL MODULE: external "eoss/lib/input"
|
|
@@ -4161,7 +4161,7 @@ var input_default = /*#__PURE__*/__webpack_require__.n(input_);
|
|
|
4161
4161
|
|
|
4162
4162
|
this.loading = true;
|
|
4163
4163
|
Object(ajax["a" /* ajax */])({
|
|
4164
|
-
url: id ? api["
|
|
4164
|
+
url: id ? api["z" /* editCommonOpion */] : api["a" /* addCommonOpion */],
|
|
4165
4165
|
params: { id: id }
|
|
4166
4166
|
}).then(function (res) {
|
|
4167
4167
|
var status = res.status,
|
|
@@ -4275,11 +4275,11 @@ opinions_listvue_type_template_id_4794b30e_scoped_true_render._withStripped = tr
|
|
|
4275
4275
|
// CONCATENATED MODULE: ./packages/flows/src/components/opinions-list.vue?vue&type=template&id=4794b30e&scoped=true&
|
|
4276
4276
|
|
|
4277
4277
|
// EXTERNAL MODULE: external "eoss/lib/data-table"
|
|
4278
|
-
var data_table_ = __webpack_require__(
|
|
4278
|
+
var data_table_ = __webpack_require__(47);
|
|
4279
4279
|
var data_table_default = /*#__PURE__*/__webpack_require__.n(data_table_);
|
|
4280
4280
|
|
|
4281
4281
|
// EXTERNAL MODULE: external "eoss/lib/dialog"
|
|
4282
|
-
var dialog_ = __webpack_require__(
|
|
4282
|
+
var dialog_ = __webpack_require__(37);
|
|
4283
4283
|
var dialog_default = /*#__PURE__*/__webpack_require__.n(dialog_);
|
|
4284
4284
|
|
|
4285
4285
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flows/src/components/opinions-list.vue?vue&type=script&lang=js&
|
|
@@ -4339,7 +4339,7 @@ var dialog_default = /*#__PURE__*/__webpack_require__.n(dialog_);
|
|
|
4339
4339
|
type: 'primary',
|
|
4340
4340
|
event: function event() {
|
|
4341
4341
|
_this.getValue();
|
|
4342
|
-
_this.action = api["
|
|
4342
|
+
_this.action = api["fc" /* saveCommonOpinion */];
|
|
4343
4343
|
_this.visible = true;
|
|
4344
4344
|
}
|
|
4345
4345
|
}]
|
|
@@ -4359,7 +4359,7 @@ var dialog_default = /*#__PURE__*/__webpack_require__.n(dialog_);
|
|
|
4359
4359
|
events: [{
|
|
4360
4360
|
text: '编辑',
|
|
4361
4361
|
event: function event(data) {
|
|
4362
|
-
_this.action = api["
|
|
4362
|
+
_this.action = api["Tc" /* updateCommonOpinion */];
|
|
4363
4363
|
_this.formData = data;
|
|
4364
4364
|
_this.visible = true;
|
|
4365
4365
|
}
|
|
@@ -4371,7 +4371,7 @@ var dialog_default = /*#__PURE__*/__webpack_require__.n(dialog_);
|
|
|
4371
4371
|
}]
|
|
4372
4372
|
}],
|
|
4373
4373
|
visible: false,
|
|
4374
|
-
action: api["
|
|
4374
|
+
action: api["fc" /* saveCommonOpinion */],
|
|
4375
4375
|
formContents: [{
|
|
4376
4376
|
label: '排序号',
|
|
4377
4377
|
name: 'sort',
|
|
@@ -4571,7 +4571,7 @@ opinions_filevue_type_template_id_0804b7bb_render._withStripped = true
|
|
|
4571
4571
|
// CONCATENATED MODULE: ./packages/flows/src/components/opinions-file.vue?vue&type=template&id=0804b7bb&
|
|
4572
4572
|
|
|
4573
4573
|
// EXTERNAL MODULE: external "eoss/lib/upload"
|
|
4574
|
-
var upload_ = __webpack_require__(
|
|
4574
|
+
var upload_ = __webpack_require__(49);
|
|
4575
4575
|
var upload_default = /*#__PURE__*/__webpack_require__.n(upload_);
|
|
4576
4576
|
|
|
4577
4577
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flows/src/components/opinions-file.vue?vue&type=script&lang=js&
|
|
@@ -4725,15 +4725,15 @@ var opinions_file_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4725
4725
|
|
|
4726
4726
|
/* harmony default export */ var opinions_file = (opinions_file_component.exports);
|
|
4727
4727
|
// EXTERNAL MODULE: external "eoss/lib/dropdown"
|
|
4728
|
-
var dropdown_ = __webpack_require__(
|
|
4728
|
+
var dropdown_ = __webpack_require__(57);
|
|
4729
4729
|
var dropdown_default = /*#__PURE__*/__webpack_require__.n(dropdown_);
|
|
4730
4730
|
|
|
4731
4731
|
// EXTERNAL MODULE: external "eoss/lib/tag"
|
|
4732
|
-
var tag_ = __webpack_require__(
|
|
4732
|
+
var tag_ = __webpack_require__(68);
|
|
4733
4733
|
var tag_default = /*#__PURE__*/__webpack_require__.n(tag_);
|
|
4734
4734
|
|
|
4735
4735
|
// EXTERNAL MODULE: external "eoss/lib/tooltip"
|
|
4736
|
-
var tooltip_ = __webpack_require__(
|
|
4736
|
+
var tooltip_ = __webpack_require__(36);
|
|
4737
4737
|
var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
|
|
4738
4738
|
|
|
4739
4739
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flows/src/components/opinions.vue?vue&type=script&lang=js&
|
|
@@ -5058,7 +5058,7 @@ var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
|
|
|
5058
5058
|
|
|
5059
5059
|
var val = command.content;
|
|
5060
5060
|
Object(ajax["a" /* ajax */])({
|
|
5061
|
-
url: api["
|
|
5061
|
+
url: api["F" /* findSysParam */],
|
|
5062
5062
|
params: { cpName: 'commonOpinionsSelectType' }
|
|
5063
5063
|
}).then(function (res) {
|
|
5064
5064
|
if (res.status == 'success') {
|
|
@@ -5111,7 +5111,7 @@ var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
|
|
|
5111
5111
|
var _this4 = this;
|
|
5112
5112
|
|
|
5113
5113
|
Object(ajax["a" /* ajax */])({
|
|
5114
|
-
url: api["
|
|
5114
|
+
url: api["m" /* commonOpion */],
|
|
5115
5115
|
params: {
|
|
5116
5116
|
userId: Object(storage["a" /* getStorage */])('userId')
|
|
5117
5117
|
},
|
|
@@ -5161,7 +5161,7 @@ var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
|
|
|
5161
5161
|
}
|
|
5162
5162
|
this.loading = Object(util["K" /* loading */])('提交中');
|
|
5163
5163
|
Object(ajax["a" /* ajax */])({
|
|
5164
|
-
url: data.id ? api["
|
|
5164
|
+
url: data.id ? api["Tc" /* updateCommonOpinion */] : api["fc" /* saveCommonOpinion */],
|
|
5165
5165
|
data: info,
|
|
5166
5166
|
header: { 'Content-Type': 'multipart/form-data' },
|
|
5167
5167
|
method: 'post'
|
|
@@ -5388,19 +5388,19 @@ start_flowvue_type_template_id_19dc68c7_render._withStripped = true
|
|
|
5388
5388
|
// CONCATENATED MODULE: ./packages/flows/src/components/start-flow.vue?vue&type=template&id=19dc68c7&
|
|
5389
5389
|
|
|
5390
5390
|
// EXTERNAL MODULE: external "eoss/lib/message"
|
|
5391
|
-
var message_ = __webpack_require__(
|
|
5391
|
+
var message_ = __webpack_require__(10);
|
|
5392
5392
|
var message_default = /*#__PURE__*/__webpack_require__.n(message_);
|
|
5393
5393
|
|
|
5394
5394
|
// EXTERNAL MODULE: external "eoss/lib/radio-group"
|
|
5395
|
-
var radio_group_ = __webpack_require__(
|
|
5395
|
+
var radio_group_ = __webpack_require__(44);
|
|
5396
5396
|
var radio_group_default = /*#__PURE__*/__webpack_require__.n(radio_group_);
|
|
5397
5397
|
|
|
5398
5398
|
// EXTERNAL MODULE: external "eoss/lib/select"
|
|
5399
|
-
var select_ = __webpack_require__(
|
|
5399
|
+
var select_ = __webpack_require__(41);
|
|
5400
5400
|
var select_default = /*#__PURE__*/__webpack_require__.n(select_);
|
|
5401
5401
|
|
|
5402
5402
|
// EXTERNAL MODULE: external "eoss/lib/selector"
|
|
5403
|
-
var selector_ = __webpack_require__(
|
|
5403
|
+
var selector_ = __webpack_require__(66);
|
|
5404
5404
|
var selector_default = /*#__PURE__*/__webpack_require__.n(selector_);
|
|
5405
5405
|
|
|
5406
5406
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flows/src/components/start-flow.vue?vue&type=script&lang=js&
|
|
@@ -5807,7 +5807,7 @@ messagevue_type_template_id_19e560c0_render._withStripped = true
|
|
|
5807
5807
|
// CONCATENATED MODULE: ./packages/flows/src/components/message.vue?vue&type=template&id=19e560c0&
|
|
5808
5808
|
|
|
5809
5809
|
// EXTERNAL MODULE: external "eoss/lib/checkbox-group"
|
|
5810
|
-
var checkbox_group_ = __webpack_require__(
|
|
5810
|
+
var checkbox_group_ = __webpack_require__(40);
|
|
5811
5811
|
var checkbox_group_default = /*#__PURE__*/__webpack_require__.n(checkbox_group_);
|
|
5812
5812
|
|
|
5813
5813
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flows/src/components/message.vue?vue&type=script&lang=js&
|
|
@@ -6281,7 +6281,7 @@ var flowvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6281
6281
|
pendingId: this.pendingId,
|
|
6282
6282
|
businessId: this.businessIds
|
|
6283
6283
|
};
|
|
6284
|
-
Object(ajax["a" /* ajax */])({ url: api["
|
|
6284
|
+
Object(ajax["a" /* ajax */])({ url: api["T" /* getNodeInfo */], params: params }).then(function (res) {
|
|
6285
6285
|
var status = res.status,
|
|
6286
6286
|
message = res.message,
|
|
6287
6287
|
data = res.data;
|
|
@@ -6427,7 +6427,7 @@ module.exports = require("vue");
|
|
|
6427
6427
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
|
|
6428
6428
|
/* unused harmony export doDecrypt */
|
|
6429
6429
|
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
6430
|
-
var sm2 = __webpack_require__(
|
|
6430
|
+
var sm2 = __webpack_require__(42).sm2;
|
|
6431
6431
|
|
|
6432
6432
|
|
|
6433
6433
|
/**
|
|
@@ -6479,7 +6479,7 @@ var doDecrypt = function doDecrypt(_ref2) {
|
|
|
6479
6479
|
|
|
6480
6480
|
/***/ }),
|
|
6481
6481
|
|
|
6482
|
-
/***/
|
|
6482
|
+
/***/ 21:
|
|
6483
6483
|
/***/ (function(module, exports) {
|
|
6484
6484
|
|
|
6485
6485
|
module.exports = require("fetch-request-source");
|
|
@@ -6493,6 +6493,20 @@ module.exports = require("eoss/lib/form");
|
|
|
6493
6493
|
|
|
6494
6494
|
/***/ }),
|
|
6495
6495
|
|
|
6496
|
+
/***/ 28:
|
|
6497
|
+
/***/ (function(module, exports) {
|
|
6498
|
+
|
|
6499
|
+
module.exports = require("qs");
|
|
6500
|
+
|
|
6501
|
+
/***/ }),
|
|
6502
|
+
|
|
6503
|
+
/***/ 29:
|
|
6504
|
+
/***/ (function(module, exports) {
|
|
6505
|
+
|
|
6506
|
+
module.exports = require("axios");
|
|
6507
|
+
|
|
6508
|
+
/***/ }),
|
|
6509
|
+
|
|
6496
6510
|
/***/ 3:
|
|
6497
6511
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6498
6512
|
|
|
@@ -6560,52 +6574,38 @@ function isDefined(val) {
|
|
|
6560
6574
|
|
|
6561
6575
|
/***/ }),
|
|
6562
6576
|
|
|
6563
|
-
/***/
|
|
6564
|
-
/***/ (function(module, exports) {
|
|
6565
|
-
|
|
6566
|
-
module.exports = require("qs");
|
|
6567
|
-
|
|
6568
|
-
/***/ }),
|
|
6569
|
-
|
|
6570
|
-
/***/ 32:
|
|
6571
|
-
/***/ (function(module, exports) {
|
|
6572
|
-
|
|
6573
|
-
module.exports = require("axios");
|
|
6574
|
-
|
|
6575
|
-
/***/ }),
|
|
6576
|
-
|
|
6577
|
-
/***/ 33:
|
|
6577
|
+
/***/ 30:
|
|
6578
6578
|
/***/ (function(module, exports) {
|
|
6579
6579
|
|
|
6580
6580
|
module.exports = require("json-bigint");
|
|
6581
6581
|
|
|
6582
6582
|
/***/ }),
|
|
6583
6583
|
|
|
6584
|
-
/***/
|
|
6584
|
+
/***/ 31:
|
|
6585
6585
|
/***/ (function(module, exports) {
|
|
6586
6586
|
|
|
6587
|
-
module.exports = require("eoss/lib/
|
|
6587
|
+
module.exports = require("eoss/lib/retrial-auth");
|
|
6588
6588
|
|
|
6589
6589
|
/***/ }),
|
|
6590
6590
|
|
|
6591
6591
|
/***/ 35:
|
|
6592
6592
|
/***/ (function(module, exports) {
|
|
6593
6593
|
|
|
6594
|
-
module.exports = require("eoss/lib/
|
|
6594
|
+
module.exports = require("eoss/lib/form-item");
|
|
6595
6595
|
|
|
6596
6596
|
/***/ }),
|
|
6597
6597
|
|
|
6598
6598
|
/***/ 36:
|
|
6599
6599
|
/***/ (function(module, exports) {
|
|
6600
6600
|
|
|
6601
|
-
module.exports = require("eoss/lib/
|
|
6601
|
+
module.exports = require("eoss/lib/tooltip");
|
|
6602
6602
|
|
|
6603
6603
|
/***/ }),
|
|
6604
6604
|
|
|
6605
|
-
/***/
|
|
6605
|
+
/***/ 37:
|
|
6606
6606
|
/***/ (function(module, exports) {
|
|
6607
6607
|
|
|
6608
|
-
module.exports = require("eoss/lib/
|
|
6608
|
+
module.exports = require("eoss/lib/dialog");
|
|
6609
6609
|
|
|
6610
6610
|
/***/ }),
|
|
6611
6611
|
|
|
@@ -6717,39 +6717,46 @@ function normalizeComponent(
|
|
|
6717
6717
|
/***/ 40:
|
|
6718
6718
|
/***/ (function(module, exports) {
|
|
6719
6719
|
|
|
6720
|
-
module.exports = require("eoss/lib/
|
|
6720
|
+
module.exports = require("eoss/lib/checkbox-group");
|
|
6721
6721
|
|
|
6722
6722
|
/***/ }),
|
|
6723
6723
|
|
|
6724
6724
|
/***/ 41:
|
|
6725
6725
|
/***/ (function(module, exports) {
|
|
6726
6726
|
|
|
6727
|
+
module.exports = require("eoss/lib/select");
|
|
6728
|
+
|
|
6729
|
+
/***/ }),
|
|
6730
|
+
|
|
6731
|
+
/***/ 42:
|
|
6732
|
+
/***/ (function(module, exports) {
|
|
6733
|
+
|
|
6727
6734
|
module.exports = require("sm-crypto");
|
|
6728
6735
|
|
|
6729
6736
|
/***/ }),
|
|
6730
6737
|
|
|
6731
|
-
/***/
|
|
6738
|
+
/***/ 44:
|
|
6732
6739
|
/***/ (function(module, exports) {
|
|
6733
6740
|
|
|
6734
6741
|
module.exports = require("eoss/lib/radio-group");
|
|
6735
6742
|
|
|
6736
6743
|
/***/ }),
|
|
6737
6744
|
|
|
6738
|
-
/***/
|
|
6745
|
+
/***/ 47:
|
|
6739
6746
|
/***/ (function(module, exports) {
|
|
6740
6747
|
|
|
6741
6748
|
module.exports = require("eoss/lib/data-table");
|
|
6742
6749
|
|
|
6743
6750
|
/***/ }),
|
|
6744
6751
|
|
|
6745
|
-
/***/
|
|
6752
|
+
/***/ 49:
|
|
6746
6753
|
/***/ (function(module, exports) {
|
|
6747
6754
|
|
|
6748
6755
|
module.exports = require("eoss/lib/upload");
|
|
6749
6756
|
|
|
6750
6757
|
/***/ }),
|
|
6751
6758
|
|
|
6752
|
-
/***/
|
|
6759
|
+
/***/ 57:
|
|
6753
6760
|
/***/ (function(module, exports) {
|
|
6754
6761
|
|
|
6755
6762
|
module.exports = require("eoss/lib/dropdown");
|
|
@@ -6760,146 +6767,146 @@ module.exports = require("eoss/lib/dropdown");
|
|
|
6760
6767
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6761
6768
|
|
|
6762
6769
|
"use strict";
|
|
6763
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6764
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6765
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6766
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6767
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6768
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6770
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCaLogin; });
|
|
6771
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return doUserLogin; });
|
|
6772
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doQrLogin; });
|
|
6773
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return logout; });
|
|
6774
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initLogin; });
|
|
6775
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return switchUserTo; });
|
|
6769
6776
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
|
|
6770
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6771
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6777
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getLoginCode; });
|
|
6778
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doCodeLogin; });
|
|
6772
6779
|
/* unused harmony export updateCode */
|
|
6773
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6780
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getModifyPassCode; });
|
|
6774
6781
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
|
|
6775
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6782
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return loginModifyPassword; });
|
|
6776
6783
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
|
|
6777
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6784
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return initModifyPassword; });
|
|
6778
6785
|
/* unused harmony export doWechatQrLogin */
|
|
6779
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6786
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getTwoFactorLoginCode; });
|
|
6780
6787
|
/* unused harmony export doTwoFactorLogin */
|
|
6781
|
-
/*
|
|
6782
|
-
/*
|
|
6783
|
-
/*
|
|
6784
|
-
/*
|
|
6785
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6786
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6787
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6788
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6789
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6790
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6791
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6792
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6788
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return initRetrialAuth; });
|
|
6789
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getRetrialAuthCode; });
|
|
6790
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return scanCodeRetrialAuth; });
|
|
6791
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return codeRetrialAuth; });
|
|
6792
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doAssistanceQrLogin; });
|
|
6793
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zc", function() { return userOnline; });
|
|
6794
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return getUserAppWithTag; });
|
|
6795
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return recordUserApp; });
|
|
6796
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return getUserRecordApp; });
|
|
6797
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return mainConfig; });
|
|
6798
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return initUserSet; });
|
|
6799
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return updateUserInfo; });
|
|
6793
6800
|
/* unused harmony export getUserImgUrl */
|
|
6794
6801
|
/* unused harmony export getDoorIndex */
|
|
6795
6802
|
/* unused harmony export refreshOnlineUsers */
|
|
6796
6803
|
/* unused harmony export getQuickMenuIds */
|
|
6797
6804
|
/* unused harmony export getApplicationIdArray */
|
|
6798
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6799
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6800
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6801
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6805
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplications; });
|
|
6806
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getComplexApplicationsNew; });
|
|
6807
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getMainAppWithTag; });
|
|
6808
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getByType; });
|
|
6802
6809
|
/* unused harmony export getUserCustomInfo */
|
|
6803
6810
|
/* unused harmony export updateUserCustomInfo */
|
|
6804
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6805
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6806
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6807
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6808
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6809
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6810
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6811
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6812
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6813
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6811
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return saveOrUpdate; });
|
|
6812
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return sysMsgPage; });
|
|
6813
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return ignoreSysMsg; });
|
|
6814
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return ignoreAllSysMsg; });
|
|
6815
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return searchType; });
|
|
6816
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getSysParam; });
|
|
6817
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getAdjunctProperties; });
|
|
6818
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yc", function() { return uploads; });
|
|
6819
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xc", function() { return uploadOnlyOne; });
|
|
6820
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctFileInfos; });
|
|
6814
6821
|
/* unused harmony export uploadSort */
|
|
6815
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6816
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6817
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6818
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6819
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6820
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6822
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return downloadByAdjunctId; });
|
|
6823
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return uploadDownloads; });
|
|
6824
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return previewAdjunct; });
|
|
6825
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return previewAdjunct2; });
|
|
6826
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return previewAdjunctOffice; });
|
|
6827
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return delAdjunct; });
|
|
6821
6828
|
/* unused harmony export upload_updateClassify */
|
|
6822
6829
|
/* unused harmony export getDeleteAdjunctFileInfos */
|
|
6823
6830
|
/* unused harmony export getPictureBase64 */
|
|
6824
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6825
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6826
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6831
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSelectorOrgTree; });
|
|
6832
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSelectorOrgDetail; });
|
|
6833
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getOrgMainTree; });
|
|
6827
6834
|
/* unused harmony export getSelectOrgsubids */
|
|
6828
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6835
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCode; });
|
|
6829
6836
|
/* unused harmony export getDictList */
|
|
6830
6837
|
/* unused harmony export findUserBaseInfo */
|
|
6831
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6838
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return gethelpdoc; });
|
|
6832
6839
|
/* unused harmony export getCurrentuser */
|
|
6833
6840
|
/* unused harmony export mainDetail */
|
|
6834
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6835
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6836
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6841
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toStartFlow; });
|
|
6842
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return tempSave; });
|
|
6843
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return commonOpion; });
|
|
6837
6844
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
|
|
6838
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6839
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6840
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6841
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6842
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6843
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6844
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6845
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6846
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6847
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6848
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6849
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6845
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return editCommonOpion; });
|
|
6846
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return saveCommonOpinion; });
|
|
6847
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return updateCommonOpinion; });
|
|
6848
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteCommonOpion; });
|
|
6849
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getProcessDefList; });
|
|
6850
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfo; });
|
|
6851
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findCodeValues; });
|
|
6852
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return findSysParam; });
|
|
6853
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysCodes; });
|
|
6854
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getNotificationMsg; });
|
|
6855
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getHandleInfoHtml; });
|
|
6856
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskHandleHtml; });
|
|
6850
6857
|
/* unused harmony export getView */
|
|
6851
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6852
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6853
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6854
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6855
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6856
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6857
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6858
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6859
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6860
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6861
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6862
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6863
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6864
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6865
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6866
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6867
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6868
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6869
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6858
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return register; });
|
|
6859
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return pendedhistoryList; });
|
|
6860
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskRejectHtml; });
|
|
6861
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskRejectHtml; });
|
|
6862
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toStartTaskRead; });
|
|
6863
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toStartTaskReadIndex; });
|
|
6864
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskReadHtml; });
|
|
6865
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return rejectAndEnd; });
|
|
6866
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toSendMsg; });
|
|
6867
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sendMsg; });
|
|
6868
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return endFlowHtml; });
|
|
6869
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return handleInfo; });
|
|
6870
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return loginUserInfo; });
|
|
6871
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ad", function() { return wss; });
|
|
6872
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return topic; });
|
|
6873
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetCustomInfo; });
|
|
6874
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getPresetNodeInfo; });
|
|
6875
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return toTaskTransferIndex; });
|
|
6876
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return taskTransfer; });
|
|
6870
6877
|
/* unused harmony export toPresetInfoListIndex */
|
|
6871
6878
|
/* unused harmony export deletePresetInfo */
|
|
6872
6879
|
/* unused harmony export historyListJson */
|
|
6873
6880
|
/* unused harmony export pendedhistoryListJson */
|
|
6874
6881
|
/* unused harmony export pressListJson */
|
|
6875
6882
|
/* unused harmony export deleteFlow */
|
|
6876
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6877
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6878
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6879
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6880
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6881
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6882
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6883
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6884
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6885
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6886
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6887
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6888
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6889
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6890
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6891
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6892
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6893
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6894
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6895
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6896
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6883
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return isCanStartSubFlow; });
|
|
6884
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return toTaskUnionExamine; });
|
|
6885
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return taskUnionExamine; });
|
|
6886
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTaskTakeAdvice; });
|
|
6887
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return taskTakeAdvice; });
|
|
6888
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskStartDraft; });
|
|
6889
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskSupervise; });
|
|
6890
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskSuperviseSub; });
|
|
6891
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskStartDraft; });
|
|
6892
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskReview; });
|
|
6893
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskReview; });
|
|
6894
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return toTaskUnionSeal; });
|
|
6895
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return taskUnionSeal; });
|
|
6896
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return toTwoOfficesDispatch; });
|
|
6897
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return twoOfficesDispatch; });
|
|
6898
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toResetProcessIndex; });
|
|
6899
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return resetProcess; });
|
|
6900
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskContinuationIndex; });
|
|
6901
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskContinuation; });
|
|
6902
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getFreeStartFlowParams; });
|
|
6903
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeStartFlowWithSubmitTask; });
|
|
6897
6904
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
|
|
6898
6905
|
/* unused harmony export pendedhistoryListWithCircularReadJson */
|
|
6899
6906
|
/* unused harmony export fyListJson */
|
|
6900
6907
|
/* unused harmony export circularReadWithdraw */
|
|
6901
6908
|
/* unused harmony export taskReadWithDraw */
|
|
6902
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6909
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
|
|
6903
6910
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
|
|
6904
6911
|
/* unused harmony export sendList */
|
|
6905
6912
|
/* unused harmony export sendInfo */
|
|
@@ -6908,56 +6915,56 @@ module.exports = require("eoss/lib/dropdown");
|
|
|
6908
6915
|
/* unused harmony export sendDelete */
|
|
6909
6916
|
/* unused harmony export sendBatch */
|
|
6910
6917
|
/* unused harmony export formContents */
|
|
6911
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6912
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6913
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6914
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6915
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6916
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6917
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6918
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6918
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return directStartTaskCircularRead; });
|
|
6919
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowAndStartTaskCircularRead; });
|
|
6920
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNodeInfoForStart; });
|
|
6921
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlow; });
|
|
6922
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUrgencyLevelChangedNotificationType; });
|
|
6923
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toFreeTaskCircularRead; });
|
|
6924
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return freeTaskCircularRead; });
|
|
6925
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pageLists; });
|
|
6919
6926
|
/* unused harmony export publishedLists */
|
|
6920
6927
|
/* unused harmony export pageInfo */
|
|
6921
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6922
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6923
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6924
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6928
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageGroup; });
|
|
6929
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return pageSave; });
|
|
6930
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return pageUpdate; });
|
|
6931
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageDelete; });
|
|
6925
6932
|
/* unused harmony export pageTargetDelete */
|
|
6926
6933
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
|
|
6927
6934
|
/* unused harmony export batchUpdate */
|
|
6928
6935
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
|
|
6929
6936
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
|
|
6930
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6931
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6932
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6933
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6934
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6935
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6936
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6937
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6938
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6939
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6940
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6941
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6942
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6943
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6944
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6945
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6946
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6947
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6948
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6937
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return processListJson; });
|
|
6938
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processInfo; });
|
|
6939
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processDeleteJson; });
|
|
6940
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return processSave; });
|
|
6941
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return processUpdate; });
|
|
6942
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return nodeListJson; });
|
|
6943
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeDeleteJson; });
|
|
6944
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return nodeSave; });
|
|
6945
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return nodeUpdate; });
|
|
6946
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeInfo; });
|
|
6947
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return moduleListJson; });
|
|
6948
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleInfo; });
|
|
6949
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleDelete; });
|
|
6950
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return moduleSave; });
|
|
6951
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return moduleUpdate; });
|
|
6952
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleListJson; });
|
|
6953
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleEdit; });
|
|
6954
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return ruleRead; });
|
|
6955
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return ruleSave; });
|
|
6949
6956
|
/* unused harmony export ruleSupplement */
|
|
6950
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6951
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6952
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6957
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return ruleUndore; });
|
|
6958
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleAdd; });
|
|
6959
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyDetail; });
|
|
6953
6960
|
/* unused harmony export issueDetailList */
|
|
6954
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6955
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6956
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6957
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6958
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6959
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6960
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
6961
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return deleteRule; });
|
|
6962
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getSysParamV1; });
|
|
6963
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return companyList; });
|
|
6964
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return supplement; });
|
|
6965
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return isAddSource; });
|
|
6966
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return tiggerInTime; });
|
|
6967
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return updateHistory; });
|
|
6961
6968
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
|
|
6962
6969
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
|
|
6963
6970
|
var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
|
|
@@ -7329,14 +7336,14 @@ var changeInTime = '/baseIssueRules/changeInTime';
|
|
|
7329
7336
|
|
|
7330
7337
|
/***/ }),
|
|
7331
7338
|
|
|
7332
|
-
/***/
|
|
7339
|
+
/***/ 66:
|
|
7333
7340
|
/***/ (function(module, exports) {
|
|
7334
7341
|
|
|
7335
7342
|
module.exports = require("eoss/lib/selector");
|
|
7336
7343
|
|
|
7337
7344
|
/***/ }),
|
|
7338
7345
|
|
|
7339
|
-
/***/
|
|
7346
|
+
/***/ 68:
|
|
7340
7347
|
/***/ (function(module, exports) {
|
|
7341
7348
|
|
|
7342
7349
|
module.exports = require("eoss/lib/tag");
|
|
@@ -7393,736 +7400,759 @@ module.exports = require("eoss/lib/tag");
|
|
|
7393
7400
|
/* unused harmony export getSecond */
|
|
7394
7401
|
/* unused harmony export getWeekday */
|
|
7395
7402
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
|
|
7396
|
-
|
|
7397
|
-
|
|
7403
|
+
/* Modified from https://github.com/taylorhakes/fecha
|
|
7404
|
+
*
|
|
7405
|
+
* The MIT License (MIT)
|
|
7406
|
+
*
|
|
7407
|
+
* Copyright (c) 2015 Taylor Hakes
|
|
7408
|
+
*
|
|
7409
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7410
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
7411
|
+
* in the Software without restriction, including without limitation the rights
|
|
7412
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7413
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
7414
|
+
* furnished to do so, subject to the following conditions:
|
|
7415
|
+
*
|
|
7416
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
7417
|
+
* copies or substantial portions of the Software.
|
|
7418
|
+
*
|
|
7419
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
7420
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
7421
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
7422
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
7423
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
7424
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
7425
|
+
* SOFTWARE.
|
|
7426
|
+
*/
|
|
7427
|
+
|
|
7428
|
+
/*eslint-disable*/
|
|
7429
|
+
// 把 YYYY-MM-DD 改成了 yyyy-MM-dd
|
|
7430
|
+
|
|
7431
|
+
|
|
7398
7432
|
/**
|
|
7399
7433
|
* Parse or format dates
|
|
7400
7434
|
* @class fecha
|
|
7401
|
-
*/
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
function regexEscape(str) {
|
|
7412
|
-
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
7413
|
-
}
|
|
7414
|
-
|
|
7415
|
-
function shorten(arr, sLen) {
|
|
7416
|
-
|
|
7417
|
-
for (
|
|
7418
|
-
newArr.push(arr[i].substr(0, sLen));
|
|
7419
|
-
}
|
|
7420
|
-
return newArr;
|
|
7421
|
-
}
|
|
7422
|
-
|
|
7423
|
-
function monthUpdate() {
|
|
7424
|
-
return function (d, v) {
|
|
7425
|
-
|
|
7426
|
-
if (~index) {
|
|
7427
|
-
d.month = index;
|
|
7428
|
-
}
|
|
7429
|
-
};
|
|
7430
|
-
}
|
|
7431
|
-
|
|
7432
|
-
function pad(val, len) {
|
|
7433
|
-
val = String(val);
|
|
7434
|
-
len = len || 2;
|
|
7435
|
-
while (val.length < len) {
|
|
7436
|
-
val = '0' + val;
|
|
7437
|
-
}
|
|
7438
|
-
return val;
|
|
7439
|
-
}
|
|
7440
|
-
|
|
7441
|
-
// 直接使用中文日期名称常量
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
return D + '日';
|
|
7449
|
-
};
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
D: function
|
|
7453
|
-
return dateObj.getDay();
|
|
7454
|
-
},
|
|
7455
|
-
DD: function
|
|
7456
|
-
return pad(dateObj.getDay());
|
|
7457
|
-
},
|
|
7458
|
-
Do: function
|
|
7459
|
-
return DoFn(dateObj.getDate());
|
|
7460
|
-
},
|
|
7461
|
-
d: function
|
|
7462
|
-
return dateObj.getDate();
|
|
7463
|
-
},
|
|
7464
|
-
dd: function
|
|
7465
|
-
return pad(dateObj.getDate());
|
|
7466
|
-
},
|
|
7467
|
-
ddd: function
|
|
7468
|
-
return dayNamesShort[dateObj.getDay()];
|
|
7469
|
-
},
|
|
7470
|
-
dddd: function
|
|
7471
|
-
return dayNames[dateObj.getDay()];
|
|
7472
|
-
},
|
|
7473
|
-
M: function
|
|
7474
|
-
return dateObj.getMonth() + 1;
|
|
7475
|
-
},
|
|
7476
|
-
MM: function
|
|
7477
|
-
return pad(dateObj.getMonth() + 1);
|
|
7478
|
-
},
|
|
7479
|
-
MMM: function
|
|
7480
|
-
return monthNamesShort[dateObj.getMonth()];
|
|
7481
|
-
},
|
|
7482
|
-
MMMM: function
|
|
7483
|
-
return monthNames[dateObj.getMonth()];
|
|
7484
|
-
},
|
|
7485
|
-
yy: function
|
|
7486
|
-
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
7487
|
-
},
|
|
7488
|
-
yyyy: function
|
|
7489
|
-
return pad(dateObj.getFullYear(), 4);
|
|
7490
|
-
},
|
|
7491
|
-
h: function
|
|
7492
|
-
return dateObj.getHours() % 12 || 12;
|
|
7493
|
-
},
|
|
7494
|
-
hh: function
|
|
7495
|
-
return pad(dateObj.getHours() % 12 || 12);
|
|
7496
|
-
},
|
|
7497
|
-
H: function
|
|
7498
|
-
return dateObj.getHours();
|
|
7499
|
-
},
|
|
7500
|
-
HH: function
|
|
7501
|
-
return pad(dateObj.getHours());
|
|
7502
|
-
},
|
|
7503
|
-
m: function
|
|
7504
|
-
return dateObj.getMinutes();
|
|
7505
|
-
},
|
|
7506
|
-
mm: function
|
|
7507
|
-
return pad(dateObj.getMinutes());
|
|
7508
|
-
},
|
|
7509
|
-
s: function
|
|
7510
|
-
return dateObj.getSeconds();
|
|
7511
|
-
},
|
|
7512
|
-
ss: function
|
|
7513
|
-
return pad(dateObj.getSeconds());
|
|
7514
|
-
},
|
|
7515
|
-
S: function
|
|
7516
|
-
return Math.round(dateObj.getMilliseconds() / 100);
|
|
7517
|
-
},
|
|
7518
|
-
SS: function
|
|
7519
|
-
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
7520
|
-
},
|
|
7521
|
-
SSS: function
|
|
7522
|
-
return pad(dateObj.getMilliseconds(), 3);
|
|
7523
|
-
},
|
|
7524
|
-
a: function
|
|
7525
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
7526
|
-
},
|
|
7527
|
-
A: function
|
|
7528
|
-
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
7529
|
-
},
|
|
7530
|
-
ZZ: function
|
|
7531
|
-
|
|
7532
|
-
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
7533
|
-
}
|
|
7534
|
-
};
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
d: [twoDigits, function (d, v) {
|
|
7538
|
-
d.day = v;
|
|
7539
|
-
}],
|
|
7540
|
-
Do: [twoDigits + word, function (d, v) {
|
|
7541
|
-
d.day = parseInt(v, 10);
|
|
7542
|
-
}],
|
|
7543
|
-
M: [twoDigits, function (d, v) {
|
|
7544
|
-
d.month = v - 1;
|
|
7545
|
-
}],
|
|
7546
|
-
yy: [twoDigits, function (d, v) {
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
}
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
parseFlags.
|
|
7595
|
-
parseFlags.
|
|
7596
|
-
parseFlags.
|
|
7597
|
-
parseFlags.
|
|
7598
|
-
parseFlags.
|
|
7599
|
-
parseFlags.
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7435
|
+
*/
|
|
7436
|
+
const fecha = {};
|
|
7437
|
+
const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
|
|
7438
|
+
const twoDigits = '\\d\\d?';
|
|
7439
|
+
const threeDigits = '\\d{3}';
|
|
7440
|
+
const fourDigits = '\\d{4}';
|
|
7441
|
+
const word = '[^\\s]+';
|
|
7442
|
+
const literal = /\[([^]*?)\]/gm;
|
|
7443
|
+
const noop = function () {};
|
|
7444
|
+
|
|
7445
|
+
function regexEscape(str) {
|
|
7446
|
+
return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
|
|
7447
|
+
}
|
|
7448
|
+
|
|
7449
|
+
function shorten(arr, sLen) {
|
|
7450
|
+
const newArr = [];
|
|
7451
|
+
for (let i = 0, len = arr.length; i < len; i++) {
|
|
7452
|
+
newArr.push(arr[i].substr(0, sLen));
|
|
7453
|
+
}
|
|
7454
|
+
return newArr;
|
|
7455
|
+
}
|
|
7456
|
+
|
|
7457
|
+
function monthUpdate() {
|
|
7458
|
+
return function (d, v) {
|
|
7459
|
+
const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
|
|
7460
|
+
if (~index) {
|
|
7461
|
+
d.month = index;
|
|
7462
|
+
}
|
|
7463
|
+
};
|
|
7464
|
+
}
|
|
7465
|
+
|
|
7466
|
+
function pad(val, len) {
|
|
7467
|
+
val = String(val);
|
|
7468
|
+
len = len || 2;
|
|
7469
|
+
while (val.length < len) {
|
|
7470
|
+
val = '0' + val;
|
|
7471
|
+
}
|
|
7472
|
+
return val;
|
|
7473
|
+
}
|
|
7474
|
+
|
|
7475
|
+
// 直接使用中文日期名称常量
|
|
7476
|
+
const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
7477
|
+
const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
|
|
7478
|
+
const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
|
|
7479
|
+
const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
|
|
7480
|
+
const amPm = ['上午', '下午'];
|
|
7481
|
+
const DoFn = function DoFn(D) {
|
|
7482
|
+
return D + '日';
|
|
7483
|
+
};
|
|
7484
|
+
|
|
7485
|
+
const formatFlags = {
|
|
7486
|
+
D: function(dateObj) {
|
|
7487
|
+
return dateObj.getDay();
|
|
7488
|
+
},
|
|
7489
|
+
DD: function(dateObj) {
|
|
7490
|
+
return pad(dateObj.getDay());
|
|
7491
|
+
},
|
|
7492
|
+
Do: function(dateObj) {
|
|
7493
|
+
return DoFn(dateObj.getDate());
|
|
7494
|
+
},
|
|
7495
|
+
d: function(dateObj) {
|
|
7496
|
+
return dateObj.getDate();
|
|
7497
|
+
},
|
|
7498
|
+
dd: function(dateObj) {
|
|
7499
|
+
return pad(dateObj.getDate());
|
|
7500
|
+
},
|
|
7501
|
+
ddd: function(dateObj) {
|
|
7502
|
+
return dayNamesShort[dateObj.getDay()];
|
|
7503
|
+
},
|
|
7504
|
+
dddd: function(dateObj) {
|
|
7505
|
+
return dayNames[dateObj.getDay()];
|
|
7506
|
+
},
|
|
7507
|
+
M: function(dateObj) {
|
|
7508
|
+
return dateObj.getMonth() + 1;
|
|
7509
|
+
},
|
|
7510
|
+
MM: function(dateObj) {
|
|
7511
|
+
return pad(dateObj.getMonth() + 1);
|
|
7512
|
+
},
|
|
7513
|
+
MMM: function(dateObj) {
|
|
7514
|
+
return monthNamesShort[dateObj.getMonth()];
|
|
7515
|
+
},
|
|
7516
|
+
MMMM: function(dateObj) {
|
|
7517
|
+
return monthNames[dateObj.getMonth()];
|
|
7518
|
+
},
|
|
7519
|
+
yy: function(dateObj) {
|
|
7520
|
+
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
|
7521
|
+
},
|
|
7522
|
+
yyyy: function(dateObj) {
|
|
7523
|
+
return pad(dateObj.getFullYear(), 4);
|
|
7524
|
+
},
|
|
7525
|
+
h: function(dateObj) {
|
|
7526
|
+
return dateObj.getHours() % 12 || 12;
|
|
7527
|
+
},
|
|
7528
|
+
hh: function(dateObj) {
|
|
7529
|
+
return pad(dateObj.getHours() % 12 || 12);
|
|
7530
|
+
},
|
|
7531
|
+
H: function(dateObj) {
|
|
7532
|
+
return dateObj.getHours();
|
|
7533
|
+
},
|
|
7534
|
+
HH: function(dateObj) {
|
|
7535
|
+
return pad(dateObj.getHours());
|
|
7536
|
+
},
|
|
7537
|
+
m: function(dateObj) {
|
|
7538
|
+
return dateObj.getMinutes();
|
|
7539
|
+
},
|
|
7540
|
+
mm: function(dateObj) {
|
|
7541
|
+
return pad(dateObj.getMinutes());
|
|
7542
|
+
},
|
|
7543
|
+
s: function(dateObj) {
|
|
7544
|
+
return dateObj.getSeconds();
|
|
7545
|
+
},
|
|
7546
|
+
ss: function(dateObj) {
|
|
7547
|
+
return pad(dateObj.getSeconds());
|
|
7548
|
+
},
|
|
7549
|
+
S: function(dateObj) {
|
|
7550
|
+
return Math.round(dateObj.getMilliseconds() / 100);
|
|
7551
|
+
},
|
|
7552
|
+
SS: function(dateObj) {
|
|
7553
|
+
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
|
7554
|
+
},
|
|
7555
|
+
SSS: function(dateObj) {
|
|
7556
|
+
return pad(dateObj.getMilliseconds(), 3);
|
|
7557
|
+
},
|
|
7558
|
+
a: function(dateObj) {
|
|
7559
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
7560
|
+
},
|
|
7561
|
+
A: function(dateObj) {
|
|
7562
|
+
return dateObj.getHours() < 12 ? '上午' : '下午';
|
|
7563
|
+
},
|
|
7564
|
+
ZZ: function(dateObj) {
|
|
7565
|
+
const o = dateObj.getTimezoneOffset();
|
|
7566
|
+
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
|
7567
|
+
}
|
|
7568
|
+
};
|
|
7569
|
+
|
|
7570
|
+
const parseFlags = {
|
|
7571
|
+
d: [twoDigits, function (d, v) {
|
|
7572
|
+
d.day = v;
|
|
7573
|
+
}],
|
|
7574
|
+
Do: [twoDigits + word, function (d, v) {
|
|
7575
|
+
d.day = parseInt(v, 10);
|
|
7576
|
+
}],
|
|
7577
|
+
M: [twoDigits, function (d, v) {
|
|
7578
|
+
d.month = v - 1;
|
|
7579
|
+
}],
|
|
7580
|
+
yy: [twoDigits, function (d, v) {
|
|
7581
|
+
const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
|
|
7582
|
+
d.year = '' + (v > 68 ? cent - 1 : cent) + v;
|
|
7583
|
+
}],
|
|
7584
|
+
h: [twoDigits, function (d, v) {
|
|
7585
|
+
d.hour = v;
|
|
7586
|
+
}],
|
|
7587
|
+
m: [twoDigits, function (d, v) {
|
|
7588
|
+
d.minute = v;
|
|
7589
|
+
}],
|
|
7590
|
+
s: [twoDigits, function (d, v) {
|
|
7591
|
+
d.second = v;
|
|
7592
|
+
}],
|
|
7593
|
+
yyyy: [fourDigits, function (d, v) {
|
|
7594
|
+
d.year = v;
|
|
7595
|
+
}],
|
|
7596
|
+
S: ['\\d', function (d, v) {
|
|
7597
|
+
d.millisecond = v * 100;
|
|
7598
|
+
}],
|
|
7599
|
+
SS: ['\\d{2}', function (d, v) {
|
|
7600
|
+
d.millisecond = v * 10;
|
|
7601
|
+
}],
|
|
7602
|
+
SSS: [threeDigits, function (d, v) {
|
|
7603
|
+
d.millisecond = v;
|
|
7604
|
+
}],
|
|
7605
|
+
D: [twoDigits, noop],
|
|
7606
|
+
ddd: [word, noop],
|
|
7607
|
+
MMM: [word, monthUpdate('monthNamesShort')],
|
|
7608
|
+
MMMM: [word, monthUpdate('monthNames')],
|
|
7609
|
+
a: [word, function (d, v) {
|
|
7610
|
+
const val = v.toLowerCase();
|
|
7611
|
+
if (val === '上午') {
|
|
7612
|
+
d.isPm = false;
|
|
7613
|
+
} else if (val === '下午') {
|
|
7614
|
+
d.isPm = true;
|
|
7615
|
+
}
|
|
7616
|
+
}],
|
|
7617
|
+
ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
|
|
7618
|
+
let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
|
|
7619
|
+
|
|
7620
|
+
if (parts) {
|
|
7621
|
+
minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
|
|
7622
|
+
d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
|
|
7623
|
+
}
|
|
7624
|
+
}]
|
|
7625
|
+
};
|
|
7626
|
+
parseFlags.dd = parseFlags.d;
|
|
7627
|
+
parseFlags.dddd = parseFlags.ddd;
|
|
7628
|
+
parseFlags.DD = parseFlags.D;
|
|
7629
|
+
parseFlags.mm = parseFlags.m;
|
|
7630
|
+
parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
|
|
7631
|
+
parseFlags.MM = parseFlags.M;
|
|
7632
|
+
parseFlags.ss = parseFlags.s;
|
|
7633
|
+
parseFlags.A = parseFlags.a;
|
|
7634
|
+
|
|
7635
|
+
|
|
7636
|
+
// Some common format strings
|
|
7637
|
+
fecha.masks = {
|
|
7638
|
+
default: 'ddd MMM dd yyyy HH:mm:ss',
|
|
7639
|
+
shortDate: 'M/D/yy',
|
|
7640
|
+
mediumDate: 'MMM d, yyyy',
|
|
7641
|
+
longDate: 'MMMM d, yyyy',
|
|
7642
|
+
fullDate: 'dddd, MMMM d, yyyy',
|
|
7643
|
+
shortTime: 'HH:mm',
|
|
7644
|
+
mediumTime: 'HH:mm:ss',
|
|
7645
|
+
longTime: 'HH:mm:ss.SSS'
|
|
7646
|
+
};
|
|
7647
|
+
|
|
7615
7648
|
/***
|
|
7616
7649
|
* Format a date
|
|
7617
7650
|
* @method format
|
|
7618
7651
|
* @param {Date|number} dateObj
|
|
7619
7652
|
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
|
|
7620
|
-
*/
|
|
7621
|
-
fecha.format = function (dateObj, mask) {
|
|
7622
|
-
if (typeof dateObj === 'number') {
|
|
7623
|
-
dateObj = new Date(dateObj);
|
|
7624
|
-
}
|
|
7625
|
-
|
|
7626
|
-
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
7627
|
-
throw new Error('Invalid Date in fecha.format');
|
|
7628
|
-
}
|
|
7629
|
-
|
|
7630
|
-
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
// Make literals inactive by replacing them with ??
|
|
7635
|
-
mask = mask.replace(literal, function
|
|
7636
|
-
literals.push($1);
|
|
7637
|
-
return '@@@';
|
|
7638
|
-
});
|
|
7639
|
-
// Apply formatting rules
|
|
7640
|
-
mask = mask.replace(token, function ($0) {
|
|
7641
|
-
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
7642
|
-
});
|
|
7643
|
-
// Inline literal values back into the formatted value
|
|
7644
|
-
return mask.replace(/@@@/g, function
|
|
7645
|
-
return literals.shift();
|
|
7646
|
-
});
|
|
7647
|
-
};
|
|
7648
|
-
|
|
7653
|
+
*/
|
|
7654
|
+
fecha.format = function (dateObj, mask) {
|
|
7655
|
+
if (typeof dateObj === 'number') {
|
|
7656
|
+
dateObj = new Date(dateObj);
|
|
7657
|
+
}
|
|
7658
|
+
|
|
7659
|
+
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
|
7660
|
+
throw new Error('Invalid Date in fecha.format');
|
|
7661
|
+
}
|
|
7662
|
+
|
|
7663
|
+
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
|
7664
|
+
|
|
7665
|
+
const literals = [];
|
|
7666
|
+
|
|
7667
|
+
// Make literals inactive by replacing them with ??
|
|
7668
|
+
mask = mask.replace(literal, function($0, $1) {
|
|
7669
|
+
literals.push($1);
|
|
7670
|
+
return '@@@';
|
|
7671
|
+
});
|
|
7672
|
+
// Apply formatting rules
|
|
7673
|
+
mask = mask.replace(token, function ($0) {
|
|
7674
|
+
return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
|
|
7675
|
+
});
|
|
7676
|
+
// Inline literal values back into the formatted value
|
|
7677
|
+
return mask.replace(/@@@/g, function() {
|
|
7678
|
+
return literals.shift();
|
|
7679
|
+
});
|
|
7680
|
+
};
|
|
7681
|
+
|
|
7649
7682
|
/**
|
|
7650
7683
|
* Parse a date string into an object, changes - into /
|
|
7651
7684
|
* @method parse
|
|
7652
7685
|
* @param {string} dateStr Date string
|
|
7653
7686
|
* @param {string} format Date parse format
|
|
7654
7687
|
* @returns {Date|boolean}
|
|
7655
|
-
*/
|
|
7656
|
-
fecha.parse = function (dateStr, format) {
|
|
7657
|
-
if (typeof format !== 'string') {
|
|
7658
|
-
throw new Error('Invalid format in fecha.parse');
|
|
7659
|
-
}
|
|
7660
|
-
|
|
7661
|
-
format = fecha.masks[format] || format;
|
|
7662
|
-
|
|
7663
|
-
// Avoid regular expression denial of service, fail early for really long strings
|
|
7664
|
-
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
7665
|
-
if (dateStr.length > 1000) {
|
|
7666
|
-
return null;
|
|
7667
|
-
}
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
format = format.replace(literal, function
|
|
7673
|
-
literals.push($1);
|
|
7674
|
-
return '@@@';
|
|
7675
|
-
});
|
|
7676
|
-
|
|
7677
|
-
if (parseFlags[$0]) {
|
|
7678
|
-
|
|
7679
|
-
parseInfo.push(info[1]);
|
|
7680
|
-
return '(' + info[0] + ')';
|
|
7681
|
-
}
|
|
7682
|
-
|
|
7683
|
-
return $0;
|
|
7684
|
-
});
|
|
7685
|
-
newFormat = newFormat.replace(/@@@/g, function
|
|
7686
|
-
return literals.shift();
|
|
7687
|
-
});
|
|
7688
|
-
|
|
7689
|
-
if (!matches) {
|
|
7690
|
-
return null;
|
|
7691
|
-
}
|
|
7692
|
-
|
|
7693
|
-
for (
|
|
7694
|
-
parseInfo[i - 1](dateInfo, matches[i]);
|
|
7695
|
-
}
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
7699
|
-
dateInfo.hour = +dateInfo.hour + 12;
|
|
7700
|
-
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
7701
|
-
dateInfo.hour = 0;
|
|
7702
|
-
}
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
if (dateInfo.timezoneOffset != null) {
|
|
7706
|
-
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
7707
|
-
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
}
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
}
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
if (
|
|
7744
|
-
return
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
// 处理多种输入类型
|
|
7755
|
-
if (!date) return '';
|
|
7756
|
-
|
|
7757
|
-
// 如果是时间戳,转成日期对象
|
|
7758
|
-
if (typeof date === 'number') {
|
|
7759
|
-
date = new Date(date);
|
|
7760
|
-
}
|
|
7761
|
-
// 如果是字符串,转成日期对象
|
|
7762
|
-
if (typeof date === 'string') {
|
|
7763
|
-
date = new Date(date);
|
|
7764
|
-
}
|
|
7765
|
-
|
|
7766
|
-
// 调用toDate进一步验证和转换
|
|
7767
|
-
date = toDate(date);
|
|
7768
|
-
if (!date) return '';
|
|
7769
|
-
|
|
7770
|
-
// 兼容大写和小写的格式标记
|
|
7771
|
-
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
return
|
|
7793
|
-
}
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
//
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
7817
|
-
};
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
return prevDate(result,
|
|
7831
|
-
}
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
//
|
|
7851
|
-
|
|
7852
|
-
//
|
|
7853
|
-
|
|
7854
|
-
//
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
for (
|
|
7874
|
-
hours[i] =
|
|
7875
|
-
}
|
|
7876
|
-
}
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
return
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
};
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
}
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
return
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
return
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
}
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
};
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
return
|
|
8038
|
-
};
|
|
8039
|
-
|
|
8040
|
-
var extractTimeFormat = function extractTimeFormat(format) {
|
|
8041
|
-
return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
|
|
8042
|
-
};
|
|
8043
|
-
|
|
8044
|
-
var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
|
|
8045
|
-
return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
|
|
8046
|
-
};
|
|
8047
|
-
|
|
7688
|
+
*/
|
|
7689
|
+
fecha.parse = function (dateStr, format) {
|
|
7690
|
+
if (typeof format !== 'string') {
|
|
7691
|
+
throw new Error('Invalid format in fecha.parse');
|
|
7692
|
+
}
|
|
7693
|
+
|
|
7694
|
+
format = fecha.masks[format] || format;
|
|
7695
|
+
|
|
7696
|
+
// Avoid regular expression denial of service, fail early for really long strings
|
|
7697
|
+
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
|
7698
|
+
if (dateStr.length > 1000) {
|
|
7699
|
+
return null;
|
|
7700
|
+
}
|
|
7701
|
+
|
|
7702
|
+
const dateInfo = {};
|
|
7703
|
+
const parseInfo = [];
|
|
7704
|
+
const literals = [];
|
|
7705
|
+
format = format.replace(literal, function($0, $1) {
|
|
7706
|
+
literals.push($1);
|
|
7707
|
+
return '@@@';
|
|
7708
|
+
});
|
|
7709
|
+
let newFormat = regexEscape(format).replace(token, function ($0) {
|
|
7710
|
+
if (parseFlags[$0]) {
|
|
7711
|
+
const info = parseFlags[$0];
|
|
7712
|
+
parseInfo.push(info[1]);
|
|
7713
|
+
return '(' + info[0] + ')';
|
|
7714
|
+
}
|
|
7715
|
+
|
|
7716
|
+
return $0;
|
|
7717
|
+
});
|
|
7718
|
+
newFormat = newFormat.replace(/@@@/g, function() {
|
|
7719
|
+
return literals.shift();
|
|
7720
|
+
});
|
|
7721
|
+
const matches = dateStr.match(new RegExp(newFormat, 'i'));
|
|
7722
|
+
if (!matches) {
|
|
7723
|
+
return null;
|
|
7724
|
+
}
|
|
7725
|
+
|
|
7726
|
+
for (let i = 1; i < matches.length; i++) {
|
|
7727
|
+
parseInfo[i - 1](dateInfo, matches[i]);
|
|
7728
|
+
}
|
|
7729
|
+
|
|
7730
|
+
const today = new Date();
|
|
7731
|
+
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
|
7732
|
+
dateInfo.hour = +dateInfo.hour + 12;
|
|
7733
|
+
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
|
7734
|
+
dateInfo.hour = 0;
|
|
7735
|
+
}
|
|
7736
|
+
|
|
7737
|
+
let date;
|
|
7738
|
+
if (dateInfo.timezoneOffset != null) {
|
|
7739
|
+
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
|
7740
|
+
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
7741
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
|
|
7742
|
+
} else {
|
|
7743
|
+
date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
|
7744
|
+
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
|
|
7745
|
+
}
|
|
7746
|
+
return date;
|
|
7747
|
+
};
|
|
7748
|
+
|
|
7749
|
+
// 导出fecha对象
|
|
7750
|
+
|
|
7751
|
+
|
|
7752
|
+
// 以下是从date-util.js合并的函数
|
|
7753
|
+
const newArray = function(start, end) {
|
|
7754
|
+
let result = [];
|
|
7755
|
+
for (let i = start; i <= end; i++) {
|
|
7756
|
+
result.push(i);
|
|
7757
|
+
}
|
|
7758
|
+
return result;
|
|
7759
|
+
};
|
|
7760
|
+
|
|
7761
|
+
const getSettings = () => {
|
|
7762
|
+
return {
|
|
7763
|
+
dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
|
|
7764
|
+
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
|
|
7765
|
+
monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
7766
|
+
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
|
7767
|
+
amPm: ['上午', '下午']
|
|
7768
|
+
};
|
|
7769
|
+
};
|
|
7770
|
+
|
|
7771
|
+
const toDate = function(date) {
|
|
7772
|
+
return isDate(date) ? new Date(date) : null;
|
|
7773
|
+
};
|
|
7774
|
+
|
|
7775
|
+
const isDate = function(date) {
|
|
7776
|
+
if (date === null || date === undefined) return false;
|
|
7777
|
+
if (isNaN(new Date(date).getTime())) return false;
|
|
7778
|
+
if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
|
|
7779
|
+
return true;
|
|
7780
|
+
};
|
|
7781
|
+
|
|
7782
|
+
const isDateObject = function(val) {
|
|
7783
|
+
return val instanceof Date;
|
|
7784
|
+
};
|
|
7785
|
+
|
|
7786
|
+
const formatDate = function (date, format = 'yyyy-MM-dd') {
|
|
7787
|
+
// 处理多种输入类型
|
|
7788
|
+
if (!date) return '';
|
|
7789
|
+
|
|
7790
|
+
// 如果是时间戳,转成日期对象
|
|
7791
|
+
if (typeof date === 'number') {
|
|
7792
|
+
date = new Date(date);
|
|
7793
|
+
}
|
|
7794
|
+
// 如果是字符串,转成日期对象
|
|
7795
|
+
if (typeof date === 'string') {
|
|
7796
|
+
date = new Date(date);
|
|
7797
|
+
}
|
|
7798
|
+
|
|
7799
|
+
// 调用toDate进一步验证和转换
|
|
7800
|
+
date = toDate(date);
|
|
7801
|
+
if (!date) return '';
|
|
7802
|
+
|
|
7803
|
+
// 兼容大写和小写的格式标记
|
|
7804
|
+
// 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
|
|
7805
|
+
const lowercaseFormat = format
|
|
7806
|
+
.replace(/YYYY/g, 'yyyy')
|
|
7807
|
+
.replace(/D/g, 'd')
|
|
7808
|
+
|
|
7809
|
+
// 使用fecha库进行格式化,支持中文配置
|
|
7810
|
+
const str = fecha.format(date, lowercaseFormat, getSettings());
|
|
7811
|
+
return str;
|
|
7812
|
+
};
|
|
7813
|
+
|
|
7814
|
+
const parseDate = function(string, format) {
|
|
7815
|
+
return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
|
|
7816
|
+
};
|
|
7817
|
+
|
|
7818
|
+
const getDayCountOfMonth = function(year, month) {
|
|
7819
|
+
if (month === 3 || month === 5 || month === 8 || month === 10) {
|
|
7820
|
+
return 30;
|
|
7821
|
+
}
|
|
7822
|
+
|
|
7823
|
+
if (month === 1) {
|
|
7824
|
+
if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
|
|
7825
|
+
return 29;
|
|
7826
|
+
} else {
|
|
7827
|
+
return 28;
|
|
7828
|
+
}
|
|
7829
|
+
}
|
|
7830
|
+
|
|
7831
|
+
return 31;
|
|
7832
|
+
};
|
|
7833
|
+
|
|
7834
|
+
const getDayCountOfYear = function(year) {
|
|
7835
|
+
const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
|
|
7836
|
+
return isLeapYear ? 366 : 365;
|
|
7837
|
+
};
|
|
7838
|
+
|
|
7839
|
+
const getFirstDayOfMonth = function(date) {
|
|
7840
|
+
const temp = new Date(date.getTime());
|
|
7841
|
+
temp.setDate(1);
|
|
7842
|
+
return temp.getDay();
|
|
7843
|
+
};
|
|
7844
|
+
|
|
7845
|
+
// see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
|
|
7846
|
+
// {prev, next} Date should work for Daylight Saving Time
|
|
7847
|
+
// Adding 24 * 60 * 60 * 1000 does not work in the above scenario
|
|
7848
|
+
const prevDate = function(date, amount = 1) {
|
|
7849
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
|
7850
|
+
};
|
|
7851
|
+
|
|
7852
|
+
const nextDate = function(date, amount = 1) {
|
|
7853
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
|
|
7854
|
+
};
|
|
7855
|
+
|
|
7856
|
+
const getStartDateOfMonth = function(year, month) {
|
|
7857
|
+
const result = new Date(year, month, 1);
|
|
7858
|
+
const day = result.getDay();
|
|
7859
|
+
|
|
7860
|
+
if (day === 0) {
|
|
7861
|
+
return prevDate(result, 7);
|
|
7862
|
+
} else {
|
|
7863
|
+
return prevDate(result, day);
|
|
7864
|
+
}
|
|
7865
|
+
};
|
|
7866
|
+
|
|
7867
|
+
const getWeekNumber = function(date) {
|
|
7868
|
+
// 支持多种输入类型
|
|
7869
|
+
if (!date||!isDate(date)) {
|
|
7870
|
+
date = new Date();
|
|
7871
|
+
}
|
|
7872
|
+
if (typeof date === 'string') {
|
|
7873
|
+
date = new Date(date);
|
|
7874
|
+
}
|
|
7875
|
+
|
|
7876
|
+
// 验证日期有效性
|
|
7877
|
+
if (!isDate(date)) return null;
|
|
7878
|
+
|
|
7879
|
+
const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
7880
|
+
// 设置为最近的星期四:当前日期 + 4 - 当前星期数
|
|
7881
|
+
// 将星期日的星期数设为7
|
|
7882
|
+
d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
|
|
7883
|
+
// 获取当年的第一天
|
|
7884
|
+
const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
7885
|
+
// 计算到最近的星期四的完整周数
|
|
7886
|
+
const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
|
|
7887
|
+
// 返回周数
|
|
7888
|
+
return weekNo;
|
|
7889
|
+
};
|
|
7890
|
+
|
|
7891
|
+
const getRangeHours = function(ranges) {
|
|
7892
|
+
const hours = [];
|
|
7893
|
+
let disabledHours = [];
|
|
7894
|
+
|
|
7895
|
+
(ranges || []).forEach(range => {
|
|
7896
|
+
const value = range.map(date => date.getHours());
|
|
7897
|
+
|
|
7898
|
+
disabledHours = disabledHours.concat(newArray(value[0], value[1]));
|
|
7899
|
+
});
|
|
7900
|
+
|
|
7901
|
+
if (disabledHours.length) {
|
|
7902
|
+
for (let i = 0; i < 24; i++) {
|
|
7903
|
+
hours[i] = disabledHours.indexOf(i) === -1;
|
|
7904
|
+
}
|
|
7905
|
+
} else {
|
|
7906
|
+
for (let i = 0; i < 24; i++) {
|
|
7907
|
+
hours[i] = false;
|
|
7908
|
+
}
|
|
7909
|
+
}
|
|
7910
|
+
|
|
7911
|
+
return hours;
|
|
7912
|
+
};
|
|
7913
|
+
|
|
7914
|
+
const getPrevMonthLastDays = (date, amount) => {
|
|
7915
|
+
if (amount <= 0) return [];
|
|
7916
|
+
const temp = new Date(date.getTime());
|
|
7917
|
+
temp.setDate(0);
|
|
7918
|
+
const lastDay = temp.getDate();
|
|
7919
|
+
return range(amount).map((_, index) => lastDay - (amount - index - 1));
|
|
7920
|
+
};
|
|
7921
|
+
|
|
7922
|
+
const getMonthDays = (date) => {
|
|
7923
|
+
const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
7924
|
+
const days = temp.getDate();
|
|
7925
|
+
return range(days).map((_, index) => index + 1);
|
|
7926
|
+
};
|
|
7927
|
+
|
|
7928
|
+
function setRangeData(arr, start, end, value) {
|
|
7929
|
+
for (let i = start; i < end; i++) {
|
|
7930
|
+
arr[i] = value;
|
|
7931
|
+
}
|
|
7932
|
+
}
|
|
7933
|
+
|
|
7934
|
+
const getRangeMinutes = function(ranges, hour) {
|
|
7935
|
+
const minutes = new Array(60);
|
|
7936
|
+
|
|
7937
|
+
if (ranges.length > 0) {
|
|
7938
|
+
ranges.forEach(range => {
|
|
7939
|
+
const start = range[0];
|
|
7940
|
+
const end = range[1];
|
|
7941
|
+
const startHour = start.getHours();
|
|
7942
|
+
const startMinute = start.getMinutes();
|
|
7943
|
+
const endHour = end.getHours();
|
|
7944
|
+
const endMinute = end.getMinutes();
|
|
7945
|
+
if (startHour === hour && endHour !== hour) {
|
|
7946
|
+
setRangeData(minutes, startMinute, 60, true);
|
|
7947
|
+
} else if (startHour === hour && endHour === hour) {
|
|
7948
|
+
setRangeData(minutes, startMinute, endMinute + 1, true);
|
|
7949
|
+
} else if (startHour !== hour && endHour === hour) {
|
|
7950
|
+
setRangeData(minutes, 0, endMinute + 1, true);
|
|
7951
|
+
} else if (startHour < hour && endHour > hour) {
|
|
7952
|
+
setRangeData(minutes, 0, 60, true);
|
|
7953
|
+
}
|
|
7954
|
+
});
|
|
7955
|
+
} else {
|
|
7956
|
+
setRangeData(minutes, 0, 60, true);
|
|
7957
|
+
}
|
|
7958
|
+
return minutes;
|
|
7959
|
+
};
|
|
7960
|
+
|
|
7961
|
+
const range = function(n) {
|
|
7962
|
+
// see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
|
|
7963
|
+
return Array.apply(null, {length: n}).map((_, n) => n);
|
|
7964
|
+
};
|
|
7965
|
+
|
|
7966
|
+
const modifyDate = function(date, y, m, d) {
|
|
7967
|
+
return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
7968
|
+
};
|
|
7969
|
+
|
|
7970
|
+
const modifyTime = function(date, h, m, s) {
|
|
7971
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
|
|
7972
|
+
};
|
|
7973
|
+
|
|
7974
|
+
const modifyWithTimeString = (date, time) => {
|
|
7975
|
+
if (date == null || !time) {
|
|
7976
|
+
return date;
|
|
7977
|
+
}
|
|
7978
|
+
time = parseDate(time, 'HH:mm:ss');
|
|
7979
|
+
return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
|
|
7980
|
+
};
|
|
7981
|
+
|
|
7982
|
+
const clearTime = function(date) {
|
|
7983
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
7984
|
+
};
|
|
7985
|
+
|
|
7986
|
+
const clearMilliseconds = function(date) {
|
|
7987
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
|
|
7988
|
+
};
|
|
7989
|
+
|
|
7990
|
+
const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
|
|
7991
|
+
// TODO: refactory a more elegant solution
|
|
7992
|
+
if (ranges.length === 0) return date;
|
|
7993
|
+
const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
|
|
7994
|
+
const ndate = normalizeDate(date);
|
|
7995
|
+
const nranges = ranges.map(range => range.map(normalizeDate));
|
|
7996
|
+
if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
|
|
7997
|
+
|
|
7998
|
+
let minDate = nranges[0][0];
|
|
7999
|
+
let maxDate = nranges[0][0];
|
|
8000
|
+
|
|
8001
|
+
nranges.forEach(nrange => {
|
|
8002
|
+
minDate = new Date(Math.min(nrange[0], minDate));
|
|
8003
|
+
maxDate = new Date(Math.max(nrange[1], minDate));
|
|
8004
|
+
});
|
|
8005
|
+
|
|
8006
|
+
const ret = ndate < minDate ? minDate : maxDate;
|
|
8007
|
+
// preserve Year/Month/Date
|
|
8008
|
+
return modifyDate(
|
|
8009
|
+
ret,
|
|
8010
|
+
date.getFullYear(),
|
|
8011
|
+
date.getMonth(),
|
|
8012
|
+
date.getDate()
|
|
8013
|
+
);
|
|
8014
|
+
};
|
|
8015
|
+
|
|
8016
|
+
const timeWithinRange = function(date, selectableRange, format) {
|
|
8017
|
+
const limitedDate = limitTimeRange(date, selectableRange, format);
|
|
8018
|
+
return limitedDate.getTime() === date.getTime();
|
|
8019
|
+
};
|
|
8020
|
+
|
|
8021
|
+
const changeYearMonthAndClampDate = function(date, year, month) {
|
|
8022
|
+
// clamp date to the number of days in `year`, `month`
|
|
8023
|
+
// eg: (2010-1-31, 2010, 2) => 2010-2-28
|
|
8024
|
+
const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
|
|
8025
|
+
return modifyDate(date, year, month, monthDate);
|
|
8026
|
+
};
|
|
8027
|
+
|
|
8028
|
+
const prevMonth = function(date) {
|
|
8029
|
+
const year = date.getFullYear();
|
|
8030
|
+
const month = date.getMonth();
|
|
8031
|
+
return month === 0
|
|
8032
|
+
? changeYearMonthAndClampDate(date, year - 1, 11)
|
|
8033
|
+
: changeYearMonthAndClampDate(date, year, month - 1);
|
|
8034
|
+
};
|
|
8035
|
+
|
|
8036
|
+
const nextMonth = function(date) {
|
|
8037
|
+
const year = date.getFullYear();
|
|
8038
|
+
const month = date.getMonth();
|
|
8039
|
+
return month === 11
|
|
8040
|
+
? changeYearMonthAndClampDate(date, year + 1, 0)
|
|
8041
|
+
: changeYearMonthAndClampDate(date, year, month + 1);
|
|
8042
|
+
};
|
|
8043
|
+
|
|
8044
|
+
const prevYear = function(date, amount = 1) {
|
|
8045
|
+
const year = date.getFullYear();
|
|
8046
|
+
const month = date.getMonth();
|
|
8047
|
+
return changeYearMonthAndClampDate(date, year - amount, month);
|
|
8048
|
+
};
|
|
8049
|
+
|
|
8050
|
+
const nextYear = function(date, amount = 1) {
|
|
8051
|
+
const year = date.getFullYear();
|
|
8052
|
+
const month = date.getMonth();
|
|
8053
|
+
return changeYearMonthAndClampDate(date, year + amount, month);
|
|
8054
|
+
};
|
|
8055
|
+
|
|
8056
|
+
const extractDateFormat = function(format) {
|
|
8057
|
+
return format
|
|
8058
|
+
.replace(/\W?m{1,2}|\W?ZZ/g, '')
|
|
8059
|
+
.replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
|
|
8060
|
+
.trim();
|
|
8061
|
+
};
|
|
8062
|
+
|
|
8063
|
+
const extractTimeFormat = function(format) {
|
|
8064
|
+
return format
|
|
8065
|
+
.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
|
|
8066
|
+
.trim();
|
|
8067
|
+
};
|
|
8068
|
+
|
|
8069
|
+
const validateRangeInOneMonth = function(start, end) {
|
|
8070
|
+
return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
|
|
8071
|
+
};
|
|
8072
|
+
|
|
8048
8073
|
/**
|
|
8049
8074
|
* 计算两个日期之间的工作日数量(不包括周末和节假日)
|
|
8050
8075
|
* @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
|
|
8051
8076
|
* @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
|
|
8052
8077
|
* @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
|
|
8053
8078
|
* @returns {number} 工作日数量
|
|
8054
|
-
*/
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
}
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
8066
|
-
throw new Error(
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
}
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8079
|
+
*/
|
|
8080
|
+
const calculateNetworkDays = function (start_date, end_date, holidays = []) {
|
|
8081
|
+
if (typeof start_date !== 'string' || typeof end_date !== 'string') {
|
|
8082
|
+
throw new Error(
|
|
8083
|
+
"Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
8084
|
+
);
|
|
8085
|
+
}
|
|
8086
|
+
|
|
8087
|
+
const startDateObj = new Date(start_date);
|
|
8088
|
+
const endDateObj = new Date(end_date);
|
|
8089
|
+
|
|
8090
|
+
if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
|
|
8091
|
+
throw new Error(
|
|
8092
|
+
"Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
|
|
8093
|
+
);
|
|
8094
|
+
}
|
|
8095
|
+
|
|
8096
|
+
if (startDateObj > endDateObj) {
|
|
8097
|
+
throw new Error('Start date should be earlier than or equal to end date.');
|
|
8098
|
+
}
|
|
8099
|
+
|
|
8100
|
+
let workdays = 0;
|
|
8101
|
+
|
|
8102
|
+
// Iterate through each day in the date range
|
|
8103
|
+
for (
|
|
8104
|
+
let currentDate = new Date(startDateObj);
|
|
8105
|
+
currentDate <= endDateObj;
|
|
8106
|
+
currentDate.setDate(currentDate.getDate() + 1)
|
|
8107
|
+
) {
|
|
8108
|
+
// Check if the current day is a weekend (Saturday or Sunday)
|
|
8109
|
+
const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
|
|
8110
|
+
|
|
8111
|
+
// Check if the current day is a holiday
|
|
8112
|
+
const isHoliday = holidays.some((holiday) => {
|
|
8113
|
+
const holidayDate = new Date(holiday);
|
|
8114
|
+
return currentDate.toDateString() === holidayDate.toDateString();
|
|
8115
|
+
});
|
|
8116
|
+
|
|
8117
|
+
// If it's a workday (not a weekend or holiday), increment the workdays count
|
|
8118
|
+
if (!isWeekend && !isHoliday) {
|
|
8119
|
+
workdays++;
|
|
8120
|
+
}
|
|
8121
|
+
}
|
|
8122
|
+
|
|
8123
|
+
return workdays;
|
|
8124
|
+
};
|
|
8125
|
+
|
|
8100
8126
|
/**
|
|
8101
8127
|
* 日期加减天数
|
|
8102
8128
|
* @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
|
|
8103
8129
|
* @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
|
|
8104
8130
|
* @returns {string} 结果日期,格式为 "YYYY-MM-DD"
|
|
8105
|
-
*/
|
|
8106
|
-
|
|
8107
|
-
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
8108
|
-
throw new Error(
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8131
|
+
*/
|
|
8132
|
+
const dateAddDays = function (start_date, days) {
|
|
8133
|
+
if (typeof start_date !== 'string' || !Number.isInteger(days)) {
|
|
8134
|
+
throw new Error(
|
|
8135
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
|
|
8136
|
+
);
|
|
8137
|
+
}
|
|
8138
|
+
|
|
8139
|
+
const startDateObj = new Date(start_date);
|
|
8140
|
+
if (isNaN(startDateObj.getTime())) {
|
|
8141
|
+
throw new Error(
|
|
8142
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
8143
|
+
);
|
|
8144
|
+
}
|
|
8145
|
+
|
|
8146
|
+
const resultDateObj = new Date(startDateObj);
|
|
8147
|
+
resultDateObj.setDate(resultDateObj.getDate() + days);
|
|
8148
|
+
|
|
8149
|
+
const resultYear = resultDateObj.getFullYear();
|
|
8150
|
+
const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
|
|
8151
|
+
const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
|
|
8152
|
+
|
|
8153
|
+
return `${resultYear}-${resultMonth}-${resultDay}`;
|
|
8154
|
+
};
|
|
8155
|
+
|
|
8126
8156
|
/**
|
|
8127
8157
|
* 计算两个日期之间的差值
|
|
8128
8158
|
* @date 2023年12月14日
|
|
@@ -8130,180 +8160,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
|
|
|
8130
8160
|
* @param {String} end_date - 结束日期字符串
|
|
8131
8161
|
* @param {String} unit - 单位:year/month/day
|
|
8132
8162
|
* @returns {Number} 差值
|
|
8133
|
-
*/
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
if (unit === '
|
|
8147
|
-
return
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
}
|
|
8157
|
-
|
|
8163
|
+
*/
|
|
8164
|
+
const dateDiff = function (start_date, end_date, unit = 'day') {
|
|
8165
|
+
// Assuming date strings are in "YYYY-MM-DD" format
|
|
8166
|
+
var startDate = new Date(start_date);
|
|
8167
|
+
var endDate = new Date(end_date);
|
|
8168
|
+
|
|
8169
|
+
// If the date is invalid, return 0
|
|
8170
|
+
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
8171
|
+
return 0;
|
|
8172
|
+
}
|
|
8173
|
+
|
|
8174
|
+
if (unit === 'year') {
|
|
8175
|
+
return endDate.getFullYear() - startDate.getFullYear();
|
|
8176
|
+
} else if (unit === 'month') {
|
|
8177
|
+
return (
|
|
8178
|
+
(endDate.getFullYear() - startDate.getFullYear()) * 12 +
|
|
8179
|
+
(endDate.getMonth() - startDate.getMonth())
|
|
8180
|
+
);
|
|
8181
|
+
} else {
|
|
8182
|
+
// Default to day
|
|
8183
|
+
var timeDifference = endDate - startDate;
|
|
8184
|
+
// Calculate days (86400000 milliseconds per day)
|
|
8185
|
+
return Math.floor(timeDifference / 86400000);
|
|
8186
|
+
}
|
|
8187
|
+
};
|
|
8188
|
+
|
|
8158
8189
|
/**
|
|
8159
8190
|
* 获取月份中的日期
|
|
8160
8191
|
* @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
|
|
8161
8192
|
* @returns {number} 月份中的日期(1-31)
|
|
8162
|
-
*/
|
|
8163
|
-
|
|
8164
|
-
if (typeof date !== 'string') {
|
|
8165
|
-
throw new Error(
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8193
|
+
*/
|
|
8194
|
+
const dayOfMonth = function (date) {
|
|
8195
|
+
if (typeof date !== 'string') {
|
|
8196
|
+
throw new Error(
|
|
8197
|
+
"Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
8198
|
+
);
|
|
8199
|
+
}
|
|
8200
|
+
|
|
8201
|
+
const dateObj = new Date(date);
|
|
8202
|
+
if (isNaN(dateObj.getTime())) {
|
|
8203
|
+
throw new Error(
|
|
8204
|
+
"Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
|
|
8205
|
+
);
|
|
8206
|
+
}
|
|
8207
|
+
|
|
8208
|
+
return dateObj.getDate();
|
|
8209
|
+
};
|
|
8210
|
+
|
|
8176
8211
|
/**
|
|
8177
8212
|
* 获取当前日期
|
|
8178
8213
|
* @date 2022年5月7日
|
|
8179
8214
|
* @param {string} format - 日期格式,默认为'YYYY-MM-DD'
|
|
8180
8215
|
* @returns {string} 当前日期的格式化字符串
|
|
8181
|
-
*/
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
};
|
|
8187
|
-
|
|
8216
|
+
*/
|
|
8217
|
+
const getCurrentDate = function (format = 'YYYY-MM-DD') {
|
|
8218
|
+
return formatDate(new Date(), format);
|
|
8219
|
+
};
|
|
8220
|
+
|
|
8188
8221
|
/**
|
|
8189
8222
|
* 获取当前日期时间
|
|
8190
8223
|
* @date 2022年5月7日
|
|
8191
8224
|
* @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
|
|
8192
8225
|
* @returns {string} 当前日期时间的格式化字符串
|
|
8193
|
-
*/
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
};
|
|
8199
|
-
|
|
8226
|
+
*/
|
|
8227
|
+
const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
|
|
8228
|
+
return formatDate(new Date(), format);
|
|
8229
|
+
};
|
|
8230
|
+
|
|
8200
8231
|
/**
|
|
8201
8232
|
* 获取小时
|
|
8202
8233
|
* @date 2022年5月7日
|
|
8203
8234
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
8204
8235
|
* @returns {number} 小时数(0-23)
|
|
8205
|
-
*/
|
|
8206
|
-
|
|
8207
|
-
if (!date) {
|
|
8208
|
-
return new Date().getHours();
|
|
8209
|
-
}
|
|
8210
|
-
if (typeof date === 'string') {
|
|
8211
|
-
date = new Date(date);
|
|
8212
|
-
}
|
|
8213
|
-
return date.getHours();
|
|
8214
|
-
};
|
|
8215
|
-
|
|
8236
|
+
*/
|
|
8237
|
+
const getHour = function (date) {
|
|
8238
|
+
if (!date) {
|
|
8239
|
+
return new Date().getHours();
|
|
8240
|
+
}
|
|
8241
|
+
if (typeof date === 'string') {
|
|
8242
|
+
date = new Date(date);
|
|
8243
|
+
}
|
|
8244
|
+
return date.getHours();
|
|
8245
|
+
};
|
|
8246
|
+
|
|
8216
8247
|
/**
|
|
8217
8248
|
* 获取分钟
|
|
8218
8249
|
* @date 2022年5月7日
|
|
8219
8250
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
8220
8251
|
* @returns {number} 分钟数(0-59)
|
|
8221
|
-
*/
|
|
8222
|
-
|
|
8223
|
-
if (!date) {
|
|
8224
|
-
return new Date().getMinutes();
|
|
8225
|
-
}
|
|
8226
|
-
if (typeof date === 'string') {
|
|
8227
|
-
date = new Date(date);
|
|
8228
|
-
}
|
|
8229
|
-
return date.getMinutes();
|
|
8230
|
-
};
|
|
8231
|
-
|
|
8252
|
+
*/
|
|
8253
|
+
const getMinute = function (date) {
|
|
8254
|
+
if (!date) {
|
|
8255
|
+
return new Date().getMinutes();
|
|
8256
|
+
}
|
|
8257
|
+
if (typeof date === 'string') {
|
|
8258
|
+
date = new Date(date);
|
|
8259
|
+
}
|
|
8260
|
+
return date.getMinutes();
|
|
8261
|
+
};
|
|
8262
|
+
|
|
8232
8263
|
/**
|
|
8233
8264
|
* 获取月份
|
|
8234
8265
|
* @date 2022年5月7日
|
|
8235
8266
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
8236
8267
|
* @returns {number} 月份数(1-12)
|
|
8237
|
-
*/
|
|
8238
|
-
|
|
8239
|
-
if (!date) {
|
|
8240
|
-
return new Date().getMonth() + 1;
|
|
8241
|
-
}
|
|
8242
|
-
if (typeof date === 'string') {
|
|
8243
|
-
date = new Date(date);
|
|
8244
|
-
}
|
|
8245
|
-
return date.getMonth() + 1;
|
|
8246
|
-
};
|
|
8247
|
-
|
|
8268
|
+
*/
|
|
8269
|
+
const getMonth = function (date) {
|
|
8270
|
+
if (!date) {
|
|
8271
|
+
return new Date().getMonth() + 1;
|
|
8272
|
+
}
|
|
8273
|
+
if (typeof date === 'string') {
|
|
8274
|
+
date = new Date(date);
|
|
8275
|
+
}
|
|
8276
|
+
return date.getMonth() + 1;
|
|
8277
|
+
};
|
|
8278
|
+
|
|
8248
8279
|
/**
|
|
8249
8280
|
* 获取秒
|
|
8250
8281
|
* @date 2022年5月7日
|
|
8251
8282
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
8252
8283
|
* @returns {number} 秒数(0-59)
|
|
8253
|
-
*/
|
|
8254
|
-
|
|
8255
|
-
if (!date) {
|
|
8256
|
-
return new Date().getSeconds();
|
|
8257
|
-
}
|
|
8258
|
-
if (typeof date === 'string') {
|
|
8259
|
-
date = new Date(date);
|
|
8260
|
-
}
|
|
8261
|
-
return date.getSeconds();
|
|
8262
|
-
};
|
|
8263
|
-
|
|
8284
|
+
*/
|
|
8285
|
+
const getSecond = function (date) {
|
|
8286
|
+
if (!date) {
|
|
8287
|
+
return new Date().getSeconds();
|
|
8288
|
+
}
|
|
8289
|
+
if (typeof date === 'string') {
|
|
8290
|
+
date = new Date(date);
|
|
8291
|
+
}
|
|
8292
|
+
return date.getSeconds();
|
|
8293
|
+
};
|
|
8294
|
+
|
|
8264
8295
|
/**
|
|
8265
8296
|
* 获取星期几
|
|
8266
8297
|
* @date 2022年5月7日
|
|
8267
8298
|
* @param {Date|string} [date] - 日期对象或日期字符串
|
|
8268
8299
|
* @returns {number} 星期几(0-6,0表示星期日)
|
|
8269
|
-
*/
|
|
8270
|
-
|
|
8271
|
-
if (!date) {
|
|
8272
|
-
return new Date().getDay();
|
|
8273
|
-
}
|
|
8274
|
-
if (typeof date === 'string') {
|
|
8275
|
-
date = new Date(date);
|
|
8276
|
-
}
|
|
8277
|
-
return date.getDay();
|
|
8278
|
-
};
|
|
8279
|
-
|
|
8300
|
+
*/
|
|
8301
|
+
const getWeekday = function (date) {
|
|
8302
|
+
if (!date) {
|
|
8303
|
+
return new Date().getDay();
|
|
8304
|
+
}
|
|
8305
|
+
if (typeof date === 'string') {
|
|
8306
|
+
date = new Date(date);
|
|
8307
|
+
}
|
|
8308
|
+
return date.getDay();
|
|
8309
|
+
};
|
|
8310
|
+
|
|
8311
|
+
|
|
8280
8312
|
/**
|
|
8281
8313
|
* @desc 获取上午/下午/晚上
|
|
8282
8314
|
* @author huangbo
|
|
8283
8315
|
* @date 2022年5月7日
|
|
8284
8316
|
* @param {String} [time] - 时间
|
|
8285
|
-
**/
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
if (!time) {
|
|
8289
|
-
hour = new Date().getHours();
|
|
8290
|
-
} else if (typeof time === 'string') {
|
|
8291
|
-
// 从时间字符串中提取小时
|
|
8292
|
-
|
|
8293
|
-
if (match) {
|
|
8294
|
-
hour = parseInt(match[1], 10);
|
|
8295
|
-
}
|
|
8296
|
-
} else if (typeof time === 'number') {
|
|
8297
|
-
hour = time;
|
|
8298
|
-
}
|
|
8299
|
-
// 判断时间段
|
|
8300
|
-
if (hour >= 5 && hour < 12) {
|
|
8301
|
-
return '上午';
|
|
8302
|
-
} else if (hour >= 12 && hour < 18) {
|
|
8303
|
-
return '下午';
|
|
8304
|
-
} else {
|
|
8305
|
-
return '晚上';
|
|
8306
|
-
}
|
|
8317
|
+
**/
|
|
8318
|
+
const timeCycle = function (time) {
|
|
8319
|
+
let hour = 0;
|
|
8320
|
+
if (!time) {
|
|
8321
|
+
hour = new Date().getHours();
|
|
8322
|
+
} else if (typeof time === 'string') {
|
|
8323
|
+
// 从时间字符串中提取小时
|
|
8324
|
+
const match = time.match(/^(\d{1,2})/);
|
|
8325
|
+
if (match) {
|
|
8326
|
+
hour = parseInt(match[1], 10);
|
|
8327
|
+
}
|
|
8328
|
+
} else if (typeof time === 'number') {
|
|
8329
|
+
hour = time;
|
|
8330
|
+
}
|
|
8331
|
+
// 判断时间段
|
|
8332
|
+
if (hour >= 5 && hour < 12) {
|
|
8333
|
+
return '上午';
|
|
8334
|
+
} else if (hour >= 12 && hour < 18) {
|
|
8335
|
+
return '下午';
|
|
8336
|
+
} else {
|
|
8337
|
+
return '晚上';
|
|
8338
|
+
}
|
|
8307
8339
|
};
|
|
8308
8340
|
|
|
8309
8341
|
/***/ }),
|
|
@@ -8330,22 +8362,24 @@ module.exports = require("eoss/lib/message-box");
|
|
|
8330
8362
|
/* unused harmony export downloadZip */
|
|
8331
8363
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
|
|
8332
8364
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
|
|
8333
|
-
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8365
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
|
|
8334
8366
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
|
|
8335
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
8367
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
|
|
8336
8368
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
8337
8369
|
/* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20);
|
|
8338
|
-
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
8370
|
+
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30);
|
|
8339
8371
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
|
|
8340
8372
|
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0);
|
|
8341
|
-
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
8373
|
+
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21);
|
|
8342
8374
|
/* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(fetch_request_source__WEBPACK_IMPORTED_MODULE_5__);
|
|
8343
8375
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1);
|
|
8344
8376
|
/* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6);
|
|
8345
8377
|
/* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8);
|
|
8346
8378
|
/* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__);
|
|
8347
|
-
/* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
8379
|
+
/* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(10);
|
|
8348
8380
|
/* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__);
|
|
8381
|
+
/* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31);
|
|
8382
|
+
/* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__);
|
|
8349
8383
|
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; };
|
|
8350
8384
|
|
|
8351
8385
|
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; }
|
|
@@ -8368,6 +8402,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
8368
8402
|
|
|
8369
8403
|
|
|
8370
8404
|
|
|
8405
|
+
|
|
8371
8406
|
// 常量定义
|
|
8372
8407
|
var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ storeAsString: true });
|
|
8373
8408
|
var statusMap = {
|
|
@@ -8904,7 +8939,7 @@ var responses = function responses(data) {
|
|
|
8904
8939
|
onlyFirst: true,
|
|
8905
8940
|
customClass: 'es-retrial-auth-msg',
|
|
8906
8941
|
render: function render(h, msgBox) {
|
|
8907
|
-
return h(
|
|
8942
|
+
return h(eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10___default.a, {
|
|
8908
8943
|
ref: 'auth',
|
|
8909
8944
|
props: {
|
|
8910
8945
|
reload: data.results.reload || data.results.refresh,
|
|
@@ -9147,7 +9182,7 @@ function redirectToLoginPage(loginPage, next) {
|
|
|
9147
9182
|
* @param {function} callback - 回调函数
|
|
9148
9183
|
**/
|
|
9149
9184
|
var getMainConfig = function getMainConfig(callback) {
|
|
9150
|
-
ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "
|
|
9185
|
+
ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "wb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
|
|
9151
9186
|
if (res && res.rCode === 0) {
|
|
9152
9187
|
callback(res.results);
|
|
9153
9188
|
}
|
|
@@ -9170,7 +9205,7 @@ var getSysCodeList = function getSysCodeList(_ref4) {
|
|
|
9170
9205
|
method = _ref4$method === undefined ? 'POST' : _ref4$method,
|
|
9171
9206
|
service = _ref4.service,
|
|
9172
9207
|
_ref4$url = _ref4.url,
|
|
9173
|
-
url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "
|
|
9208
|
+
url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "D"] : _ref4$url,
|
|
9174
9209
|
sysCode = _ref4.sysCode,
|
|
9175
9210
|
_ref4$param = _ref4.param,
|
|
9176
9211
|
param = _ref4$param === undefined ? {} : _ref4$param,
|
|
@@ -9280,7 +9315,7 @@ var downloadFile = function downloadFile(_ref6) {
|
|
|
9280
9315
|
file = _ref6.file,
|
|
9281
9316
|
withToken = _ref6.withToken;
|
|
9282
9317
|
|
|
9283
|
-
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "
|
|
9318
|
+
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "y"] };
|
|
9284
9319
|
|
|
9285
9320
|
var downloadUrl = '';
|
|
9286
9321
|
if (file.adjunctId || file.response && file.response.adjunctId) {
|
|
@@ -9343,7 +9378,7 @@ var downloadZip = function downloadZip(_ref7) {
|
|
|
9343
9378
|
code = _ref7.code,
|
|
9344
9379
|
option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
|
|
9345
9380
|
|
|
9346
|
-
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "
|
|
9381
|
+
var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Wc"] };
|
|
9347
9382
|
|
|
9348
9383
|
// 处理URL和参数
|
|
9349
9384
|
var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
|
|
@@ -9395,7 +9430,7 @@ var deleteFile = function deleteFile(_ref8) {
|
|
|
9395
9430
|
onSuccess = _ref8.onSuccess,
|
|
9396
9431
|
onError = _ref8.onError;
|
|
9397
9432
|
|
|
9398
|
-
var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "
|
|
9433
|
+
var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "p"] + '\' }');
|
|
9399
9434
|
|
|
9400
9435
|
// 处理URL和参数
|
|
9401
9436
|
var deleteUrl = url ? url : dochubConfig.deleteDocumentUrl;
|