eoss-ui 0.5.28 → 0.5.30
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 +196 -203
- package/lib/button.js +11 -5
- package/lib/card.js +2 -2
- package/lib/checkbox-group.js +14 -8
- package/lib/clients.js +2 -2
- package/lib/data-table-form.js +8 -3
- package/lib/data-table.js +139 -309
- package/lib/date-picker.js +8 -3
- package/lib/dialog.js +17 -11
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +389 -323
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +10 -5
- package/lib/flow-list.js +10 -5
- package/lib/flow.js +8 -3
- package/lib/form.js +11 -5
- package/lib/handle-user.js +10 -5
- package/lib/handler.js +10 -5
- package/lib/icons.js +4 -4
- package/lib/index.js +1 -1
- package/lib/input-number.js +8 -3
- package/lib/input.js +8 -3
- package/lib/layout.js +152 -166
- package/lib/login.js +11 -5
- package/lib/main.js +20 -14
- package/lib/nav.js +8 -3
- package/lib/page.js +8 -3
- package/lib/player.js +14 -9
- package/lib/qr-code.js +10 -5
- package/lib/radio-group.js +10 -5
- package/lib/retrial-auth.js +8 -3
- package/lib/select-ganged.js +10 -5
- package/lib/select.js +10 -5
- package/lib/selector-panel.js +11 -6
- package/lib/selector.js +38 -20
- package/lib/sizer.js +8 -3
- package/lib/steps.js +8 -3
- package/lib/switch.js +8 -3
- package/lib/table-form.js +8 -3
- package/lib/tabs.js +8 -3
- package/lib/theme-chalk/button.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +8 -3
- package/lib/tree-group.js +8 -3
- package/lib/tree.js +8 -3
- package/lib/upload.js +14 -8
- package/lib/utils/util.js +8 -3
- package/lib/wujie.js +8 -3
- package/lib/wxlogin.js +8 -3
- package/package.json +2 -2
- package/packages/button/src/main.vue +4 -2
- package/packages/data-table/src/main.vue +59 -13
- package/packages/main/src/userinfo.vue +5 -1
- package/packages/selector/src/main.vue +15 -13
- package/packages/theme-chalk/lib/button.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/button.scss +8 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +11 -3
package/lib/button-group.js
CHANGED
|
@@ -82,11 +82,12 @@ 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 = 37);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
|
-
/******/ (
|
|
89
|
-
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ 0:
|
|
90
91
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
91
92
|
|
|
92
93
|
"use strict";
|
|
@@ -239,16 +240,21 @@ var ajax = function ajax(_ref) {
|
|
|
239
240
|
delPendingRequest(response.config);
|
|
240
241
|
loading && loading.close();
|
|
241
242
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
242
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
243
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
243
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
244
244
|
localStorage.setItem('token', response.headers.authorization);
|
|
245
245
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
246
246
|
} else {
|
|
247
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
248
247
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
249
248
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
250
249
|
}
|
|
251
250
|
}
|
|
251
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
252
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
253
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
254
|
+
} else {
|
|
255
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
252
258
|
if (response.status === 200) {
|
|
253
259
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
254
260
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
@@ -2971,7 +2977,8 @@ var watermark = function watermark(option) {
|
|
|
2971
2977
|
});
|
|
2972
2978
|
|
|
2973
2979
|
/***/ }),
|
|
2974
|
-
|
|
2980
|
+
|
|
2981
|
+
/***/ 1:
|
|
2975
2982
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2976
2983
|
|
|
2977
2984
|
"use strict";
|
|
@@ -3312,13 +3319,22 @@ var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
|
|
|
3312
3319
|
var formContents = '/config/admin/online/onlineForm/render';
|
|
3313
3320
|
|
|
3314
3321
|
/***/ }),
|
|
3315
|
-
|
|
3322
|
+
|
|
3323
|
+
/***/ 10:
|
|
3324
|
+
/***/ (function(module, exports) {
|
|
3325
|
+
|
|
3326
|
+
module.exports = require("sm-crypto");
|
|
3327
|
+
|
|
3328
|
+
/***/ }),
|
|
3329
|
+
|
|
3330
|
+
/***/ 2:
|
|
3316
3331
|
/***/ (function(module, exports) {
|
|
3317
3332
|
|
|
3318
3333
|
module.exports = require("eoss-element");
|
|
3319
3334
|
|
|
3320
3335
|
/***/ }),
|
|
3321
|
-
|
|
3336
|
+
|
|
3337
|
+
/***/ 3:
|
|
3322
3338
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3323
3339
|
|
|
3324
3340
|
"use strict";
|
|
@@ -3422,200 +3438,8 @@ function normalizeComponent(
|
|
|
3422
3438
|
|
|
3423
3439
|
|
|
3424
3440
|
/***/ }),
|
|
3425
|
-
/* 4 */
|
|
3426
|
-
/***/ (function(module, exports) {
|
|
3427
|
-
|
|
3428
|
-
module.exports = require("qs");
|
|
3429
|
-
|
|
3430
|
-
/***/ }),
|
|
3431
|
-
/* 5 */
|
|
3432
|
-
/***/ (function(module, exports) {
|
|
3433
|
-
|
|
3434
|
-
module.exports = require("axios");
|
|
3435
|
-
|
|
3436
|
-
/***/ }),
|
|
3437
|
-
/* 6 */
|
|
3438
|
-
/***/ (function(module, exports) {
|
|
3439
|
-
|
|
3440
|
-
module.exports = require("json-bigint");
|
|
3441
|
-
|
|
3442
|
-
/***/ }),
|
|
3443
|
-
/* 7 */
|
|
3444
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3445
|
-
|
|
3446
|
-
"use strict";
|
|
3447
|
-
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
3448
|
-
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
|
|
3449
|
-
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
|
3450
|
-
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
|
|
3451
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
var WebSocket = function () {
|
|
3457
|
-
// 构造函数
|
|
3458
|
-
function WebSocket() {
|
|
3459
|
-
_classCallCheck(this, WebSocket);
|
|
3460
|
-
|
|
3461
|
-
this.host = sessionStorage.getItem('wshost') || '';
|
|
3462
|
-
this.tryTimes = 1; // 重连次数
|
|
3463
|
-
this.callback = null; // 回调函数
|
|
3464
|
-
this.client = null; // stomp对象
|
|
3465
|
-
this.reconTimeout = null; // 重连延时器
|
|
3466
|
-
this.debug = true; // 调试
|
|
3467
|
-
this.interval = 20; // 重连间隔时间
|
|
3468
|
-
this.vm = null;
|
|
3469
|
-
this.nextDate = 0;
|
|
3470
|
-
this.connects = 1;
|
|
3471
|
-
this.recon = false;
|
|
3472
|
-
this.sendTimeout = null;
|
|
3473
|
-
}
|
|
3474
|
-
|
|
3475
|
-
/** socket连接 */
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
WebSocket.prototype.connect = function connect() {
|
|
3479
|
-
var _this = this;
|
|
3480
|
-
|
|
3481
|
-
if (!this.client) {
|
|
3482
|
-
// 连接SockJS
|
|
3483
|
-
var socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url);
|
|
3484
|
-
// 获取STOMP子协议的客户端对象
|
|
3485
|
-
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(socket);
|
|
3486
|
-
}
|
|
3487
|
-
|
|
3488
|
-
// 日志不打印
|
|
3489
|
-
if (!this.debug) {
|
|
3490
|
-
console.log(111);
|
|
3491
|
-
this.client.debug = function () {};
|
|
3492
|
-
}
|
|
3493
|
-
|
|
3494
|
-
// 向服务器发起websocket连接
|
|
3495
|
-
this.client.connect({}, function () {
|
|
3496
|
-
_this.recon = true;
|
|
3497
|
-
// tryTimes定义重置
|
|
3498
|
-
_this.connects = 1;
|
|
3499
|
-
// 订阅消息
|
|
3500
|
-
_this.subscribe();
|
|
3501
|
-
}, function (error) {
|
|
3502
|
-
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3503
|
-
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
3504
|
-
_this.client.disconnect();
|
|
3505
|
-
_this.error && _this.error(error);
|
|
3506
|
-
} else {
|
|
3507
|
-
_this.reconTimeout = setTimeout(function () {
|
|
3508
|
-
_this.connect();
|
|
3509
|
-
_this.connects++;
|
|
3510
|
-
}, 5000);
|
|
3511
|
-
}
|
|
3512
|
-
});
|
|
3513
|
-
};
|
|
3514
|
-
/** 订阅服务端 */
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
WebSocket.prototype.subscribe = function subscribe() {
|
|
3518
|
-
var _this2 = this;
|
|
3519
|
-
|
|
3520
|
-
// 订阅服务端提供的某个topic
|
|
3521
|
-
this.client.subscribe(this.take, function (response) {
|
|
3522
|
-
if (response && (_this2.callback || _this2.success)) {
|
|
3523
|
-
var callback = _this2.callback || _this2.success;
|
|
3524
|
-
callback(JSON.parse(response.body));
|
|
3525
|
-
}
|
|
3526
|
-
});
|
|
3527
|
-
};
|
|
3528
|
-
|
|
3529
|
-
/** 赋值、初始化socket */
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
WebSocket.prototype.init = function init(option, vm) {
|
|
3533
|
-
for (var i in option) {
|
|
3534
|
-
this[i] = option[i];
|
|
3535
|
-
}
|
|
3536
|
-
this.vm = vm;
|
|
3537
|
-
// 初始化连接
|
|
3538
|
-
this.connect();
|
|
3539
|
-
};
|
|
3540
|
-
|
|
3541
|
-
/** 发送消息 */
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
WebSocket.prototype.send = function send(data) {
|
|
3545
|
-
var _this3 = this;
|
|
3546
|
-
|
|
3547
|
-
if (this.recon) {
|
|
3548
|
-
clearTimeout(this.sendTimeout);
|
|
3549
|
-
this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
|
|
3550
|
-
} else {
|
|
3551
|
-
this.sendTimeout = setTimeout(function () {
|
|
3552
|
-
_this3.send(data);
|
|
3553
|
-
}, 1000);
|
|
3554
|
-
}
|
|
3555
|
-
};
|
|
3556
|
-
|
|
3557
|
-
/** 销毁 */
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
WebSocket.prototype.destroy = function destroy() {
|
|
3561
|
-
// 断开连接,清除定时器
|
|
3562
|
-
if (this.client) {
|
|
3563
|
-
this.client.disconnect();
|
|
3564
|
-
};
|
|
3565
|
-
this.reconTimeout && clearTimeout(this.reconTimeout);
|
|
3566
|
-
this.sendTimeout && clearTimeout(this.sendTimeout);
|
|
3567
|
-
};
|
|
3568
|
-
|
|
3569
|
-
return WebSocket;
|
|
3570
|
-
}();
|
|
3571
|
-
|
|
3572
|
-
/* harmony default export */ __webpack_exports__["a"] = (WebSocket);
|
|
3573
|
-
|
|
3574
|
-
/***/ }),
|
|
3575
|
-
/* 8 */
|
|
3576
|
-
/***/ (function(module, exports) {
|
|
3577
|
-
|
|
3578
|
-
module.exports = require("sockjs-client");
|
|
3579
|
-
|
|
3580
|
-
/***/ }),
|
|
3581
|
-
/* 9 */
|
|
3582
|
-
/***/ (function(module, exports) {
|
|
3583
|
-
|
|
3584
|
-
module.exports = require("stompjs");
|
|
3585
|
-
|
|
3586
|
-
/***/ }),
|
|
3587
|
-
/* 10 */
|
|
3588
|
-
/***/ (function(module, exports) {
|
|
3589
|
-
|
|
3590
|
-
module.exports = require("sm-crypto");
|
|
3591
3441
|
|
|
3592
|
-
/***/
|
|
3593
|
-
/* 11 */,
|
|
3594
|
-
/* 12 */,
|
|
3595
|
-
/* 13 */,
|
|
3596
|
-
/* 14 */,
|
|
3597
|
-
/* 15 */,
|
|
3598
|
-
/* 16 */,
|
|
3599
|
-
/* 17 */,
|
|
3600
|
-
/* 18 */,
|
|
3601
|
-
/* 19 */,
|
|
3602
|
-
/* 20 */,
|
|
3603
|
-
/* 21 */,
|
|
3604
|
-
/* 22 */,
|
|
3605
|
-
/* 23 */,
|
|
3606
|
-
/* 24 */,
|
|
3607
|
-
/* 25 */,
|
|
3608
|
-
/* 26 */,
|
|
3609
|
-
/* 27 */,
|
|
3610
|
-
/* 28 */,
|
|
3611
|
-
/* 29 */,
|
|
3612
|
-
/* 30 */,
|
|
3613
|
-
/* 31 */,
|
|
3614
|
-
/* 32 */,
|
|
3615
|
-
/* 33 */,
|
|
3616
|
-
/* 34 */,
|
|
3617
|
-
/* 35 */,
|
|
3618
|
-
/* 36 */
|
|
3442
|
+
/***/ 37:
|
|
3619
3443
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3620
3444
|
|
|
3621
3445
|
"use strict";
|
|
@@ -3884,5 +3708,174 @@ main.install = function (Vue) {
|
|
|
3884
3708
|
|
|
3885
3709
|
/* harmony default export */ var button_group = __webpack_exports__["default"] = (main);
|
|
3886
3710
|
|
|
3711
|
+
/***/ }),
|
|
3712
|
+
|
|
3713
|
+
/***/ 4:
|
|
3714
|
+
/***/ (function(module, exports) {
|
|
3715
|
+
|
|
3716
|
+
module.exports = require("qs");
|
|
3717
|
+
|
|
3718
|
+
/***/ }),
|
|
3719
|
+
|
|
3720
|
+
/***/ 5:
|
|
3721
|
+
/***/ (function(module, exports) {
|
|
3722
|
+
|
|
3723
|
+
module.exports = require("axios");
|
|
3724
|
+
|
|
3725
|
+
/***/ }),
|
|
3726
|
+
|
|
3727
|
+
/***/ 6:
|
|
3728
|
+
/***/ (function(module, exports) {
|
|
3729
|
+
|
|
3730
|
+
module.exports = require("json-bigint");
|
|
3731
|
+
|
|
3732
|
+
/***/ }),
|
|
3733
|
+
|
|
3734
|
+
/***/ 7:
|
|
3735
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3736
|
+
|
|
3737
|
+
"use strict";
|
|
3738
|
+
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
3739
|
+
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
|
|
3740
|
+
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
|
3741
|
+
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
|
|
3742
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3743
|
+
|
|
3744
|
+
|
|
3745
|
+
|
|
3746
|
+
|
|
3747
|
+
var WebSocket = function () {
|
|
3748
|
+
// 构造函数
|
|
3749
|
+
function WebSocket() {
|
|
3750
|
+
_classCallCheck(this, WebSocket);
|
|
3751
|
+
|
|
3752
|
+
this.host = sessionStorage.getItem('wshost') || '';
|
|
3753
|
+
this.tryTimes = 1; // 重连次数
|
|
3754
|
+
this.callback = null; // 回调函数
|
|
3755
|
+
this.client = null; // stomp对象
|
|
3756
|
+
this.reconTimeout = null; // 重连延时器
|
|
3757
|
+
this.debug = true; // 调试
|
|
3758
|
+
this.interval = 20; // 重连间隔时间
|
|
3759
|
+
this.vm = null;
|
|
3760
|
+
this.nextDate = 0;
|
|
3761
|
+
this.connects = 1;
|
|
3762
|
+
this.recon = false;
|
|
3763
|
+
this.sendTimeout = null;
|
|
3764
|
+
}
|
|
3765
|
+
|
|
3766
|
+
/** socket连接 */
|
|
3767
|
+
|
|
3768
|
+
|
|
3769
|
+
WebSocket.prototype.connect = function connect() {
|
|
3770
|
+
var _this = this;
|
|
3771
|
+
|
|
3772
|
+
if (!this.client) {
|
|
3773
|
+
// 连接SockJS
|
|
3774
|
+
var socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url);
|
|
3775
|
+
// 获取STOMP子协议的客户端对象
|
|
3776
|
+
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(socket);
|
|
3777
|
+
}
|
|
3778
|
+
|
|
3779
|
+
// 日志不打印
|
|
3780
|
+
if (!this.debug) {
|
|
3781
|
+
console.log(111);
|
|
3782
|
+
this.client.debug = function () {};
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
// 向服务器发起websocket连接
|
|
3786
|
+
this.client.connect({}, function () {
|
|
3787
|
+
_this.recon = true;
|
|
3788
|
+
// tryTimes定义重置
|
|
3789
|
+
_this.connects = 1;
|
|
3790
|
+
// 订阅消息
|
|
3791
|
+
_this.subscribe();
|
|
3792
|
+
}, function (error) {
|
|
3793
|
+
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3794
|
+
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
3795
|
+
_this.client.disconnect();
|
|
3796
|
+
_this.error && _this.error(error);
|
|
3797
|
+
} else {
|
|
3798
|
+
_this.reconTimeout = setTimeout(function () {
|
|
3799
|
+
_this.connect();
|
|
3800
|
+
_this.connects++;
|
|
3801
|
+
}, 5000);
|
|
3802
|
+
}
|
|
3803
|
+
});
|
|
3804
|
+
};
|
|
3805
|
+
/** 订阅服务端 */
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
WebSocket.prototype.subscribe = function subscribe() {
|
|
3809
|
+
var _this2 = this;
|
|
3810
|
+
|
|
3811
|
+
// 订阅服务端提供的某个topic
|
|
3812
|
+
this.client.subscribe(this.take, function (response) {
|
|
3813
|
+
if (response && (_this2.callback || _this2.success)) {
|
|
3814
|
+
var callback = _this2.callback || _this2.success;
|
|
3815
|
+
callback(JSON.parse(response.body));
|
|
3816
|
+
}
|
|
3817
|
+
});
|
|
3818
|
+
};
|
|
3819
|
+
|
|
3820
|
+
/** 赋值、初始化socket */
|
|
3821
|
+
|
|
3822
|
+
|
|
3823
|
+
WebSocket.prototype.init = function init(option, vm) {
|
|
3824
|
+
for (var i in option) {
|
|
3825
|
+
this[i] = option[i];
|
|
3826
|
+
}
|
|
3827
|
+
this.vm = vm;
|
|
3828
|
+
// 初始化连接
|
|
3829
|
+
this.connect();
|
|
3830
|
+
};
|
|
3831
|
+
|
|
3832
|
+
/** 发送消息 */
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
WebSocket.prototype.send = function send(data) {
|
|
3836
|
+
var _this3 = this;
|
|
3837
|
+
|
|
3838
|
+
if (this.recon) {
|
|
3839
|
+
clearTimeout(this.sendTimeout);
|
|
3840
|
+
this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
|
|
3841
|
+
} else {
|
|
3842
|
+
this.sendTimeout = setTimeout(function () {
|
|
3843
|
+
_this3.send(data);
|
|
3844
|
+
}, 1000);
|
|
3845
|
+
}
|
|
3846
|
+
};
|
|
3847
|
+
|
|
3848
|
+
/** 销毁 */
|
|
3849
|
+
|
|
3850
|
+
|
|
3851
|
+
WebSocket.prototype.destroy = function destroy() {
|
|
3852
|
+
// 断开连接,清除定时器
|
|
3853
|
+
if (this.client) {
|
|
3854
|
+
this.client.disconnect();
|
|
3855
|
+
};
|
|
3856
|
+
this.reconTimeout && clearTimeout(this.reconTimeout);
|
|
3857
|
+
this.sendTimeout && clearTimeout(this.sendTimeout);
|
|
3858
|
+
};
|
|
3859
|
+
|
|
3860
|
+
return WebSocket;
|
|
3861
|
+
}();
|
|
3862
|
+
|
|
3863
|
+
/* harmony default export */ __webpack_exports__["a"] = (WebSocket);
|
|
3864
|
+
|
|
3865
|
+
/***/ }),
|
|
3866
|
+
|
|
3867
|
+
/***/ 8:
|
|
3868
|
+
/***/ (function(module, exports) {
|
|
3869
|
+
|
|
3870
|
+
module.exports = require("sockjs-client");
|
|
3871
|
+
|
|
3872
|
+
/***/ }),
|
|
3873
|
+
|
|
3874
|
+
/***/ 9:
|
|
3875
|
+
/***/ (function(module, exports) {
|
|
3876
|
+
|
|
3877
|
+
module.exports = require("stompjs");
|
|
3878
|
+
|
|
3887
3879
|
/***/ })
|
|
3888
|
-
|
|
3880
|
+
|
|
3881
|
+
/******/ });
|
package/lib/button.js
CHANGED
|
@@ -240,16 +240,21 @@ var ajax = function ajax(_ref) {
|
|
|
240
240
|
delPendingRequest(response.config);
|
|
241
241
|
loading && loading.close();
|
|
242
242
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
243
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
244
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
243
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
245
244
|
localStorage.setItem('token', response.headers.authorization);
|
|
246
245
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
247
246
|
} else {
|
|
248
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
249
247
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
250
248
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
251
249
|
}
|
|
252
250
|
}
|
|
251
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
252
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
253
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
254
|
+
} else {
|
|
255
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
253
258
|
if (response.status === 200) {
|
|
254
259
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
255
260
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
@@ -3517,7 +3522,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3517
3522
|
syncKeys: Object,
|
|
3518
3523
|
text: String,
|
|
3519
3524
|
onClick: Function,
|
|
3520
|
-
badge: [Object, Number]
|
|
3525
|
+
badge: [Object, Number],
|
|
3526
|
+
float: String
|
|
3521
3527
|
},
|
|
3522
3528
|
computed: {
|
|
3523
3529
|
_type: function _type() {
|
|
@@ -3707,7 +3713,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3707
3713
|
var link = this.param ? util["a" /* default */].urlJoinParams({ url: this.link, param: this.param }) : this.link;
|
|
3708
3714
|
attrs = { href: link };
|
|
3709
3715
|
tag = 'a';
|
|
3710
|
-
clas = clas.concat(['el-button', this._type ? 'el-button--' + this._type : 'el-button--default', this.size ? 'el-button--' + this.size : '']);
|
|
3716
|
+
clas = clas.concat(['el-button', this._type ? 'el-button--' + this._type : 'el-button--default', this.size ? 'el-button--' + this.size : '', this.float ? 'es-button--' + this.float : '']);
|
|
3711
3717
|
}
|
|
3712
3718
|
if (this.badge) {
|
|
3713
3719
|
var config = {};
|
package/lib/card.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 = 39);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,7 +192,7 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 39:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|
package/lib/checkbox-group.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 = 38);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ([
|
|
@@ -239,16 +239,21 @@ var ajax = function ajax(_ref) {
|
|
|
239
239
|
delPendingRequest(response.config);
|
|
240
240
|
loading && loading.close();
|
|
241
241
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
242
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
243
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
242
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
244
243
|
localStorage.setItem('token', response.headers.authorization);
|
|
245
244
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
246
245
|
} else {
|
|
247
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
248
246
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
249
247
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
250
248
|
}
|
|
251
249
|
}
|
|
250
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
251
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
252
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
253
|
+
} else {
|
|
254
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
252
257
|
if (response.status === 200) {
|
|
253
258
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
254
259
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
@@ -3623,20 +3628,20 @@ window.__store = store;
|
|
|
3623
3628
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3624
3629
|
|
|
3625
3630
|
"use strict";
|
|
3626
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
3631
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
|
|
3627
3632
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
3628
3633
|
|
|
3629
3634
|
|
|
3630
3635
|
/* harmony default export */ __webpack_exports__["a"] = (new vue__WEBPACK_IMPORTED_MODULE_0___default.a());
|
|
3631
3636
|
|
|
3632
3637
|
/***/ }),
|
|
3633
|
-
/* 15
|
|
3634
|
-
/* 16 */
|
|
3638
|
+
/* 15 */
|
|
3635
3639
|
/***/ (function(module, exports) {
|
|
3636
3640
|
|
|
3637
3641
|
module.exports = require("vue");
|
|
3638
3642
|
|
|
3639
3643
|
/***/ }),
|
|
3644
|
+
/* 16 */,
|
|
3640
3645
|
/* 17 */,
|
|
3641
3646
|
/* 18 */,
|
|
3642
3647
|
/* 19 */,
|
|
@@ -3657,7 +3662,8 @@ module.exports = require("vue");
|
|
|
3657
3662
|
/* 34 */,
|
|
3658
3663
|
/* 35 */,
|
|
3659
3664
|
/* 36 */,
|
|
3660
|
-
/* 37
|
|
3665
|
+
/* 37 */,
|
|
3666
|
+
/* 38 */
|
|
3661
3667
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3662
3668
|
|
|
3663
3669
|
"use strict";
|
package/lib/clients.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 = 40);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,7 +192,7 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 40:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|
package/lib/data-table-form.js
CHANGED
|
@@ -239,16 +239,21 @@ var ajax = function ajax(_ref) {
|
|
|
239
239
|
delPendingRequest(response.config);
|
|
240
240
|
loading && loading.close();
|
|
241
241
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
242
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
243
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
242
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
244
243
|
localStorage.setItem('token', response.headers.authorization);
|
|
245
244
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
246
245
|
} else {
|
|
247
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
248
246
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
249
247
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
250
248
|
}
|
|
251
249
|
}
|
|
250
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
251
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
252
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
253
|
+
} else {
|
|
254
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
252
257
|
if (response.status === 200) {
|
|
253
258
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
254
259
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|