eoss-ui 0.5.72 → 0.5.74
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 +16 -6
- package/lib/button.js +16 -6
- package/lib/checkbox-group.js +16 -6
- package/lib/clients.js +16 -7
- package/lib/data-table-form.js +16 -6
- package/lib/data-table.js +31 -13
- package/lib/date-picker.js +16 -6
- package/lib/dialog.js +16 -6
- package/lib/eoss-ui.common.js +252 -115
- package/lib/flow-group.js +16 -6
- package/lib/flow-list.js +16 -6
- package/lib/flow.js +16 -6
- package/lib/form.js +16 -6
- package/lib/handle-user.js +16 -6
- package/lib/handler.js +16 -6
- package/lib/index.js +1 -1
- package/lib/input-number.js +16 -6
- package/lib/input.js +16 -6
- package/lib/login.js +24 -14
- package/lib/main.js +128 -40
- package/lib/menu.js +3 -0
- package/lib/nav.js +73 -25
- package/lib/page.js +16 -6
- package/lib/player.js +16 -6
- package/lib/qr-code.js +16 -6
- package/lib/radio-group.js +16 -6
- package/lib/retrial-auth.js +16 -6
- package/lib/select-ganged.js +16 -6
- package/lib/select.js +17 -6
- package/lib/selector-panel.js +16 -6
- package/lib/selector.js +19 -9
- package/lib/sizer.js +16 -6
- package/lib/steps.js +16 -6
- package/lib/switch.js +16 -6
- package/lib/table-form.js +16 -6
- package/lib/tabs.js +16 -6
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/nav.css +1 -1
- package/lib/tips.js +16 -6
- package/lib/tree-group.js +16 -6
- package/lib/tree.js +19 -9
- package/lib/upload.js +16 -6
- package/lib/utils/webSocket.js +16 -6
- package/lib/wujie.js +16 -6
- package/lib/wxlogin.js +16 -6
- package/package.json +2 -2
- package/packages/clients/src/main.vue +3 -1
- package/packages/data-table/src/main.vue +9 -7
- package/packages/login/src/resetPassword.vue +1 -1
- package/packages/main/src/main.vue +53 -14
- package/packages/menu/src/main.vue +3 -0
- package/packages/nav/src/main.vue +37 -8
- package/packages/select/src/main.vue +1 -0
- package/packages/selector/src/main.vue +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/nav.css +1 -1
- package/packages/theme-chalk/src/main.scss +3 -1
- package/packages/theme-chalk/src/nav.scss +4 -1
- package/packages/tree/src/main.vue +1 -1
- package/src/index.js +1 -1
- package/src/utils/webSocket.js +14 -7
package/lib/input-number.js
CHANGED
|
@@ -3658,6 +3658,8 @@ var WebSocket = function () {
|
|
|
3658
3658
|
this.connects = 1;
|
|
3659
3659
|
this.recon = false;
|
|
3660
3660
|
this.sendTimeout = null;
|
|
3661
|
+
this.socket = null;
|
|
3662
|
+
this.subscription = null;
|
|
3661
3663
|
}
|
|
3662
3664
|
|
|
3663
3665
|
/** socket连接 */
|
|
@@ -3668,14 +3670,12 @@ var WebSocket = function () {
|
|
|
3668
3670
|
|
|
3669
3671
|
if (!this.client) {
|
|
3670
3672
|
// 连接SockJS
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(socket);
|
|
3673
|
+
this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
|
|
3674
|
+
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
|
|
3674
3675
|
}
|
|
3675
3676
|
|
|
3676
3677
|
// 日志不打印
|
|
3677
3678
|
if (!this.debug) {
|
|
3678
|
-
console.log(111);
|
|
3679
3679
|
this.client.debug = function () {};
|
|
3680
3680
|
}
|
|
3681
3681
|
|
|
@@ -3687,9 +3687,10 @@ var WebSocket = function () {
|
|
|
3687
3687
|
// 订阅消息
|
|
3688
3688
|
_this.subscribe();
|
|
3689
3689
|
}, function (error) {
|
|
3690
|
+
_this.unsubscribe();
|
|
3691
|
+
_this.client = null;
|
|
3690
3692
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3691
3693
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
3692
|
-
_this.client.disconnect();
|
|
3693
3694
|
_this.error && _this.error(error);
|
|
3694
3695
|
} else {
|
|
3695
3696
|
_this.reconTimeout = setTimeout(function () {
|
|
@@ -3698,6 +3699,14 @@ var WebSocket = function () {
|
|
|
3698
3699
|
}, 5000);
|
|
3699
3700
|
}
|
|
3700
3701
|
});
|
|
3702
|
+
}; // 清除订阅
|
|
3703
|
+
|
|
3704
|
+
|
|
3705
|
+
WebSocket.prototype.unsubscribe = function unsubscribe() {
|
|
3706
|
+
if (this.subscription) {
|
|
3707
|
+
this.subscription.unsubscribe();
|
|
3708
|
+
this.subscription = null;
|
|
3709
|
+
}
|
|
3701
3710
|
};
|
|
3702
3711
|
/** 订阅服务端 */
|
|
3703
3712
|
|
|
@@ -3706,7 +3715,7 @@ var WebSocket = function () {
|
|
|
3706
3715
|
var _this2 = this;
|
|
3707
3716
|
|
|
3708
3717
|
// 订阅服务端提供的某个topic
|
|
3709
|
-
this.client.subscribe(this.take, function (response) {
|
|
3718
|
+
this.subscription = this.client.subscribe(this.take, function (response) {
|
|
3710
3719
|
if (response && (_this2.callback || _this2.success)) {
|
|
3711
3720
|
var callback = _this2.callback || _this2.success;
|
|
3712
3721
|
callback(JSON.parse(response.body));
|
|
@@ -3747,6 +3756,7 @@ var WebSocket = function () {
|
|
|
3747
3756
|
|
|
3748
3757
|
WebSocket.prototype.destroy = function destroy() {
|
|
3749
3758
|
// 断开连接,清除定时器
|
|
3759
|
+
this.unsubscribe();
|
|
3750
3760
|
if (this.client) {
|
|
3751
3761
|
this.client.disconnect();
|
|
3752
3762
|
};
|
package/lib/input.js
CHANGED
|
@@ -3690,6 +3690,8 @@ var WebSocket = function () {
|
|
|
3690
3690
|
this.connects = 1;
|
|
3691
3691
|
this.recon = false;
|
|
3692
3692
|
this.sendTimeout = null;
|
|
3693
|
+
this.socket = null;
|
|
3694
|
+
this.subscription = null;
|
|
3693
3695
|
}
|
|
3694
3696
|
|
|
3695
3697
|
/** socket连接 */
|
|
@@ -3700,14 +3702,12 @@ var WebSocket = function () {
|
|
|
3700
3702
|
|
|
3701
3703
|
if (!this.client) {
|
|
3702
3704
|
// 连接SockJS
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(socket);
|
|
3705
|
+
this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
|
|
3706
|
+
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
|
|
3706
3707
|
}
|
|
3707
3708
|
|
|
3708
3709
|
// 日志不打印
|
|
3709
3710
|
if (!this.debug) {
|
|
3710
|
-
console.log(111);
|
|
3711
3711
|
this.client.debug = function () {};
|
|
3712
3712
|
}
|
|
3713
3713
|
|
|
@@ -3719,9 +3719,10 @@ var WebSocket = function () {
|
|
|
3719
3719
|
// 订阅消息
|
|
3720
3720
|
_this.subscribe();
|
|
3721
3721
|
}, function (error) {
|
|
3722
|
+
_this.unsubscribe();
|
|
3723
|
+
_this.client = null;
|
|
3722
3724
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3723
3725
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
3724
|
-
_this.client.disconnect();
|
|
3725
3726
|
_this.error && _this.error(error);
|
|
3726
3727
|
} else {
|
|
3727
3728
|
_this.reconTimeout = setTimeout(function () {
|
|
@@ -3730,6 +3731,14 @@ var WebSocket = function () {
|
|
|
3730
3731
|
}, 5000);
|
|
3731
3732
|
}
|
|
3732
3733
|
});
|
|
3734
|
+
}; // 清除订阅
|
|
3735
|
+
|
|
3736
|
+
|
|
3737
|
+
WebSocket.prototype.unsubscribe = function unsubscribe() {
|
|
3738
|
+
if (this.subscription) {
|
|
3739
|
+
this.subscription.unsubscribe();
|
|
3740
|
+
this.subscription = null;
|
|
3741
|
+
}
|
|
3733
3742
|
};
|
|
3734
3743
|
/** 订阅服务端 */
|
|
3735
3744
|
|
|
@@ -3738,7 +3747,7 @@ var WebSocket = function () {
|
|
|
3738
3747
|
var _this2 = this;
|
|
3739
3748
|
|
|
3740
3749
|
// 订阅服务端提供的某个topic
|
|
3741
|
-
this.client.subscribe(this.take, function (response) {
|
|
3750
|
+
this.subscription = this.client.subscribe(this.take, function (response) {
|
|
3742
3751
|
if (response && (_this2.callback || _this2.success)) {
|
|
3743
3752
|
var callback = _this2.callback || _this2.success;
|
|
3744
3753
|
callback(JSON.parse(response.body));
|
|
@@ -3779,6 +3788,7 @@ var WebSocket = function () {
|
|
|
3779
3788
|
|
|
3780
3789
|
WebSocket.prototype.destroy = function destroy() {
|
|
3781
3790
|
// 断开连接,清除定时器
|
|
3791
|
+
this.unsubscribe();
|
|
3782
3792
|
if (this.client) {
|
|
3783
3793
|
this.client.disconnect();
|
|
3784
3794
|
};
|
package/lib/login.js
CHANGED
|
@@ -3643,6 +3643,8 @@ var WebSocket = function () {
|
|
|
3643
3643
|
this.connects = 1;
|
|
3644
3644
|
this.recon = false;
|
|
3645
3645
|
this.sendTimeout = null;
|
|
3646
|
+
this.socket = null;
|
|
3647
|
+
this.subscription = null;
|
|
3646
3648
|
}
|
|
3647
3649
|
|
|
3648
3650
|
/** socket连接 */
|
|
@@ -3653,14 +3655,12 @@ var WebSocket = function () {
|
|
|
3653
3655
|
|
|
3654
3656
|
if (!this.client) {
|
|
3655
3657
|
// 连接SockJS
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(socket);
|
|
3658
|
+
this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
|
|
3659
|
+
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
|
|
3659
3660
|
}
|
|
3660
3661
|
|
|
3661
3662
|
// 日志不打印
|
|
3662
3663
|
if (!this.debug) {
|
|
3663
|
-
console.log(111);
|
|
3664
3664
|
this.client.debug = function () {};
|
|
3665
3665
|
}
|
|
3666
3666
|
|
|
@@ -3672,9 +3672,10 @@ var WebSocket = function () {
|
|
|
3672
3672
|
// 订阅消息
|
|
3673
3673
|
_this.subscribe();
|
|
3674
3674
|
}, function (error) {
|
|
3675
|
+
_this.unsubscribe();
|
|
3676
|
+
_this.client = null;
|
|
3675
3677
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3676
3678
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
3677
|
-
_this.client.disconnect();
|
|
3678
3679
|
_this.error && _this.error(error);
|
|
3679
3680
|
} else {
|
|
3680
3681
|
_this.reconTimeout = setTimeout(function () {
|
|
@@ -3683,6 +3684,14 @@ var WebSocket = function () {
|
|
|
3683
3684
|
}, 5000);
|
|
3684
3685
|
}
|
|
3685
3686
|
});
|
|
3687
|
+
}; // 清除订阅
|
|
3688
|
+
|
|
3689
|
+
|
|
3690
|
+
WebSocket.prototype.unsubscribe = function unsubscribe() {
|
|
3691
|
+
if (this.subscription) {
|
|
3692
|
+
this.subscription.unsubscribe();
|
|
3693
|
+
this.subscription = null;
|
|
3694
|
+
}
|
|
3686
3695
|
};
|
|
3687
3696
|
/** 订阅服务端 */
|
|
3688
3697
|
|
|
@@ -3691,7 +3700,7 @@ var WebSocket = function () {
|
|
|
3691
3700
|
var _this2 = this;
|
|
3692
3701
|
|
|
3693
3702
|
// 订阅服务端提供的某个topic
|
|
3694
|
-
this.client.subscribe(this.take, function (response) {
|
|
3703
|
+
this.subscription = this.client.subscribe(this.take, function (response) {
|
|
3695
3704
|
if (response && (_this2.callback || _this2.success)) {
|
|
3696
3705
|
var callback = _this2.callback || _this2.success;
|
|
3697
3706
|
callback(JSON.parse(response.body));
|
|
@@ -3732,6 +3741,7 @@ var WebSocket = function () {
|
|
|
3732
3741
|
|
|
3733
3742
|
WebSocket.prototype.destroy = function destroy() {
|
|
3734
3743
|
// 断开连接,清除定时器
|
|
3744
|
+
this.unsubscribe();
|
|
3735
3745
|
if (this.client) {
|
|
3736
3746
|
this.client.disconnect();
|
|
3737
3747
|
};
|
|
@@ -4780,8 +4790,8 @@ render._withStripped = true
|
|
|
4780
4790
|
|
|
4781
4791
|
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=249fae96&
|
|
4782
4792
|
|
|
4783
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=
|
|
4784
|
-
var
|
|
4793
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=579bc87d&
|
|
4794
|
+
var resetPasswordvue_type_template_id_579bc87d_render = function () {
|
|
4785
4795
|
var _vm = this
|
|
4786
4796
|
var _h = _vm.$createElement
|
|
4787
4797
|
var _c = _vm._self._c || _h
|
|
@@ -4841,11 +4851,11 @@ var resetPasswordvue_type_template_id_28f463b9_render = function () {
|
|
|
4841
4851
|
1
|
|
4842
4852
|
)
|
|
4843
4853
|
}
|
|
4844
|
-
var
|
|
4845
|
-
|
|
4854
|
+
var resetPasswordvue_type_template_id_579bc87d_staticRenderFns = []
|
|
4855
|
+
resetPasswordvue_type_template_id_579bc87d_render._withStripped = true
|
|
4846
4856
|
|
|
4847
4857
|
|
|
4848
|
-
// CONCATENATED MODULE: ./packages/login/src/resetPassword.vue?vue&type=template&id=
|
|
4858
|
+
// CONCATENATED MODULE: ./packages/login/src/resetPassword.vue?vue&type=template&id=579bc87d&
|
|
4849
4859
|
|
|
4850
4860
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4851
4861
|
var api = __webpack_require__(1);
|
|
@@ -5098,7 +5108,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
5098
5108
|
trigger: 'blur'
|
|
5099
5109
|
} : {}, {
|
|
5100
5110
|
required: true,
|
|
5101
|
-
message: '
|
|
5111
|
+
message: '请确认新密码',
|
|
5102
5112
|
trigger: 'blur'
|
|
5103
5113
|
}, { validator: this.reregExpValidate, trigger: 'blur' }]
|
|
5104
5114
|
}, {
|
|
@@ -5337,8 +5347,8 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
5337
5347
|
|
|
5338
5348
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
5339
5349
|
src_resetPasswordvue_type_script_lang_js_,
|
|
5340
|
-
|
|
5341
|
-
|
|
5350
|
+
resetPasswordvue_type_template_id_579bc87d_render,
|
|
5351
|
+
resetPasswordvue_type_template_id_579bc87d_staticRenderFns,
|
|
5342
5352
|
false,
|
|
5343
5353
|
null,
|
|
5344
5354
|
null,
|
package/lib/main.js
CHANGED
|
@@ -3643,6 +3643,8 @@ var WebSocket = function () {
|
|
|
3643
3643
|
this.connects = 1;
|
|
3644
3644
|
this.recon = false;
|
|
3645
3645
|
this.sendTimeout = null;
|
|
3646
|
+
this.socket = null;
|
|
3647
|
+
this.subscription = null;
|
|
3646
3648
|
}
|
|
3647
3649
|
|
|
3648
3650
|
/** socket连接 */
|
|
@@ -3653,14 +3655,12 @@ var WebSocket = function () {
|
|
|
3653
3655
|
|
|
3654
3656
|
if (!this.client) {
|
|
3655
3657
|
// 连接SockJS
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(socket);
|
|
3658
|
+
this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
|
|
3659
|
+
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
|
|
3659
3660
|
}
|
|
3660
3661
|
|
|
3661
3662
|
// 日志不打印
|
|
3662
3663
|
if (!this.debug) {
|
|
3663
|
-
console.log(111);
|
|
3664
3664
|
this.client.debug = function () {};
|
|
3665
3665
|
}
|
|
3666
3666
|
|
|
@@ -3672,9 +3672,10 @@ var WebSocket = function () {
|
|
|
3672
3672
|
// 订阅消息
|
|
3673
3673
|
_this.subscribe();
|
|
3674
3674
|
}, function (error) {
|
|
3675
|
+
_this.unsubscribe();
|
|
3676
|
+
_this.client = null;
|
|
3675
3677
|
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3676
3678
|
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
3677
|
-
_this.client.disconnect();
|
|
3678
3679
|
_this.error && _this.error(error);
|
|
3679
3680
|
} else {
|
|
3680
3681
|
_this.reconTimeout = setTimeout(function () {
|
|
@@ -3683,6 +3684,14 @@ var WebSocket = function () {
|
|
|
3683
3684
|
}, 5000);
|
|
3684
3685
|
}
|
|
3685
3686
|
});
|
|
3687
|
+
}; // 清除订阅
|
|
3688
|
+
|
|
3689
|
+
|
|
3690
|
+
WebSocket.prototype.unsubscribe = function unsubscribe() {
|
|
3691
|
+
if (this.subscription) {
|
|
3692
|
+
this.subscription.unsubscribe();
|
|
3693
|
+
this.subscription = null;
|
|
3694
|
+
}
|
|
3686
3695
|
};
|
|
3687
3696
|
/** 订阅服务端 */
|
|
3688
3697
|
|
|
@@ -3691,7 +3700,7 @@ var WebSocket = function () {
|
|
|
3691
3700
|
var _this2 = this;
|
|
3692
3701
|
|
|
3693
3702
|
// 订阅服务端提供的某个topic
|
|
3694
|
-
this.client.subscribe(this.take, function (response) {
|
|
3703
|
+
this.subscription = this.client.subscribe(this.take, function (response) {
|
|
3695
3704
|
if (response && (_this2.callback || _this2.success)) {
|
|
3696
3705
|
var callback = _this2.callback || _this2.success;
|
|
3697
3706
|
callback(JSON.parse(response.body));
|
|
@@ -3732,6 +3741,7 @@ var WebSocket = function () {
|
|
|
3732
3741
|
|
|
3733
3742
|
WebSocket.prototype.destroy = function destroy() {
|
|
3734
3743
|
// 断开连接,清除定时器
|
|
3744
|
+
this.unsubscribe();
|
|
3735
3745
|
if (this.client) {
|
|
3736
3746
|
this.client.disconnect();
|
|
3737
3747
|
};
|
|
@@ -3826,7 +3836,7 @@ module.exports = require("runtime-import");
|
|
|
3826
3836
|
// ESM COMPAT FLAG
|
|
3827
3837
|
__webpack_require__.r(__webpack_exports__);
|
|
3828
3838
|
|
|
3829
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=
|
|
3839
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=572765ea&
|
|
3830
3840
|
var render = function () {
|
|
3831
3841
|
var _vm = this
|
|
3832
3842
|
var _h = _vm.$createElement
|
|
@@ -3964,16 +3974,27 @@ var render = function () {
|
|
|
3964
3974
|
_vm.layout === "topside" || _vm.layout === "side"
|
|
3965
3975
|
? _c(
|
|
3966
3976
|
"div",
|
|
3967
|
-
{
|
|
3977
|
+
{
|
|
3978
|
+
staticClass: "es-main-side",
|
|
3979
|
+
class: {
|
|
3980
|
+
"es-main-topside": _vm.layout === "topside",
|
|
3981
|
+
},
|
|
3982
|
+
},
|
|
3968
3983
|
[
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3984
|
+
_vm.layout === "topside"
|
|
3985
|
+
? _c(
|
|
3986
|
+
"div",
|
|
3987
|
+
{ staticClass: "es-main-side-logo" },
|
|
3988
|
+
[
|
|
3989
|
+
_vm.logoUrl
|
|
3990
|
+
? _c("img", {
|
|
3991
|
+
staticClass: "es-main-logo",
|
|
3992
|
+
attrs: { src: _vm.logoUrl },
|
|
3993
|
+
})
|
|
3994
|
+
: _vm._e(),
|
|
3995
|
+
]
|
|
3996
|
+
)
|
|
3997
|
+
: _vm._e(),
|
|
3977
3998
|
_c("es-handle-user", {
|
|
3978
3999
|
attrs: {
|
|
3979
4000
|
data: { type: "user" },
|
|
@@ -4021,6 +4042,7 @@ var render = function () {
|
|
|
4021
4042
|
_vm.showMenu && _vm.showDefault
|
|
4022
4043
|
? _c("es-nav", {
|
|
4023
4044
|
attrs: {
|
|
4045
|
+
"hide-sub-menu": _vm.hideSubMenu,
|
|
4024
4046
|
"is-top": _vm.layout == "topside",
|
|
4025
4047
|
overlap: _vm.layout == "side",
|
|
4026
4048
|
data: _vm.menu,
|
|
@@ -4032,7 +4054,9 @@ var render = function () {
|
|
|
4032
4054
|
"sub-icon": _vm.subIcon,
|
|
4033
4055
|
biserial: _vm.biserial,
|
|
4034
4056
|
title: _vm.showNavTitle ? _vm.title : false,
|
|
4035
|
-
showCollapse: _vm.showNavTitle
|
|
4057
|
+
showCollapse: _vm.showNavTitle
|
|
4058
|
+
? _vm.showCollapse
|
|
4059
|
+
: false,
|
|
4036
4060
|
"menu-tips": _vm.menuTips,
|
|
4037
4061
|
"is-default": _vm.isDefault,
|
|
4038
4062
|
paddingLeft: _vm.navPaddingLeft,
|
|
@@ -4261,6 +4285,33 @@ var render = function () {
|
|
|
4261
4285
|
attrs: { data: _vm.sysMsg, winopen: _vm.winopen },
|
|
4262
4286
|
on: { opened: _vm.handleOpened },
|
|
4263
4287
|
}),
|
|
4288
|
+
_c(
|
|
4289
|
+
"es-dialog",
|
|
4290
|
+
{
|
|
4291
|
+
attrs: {
|
|
4292
|
+
title: _vm.dialog.title,
|
|
4293
|
+
visible: _vm.dialog.show,
|
|
4294
|
+
size: "md",
|
|
4295
|
+
},
|
|
4296
|
+
on: {
|
|
4297
|
+
"update:visible": function ($event) {
|
|
4298
|
+
_vm.$set(_vm.dialog, "show", $event)
|
|
4299
|
+
},
|
|
4300
|
+
},
|
|
4301
|
+
},
|
|
4302
|
+
[
|
|
4303
|
+
_vm.dialog.show
|
|
4304
|
+
? _c("iframe", {
|
|
4305
|
+
attrs: {
|
|
4306
|
+
width: "100%",
|
|
4307
|
+
height: "100%",
|
|
4308
|
+
frameborder: "0",
|
|
4309
|
+
src: _vm.dialog.src,
|
|
4310
|
+
},
|
|
4311
|
+
})
|
|
4312
|
+
: _vm._e(),
|
|
4313
|
+
]
|
|
4314
|
+
),
|
|
4264
4315
|
],
|
|
4265
4316
|
1
|
|
4266
4317
|
)
|
|
@@ -4269,7 +4320,7 @@ var staticRenderFns = []
|
|
|
4269
4320
|
render._withStripped = true
|
|
4270
4321
|
|
|
4271
4322
|
|
|
4272
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
4323
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=572765ea&
|
|
4273
4324
|
|
|
4274
4325
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=75d533de&
|
|
4275
4326
|
var userinfovue_type_template_id_75d533de_render = function () {
|
|
@@ -6414,6 +6465,17 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6414
6465
|
//
|
|
6415
6466
|
//
|
|
6416
6467
|
//
|
|
6468
|
+
//
|
|
6469
|
+
//
|
|
6470
|
+
//
|
|
6471
|
+
//
|
|
6472
|
+
//
|
|
6473
|
+
//
|
|
6474
|
+
//
|
|
6475
|
+
//
|
|
6476
|
+
//
|
|
6477
|
+
//
|
|
6478
|
+
//
|
|
6417
6479
|
|
|
6418
6480
|
|
|
6419
6481
|
|
|
@@ -6585,7 +6647,15 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
6585
6647
|
type: String,
|
|
6586
6648
|
default: '230px'
|
|
6587
6649
|
},
|
|
6588
|
-
navWidth: String
|
|
6650
|
+
navWidth: String,
|
|
6651
|
+
showCollapse: {
|
|
6652
|
+
type: Boolean,
|
|
6653
|
+
default: true
|
|
6654
|
+
},
|
|
6655
|
+
onlineView: {
|
|
6656
|
+
type: [String, Boolean],
|
|
6657
|
+
default: true
|
|
6658
|
+
}
|
|
6589
6659
|
},
|
|
6590
6660
|
computed: {
|
|
6591
6661
|
showHeader: function showHeader() {
|
|
@@ -6619,7 +6689,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
6619
6689
|
return this.layout === 'side' ? this.navBoxWidth : this.layout === 'subsystem' || this.layout === 'topside' ? '0' : this.navWidth;
|
|
6620
6690
|
},
|
|
6621
6691
|
showNavTitle: function showNavTitle() {
|
|
6622
|
-
return this.layout !== 'topside'
|
|
6692
|
+
return this.layout !== 'topside';
|
|
6623
6693
|
},
|
|
6624
6694
|
|
|
6625
6695
|
//tabs菜单
|
|
@@ -6707,6 +6777,12 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
6707
6777
|
},
|
|
6708
6778
|
menuCode: function menuCode() {
|
|
6709
6779
|
return appCode || this.appCode;
|
|
6780
|
+
},
|
|
6781
|
+
onlineUrl: function onlineUrl() {
|
|
6782
|
+
if (this.onlineView) {
|
|
6783
|
+
return typeof this.onlineView == 'string' ? this.onlineView : '/main/sysuseronline/list.dhtml';
|
|
6784
|
+
}
|
|
6785
|
+
return false;
|
|
6710
6786
|
}
|
|
6711
6787
|
},
|
|
6712
6788
|
watch: {
|
|
@@ -6824,7 +6900,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
6824
6900
|
timer: null,
|
|
6825
6901
|
pid: null,
|
|
6826
6902
|
showPage: false,
|
|
6827
|
-
webSocket: null
|
|
6903
|
+
webSocket: null,
|
|
6904
|
+
dialog: {},
|
|
6905
|
+
hideSubMenu: false
|
|
6828
6906
|
};
|
|
6829
6907
|
},
|
|
6830
6908
|
created: function created() {
|
|
@@ -7172,10 +7250,16 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7172
7250
|
* @param {Boolean} [isUrl] - res是否是url地址
|
|
7173
7251
|
* @param {Object} [param] - 拼接地址后的参数
|
|
7174
7252
|
*/
|
|
7175
|
-
jumpMenu: function jumpMenu(res, isUrl,
|
|
7253
|
+
jumpMenu: function jumpMenu(res, isUrl, param, hide) {
|
|
7176
7254
|
var _this5 = this;
|
|
7177
7255
|
|
|
7178
|
-
|
|
7256
|
+
if (this.showSide === false) {
|
|
7257
|
+
this.isSide = true;
|
|
7258
|
+
}
|
|
7259
|
+
if (hide !== undefined && hide !== null && hide !== '') {
|
|
7260
|
+
this.hideSubMenu = hide;
|
|
7261
|
+
}
|
|
7262
|
+
var option = { url: res, isUrl: isUrl, param: param };
|
|
7179
7263
|
if (util["a" /* default */].isObject(res)) {
|
|
7180
7264
|
if (res.urlopenmode == 1) {
|
|
7181
7265
|
util["a" /* default */].win.open(res.url);
|
|
@@ -7201,11 +7285,11 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7201
7285
|
this.method = 'router';
|
|
7202
7286
|
var routes = this.$router.options.routes;
|
|
7203
7287
|
if (routes) {
|
|
7204
|
-
var
|
|
7205
|
-
if (
|
|
7288
|
+
var path = this.hasRouter(routes, option.url);
|
|
7289
|
+
if (path) {
|
|
7206
7290
|
var params = util["a" /* default */].getParams({ url: option.url });
|
|
7207
7291
|
this.$router.push({
|
|
7208
|
-
path:
|
|
7292
|
+
path: path,
|
|
7209
7293
|
query: params
|
|
7210
7294
|
});
|
|
7211
7295
|
} else {
|
|
@@ -7671,6 +7755,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7671
7755
|
}
|
|
7672
7756
|
break;
|
|
7673
7757
|
case 'sub':
|
|
7758
|
+
this.hideSubMenu = false;
|
|
7674
7759
|
this.navIds = [node.id];
|
|
7675
7760
|
if (node.url) {
|
|
7676
7761
|
this.tabs = [];
|
|
@@ -7767,19 +7852,19 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7767
7852
|
}
|
|
7768
7853
|
}
|
|
7769
7854
|
} else {
|
|
7770
|
-
var
|
|
7771
|
-
if (
|
|
7772
|
-
|
|
7855
|
+
var _path = res.path;
|
|
7856
|
+
if (_path !== '/' && _path !== '/404') {
|
|
7857
|
+
_path = _path.replace(_path[1], _path[1].toLowerCase());
|
|
7773
7858
|
}
|
|
7774
7859
|
var pathname = url.substring(url.indexOf('#/') + 1);
|
|
7775
7860
|
pathname = pathname.replace(pathname[1], pathname[1].toLowerCase()).split('?')[0];
|
|
7776
|
-
if (res.path !== '/' && pathname ==
|
|
7861
|
+
if (res.path !== '/' && pathname == _path) {
|
|
7777
7862
|
return pathname;
|
|
7778
7863
|
}
|
|
7779
7864
|
if (res && Object.prototype.hasOwnProperty.call(res, 'children')) {
|
|
7780
|
-
var
|
|
7781
|
-
if (
|
|
7782
|
-
return
|
|
7865
|
+
var _path2 = this.hasRouter(res.children, url);
|
|
7866
|
+
if (_path2) {
|
|
7867
|
+
return _path2;
|
|
7783
7868
|
}
|
|
7784
7869
|
}
|
|
7785
7870
|
}
|
|
@@ -7791,6 +7876,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7791
7876
|
handleClick: function handleClick(res) {
|
|
7792
7877
|
var _this8 = this;
|
|
7793
7878
|
|
|
7879
|
+
console.log(res);
|
|
7794
7880
|
var type = res.type;
|
|
7795
7881
|
|
|
7796
7882
|
switch (type) {
|
|
@@ -7816,13 +7902,15 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7816
7902
|
case 'user':
|
|
7817
7903
|
this.showUserInfo = true;
|
|
7818
7904
|
break;
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7905
|
+
case 'online':
|
|
7906
|
+
if (this.onlineUrl) {
|
|
7907
|
+
this.dialog = {
|
|
7908
|
+
title: '查看在线人员',
|
|
7909
|
+
show: true,
|
|
7910
|
+
src: this.onlineUrl
|
|
7911
|
+
};
|
|
7912
|
+
}
|
|
7913
|
+
break;
|
|
7826
7914
|
case 'notice':
|
|
7827
7915
|
this.showMsg = !this.showMsg;
|
|
7828
7916
|
break;
|
package/lib/menu.js
CHANGED
|
@@ -280,6 +280,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
280
280
|
},
|
|
281
281
|
width: function width() {
|
|
282
282
|
this.getMaxWidth();
|
|
283
|
+
},
|
|
284
|
+
height: function height() {
|
|
285
|
+
this.$refs.esMenu.update();
|
|
283
286
|
}
|
|
284
287
|
},
|
|
285
288
|
data: function data() {
|