eoss-ui 0.5.73 → 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.
Files changed (54) hide show
  1. package/lib/button-group.js +16 -6
  2. package/lib/button.js +16 -6
  3. package/lib/checkbox-group.js +16 -6
  4. package/lib/clients.js +16 -7
  5. package/lib/data-table-form.js +16 -6
  6. package/lib/data-table.js +16 -6
  7. package/lib/date-picker.js +16 -6
  8. package/lib/dialog.js +16 -6
  9. package/lib/eoss-ui.common.js +176 -82
  10. package/lib/flow-group.js +16 -6
  11. package/lib/flow-list.js +16 -6
  12. package/lib/flow.js +16 -6
  13. package/lib/form.js +16 -6
  14. package/lib/handle-user.js +16 -6
  15. package/lib/handler.js +16 -6
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +16 -6
  18. package/lib/input.js +16 -6
  19. package/lib/login.js +24 -14
  20. package/lib/main.js +98 -28
  21. package/lib/nav.js +64 -29
  22. package/lib/page.js +16 -6
  23. package/lib/player.js +16 -6
  24. package/lib/qr-code.js +16 -6
  25. package/lib/radio-group.js +16 -6
  26. package/lib/retrial-auth.js +16 -6
  27. package/lib/select-ganged.js +16 -6
  28. package/lib/select.js +16 -6
  29. package/lib/selector-panel.js +16 -6
  30. package/lib/selector.js +16 -6
  31. package/lib/sizer.js +16 -6
  32. package/lib/steps.js +16 -6
  33. package/lib/switch.js +16 -6
  34. package/lib/table-form.js +16 -6
  35. package/lib/tabs.js +16 -6
  36. package/lib/theme-chalk/index.css +1 -1
  37. package/lib/theme-chalk/nav.css +1 -1
  38. package/lib/tips.js +16 -6
  39. package/lib/tree-group.js +16 -6
  40. package/lib/tree.js +16 -6
  41. package/lib/upload.js +16 -6
  42. package/lib/utils/webSocket.js +16 -6
  43. package/lib/wujie.js +16 -6
  44. package/lib/wxlogin.js +16 -6
  45. package/package.json +1 -1
  46. package/packages/clients/src/main.vue +3 -1
  47. package/packages/login/src/resetPassword.vue +1 -1
  48. package/packages/main/src/main.vue +44 -10
  49. package/packages/nav/src/main.vue +25 -8
  50. package/packages/theme-chalk/lib/index.css +1 -1
  51. package/packages/theme-chalk/lib/nav.css +1 -1
  52. package/packages/theme-chalk/src/nav.scss +4 -1
  53. package/src/index.js +1 -1
  54. package/src/utils/webSocket.js +14 -7
@@ -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
- var socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url);
3672
- // 获取STOMP子协议的客户端对象
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
- var socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url);
3704
- // 获取STOMP子协议的客户端对象
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
- var socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url);
3657
- // 获取STOMP子协议的客户端对象
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=28f463b9&
4784
- var resetPasswordvue_type_template_id_28f463b9_render = function () {
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 resetPasswordvue_type_template_id_28f463b9_staticRenderFns = []
4845
- resetPasswordvue_type_template_id_28f463b9_render._withStripped = true
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=28f463b9&
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
- resetPasswordvue_type_template_id_28f463b9_render,
5341
- resetPasswordvue_type_template_id_28f463b9_staticRenderFns,
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
- var socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url);
3657
- // 获取STOMP子协议的客户端对象
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=a08554be&
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
@@ -4032,6 +4042,7 @@ var render = function () {
4032
4042
  _vm.showMenu && _vm.showDefault
4033
4043
  ? _c("es-nav", {
4034
4044
  attrs: {
4045
+ "hide-sub-menu": _vm.hideSubMenu,
4035
4046
  "is-top": _vm.layout == "topside",
4036
4047
  overlap: _vm.layout == "side",
4037
4048
  data: _vm.menu,
@@ -4274,6 +4285,33 @@ var render = function () {
4274
4285
  attrs: { data: _vm.sysMsg, winopen: _vm.winopen },
4275
4286
  on: { opened: _vm.handleOpened },
4276
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
+ ),
4277
4315
  ],
4278
4316
  1
4279
4317
  )
@@ -4282,7 +4320,7 @@ var staticRenderFns = []
4282
4320
  render._withStripped = true
4283
4321
 
4284
4322
 
4285
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=a08554be&
4323
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=572765ea&
4286
4324
 
4287
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&
4288
4326
  var userinfovue_type_template_id_75d533de_render = function () {
@@ -6428,6 +6466,16 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6428
6466
  //
6429
6467
  //
6430
6468
  //
6469
+ //
6470
+ //
6471
+ //
6472
+ //
6473
+ //
6474
+ //
6475
+ //
6476
+ //
6477
+ //
6478
+ //
6431
6479
 
6432
6480
 
6433
6481
 
@@ -6603,6 +6651,10 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6603
6651
  showCollapse: {
6604
6652
  type: Boolean,
6605
6653
  default: true
6654
+ },
6655
+ onlineView: {
6656
+ type: [String, Boolean],
6657
+ default: true
6606
6658
  }
6607
6659
  },
6608
6660
  computed: {
@@ -6725,6 +6777,12 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6725
6777
  },
6726
6778
  menuCode: function menuCode() {
6727
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;
6728
6786
  }
6729
6787
  },
6730
6788
  watch: {
@@ -6842,7 +6900,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6842
6900
  timer: null,
6843
6901
  pid: null,
6844
6902
  showPage: false,
6845
- webSocket: null
6903
+ webSocket: null,
6904
+ dialog: {},
6905
+ hideSubMenu: false
6846
6906
  };
6847
6907
  },
