eoss-ui 0.5.10 → 0.5.11

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 (59) hide show
  1. package/lib/button-group.js +18 -33
  2. package/lib/button.js +18 -33
  3. package/lib/checkbox-group.js +18 -33
  4. package/lib/data-table-form.js +18 -33
  5. package/lib/data-table.js +36 -42
  6. package/lib/date-picker.js +18 -33
  7. package/lib/dialog.js +18 -33
  8. package/lib/eoss-ui.common.js +217 -486
  9. package/lib/flow-group.js +18 -33
  10. package/lib/flow-list.js +18 -33
  11. package/lib/flow.js +18 -33
  12. package/lib/form.js +50 -172
  13. package/lib/handle-user.js +18 -33
  14. package/lib/handler.js +18 -33
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +18 -33
  17. package/lib/input.js +18 -33
  18. package/lib/login.js +18 -33
  19. package/lib/main.js +117 -282
  20. package/lib/nav.js +18 -33
  21. package/lib/page.js +18 -33
  22. package/lib/player.js +18 -33
  23. package/lib/qr-code.js +18 -33
  24. package/lib/radio-group.js +21 -36
  25. package/lib/retrial-auth.js +18 -33
  26. package/lib/select-ganged.js +18 -33
  27. package/lib/select.js +18 -33
  28. package/lib/selector-panel.js +18 -33
  29. package/lib/selector.js +18 -33
  30. package/lib/sizer.js +18 -33
  31. package/lib/steps.js +18 -33
  32. package/lib/switch.js +18 -33
  33. package/lib/table-form.js +30 -61
  34. package/lib/tabs.js +18 -33
  35. package/lib/theme-chalk/index.css +1 -1
  36. package/lib/theme-chalk/pagination.css +1 -1
  37. package/lib/theme-chalk/toolbar.css +1 -1
  38. package/lib/tips.js +18 -33
  39. package/lib/toolbar.js +19 -9
  40. package/lib/tree-group.js +18 -33
  41. package/lib/tree.js +18 -33
  42. package/lib/upload.js +18 -33
  43. package/lib/utils/util.js +18 -33
  44. package/lib/wujie.js +18 -33
  45. package/lib/wxlogin.js +18 -33
  46. package/package.json +1 -1
  47. package/packages/data-table/src/main.vue +14 -6
  48. package/packages/form/src/main.vue +11 -46
  49. package/packages/form/src/table.vue +6 -11
  50. package/packages/main/src/main.vue +12 -150
  51. package/packages/radio-group/src/main.vue +1 -5
  52. package/packages/theme-chalk/lib/index.css +1 -1
  53. package/packages/theme-chalk/lib/pagination.css +1 -1
  54. package/packages/theme-chalk/lib/toolbar.css +1 -1
  55. package/packages/theme-chalk/src/pagination.scss +8 -0
  56. package/packages/theme-chalk/src/toolbar.scss +1 -0
  57. package/packages/toolbar/src/main.vue +17 -8
  58. package/src/index.js +1 -1
  59. package/src/utils/util.js +20 -34
