eoss-ui 0.5.12 → 0.5.13
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/button-group.js +1 -13
- package/lib/button.js +1 -13
- package/lib/checkbox-group.js +1 -13
- package/lib/data-table-form.js +1 -13
- package/lib/data-table.js +24 -22
- package/lib/date-picker.js +1 -13
- package/lib/dialog.js +1 -13
- package/lib/eoss-ui.common.js +83 -78
- package/lib/flow-group.js +1 -13
- package/lib/flow-list.js +1 -13
- package/lib/flow.js +36 -48
- package/lib/form.js +1 -13
- package/lib/handle-user.js +1 -13
- package/lib/handler.js +1 -13
- package/lib/index.js +1 -1
- package/lib/input-number.js +1 -13
- package/lib/input.js +1 -13
- package/lib/label.js +3 -2
- package/lib/login.js +1 -13
- package/lib/main.js +9 -19
- package/lib/nav.js +1 -13
- package/lib/page.js +1 -13
- package/lib/player.js +1 -13
- package/lib/qr-code.js +1 -13
- package/lib/radio-group.js +1 -13
- package/lib/retrial-auth.js +1 -13
- package/lib/select-ganged.js +1 -13
- package/lib/select.js +1 -13
- package/lib/selector-panel.js +1 -13
- package/lib/selector.js +1 -13
- package/lib/sizer.js +1 -13
- package/lib/steps.js +1 -13
- package/lib/switch.js +1 -13
- package/lib/table-form.js +1 -13
- package/lib/tabs.js +1 -13
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/nav.css +1 -1
- package/lib/tips.js +1 -13
- package/lib/tree-group.js +1 -13
- package/lib/tree.js +1 -13
- package/lib/upload.js +1 -13
- package/lib/utils/util.js +1 -10
- package/lib/utils/webSocket.js +0 -3
- package/lib/wujie.js +1 -13
- package/lib/wxlogin.js +1 -13
- package/package.json +1 -1
- package/packages/data-table/src/column copy.vue +977 -0
- package/packages/data-table/src/main copy.vue +1325 -0
- package/packages/data-table/src/main.vue +29 -6
- package/packages/flow/src/component/taskUnionExamine.vue +1 -1
- package/packages/flow/src/main.vue +1 -1
- package/packages/flow/src/processForm.vue +1 -1
- package/packages/flow/src/processReject.vue +1 -1
- package/packages/flow/src/startTaskRead.vue +1 -1
- package/packages/label/src/main.vue +3 -2
- package/packages/main/src/main.vue +6 -4
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/nav.css +1 -1
- package/packages/theme-chalk/src/nav.scss +21 -2
- package/src/index.js +1 -1
- package/src/utils/util.js +1 -10
- package/src/utils/webSocket.js +0 -3
package/lib/flow.js
CHANGED
|
@@ -2522,7 +2522,6 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2522
2522
|
* @author huangbo
|
|
2523
2523
|
* @date 2022年5月7日
|
|
2524
2524
|
* @param {String} [url] - 连接地址
|
|
2525
|
-
* @param {String} [send] - 是否发送消息
|
|
2526
2525
|
* @param {String} [take] - 订阅地址
|
|
2527
2526
|
* @param {String} [debug] - 调试
|
|
2528
2527
|
* @param {String} [interval] - 重连间隔时间
|
|
@@ -2530,16 +2529,8 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2530
2529
|
* @param {Function} [error] - 重连间隔时间
|
|
2531
2530
|
**/
|
|
2532
2531
|
function socket(option, vm) {
|
|
2533
|
-
var options = {};
|
|
2534
|
-
for (var i in option) {
|
|
2535
|
-
if (i === 'send') {
|
|
2536
|
-
options['isSend'] = option[i];
|
|
2537
|
-
} else {
|
|
2538
|
-
options[i] = option[i];
|
|
2539
|
-
}
|
|
2540
|
-
}
|
|
2541
2532
|
var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
|
|
2542
|
-
socket.init(
|
|
2533
|
+
socket.init(option, vm);
|
|
2543
2534
|
return socket;
|
|
2544
2535
|
}
|
|
2545
2536
|
/**
|
|
@@ -3477,7 +3468,6 @@ var WebSocket = function () {
|
|
|
3477
3468
|
this.connects = 1;
|
|
3478
3469
|
this.recon = false;
|
|
3479
3470
|
this.sendTimeout = null;
|
|
3480
|
-
this.isSend = false;
|
|
3481
3471
|
}
|
|
3482
3472
|
|
|
3483
3473
|
/** socket连接 */
|
|
@@ -3505,9 +3495,7 @@ var WebSocket = function () {
|
|
|
3505
3495
|
// tryTimes定义重置
|
|
3506
3496
|
_this.connects = 1;
|
|
3507
3497
|
// 订阅消息
|
|
3508
|
-
// if (!this.isSend) {
|
|
3509
3498
|
_this.subscribe();
|
|
3510
|
-
// }
|
|
3511
3499
|
}, function (error) {
|
|
3512
3500
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3513
3501
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
@@ -3802,7 +3790,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
3802
3790
|
// ESM COMPAT FLAG
|
|
3803
3791
|
__webpack_require__.r(__webpack_exports__);
|
|
3804
3792
|
|
|
3805
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=
|
|
3793
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=13cc8c3c&
|
|
3806
3794
|
var render = function () {
|
|
3807
3795
|
var _vm = this
|
|
3808
3796
|
var _h = _vm.$createElement
|
|
@@ -5439,7 +5427,7 @@ var staticRenderFns = []
|
|
|
5439
5427
|
render._withStripped = true
|
|
5440
5428
|
|
|
5441
5429
|
|
|
5442
|
-
// CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=
|
|
5430
|
+
// CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=13cc8c3c&
|
|
5443
5431
|
|
|
5444
5432
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
5445
5433
|
var regenerator_ = __webpack_require__(12);
|
|
@@ -6392,8 +6380,8 @@ var CommonOpinions_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6392
6380
|
)
|
|
6393
6381
|
|
|
6394
6382
|
/* harmony default export */ var CommonOpinions = (CommonOpinions_component.exports);
|
|
6395
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=
|
|
6396
|
-
var
|
|
6383
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=b6491348&
|
|
6384
|
+
var processFormvue_type_template_id_b6491348_render = function () {
|
|
6397
6385
|
var _vm = this
|
|
6398
6386
|
var _h = _vm.$createElement
|
|
6399
6387
|
var _c = _vm._self._c || _h
|
|
@@ -6859,11 +6847,11 @@ var processFormvue_type_template_id_d47486b0_render = function () {
|
|
|
6859
6847
|
1
|
|
6860
6848
|
)
|
|
6861
6849
|
}
|
|
6862
|
-
var
|
|
6863
|
-
|
|
6850
|
+
var processFormvue_type_template_id_b6491348_staticRenderFns = []
|
|
6851
|
+
processFormvue_type_template_id_b6491348_render._withStripped = true
|
|
6864
6852
|
|
|
6865
6853
|
|
|
6866
|
-
// CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=
|
|
6854
|
+
// CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=b6491348&
|
|
6867
6855
|
|
|
6868
6856
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/selectUser.vue?vue&type=template&id=db651118&
|
|
6869
6857
|
var selectUservue_type_template_id_db651118_render = function () {
|
|
@@ -8775,7 +8763,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
8775
8763
|
|
|
8776
8764
|
util["a" /* default */].ajax({
|
|
8777
8765
|
url: api["t" /* findCodeValues */],
|
|
8778
|
-
params: { ccCode: 'notification_type' }
|
|
8766
|
+
params: { ccCode: 'notification_type', userId: util["a" /* default */].getStorage('userId') }
|
|
8779
8767
|
}).then(function (res) {
|
|
8780
8768
|
var status = res.status,
|
|
8781
8769
|
data = res.data;
|
|
@@ -9153,8 +9141,8 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9153
9141
|
|
|
9154
9142
|
var processForm_component = Object(componentNormalizer["a" /* default */])(
|
|
9155
9143
|
src_processFormvue_type_script_lang_js_,
|
|
9156
|
-
|
|
9157
|
-
|
|
9144
|
+
processFormvue_type_template_id_b6491348_render,
|
|
9145
|
+
processFormvue_type_template_id_b6491348_staticRenderFns,
|
|
9158
9146
|
false,
|
|
9159
9147
|
null,
|
|
9160
9148
|
null,
|
|
@@ -10012,8 +10000,8 @@ var TimeLimit_component = Object(componentNormalizer["a" /* default */])(
|
|
|
10012
10000
|
)
|
|
10013
10001
|
|
|
10014
10002
|
/* harmony default export */ var TimeLimit = (TimeLimit_component.exports);
|
|
10015
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processReject.vue?vue&type=template&id=
|
|
10016
|
-
var
|
|
10003
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processReject.vue?vue&type=template&id=b5a52fc0&
|
|
10004
|
+
var processRejectvue_type_template_id_b5a52fc0_render = function () {
|
|
10017
10005
|
var _vm = this
|
|
10018
10006
|
var _h = _vm.$createElement
|
|
10019
10007
|
var _c = _vm._self._c || _h
|
|
@@ -10204,11 +10192,11 @@ var processRejectvue_type_template_id_4de07824_render = function () {
|
|
|
10204
10192
|
1
|
|
10205
10193
|
)
|
|
10206
10194
|
}
|
|
10207
|
-
var
|
|
10208
|
-
|
|
10195
|
+
var processRejectvue_type_template_id_b5a52fc0_staticRenderFns = []
|
|
10196
|
+
processRejectvue_type_template_id_b5a52fc0_render._withStripped = true
|
|
10209
10197
|
|
|
10210
10198
|
|
|
10211
|
-
// CONCATENATED MODULE: ./packages/flow/src/processReject.vue?vue&type=template&id=
|
|
10199
|
+
// CONCATENATED MODULE: ./packages/flow/src/processReject.vue?vue&type=template&id=b5a52fc0&
|
|
10212
10200
|
|
|
10213
10201
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processReject.vue?vue&type=script&lang=js&
|
|
10214
10202
|
//
|
|
@@ -10342,7 +10330,7 @@ processRejectvue_type_template_id_4de07824_render._withStripped = true
|
|
|
10342
10330
|
|
|
10343
10331
|
util["a" /* default */].ajax({
|
|
10344
10332
|
url: api["t" /* findCodeValues */],
|
|
10345
|
-
params: { ccCode: 'notification_type' }
|
|
10333
|
+
params: { ccCode: 'notification_type', userId: util["a" /* default */].getStorage('userId') }
|
|
10346
10334
|
}).then(function (res) {
|
|
10347
10335
|
var status = res.status,
|
|
10348
10336
|
data = res.data;
|
|
@@ -10486,8 +10474,8 @@ processRejectvue_type_template_id_4de07824_render._withStripped = true
|
|
|
10486
10474
|
|
|
10487
10475
|
var processReject_component = Object(componentNormalizer["a" /* default */])(
|
|
10488
10476
|
src_processRejectvue_type_script_lang_js_,
|
|
10489
|
-
|
|
10490
|
-
|
|
10477
|
+
processRejectvue_type_template_id_b5a52fc0_render,
|
|
10478
|
+
processRejectvue_type_template_id_b5a52fc0_staticRenderFns,
|
|
10491
10479
|
false,
|
|
10492
10480
|
null,
|
|
10493
10481
|
null,
|
|
@@ -10496,8 +10484,8 @@ var processReject_component = Object(componentNormalizer["a" /* default */])(
|
|
|
10496
10484
|
)
|
|
10497
10485
|
|
|
10498
10486
|
/* harmony default export */ var processReject = (processReject_component.exports);
|
|
10499
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=template&id=
|
|
10500
|
-
var
|
|
10487
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=template&id=02be1571&
|
|
10488
|
+
var startTaskReadvue_type_template_id_02be1571_render = function () {
|
|
10501
10489
|
var _vm = this
|
|
10502
10490
|
var _h = _vm.$createElement
|
|
10503
10491
|
var _c = _vm._self._c || _h
|
|
@@ -10872,11 +10860,11 @@ var startTaskReadvue_type_template_id_44f07b3f_render = function () {
|
|
|
10872
10860
|
1
|
|
10873
10861
|
)
|
|
10874
10862
|
}
|
|
10875
|
-
var
|
|
10876
|
-
|
|
10863
|
+
var startTaskReadvue_type_template_id_02be1571_staticRenderFns = []
|
|
10864
|
+
startTaskReadvue_type_template_id_02be1571_render._withStripped = true
|
|
10877
10865
|
|
|
10878
10866
|
|
|
10879
|
-
// CONCATENATED MODULE: ./packages/flow/src/startTaskRead.vue?vue&type=template&id=
|
|
10867
|
+
// CONCATENATED MODULE: ./packages/flow/src/startTaskRead.vue?vue&type=template&id=02be1571&
|
|
10880
10868
|
|
|
10881
10869
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=script&lang=js&
|
|
10882
10870
|
var startTaskReadvue_type_script_lang_js_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; };
|
|
@@ -11273,7 +11261,7 @@ var startTaskReadvue_type_script_lang_js_components;
|
|
|
11273
11261
|
|
|
11274
11262
|
util["a" /* default */].ajax({
|
|
11275
11263
|
url: api["t" /* findCodeValues */],
|
|
11276
|
-
params: { ccCode: 'notification_type' }
|
|
11264
|
+
params: { ccCode: 'notification_type', userId: util["a" /* default */].getStorage('userId') }
|
|
11277
11265
|
}).then(function (res) {
|
|
11278
11266
|
var status = res.status,
|
|
11279
11267
|
data = res.data;
|
|
@@ -11477,8 +11465,8 @@ var startTaskReadvue_type_script_lang_js_components;
|
|
|
11477
11465
|
|
|
11478
11466
|
var startTaskRead_component = Object(componentNormalizer["a" /* default */])(
|
|
11479
11467
|
src_startTaskReadvue_type_script_lang_js_,
|
|
11480
|
-
|
|
11481
|
-
|
|
11468
|
+
startTaskReadvue_type_template_id_02be1571_render,
|
|
11469
|
+
startTaskReadvue_type_template_id_02be1571_staticRenderFns,
|
|
11482
11470
|
false,
|
|
11483
11471
|
null,
|
|
11484
11472
|
null,
|
|
@@ -11487,8 +11475,8 @@ var startTaskRead_component = Object(componentNormalizer["a" /* default */])(
|
|
|
11487
11475
|
)
|
|
11488
11476
|
|
|
11489
11477
|
/* harmony default export */ var startTaskRead = (startTaskRead_component.exports);
|
|
11490
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=
|
|
11491
|
-
var
|
|
11478
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=2e0435c4&
|
|
11479
|
+
var taskUnionExaminevue_type_template_id_2e0435c4_render = function () {
|
|
11492
11480
|
var _vm = this
|
|
11493
11481
|
var _h = _vm.$createElement
|
|
11494
11482
|
var _c = _vm._self._c || _h
|
|
@@ -11703,11 +11691,11 @@ var taskUnionExaminevue_type_template_id_47986272_render = function () {
|
|
|
11703
11691
|
1
|
|
11704
11692
|
)
|
|
11705
11693
|
}
|
|
11706
|
-
var
|
|
11707
|
-
|
|
11694
|
+
var taskUnionExaminevue_type_template_id_2e0435c4_staticRenderFns = []
|
|
11695
|
+
taskUnionExaminevue_type_template_id_2e0435c4_render._withStripped = true
|
|
11708
11696
|
|
|
11709
11697
|
|
|
11710
|
-
// CONCATENATED MODULE: ./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=
|
|
11698
|
+
// CONCATENATED MODULE: ./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=2e0435c4&
|
|
11711
11699
|
|
|
11712
11700
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/taskUnionExamine.vue?vue&type=script&lang=js&
|
|
11713
11701
|
var taskUnionExaminevue_type_script_lang_js_components;
|
|
@@ -12114,7 +12102,7 @@ var taskUnionExaminevue_type_script_lang_js_components;
|
|
|
12114
12102
|
|
|
12115
12103
|
util["a" /* default */].ajax({
|
|
12116
12104
|
url: api["t" /* findCodeValues */],
|
|
12117
|
-
params: { ccCode: 'notification_type' }
|
|
12105
|
+
params: { ccCode: 'notification_type', userId: util["a" /* default */].getStorage('userId') }
|
|
12118
12106
|
}).then(function (res) {
|
|
12119
12107
|
var status = res.status,
|
|
12120
12108
|
data = res.data;
|
|
@@ -12185,8 +12173,8 @@ var taskUnionExaminevue_type_script_lang_js_components;
|
|
|
12185
12173
|
|
|
12186
12174
|
var taskUnionExamine_component = Object(componentNormalizer["a" /* default */])(
|
|
12187
12175
|
component_taskUnionExaminevue_type_script_lang_js_,
|
|
12188
|
-
|
|
12189
|
-
|
|
12176
|
+
taskUnionExaminevue_type_template_id_2e0435c4_render,
|
|
12177
|
+
taskUnionExaminevue_type_template_id_2e0435c4_staticRenderFns,
|
|
12190
12178
|
false,
|
|
12191
12179
|
null,
|
|
12192
12180
|
null,
|
|
@@ -13343,7 +13331,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
13343
13331
|
|
|
13344
13332
|
util["a" /* default */].ajax({
|
|
13345
13333
|
url: api["t" /* findCodeValues */],
|
|
13346
|
-
params: { ccCode: 'notification_type' }
|
|
13334
|
+
params: { ccCode: 'notification_type', userId: util["a" /* default */].getStorage('userId') }
|
|
13347
13335
|
}).then(function (res) {
|
|
13348
13336
|
var status = res.status,
|
|
13349
13337
|
data = res.data;
|
package/lib/form.js
CHANGED
|
@@ -2522,7 +2522,6 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2522
2522
|
* @author huangbo
|
|
2523
2523
|
* @date 2022年5月7日
|
|
2524
2524
|
* @param {String} [url] - 连接地址
|
|
2525
|
-
* @param {String} [send] - 是否发送消息
|
|
2526
2525
|
* @param {String} [take] - 订阅地址
|
|
2527
2526
|
* @param {String} [debug] - 调试
|
|
2528
2527
|
* @param {String} [interval] - 重连间隔时间
|
|
@@ -2530,16 +2529,8 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2530
2529
|
* @param {Function} [error] - 重连间隔时间
|
|
2531
2530
|
**/
|
|
2532
2531
|
function socket(option, vm) {
|
|
2533
|
-
var options = {};
|
|
2534
|
-
for (var i in option) {
|
|
2535
|
-
if (i === 'send') {
|
|
2536
|
-
options['isSend'] = option[i];
|
|
2537
|
-
} else {
|
|
2538
|
-
options[i] = option[i];
|
|
2539
|
-
}
|
|
2540
|
-
}
|
|
2541
2532
|
var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
|
|
2542
|
-
socket.init(
|
|
2533
|
+
socket.init(option, vm);
|
|
2543
2534
|
return socket;
|
|
2544
2535
|
}
|
|
2545
2536
|
/**
|
|
@@ -3477,7 +3468,6 @@ var WebSocket = function () {
|
|
|
3477
3468
|
this.connects = 1;
|
|
3478
3469
|
this.recon = false;
|
|
3479
3470
|
this.sendTimeout = null;
|
|
3480
|
-
this.isSend = false;
|
|
3481
3471
|
}
|
|
3482
3472
|
|
|
3483
3473
|
/** socket连接 */
|
|
@@ -3505,9 +3495,7 @@ var WebSocket = function () {
|
|
|
3505
3495
|
// tryTimes定义重置
|
|
3506
3496
|
_this.connects = 1;
|
|
3507
3497
|
// 订阅消息
|
|
3508
|
-
// if (!this.isSend) {
|
|
3509
3498
|
_this.subscribe();
|
|
3510
|
-
// }
|
|
3511
3499
|
}, function (error) {
|
|
3512
3500
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3513
3501
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|
package/lib/handle-user.js
CHANGED
|
@@ -2523,7 +2523,6 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2523
2523
|
* @author huangbo
|
|
2524
2524
|
* @date 2022年5月7日
|
|
2525
2525
|
* @param {String} [url] - 连接地址
|
|
2526
|
-
* @param {String} [send] - 是否发送消息
|
|
2527
2526
|
* @param {String} [take] - 订阅地址
|
|
2528
2527
|
* @param {String} [debug] - 调试
|
|
2529
2528
|
* @param {String} [interval] - 重连间隔时间
|
|
@@ -2531,16 +2530,8 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2531
2530
|
* @param {Function} [error] - 重连间隔时间
|
|
2532
2531
|
**/
|
|
2533
2532
|
function socket(option, vm) {
|
|
2534
|
-
var options = {};
|
|
2535
|
-
for (var i in option) {
|
|
2536
|
-
if (i === 'send') {
|
|
2537
|
-
options['isSend'] = option[i];
|
|
2538
|
-
} else {
|
|
2539
|
-
options[i] = option[i];
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
2533
|
var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
|
|
2543
|
-
socket.init(
|
|
2534
|
+
socket.init(option, vm);
|
|
2544
2535
|
return socket;
|
|
2545
2536
|
}
|
|
2546
2537
|
/**
|
|
@@ -3782,7 +3773,6 @@ var WebSocket = function () {
|
|
|
3782
3773
|
this.connects = 1;
|
|
3783
3774
|
this.recon = false;
|
|
3784
3775
|
this.sendTimeout = null;
|
|
3785
|
-
this.isSend = false;
|
|
3786
3776
|
}
|
|
3787
3777
|
|
|
3788
3778
|
/** socket连接 */
|
|
@@ -3810,9 +3800,7 @@ var WebSocket = function () {
|
|
|
3810
3800
|
// tryTimes定义重置
|
|
3811
3801
|
_this.connects = 1;
|
|
3812
3802
|
// 订阅消息
|
|
3813
|
-
// if (!this.isSend) {
|
|
3814
3803
|
_this.subscribe();
|
|
3815
|
-
// }
|
|
3816
3804
|
}, function (error) {
|
|
3817
3805
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3818
3806
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|
package/lib/handler.js
CHANGED
|
@@ -2523,7 +2523,6 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2523
2523
|
* @author huangbo
|
|
2524
2524
|
* @date 2022年5月7日
|
|
2525
2525
|
* @param {String} [url] - 连接地址
|
|
2526
|
-
* @param {String} [send] - 是否发送消息
|
|
2527
2526
|
* @param {String} [take] - 订阅地址
|
|
2528
2527
|
* @param {String} [debug] - 调试
|
|
2529
2528
|
* @param {String} [interval] - 重连间隔时间
|
|
@@ -2531,16 +2530,8 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2531
2530
|
* @param {Function} [error] - 重连间隔时间
|
|
2532
2531
|
**/
|
|
2533
2532
|
function socket(option, vm) {
|
|
2534
|
-
var options = {};
|
|
2535
|
-
for (var i in option) {
|
|
2536
|
-
if (i === 'send') {
|
|
2537
|
-
options['isSend'] = option[i];
|
|
2538
|
-
} else {
|
|
2539
|
-
options[i] = option[i];
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
2533
|
var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
|
|
2543
|
-
socket.init(
|
|
2534
|
+
socket.init(option, vm);
|
|
2544
2535
|
return socket;
|
|
2545
2536
|
}
|
|
2546
2537
|
/**
|
|
@@ -4021,7 +4012,6 @@ var WebSocket = function () {
|
|
|
4021
4012
|
this.connects = 1;
|
|
4022
4013
|
this.recon = false;
|
|
4023
4014
|
this.sendTimeout = null;
|
|
4024
|
-
this.isSend = false;
|
|
4025
4015
|
}
|
|
4026
4016
|
|
|
4027
4017
|
/** socket连接 */
|
|
@@ -4049,9 +4039,7 @@ var WebSocket = function () {
|
|
|
4049
4039
|
// tryTimes定义重置
|
|
4050
4040
|
_this.connects = 1;
|
|
4051
4041
|
// 订阅消息
|
|
4052
|
-
// if (!this.isSend) {
|
|
4053
4042
|
_this.subscribe();
|
|
4054
|
-
// }
|
|
4055
4043
|
}, function (error) {
|
|
4056
4044
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
4057
4045
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|