6848
6908
  created: function created() {
@@ -7190,10 +7250,16 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7190
7250
  * @param {Boolean} [isUrl] - res是否是url地址
7191
7251
  * @param {Object} [param] - 拼接地址后的参数
7192
7252
  */
7193
- jumpMenu: function jumpMenu(res, isUrl, path) {
7253
+ jumpMenu: function jumpMenu(res, isUrl, param, hide) {
7194
7254
  var _this5 = this;
7195
7255
 
7196
- var option = { url: res, isUrl: isUrl, path: path };
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 };
7197
7263
  if (util["a" /* default */].isObject(res)) {
7198
7264
  if (res.urlopenmode == 1) {
7199
7265
  util["a" /* default */].win.open(res.url);
@@ -7219,11 +7285,11 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7219
7285
  this.method = 'router';
7220
7286
  var routes = this.$router.options.routes;
7221
7287
  if (routes) {
7222
- var _path = this.hasRouter(routes, option.url);
7223
- if (_path) {
7288
+ var path = this.hasRouter(routes, option.url);
7289
+ if (path) {
7224
7290
  var params = util["a" /* default */].getParams({ url: option.url });
7225
7291
  this.$router.push({
7226
- path: _path,
7292
+ path: path,
7227
7293
  query: params
7228
7294
  });
7229
7295
  } else {
@@ -7689,6 +7755,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7689
7755
  }
7690
7756
  break;
7691
7757
  case 'sub':
7758
+ this.hideSubMenu = false;
7692
7759
  this.navIds = [node.id];
7693
7760
  if (node.url) {
7694
7761
  this.tabs = [];
@@ -7785,19 +7852,19 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7785
7852
  }
7786
7853
  }
7787
7854
  } else {
7788
- var _path2 = res.path;
7789
- if (_path2 !== '/' && _path2 !== '/404') {
7790
- _path2 = _path2.replace(_path2[1], _path2[1].toLowerCase());
7855
+ var _path = res.path;
7856
+ if (_path !== '/' && _path !== '/404') {
7857
+ _path = _path.replace(_path[1], _path[1].toLowerCase());
7791
7858
  }
7792
7859
  var pathname = url.substring(url.indexOf('#/') + 1);
7793
7860
  pathname = pathname.replace(pathname[1], pathname[1].toLowerCase()).split('?')[0];
7794
- if (res.path !== '/' && pathname == _path2) {
7861
+ if (res.path !== '/' && pathname == _path) {
7795
7862
  return pathname;
7796
7863
  }
7797
7864
  if (res && Object.prototype.hasOwnProperty.call(res, 'children')) {
7798
- var _path3 = this.hasRouter(res.children, url);
7799
- if (_path3) {
7800
- return _path3;
7865
+ var _path2 = this.hasRouter(res.children, url);
7866
+ if (_path2) {
7867
+ return _path2;
7801
7868
  }
7802
7869
  }
7803
7870
  }
@@ -7809,6 +7876,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7809
7876
  handleClick: function handleClick(res) {
7810
7877
  var _this8 = this;
7811
7878
 
7879
+ console.log(res);
7812
7880
  var type = res.type;
7813
7881
 
7814
7882
  switch (type) {
@@ -7834,13 +7902,15 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7834
7902
  case 'user':
7835
7903
  this.showUserInfo = true;
7836
7904
  break;
7837
- // case 'online':
7838
- // this.dialog = {
7839
- // title: '查看在线人员',
7840
- // show: true,
7841
- // url: '/main/sysuseronline/list.dhtml'
7842
- // };
7843
- // break;
7905
+ case 'online':
7906
+ if (this.onlineUrl) {
7907
+ this.dialog = {
7908
+ title: '查看在线人员',
7909
+ show: true,
7910
+ src: this.onlineUrl
7911
+ };
7912
+ }
7913
+ break;
7844
7914
  case 'notice':
7845
7915
  this.showMsg = !this.showMsg;
7846
7916
  break;