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/button-group.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/button.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
|
/**
|
|
@@ -3793,7 +3784,6 @@ var WebSocket = function () {
|
|
|
3793
3784
|
this.connects = 1;
|
|
3794
3785
|
this.recon = false;
|
|
3795
3786
|
this.sendTimeout = null;
|
|
3796
|
-
this.isSend = false;
|
|
3797
3787
|
}
|
|
3798
3788
|
|
|
3799
3789
|
/** socket连接 */
|
|
@@ -3821,9 +3811,7 @@ var WebSocket = function () {
|
|
|
3821
3811
|
// tryTimes定义重置
|
|
3822
3812
|
_this.connects = 1;
|
|
3823
3813
|
// 订阅消息
|
|
3824
|
-
// if (!this.isSend) {
|
|
3825
3814
|
_this.subscribe();
|
|
3826
|
-
// }
|
|
3827
3815
|
}, function (error) {
|
|
3828
3816
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3829
3817
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|
package/lib/checkbox-group.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/data-table-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/data-table.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) {
|
|
@@ -3647,8 +3635,8 @@ module.exports = require("vue");
|
|
|
3647
3635
|
// ESM COMPAT FLAG
|
|
3648
3636
|
__webpack_require__.r(__webpack_exports__);
|
|
3649
3637
|
|
|
3650
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=
|
|
3651
|
-
var
|
|
3638
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=1d557e20&
|
|
3639
|
+
var mainvue_type_template_id_1d557e20_render = function () {
|
|
3652
3640
|
var _vm = this
|
|
3653
3641
|
var _h = _vm.$createElement
|
|
3654
3642
|
var _c = _vm._self._c || _h
|
|
@@ -3985,10 +3973,10 @@ var mainvue_type_template_id_094be154_render = function () {
|
|
|
3985
3973
|
)
|
|
3986
3974
|
}
|
|
3987
3975
|
var staticRenderFns = []
|
|
3988
|
-
|
|
3976
|
+
mainvue_type_template_id_1d557e20_render._withStripped = true
|
|
3989
3977
|
|
|
3990
3978
|
|
|
3991
|
-
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=
|
|
3979
|
+
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=1d557e20&
|
|
3992
3980
|
|
|
3993
3981
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
3994
3982
|
var api = __webpack_require__(1);
|
|
@@ -6695,7 +6683,13 @@ var mainvue_type_script_lang_js_components;
|
|
|
6695
6683
|
type: Boolean,
|
|
6696
6684
|
default: true
|
|
6697
6685
|
},
|
|
6698
|
-
zoom: false
|
|
6686
|
+
zoom: false,
|
|
6687
|
+
exportExcludeLabel: {
|
|
6688
|
+
type: Array,
|
|
6689
|
+
default: function _default() {
|
|
6690
|
+
return [];
|
|
6691
|
+
}
|
|
6692
|
+
}
|
|
6699
6693
|
},
|
|
6700
6694
|
data: function data() {
|
|
6701
6695
|
return {
|
|
@@ -6845,6 +6839,12 @@ var mainvue_type_script_lang_js_components;
|
|
|
6845
6839
|
this.config = util["a" /* default */].extend({}, this.config, this.page);
|
|
6846
6840
|
}
|
|
6847
6841
|
},
|
|
6842
|
+
'config.pageNum': function configPageNum() {
|
|
6843
|
+
if (this.data.length) {
|
|
6844
|
+
this.$refs.oaTable.resetScroll(0, 0);
|
|
6845
|
+
}
|
|
6846
|
+
},
|
|
6847
|
+
|
|
6848
6848
|
height: {
|
|
6849
6849
|
immediate: true,
|
|
6850
6850
|
handler: function handler(val) {
|
|
@@ -7077,10 +7077,10 @@ var mainvue_type_script_lang_js_components;
|
|
|
7077
7077
|
this.config.pageNum = 1;
|
|
7078
7078
|
}
|
|
7079
7079
|
this.tableLoadingText = '加载中...';
|
|
7080
|
-
var reqData = util["a" /* default */].extend({}, this.param, {
|
|
7080
|
+
var reqData = util["a" /* default */].extend({}, this.param, this.page ? {
|
|
7081
7081
|
pageNum: this.config.pageNum,
|
|
7082
7082
|
pageSize: this.config.pageSize
|
|
7083
|
-
});
|
|
7083
|
+
} : {});
|
|
7084
7084
|
if (where) {
|
|
7085
7085
|
reqData = util["a" /* default */].extend({}, reqData, where);
|
|
7086
7086
|
}
|
|
@@ -7094,6 +7094,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
7094
7094
|
}).then(function (res) {
|
|
7095
7095
|
_this7.tableLoading = false;
|
|
7096
7096
|
if (res.rCode === 0 || res.status === 'success') {
|
|
7097
|
+
_this7.$refs.oaTable.resetScroll(0, 0);
|
|
7097
7098
|
var results = _this7.parseData !== undefined ? _this7.parseData(res.results || res.data || res) : res.results || res.data;
|
|
7098
7099
|
_this7.list = results.data || results.records || results.list || [];
|
|
7099
7100
|
_this7.config.totalCount = results.count || results.total || results.totalCount;
|
|
@@ -7379,9 +7380,10 @@ var mainvue_type_script_lang_js_components;
|
|
|
7379
7380
|
if (this.theads[this.theads.length - 1] && this.theads[this.theads.length - 1].type === 'handle') {
|
|
7380
7381
|
text = this.theads[this.theads.length - 1].title;
|
|
7381
7382
|
}
|
|
7383
|
+
var type = ['selection', 'index', 'expand'];
|
|
7382
7384
|
thead = thead.map(function (item) {
|
|
7383
7385
|
return item.filter(function (ele) {
|
|
7384
|
-
return ele.label !== text && ele.label;
|
|
7386
|
+
return !type.includes(ele.type) && ele.label !== text && !_this9.exportExcludeLabel.includes(ele.label);
|
|
7385
7387
|
});
|
|
7386
7388
|
});
|
|
7387
7389
|
util["a" /* default */].exportXls({
|
|
@@ -7570,7 +7572,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
7570
7572
|
|
|
7571
7573
|
var main_component = Object(componentNormalizer["a" /* default */])(
|
|
7572
7574
|
src_mainvue_type_script_lang_js_,
|
|
7573
|
-
|
|
7575
|
+
mainvue_type_template_id_1d557e20_render,
|
|
7574
7576
|
staticRenderFns,
|
|
7575
7577
|
false,
|
|
7576
7578
|
null,
|
package/lib/date-picker.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
|
/**
|
|
@@ -3492,7 +3483,6 @@ var WebSocket = function () {
|
|
|
3492
3483
|
this.connects = 1;
|
|
3493
3484
|
this.recon = false;
|
|
3494
3485
|
this.sendTimeout = null;
|
|
3495
|
-
this.isSend = false;
|
|
3496
3486
|
}
|
|
3497
3487
|
|
|
3498
3488
|
/** socket连接 */
|
|
@@ -3520,9 +3510,7 @@ var WebSocket = function () {
|
|
|
3520
3510
|
// tryTimes定义重置
|
|
3521
3511
|
_this.connects = 1;
|
|
3522
3512
|
// 订阅消息
|
|
3523
|
-
// if (!this.isSend) {
|
|
3524
3513
|
_this.subscribe();
|
|
3525
|
-
// }
|
|
3526
3514
|
}, function (error) {
|
|
3527
3515
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3528
3516
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|
package/lib/dialog.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) {
|