package/lib/main.js CHANGED
@@ -745,6 +745,7 @@ var delUrlParam = function delUrlParam(_ref2) {
745
745
  key.forEach(function (item) {
746
746
  if (param.hasOwnProperty(item)) {
747
747
  var reg = item + '=' + param[item];
748
+ console.log(reg);
748
749
  if (src.indexOf(reg + '&') > -1) {
749
750
  src = src.replace(reg + '&', '');
750
751
  } else if (src.indexOf('&' + reg) > -1) {
@@ -1945,7 +1946,6 @@ var isLogined = function isLogined(_ref8) {
1945
1946
  next = _ref8.next,
1946
1947
  _ref8$exclude = _ref8.exclude,
1947
1948
  exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
1948
- open = _ref8.open,
1949
1949
  cookie = _ref8.cookie,
1950
1950
  loginPage = _ref8.loginPage,
1951
1951
  redirect = _ref8.redirect;
@@ -1953,24 +1953,24 @@ var isLogined = function isLogined(_ref8) {
1953
1953
  if (cookie === undefined) {
1954
1954
  cookie = getParams({ name: 'cookie' });
1955
1955
  }
1956
+ var pathname = win.top.location.pathname;
1956
1957
  if (loginPage) {
1957
1958
  sessionStorage.setItem('loginPage', loginPage);
1958
1959
  if (!startWith(loginPage, ['http', '/'], true)) {
1959
- var pathname = win.top.location.pathname;
1960
1960
  if (pathname !== '/') {
1961
- pathname = pathname.split('/');
1962
- pathname.splice(pathname.length - 1);
1963
- pathname = pathname.join('/');
1964
- loginPage = pathname + '/' + loginPage.replace('./', '');
1961
+ var path = pathname.split('/');
1962
+ path.splice(pathname.length - 1);
1963
+ path = path.join('/');
1964
+ loginPage = path + '/' + loginPage.replace('./', '');
1965
1965
  } else {
1966
1966
  loginPage = pathname + loginPage.replace('./', '');
1967
1967
  }
1968
1968
  }
1969
1969
  }
1970
1970
  var token = getStorage('token') || getStorage('Authorization');
1971
- var logined = getStorage('logined');
1971
+ // const logined = getStorage('logined');
1972
1972
  // eslint-disable-next-line eqeqeq
1973
- if (token || logined || cookie == true || cookie == 1) {
1973
+ if (token || cookie == true || cookie == 1) {
1974
1974
  next && next();
1975
1975
  } else {
1976
1976
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
@@ -1994,37 +1994,22 @@ var isLogined = function isLogined(_ref8) {
1994
1994
  deviceUnique: results.deviceUnique
1995
1995
  }
1996
1996
  });
1997
- next();
1997
+ var url = delUrlParam({
1998
+ url: win.top.location.href,
1999
+ key: ['serverId', 'authType', 'code', 'sessionId']
2000
+ });
2001
+ win.top.location.href = url;
2002
+ setTimeout(function () {
2003
+ win.top.location.reload();
2004
+ }, 200);
1998
2005
  break;
1999
2006
  case 1:
2000
2007
  break;
2001
2008
  case 2:
2002
2009
  break;
2003
2010
  case 3:
2004
- var url = win.top.location.href;
2005
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
2006
- if (to.query.openType) {
2007
- switch (to.query.openType) {
2008
- case 'self':
2009
- win.location.href = href;
2010
- break;
2011
- case 'blank':
2012
- win.open(href);
2013
- break;
2014
- case 'top':
2015
- win.top.location.href = href;
2016
- break;
2017
- case 'parent':
2018
- win.parent.location.href = href;
2019
- break;
2020
- }
2021
- } else {
2022
- if (open) {
2023
- win.open(href);
2024
- } else {
2025
- win.top.location.href = href;
2026
- }
2027
- }
2011
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2012
+ win.top.location.href = href;
2028
2013
  break;
2029
2014
  case 4:
2030
2015
  eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
@@ -3586,7 +3571,7 @@ module.exports = require("runtime-import");
3586
3571
  // ESM COMPAT FLAG
3587
3572
  __webpack_require__.r(__webpack_exports__);
3588
3573
 
3589
- // 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=cef5b378&
3574
+ // 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=e6267c3c&
3590
3575
  var render = function () {
3591
3576
  var _vm = this
3592
3577
  var _h = _vm.$createElement
@@ -4016,11 +4001,7 @@ var staticRenderFns = []
4016
4001
  render._withStripped = true
4017
4002
 
4018
4003
 
4019
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=cef5b378&
4020
-
4021
- // EXTERNAL MODULE: external "babel-runtime/regenerator"
4022
- var regenerator_ = __webpack_require__(11);
4023
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
4004
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=e6267c3c&
4024
4005
 
4025
4006
  // 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=799780ee&
4026
4007
  var userinfovue_type_template_id_799780ee_render = function () {
@@ -5665,6 +5646,10 @@ async_componentvue_type_template_id_51f0233c_scoped_true_render._withStripped =
5665
5646
 
5666
5647
  // CONCATENATED MODULE: ./packages/main/src/async-component/index.vue?vue&type=template&id=51f0233c&scoped=true&
5667
5648
 
5649
+ // EXTERNAL MODULE: external "babel-runtime/regenerator"
5650
+ var regenerator_ = __webpack_require__(11);
5651
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
5652
+
5668
5653
  // EXTERNAL MODULE: external "runtime-import"
5669
5654
  var external_runtime_import_ = __webpack_require__(20);
5670
5655
 
@@ -5818,12 +5803,8 @@ var async_component_component = Object(componentNormalizer["a" /* default */])(
5818
5803
 
5819
5804
  /* harmony default export */ var async_component = (async_component_component.exports);
5820
5805
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js&
5821
-
5822
-
5823
5806
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
5824
5807
 
5825
- function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
5826
-
5827
5808
  //
5828
5809
  //
5829
5810
  //
@@ -6441,7 +6422,7 @@ var log = util["a" /* default */].getParams('console');
6441
6422
  this.isHeader = params.header;
6442
6423
  var sysLogoIco = sessionStorage.getItem('sysLogoIco');
6443
6424
  sysLogoIco && util["a" /* default */].setFavicon(sysLogoIco);
6444
- this.isLogin(params);
6425
+ this.getConfig(params);
6445
6426
  },
6446
6427
  mounted: function mounted() {
6447
6428
  util["a" /* default */].win.reLogin = this.handleReLogin;
@@ -6457,156 +6438,6 @@ var log = util["a" /* default */].getParams('console');
6457
6438
  },
6458
6439
 
6459
6440
  methods: {
6460
- isLogin: function isLogin(query) {
6461
- var _this = this;
6462
-
6463
- return mainvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
6464
- var token, loginPage, pathname;
6465
- return regenerator_default.a.wrap(function _callee$(_context) {
6466
- while (1) {
6467
- switch (_context.prev = _context.next) {
6468
- case 0:
6469
- token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
6470
- loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
6471
-
6472
- if (loginPage) {
6473
- if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
6474
- pathname = util["a" /* default */].win.top.location.pathname;
6475
-
6476
- if (pathname !== '/') {
6477
- pathname = pathname.split('/');
6478
- pathname.splice(pathname.length - 1);
6479
- pathname = pathname.join('/');
6480
- loginPage = pathname + '/' + loginPage.replace('./', '');
6481
- } else {
6482
- loginPage = pathname + loginPage.replace('./', '');
6483
- }
6484
- }
6485
- }
6486
-
6487
- if (!(!token && query && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType'))) {
6488
- _context.next = 8;
6489
- break;
6490
- }
6491
-
6492
- _context.next = 6;
6493
- return util["a" /* default */].ajax({
6494
- method: 'post',
6495
- url: api["b" /* authCenter */],
6496
- data: query
6497
- }).then(function (res) {
6498
- if (res.rCode === 0) {
6499
- var results = res.results;
6500
-
6501
- switch (results.statusCode) {
6502
- case 0:
6503
- util["a" /* default */].setStorage({
6504
- type: _this.storage,
6505
- key: {
6506
- ssId: results.ssId,
6507
- token: results.token,
6508
- Authorization: results.token,
6509
- deviceUnique: results.deviceUnique
6510
- }
6511
- });
6512
- if (query.openType) {
6513
- var _url2 = util["a" /* default */].win.top.location.href;
6514
- var newUrl = util["a" /* default */].delUrlParam({
6515
- url: _url2,
6516
- key: ['serverId', 'authType', 'openType']
6517
- });
6518
- switch (query.openType) {
6519
- case 'self':
6520
- util["a" /* default */].win.location.href = newUrl;
6521
- break;
6522
- case 'blank':
6523
- util["a" /* default */].win.open(newUrl);
6524
- break;
6525
- case 'parent':
6526
- util["a" /* default */].win.parent.location.href = _href;
6527
- break;
6528
- default:
6529
- util["a" /* default */].win.top.location.href = _href;
6530
- }
6531
- } else {
6532
- _this.getConfig();
6533
- }
6534
- break;
6535
- case 1:
6536
- break;
6537
- case 2:
6538
- break;
6539
- case 3:
6540
- var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
6541
- switch (query.openType) {
6542
- case 'self':
6543
- util["a" /* default */].win.location.href = _href;
6544
- break;
6545
- case 'blank':
6546
- util["a" /* default */].win.open(_href);
6547
- break;
6548
- case 'parent':
6549
- util["a" /* default */].win.parent.location.href = _href;
6550
- break;
6551
- default:
6552
- util["a" /* default */].win.top.location.href = _href;
6553
- }
6554
- break;
6555
- case 4:
6556
- _this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
6557
- confirmButtonText: '确定',
6558
- type: 'error',
6559
- callback: function callback() {
6560
- sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
6561
- //window.location.href = delUrlParam({ key: 'code' });
6562
- if (loginPage) {
6563
- util["a" /* default */].win.top.location.replace(loginPage);
6564
- } else if (document.referrer) {
6565
- util["a" /* default */].win.top.location.replace(document.referrer);
6566
- } else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
6567
- util["a" /* default */].win.top.location.href = './login.html';
6568
- } else {
6569
- _this.$router.replace('/login');
6570
- }
6571
- }
6572
- });
6573
- break;
6574
- default:
6575
- }
6576
- } else {
6577
- _this.$alert(res.msg, '提示', {
6578
- confirmButtonText: '确定',
6579
- type: 'error',
6580
- callback: function callback() {
6581
- if (loginPage) {
6582
- util["a" /* default */].win.top.location.replace(loginPage);
6583
- } else if (document.referrer) {
6584
- util["a" /* default */].win.top.location.replace(document.referrer);
6585
- } else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
6586
- util["a" /* default */].win.top.location.href = './login.html';
6587
- } else {
6588
- _this.$router.replace('/login');
6589
- }
6590
- }
6591
- });
6592
- }
6593
- }).catch(function (e) {});
6594
-
6595
- case 6:
6596
- _context.next = 9;
6597
- break;
6598
-
6599
- case 8:
6600
- _this.getConfig();
6601
-
6602
- case 9:
6603
- case 'end':
6604
- return _context.stop();
6605
- }
6606
- }
6607
- }, _callee, _this);
6608
- }))();
6609
- },
6610
6441
  menuSuccess: function menuSuccess(res) {
6611
6442
  // this.menus
6612
6443
  this.menuType = 'custom';
@@ -6618,14 +6449,14 @@ var log = util["a" /* default */].getParams('console');
6618
6449
 
6619
6450
  //获取主题模板JSON
6620
6451
  getMainDetail: function getMainDetail(id) {
6621
- var _this2 = this;
6452
+ var _this = this;
6622
6453
 
6623
6454
  var params = {
6624
6455
  url: api["cb" /* mainDetail */],
6625
6456
  params: { id: id }
6626
6457
  };
6627
6458
  util["a" /* default */].ajax(params).then(function (res) {
6628
- var _that = _this2;
6459
+ var _that = _this;
6629
6460
  if (!res.results) {
6630
6461
  _that.showDefault = true;
6631
6462
  }
@@ -6661,7 +6492,7 @@ var log = util["a" /* default */].getParams('console');
6661
6492
  }
6662
6493
  }).catch(function (err) {
6663
6494
  if (err.message && err.message !== 'canceled') {
6664
- _this2.$message.error(err.message);
6495
+ _this.$message.error(err.message);
6665
6496
  }
6666
6497
  });
6667
6498
  },
@@ -6737,7 +6568,7 @@ var log = util["a" /* default */].getParams('console');
6737
6568
 
6738
6569
  //设置主题颜色
6739
6570
  setTheme: function setTheme(color) {
6740
- var _this3 = this;
6571
+ var _this2 = this;
6741
6572
 
6742
6573
  if (!color) {
6743
6574
  return;
@@ -6748,24 +6579,24 @@ var log = util["a" /* default */].getParams('console');
6748
6579
  data: { color: escape(color.toLowerCase()) }
6749
6580
  }).then(function (res) {
6750
6581
  if (res.rCode === 0) {
6751
- _this3.color = color;
6582
+ _this2.color = color;
6752
6583
  localStorage.setItem('theme', color);
6753
6584
  var _mainConfig = JSON.parse(util["a" /* default */].getStorage('mainConfig'));
6754
- _mainConfig.userStyle.color = _this3.color;
6585
+ _mainConfig.userStyle.color = _this2.color;
6755
6586
  sessionStorage.setItem('mainConfig', JSON.stringify(_mainConfig));
6756
- _this3.$emit('setting', 'theme', _this3.color);
6757
- _this3.$message({
6587
+ _this2.$emit('setting', 'theme', _this2.color);
6588
+ _this2.$message({
6758
6589
  message: res.msg,
6759
6590
  type: 'success',
6760
6591
  duration: 2000
6761
6592
  });
6762
6593
  } else {
6763
6594
  var msg = res.msg || '系统错误,请联系管理员!';
6764
- _this3.$message.error(msg);
6595
+ _this2.$message.error(msg);
6765
6596
  }
6766
6597
  }).catch(function (err) {
6767
6598
  if (err.message && err.message !== 'canceled') {
6768
- _this3.$message.error(err.message);
6599
+ _this2.$message.error(err.message);
6769
6600
  }
6770
6601
  });
6771
6602
  },
@@ -6852,9 +6683,13 @@ var log = util["a" /* default */].getParams('console');
6852
6683
  },
6853
6684
 
6854
6685
  //获取用户配置及信息
6855
- getConfig: function getConfig() {
6856
- var _this4 = this;
6686
+ getConfig: function getConfig(query) {
6687
+ var _this3 = this;
6857
6688
 
6689
+ var token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
6690
+ if (!token && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType')) {
6691
+ return false;
6692
+ }
6858
6693
  if (util["a" /* default */].getStorage('mainConfig')) {
6859
6694
  var results = JSON.parse(util["a" /* default */].getStorage('mainConfig'));
6860
6695
  this.setConfig(results);
@@ -6867,39 +6702,39 @@ var log = util["a" /* default */].getParams('console');
6867
6702
  }
6868
6703
  util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
6869
6704
  if (res && res.rCode === 0) {
6870
- _this4.setConfig(res.results, 1);
6871
- if (_this4.socket) {
6872
- _this4.initWebSocket();
6705
+ _this3.setConfig(res.results, 1);
6706
+ if (_this3.socket) {
6707
+ _this3.initWebSocket();
6873
6708
  }
6874
- if (_this4.remote) {
6875
- _this4.getMenu();
6709
+ if (_this3.remote) {
6710
+ _this3.getMenu();
6876
6711
  } else {
6877
- _this4.renderMenu();
6712
+ _this3.renderMenu();
6878
6713
  }
6879
6714
  } else {
6880
6715
  var msg = res.msg || '系统错误,请联系管理员!';
6881
- _this4.$message.error(msg);
6716
+ _this3.$message.error(msg);
6882
6717
  }
6883
6718
  }).catch(function (err) {
6884
6719
  if (err.message && err.message !== 'canceled') {
6885
- _this4.$message.error(err.message);
6720
+ _this3.$message.error(err.message);
6886
6721
  }
6887
6722
  });
6888
6723
  },
6889
6724
  reGetConfig: function reGetConfig() {
6890
- var _this5 = this;
6725
+ var _this4 = this;
6891
6726
 
6892
6727
  util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
6893
6728
  if (res && res.rCode === 0) {
6894
6729
  var results = JSON.parse(JSON.stringify(res.results));
6895
- _this5.setConfig(results, 1);
6730
+ _this4.setConfig(results, 1);
6896
6731
  } else {
6897
6732
  var msg = res.msg || '系统错误,请联系管理员!';
6898
- _this5.$message.error(msg);
6733
+ _this4.$message.error(msg);
6899
6734
  }
6900
6735
  }).catch(function (err) {
6901
6736
  if (err.message && err.message !== 'canceled') {
6902
- _this5.$message.error(err.message);
6737
+ _this4.$message.error(err.message);
6903
6738
  }
6904
6739
  });
6905
6740
  },
@@ -6960,8 +6795,8 @@ var log = util["a" /* default */].getParams('console');
6960
6795
  return item.id;
6961
6796
  } else {
6962
6797
  if (path && item.url) {
6963
- var _url3 = new URL(item.url, window.location.origin);
6964
- if (_url3.hash == res) {
6798
+ var url = new URL(item.url, window.location.origin);
6799
+ if (url.hash == res) {
6965
6800
  return item.id;
6966
6801
  }
6967
6802
  }
@@ -6972,24 +6807,24 @@ var log = util["a" /* default */].getParams('console');
6972
6807
 
6973
6808
  //获取应用导航菜单
6974
6809
  getMenu: function getMenu() {
6975
- var _this6 = this;
6810
+ var _this5 = this;
6976
6811
 
6977
6812
  util["a" /* default */].ajax({ url: this.action, params: this.param ? this.param : {} }).then(function (res) {
6978
6813
  if (res.rCode === 0) {
6979
6814
  if (res.results && res.results.length) {
6980
- _this6.menus = JSON.parse(JSON.stringify(res.results));
6815
+ _this5.menus = JSON.parse(JSON.stringify(res.results));
6981
6816
  var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
6982
6817
  if (applicationid) {
6983
- var ids = _this6.getId(_this6.menus, applicationid);
6818
+ var ids = _this5.getId(_this5.menus, applicationid);
6984
6819
  if (ids) {
6985
- _this6.defaultActive = ids;
6820
+ _this5.defaultActive = ids;
6986
6821
  }
6987
- } else if (sessionStorage.getItem('jump') && _this6.isHistory) {
6988
- var _ids4 = _this6.getId(_this6.menus, sessionStorage.getItem('jump'), true);
6822
+ } else if (sessionStorage.getItem('jump') && _this5.isHistory) {
6823
+ var _ids4 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6989
6824
  if (_ids4) {
6990
- _this6.defaultActive = _ids4;
6991
- _this6.navIds = _ids4;
6992
- _this6.setTitle(_ids4[0]);
6825
+ _this5.defaultActive = _ids4;
6826
+ _this5.navIds = _ids4;
6827
+ _this5.setTitle(_ids4[0]);
6993
6828
  }
6994
6829
  } else if (util["a" /* default */].win.location.hash) {
6995
6830
  var hash = util["a" /* default */].win.location.hash;
@@ -6997,34 +6832,34 @@ var log = util["a" /* default */].getParams('console');
6997
6832
  hash = hash.split('?')[0];
6998
6833
  }
6999
6834
  if (hash !== '#/' && hash !== '#/main') {
7000
- var _ids5 = _this6.getId(_this6.menus, util["a" /* default */].win.location.hash, true);
6835
+ var _ids5 = _this5.getId(_this5.menus, util["a" /* default */].win.location.hash, true);
7001
6836
  if (_ids5) {
7002
- _this6.defaultActive = _ids5;
7003
- _this6.navIds = _ids5;
7004
- _this6.setTitle(_ids5[0]);
6837
+ _this5.defaultActive = _ids5;
6838
+ _this5.navIds = _ids5;
6839
+ _this5.setTitle(_ids5[0]);
7005
6840
  }
7006
- } else if (sessionStorage.getItem('jump') && _this6.isHistory) {
7007
- var _ids6 = _this6.getId(_this6.menus, sessionStorage.getItem('jump'), true);
6841
+ } else if (sessionStorage.getItem('jump') && _this5.isHistory) {
6842
+ var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
7008
6843
  if (_ids6) {
7009
- _this6.defaultActive = _ids6;
7010
- _this6.navIds = _ids6;
7011
- _this6.setTitle(_ids6[0]);
6844
+ _this5.defaultActive = _ids6;
6845
+ _this5.navIds = _ids6;
6846
+ _this5.setTitle(_ids6[0]);
7012
6847
  }
7013
6848
  }
7014
6849
  }
7015
- _this6.setTips(_this6.menus);
7016
- store["a" /* default */].set('nav', _this6.menus);
7017
- _this6.setMenu(_this6.menus);
6850
+ _this5.setTips(_this5.menus);
6851
+ store["a" /* default */].set('nav', _this5.menus);
6852
+ _this5.setMenu(_this5.menus);
7018
6853
  } else {
7019
- _this6.$message.error('未分配菜单权限,请联系管理员!');
6854
+ _this5.$message.error('未分配菜单权限,请联系管理员!');
7020
6855
  }
7021
6856
  } else {
7022
6857
  var msg = res.msg || '系统错误,请联系管理员!';
7023
- _this6.$message.error(msg);
6858
+ _this5.$message.error(msg);
7024
6859
  }
7025
6860
  }).catch(function (err) {
7026
6861
  if (err.message && err.message !== 'canceled') {
7027
- _this6.$message.error(err.message);
6862
+ _this5.$message.error(err.message);
7028
6863
  }
7029
6864
  });
7030
6865
  },
@@ -7146,11 +6981,11 @@ var log = util["a" /* default */].getParams('console');
7146
6981
 
7147
6982
  //遍历设置菜单气泡提醒
7148
6983
  setTips: function setTips(obj) {
7149
- var _this7 = this;
6984
+ var _this6 = this;
7150
6985
 
7151
6986
  if (Array.isArray(obj)) {
7152
6987
  obj.forEach(function (item) {
7153
- _this7.setTips(item);
6988
+ _this6.setTips(item);
7154
6989
  });
7155
6990
  } else {
7156
6991
  if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
@@ -7160,7 +6995,7 @@ var log = util["a" /* default */].getParams('console');
7160
6995
  var flag = false;
7161
6996
  if (obj.children && obj.children.length) {
7162
6997
  obj.children.forEach(function (item) {
7163
- if (_this7.setTips(item)) {
6998
+ if (_this6.setTips(item)) {
7164
6999
  flag = true;
7165
7000
  }
7166
7001
  });
@@ -7170,7 +7005,7 @@ var log = util["a" /* default */].getParams('console');
7170
7005
  }
7171
7006
  } else if (obj.fourthTabs && obj.fourthTabs.length) {
7172
7007
  obj.fourthTabs.forEach(function (item) {
7173
- if (_this7.setTips(item)) {
7008
+ if (_this6.setTips(item)) {
7174
7009
  flag = true;
7175
7010
  }
7176
7011
  });
@@ -7254,19 +7089,19 @@ var log = util["a" /* default */].getParams('console');
7254
7089
  } else {
7255
7090
  if (item.children && item.children.length) {
7256
7091
  index++;
7257
- var _url4 = this.getUrl(item.children, active, index, param);
7258
- if (_url4 && index === active.length - 1) {
7092
+ var url = this.getUrl(item.children, active, index, param);
7093
+ if (url && index === active.length - 1) {
7259
7094
  this.tabs = '';
7260
7095
  }
7261
- return _url4;
7096
+ return url;
7262
7097
  }
7263
7098
  if (item.fourthTabs && item.fourthTabs.length) {
7264
7099
  index++;
7265
- var _url5 = this.getUrl(item.fourthTabs, active, index, param);
7266
- if (_url5) {
7100
+ var _url2 = this.getUrl(item.fourthTabs, active, index, param);
7101
+ if (_url2) {
7267
7102
  this.$set(this, 'tabs', item.fourthTabs);
7268
7103
  }
7269
- return _url5;
7104
+ return _url2;
7270
7105
  }
7271
7106
  }
7272
7107
  } else if (item.children && item.children.length) {
@@ -7464,7 +7299,7 @@ var log = util["a" /* default */].getParams('console');
7464
7299
 
7465
7300
  //头部工具交互事件
7466
7301
  handleClick: function handleClick(res) {
7467
- var _this8 = this;
7302
+ var _this7 = this;
7468
7303
 
7469
7304
  var type = res.type;
7470
7305
 
@@ -7485,7 +7320,7 @@ var log = util["a" /* default */].getParams('console');
7485
7320
  this.setMenu(this.menus);
7486
7321
  }
7487
7322
  this.$nextTick(function () {
7488
- _this8.reset = true;
7323
+ _this7.reset = true;
7489
7324
  });
7490
7325
  break;
7491
7326
  case 'user':
@@ -7513,21 +7348,21 @@ var log = util["a" /* default */].getParams('console');
7513
7348
 
7514
7349
  //刷新子页面、子路由
7515
7350
  handleRefresh: function handleRefresh() {
7516
- var _this9 = this;
7351
+ var _this8 = this;
7517
7352
 
7518
7353
  if (this.method === 'iframe') {
7519
7354
  this.page = util["a" /* default */].handlerUrl(this.page);
7520
7355
  } else {
7521
7356
  this.refresh = false;
7522
7357
  this.$nextTick(function () {
7523
- _this9.refresh = true;
7358
+ _this8.refresh = true;
7524
7359
  });
7525
7360
  }
7526
7361
  },
7527
7362
 
7528
7363
  //跳转页面
7529
7364
  handleJump: function handleJump(page, type, res, param) {
7530
- var _this10 = this;
7365
+ var _this9 = this;
7531
7366
 
7532
7367
  console.log(page);
7533
7368
  var prevPage = sessionStorage.getItem('jump');
@@ -7558,7 +7393,7 @@ var log = util["a" /* default */].getParams('console');
7558
7393
  this.wjName = 'singlespa';
7559
7394
  this.page = this.host + page;
7560
7395
  this.$nextTick(function () {
7561
- _this10.refresh = true;
7396
+ _this9.refresh = true;
7562
7397
  });
7563
7398
  } else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
7564
7399
  this.method = 'iframe';
@@ -7590,7 +7425,7 @@ var log = util["a" /* default */].getParams('console');
7590
7425
  query: params
7591
7426
  });
7592
7427
  this.$nextTick(function () {
7593
- _this10.refresh = true;
7428
+ _this9.refresh = true;
7594
7429
  });
7595
7430
  } else {
7596
7431
  var urlopenmode = util["a" /* default */].getParams({
@@ -7606,7 +7441,7 @@ var log = util["a" /* default */].getParams('console');
7606
7441
  this.wjName = res && res.appCode ? res.appCode : 'application';
7607
7442
  this.page = this.host + page;
7608
7443
  this.$nextTick(function () {
7609
- _this10.refresh = true;
7444
+ _this9.refresh = true;
7610
7445
  });
7611
7446
  }
7612
7447
  }
@@ -7618,7 +7453,7 @@ var log = util["a" /* default */].getParams('console');
7618
7453
  }
7619
7454
  }
7620
7455
  this.$nextTick(function () {
7621
- _this10.showPage = true;
7456
+ _this9.showPage = true;
7622
7457
  });
7623
7458
  },
7624
7459
 
@@ -7730,7 +7565,7 @@ var log = util["a" /* default */].getParams('console');
7730
7565
 
7731
7566
  //监听改变菜单
7732
7567
  handleListener: function handleListener() {
7733
- var _this11 = this;
7568
+ var _this10 = this;
7734
7569
 
7735
7570
  util["a" /* default */].win.addEventListener('message', function (e) {
7736
7571
  var msg = e.data;
@@ -7739,45 +7574,45 @@ var log = util["a" /* default */].getParams('console');
7739
7574
  if (typeof res === 'string') {
7740
7575
  res = res.split(',');
7741
7576
  }
7742
- _this11.setDefault(_this11.menus, res);
7577
+ _this10.setDefault(_this10.menus, res);
7743
7578
  }
7744
7579
  }, false);
7745
7580
  },
7746
7581
 
7747
7582
  //开启weosocket
7748
7583
  initWebSocket: function initWebSocket() {
7749
- var _this12 = this;
7584
+ var _this11 = this;
7750
7585
 
7751
7586
  util["a" /* default */].socket().then(function (res, close) {
7752
- _this12.close = close;
7587
+ _this11.close = close;
7753
7588
  var data = res.data;
7754
7589
  for (var i in data) {
7755
7590
  if (data[i] !== null && data[i] !== undefined) {
7756
7591
  if (i === 'onlineUserNums' && data[i] > 0) {
7757
- _this12.online = data[i];
7592
+ _this11.online = data[i];
7758
7593
  }
7759
7594
  if (i === 'sysMsgNums') {
7760
- _this12.notice = data[i];
7761
- if (_this12.showMsg) {
7762
- _this12.$refs.message.getMsg(true);
7595
+ _this11.notice = data[i];
7596
+ if (_this11.showMsg) {
7597
+ _this11.$refs.message.getMsg(true);
7763
7598
  }
7764
7599
  }
7765
7600
  if (i === 'menuTipsMap') {
7766
- _this12.menuTips = data[i];
7601
+ _this11.menuTips = data[i];
7767
7602
  }
7768
7603
  if (i === 'sysMsgList') {
7769
- _this12.sysMsg = data[i];
7604
+ _this11.sysMsg = data[i];
7770
7605
  }
7771
7606
  if (i === 'extraData') {
7772
- _this12.extraData = data[i];
7607
+ _this11.extraData = data[i];
7773
7608
  }
7774
7609
  }
7775
7610
  }
7776
- if (_this12.$store) {
7777
- _this12.$store.commit('websocket', data);
7611
+ if (_this11.$store) {
7612
+ _this11.$store.commit('websocket', data);
7778
7613
  }
7779
- if (_this12.$eventBus) {
7780
- _this12.$eventBus.$emit('websocket', data);
7614
+ if (_this11.$eventBus) {
7615
+ _this11.$eventBus.$emit('websocket', data);
7781
7616
  }
7782
7617
  if (util["a" /* default */].win.eventBus) {
7783
7618
  util["a" /* default */].win.eventBus.$emit('websocket', data);
@@ -7787,13 +7622,13 @@ var log = util["a" /* default */].getParams('console');
7787
7622
  });
7788
7623
  },
7789
7624
  handleOpened: function handleOpened(res) {
7790
- var _this13 = this;
7625
+ var _this12 = this;
7791
7626
 
7792
7627
  if (res === undefined) {
7793
7628
  this.sysMsg = [];
7794
7629
  } else if (res == false && this.sysMsg.length) {
7795
7630
  this.sysMsgOut = setTimeout(function () {
7796
- _this13.sysMsg = [];
7631
+ _this12.sysMsg = [];
7797
7632
  }, 3000);
7798
7633
  } else if (this.sysMsgOut) {
7799
7634
  clearTimeout(this.sysMsgOut);
@@ -7814,7 +7649,7 @@ var log = util["a" /* default */].getParams('console');
7814
7649
  }
7815
7650
  },
7816
7651
  handleReLogin: function handleReLogin(res) {
7817
- var _this14 = this;
7652
+ var _this13 = this;
7818
7653
 
7819
7654
  if (res && typeof res == 'string') {
7820
7655
  res = JSON.parse(res);
@@ -7845,7 +7680,7 @@ var log = util["a" /* default */].getParams('console');
7845
7680
  this.timer = setTimeout(function () {
7846
7681
  console.log('handleReLogin');
7847
7682
  sessionStorage.setItem('remind', 1);
7848
- _this14.$confirm(msg, btn).then(function () {
7683
+ _this13.$confirm(msg, btn).then(function () {
7849
7684
  util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
7850
7685
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
7851
7686
  if (loginPage) {