eoss-ui 0.4.61 → 0.4.63

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 (98) hide show
  1. package/lib/button-group.js +46 -44
  2. package/lib/button.js +46 -44
  3. package/lib/card.js +2 -2
  4. package/lib/cascader.js +2 -2
  5. package/lib/checkbox-group.js +61 -69
  6. package/lib/clients.js +2 -2
  7. package/lib/data-table-form.js +44 -42
  8. package/lib/data-table.js +107 -91
  9. package/lib/date-picker.js +53 -51
  10. package/lib/dialog.js +51 -50
  11. package/lib/editor.js +6 -6
  12. package/lib/enterprise.js +2 -2
  13. package/lib/eoss-ui.common.js +2408 -5194
  14. package/lib/error-page.js +2 -2
  15. package/lib/flow-group.js +127 -63
  16. package/lib/flow-list.js +1020 -323
  17. package/lib/flow.js +51 -50
  18. package/lib/form.js +231 -46
  19. package/lib/handle-user.js +46 -44
  20. package/lib/handler.js +49 -47
  21. package/lib/icons.js +4 -4
  22. package/lib/index.js +1 -1
  23. package/lib/input-number.js +46 -44
  24. package/lib/input.js +46 -44
  25. package/lib/label.js +2 -2
  26. package/lib/login.js +49 -47
  27. package/lib/main.js +289 -177
  28. package/lib/menu.js +7 -5
  29. package/lib/nav.js +48 -48
  30. package/lib/notify.js +2 -2
  31. package/lib/page.js +46 -44
  32. package/lib/pagination.js +2 -2
  33. package/lib/player.js +48 -46
  34. package/lib/qr-code.js +46 -44
  35. package/lib/radio-group.js +49 -47
  36. package/lib/retrial-auth.js +46 -44
  37. package/lib/select-ganged.js +46 -44
  38. package/lib/select.js +47 -45
  39. package/lib/selector-panel.js +46 -44
  40. package/lib/selector.js +63 -50
  41. package/lib/sizer.js +46 -44
  42. package/lib/steps.js +46 -44
  43. package/lib/switch.js +46 -44
  44. package/lib/table-form.js +46 -44
  45. package/lib/tabs-panel.js +2 -2
  46. package/lib/tabs.js +53 -51
  47. package/lib/theme-chalk/data-table.css +1 -1
  48. package/lib/theme-chalk/dialog.css +1 -1
  49. package/lib/theme-chalk/flow-list.css +1 -1
  50. package/lib/theme-chalk/index.css +1 -1
  51. package/lib/theme-chalk/menu.css +1 -1
  52. package/lib/tips.js +46 -44
  53. package/lib/toolbar.js +2 -2
  54. package/lib/tree-group.js +46 -44
  55. package/lib/tree.js +46 -44
  56. package/lib/upload.js +52 -50
  57. package/lib/utils/util.js +44 -42
  58. package/lib/wujie.js +46 -44
  59. package/lib/wxlogin.js +46 -44
  60. package/package.json +2 -2
  61. package/packages/checkbox-group/src/main.vue +16 -25
  62. package/packages/data-table/src/column.vue +15 -1
  63. package/packages/data-table/src/main.vue +58 -47
  64. package/packages/flow/src/component/taskUnionExamine.vue +0 -1
  65. package/packages/flow-group/src/main.vue +32 -14
  66. package/packages/flow-list/src/flow-table.vue +5 -1
  67. package/packages/flow-list/src/main.vue +780 -43
  68. package/packages/form/src/main.vue +63 -0
  69. package/packages/handler/src/main.vue +1 -1
  70. package/packages/login/src/main.vue +10 -1
  71. package/packages/main/src/main.vue +186 -63
  72. package/packages/main/src/userinfo.vue +3 -3
  73. package/packages/menu/src/main.vue +5 -3
  74. package/packages/nav/src/main.vue +0 -2
  75. package/packages/radio-group/src/main.vue +9 -5
  76. package/packages/select/src/main.vue +1 -1
  77. package/packages/selector/src/main.vue +12 -4
  78. package/packages/theme-chalk/lib/data-table.css +1 -1
  79. package/packages/theme-chalk/lib/dialog.css +1 -1
  80. package/packages/theme-chalk/lib/flow-list.css +1 -1
  81. package/packages/theme-chalk/lib/index.css +1 -1
  82. package/packages/theme-chalk/lib/menu.css +1 -1
  83. package/packages/theme-chalk/src/data-table.scss +10 -17
  84. package/packages/theme-chalk/src/dialog.scss +1 -1
  85. package/packages/theme-chalk/src/flow-list.scss +29 -34
  86. package/packages/theme-chalk/src/index.scss +0 -1
  87. package/packages/theme-chalk/src/menu.scss +3 -0
  88. package/packages/upload/src/main.vue +1 -1
  89. package/src/index.js +1 -4
  90. package/src/utils/util.js +58 -55
  91. package/lib/mainComp.js +0 -6817
  92. package/packages/mainComp/index.js +0 -5
  93. package/packages/mainComp/src/async-component/index.vue +0 -85
  94. package/packages/mainComp/src/main.vue +0 -1944
  95. package/packages/mainComp/src/message.vue +0 -239
  96. package/packages/mainComp/src/notice.vue +0 -152
  97. package/packages/mainComp/src/settings.vue +0 -105
  98. package/packages/mainComp/src/userinfo.vue +0 -430
package/lib/main.js CHANGED
@@ -247,52 +247,54 @@ var ajax = function ajax(_ref) {
247
247
  if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
248
248
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
249
249
  if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
250
- clearTimeout(loginMsg);
251
250
  var remind = sessionStorage.getItem('remind');
252
- !remind && (loginMsg = setTimeout(function () {
253
- sessionStorage.setItem('remind', 1);
254
- eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
255
- confirmButtonText: '确定',
256
- closeOnClickModal: false,
257
- type: 'warning'
258
- } : {
259
- confirmButtonText: '确定',
260
- cancelButtonText: '取消',
261
- closeOnClickModal: false,
262
- type: 'warning'
263
- }).then(function () {
264
- var loginPage = getStorage('login') || getStorage('loginPage');
265
- if (loginPage) {
266
- var src = void 0;
267
- if (!startWith(loginPage, ['http', '/'])) {
268
- var pathname = win.top.location.pathname;
269
- if (pathname !== '/') {
270
- pathname = pathname.split('/');
271
- pathname.splice(pathname.length - 1);
272
- pathname = pathname.join('/');
273
- src = pathname + '/' + loginPage.replace('./', '');
251
+ if (!remind) {
252
+ clearTimeout(loginMsg);
253
+ loginMsg = setTimeout(function () {
254
+ sessionStorage.setItem('remind', 1);
255
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
256
+ confirmButtonText: '确定',
257
+ closeOnClickModal: false,
258
+ type: 'warning'
259
+ } : {
260
+ confirmButtonText: '确定',
261
+ cancelButtonText: '取消',
262
+ closeOnClickModal: false,
263
+ type: 'warning'
264
+ }).then(function () {
265
+ var loginPage = getStorage('login') || getStorage('loginPage');
266
+ if (loginPage) {
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'], true)) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ src = pathname + '/' + loginPage.replace('./', '');
275
+ } else {
276
+ src = pathname + loginPage.replace('./', '');
277
+ }
274
278
  } else {
275
- src = pathname + loginPage.replace('./', '');
279
+ src = loginPage;
276
280
  }
281
+ win.top.location.href = src;
282
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
283
+ win.top.location.href = './login.html';
277
284
  } else {
278
- src = loginPage;
279
- }
280
- win.top.location.href = src;
281
- } else if (win.top.location.href.indexOf('main.html') > -1) {
282
- win.top.location.href = './login.html';
283
- } else {
284
- var hash = win.top.location.hash;
285
- if (hash) {
286
- var len = win.top.location.href.indexOf(hash);
287
- win.top.location.href = win.location.href.slice(0, len) + '#/login';
288
- } else {
289
- win.top.location.href = '/login.html';
285
+ var hash = win.top.location.hash;
286
+ if (hash) {
287
+ var len = win.top.location.href.indexOf(hash);
288
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
289
+ } else {
290
+ win.top.location.href = '/login.html';
291
+ }
290
292
  }
291
- }
292
- }).catch(function (e) {
293
- sessionStorage.removeItem('remind');
294
- });
295
- }, 1000));
293
+ }).catch(function (e) {
294
+ sessionStorage.removeItem('remind');
295
+ });
296
+ }, 2000);
297
+ }
296
298
  }
297
299
  } else if (response.data.rCode === 61) {
298
300
  clearTimeout(initAuth);
@@ -2081,7 +2083,7 @@ var setStorage = function setStorage(_ref14) {
2081
2083
  * @param {boolean} [or] - 或者(等同于||)
2082
2084
  **/
2083
2085
  var startWith = function startWith(value, reg) {
2084
- var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2086
+ var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
2085
2087
 
2086
2088
  if (Array.isArray(reg)) {
2087
2089
  var flag = true;
@@ -2897,29 +2899,29 @@ module.exports = require("babel-runtime/regenerator");
2897
2899
  /* 11 */,
2898
2900
  /* 12 */,
2899
2901
  /* 13 */,
2900
- /* 14 */
2902
+ /* 14 */,
2903
+ /* 15 */,
2904
+ /* 16 */,
2905
+ /* 17 */,
2906
+ /* 18 */,
2907
+ /* 19 */
2901
2908
  /***/ (function(module, exports) {
2902
2909
 
2903
2910
  module.exports = require("runtime-import");
2904
2911
 
2905
2912
  /***/ }),
2906
- /* 15 */
2913
+ /* 20 */
2907
2914
  /***/ (function(module, exports) {
2908
2915
 
2909
2916
  module.exports = require("sockjs-client");
2910
2917
 
2911
2918
  /***/ }),
2912
- /* 16 */
2919
+ /* 21 */
2913
2920
  /***/ (function(module, exports) {
2914
2921
 
2915
2922
  module.exports = require("stompjs");
2916
2923
 
2917
2924
  /***/ }),
2918
- /* 17 */,
2919
- /* 18 */,
2920
- /* 19 */,
2921
- /* 20 */,
2922
- /* 21 */,
2923
2925
  /* 22 */,
2924
2926
  /* 23 */,
2925
2927
  /* 24 */,
@@ -2934,7 +2936,7 @@ module.exports = require("stompjs");
2934
2936
  // ESM COMPAT FLAG
2935
2937
  __webpack_require__.r(__webpack_exports__);
2936
2938
 
2937
- // 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=3f0e5c30&
2939
+ // 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=1686d4f2&
2938
2940
  var render = function () {
2939
2941
  var _vm = this
2940
2942
  var _h = _vm.$createElement
@@ -2992,6 +2994,7 @@ var render = function () {
2992
2994
  popperClass: "el-menu--popup-" + _vm.layout,
2993
2995
  data: _vm.navs,
2994
2996
  deep: _vm.layout === "topnav",
2997
+ height: _vm.layout === "topnav" ? "370px" : undefined,
2995
2998
  "default-active": _vm.topActive,
2996
2999
  },
2997
3000
  on: {
@@ -3300,9 +3303,6 @@ var render = function () {
3300
3303
  "update:visible": function ($event) {
3301
3304
  _vm.showSet = $event
3302
3305
  },
3303
- "update:layout": function ($event) {
3304
- _vm.layout = $event
3305
- },
3306
3306
  change: _vm.handleChange,
3307
3307
  layout: _vm.handleLayout,
3308
3308
  },
@@ -3362,10 +3362,10 @@ var staticRenderFns = []
3362
3362
  render._withStripped = true
3363
3363
 
3364
3364
 
3365
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=3f0e5c30&
3365
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=1686d4f2&
3366
3366
 
3367
- // 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=2f7a984a&
3368
- var userinfovue_type_template_id_2f7a984a_render = function () {
3367
+ // 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=2b6e9e21&
3368
+ var userinfovue_type_template_id_2b6e9e21_render = function () {
3369
3369
  var _vm = this
3370
3370
  var _h = _vm.$createElement
3371
3371
  var _c = _vm._self._c || _h
@@ -3381,11 +3381,11 @@ var userinfovue_type_template_id_2f7a984a_render = function () {
3381
3381
  2
3382
3382
  )
3383
3383
  }
3384
- var userinfovue_type_template_id_2f7a984a_staticRenderFns = []
3385
- userinfovue_type_template_id_2f7a984a_render._withStripped = true
3384
+ var userinfovue_type_template_id_2b6e9e21_staticRenderFns = []
3385
+ userinfovue_type_template_id_2b6e9e21_render._withStripped = true
3386
3386
 
3387
3387
 
3388
- // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=2f7a984a&
3388
+ // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=2b6e9e21&
3389
3389
 
3390
3390
  // EXTERNAL MODULE: ./src/config/api.js
3391
3391
  var api = __webpack_require__(1);
@@ -3703,11 +3703,11 @@ var util = __webpack_require__(0);
3703
3703
  email: this.values.email,
3704
3704
  officeTel: this.values.officetel,
3705
3705
  phone: this.values.phone,
3706
- oldPassword: initLogin && initLogin.secret ? util["a" /* default */].esmEncrypt({
3706
+ oldPassword: initLogin && initLogin.secret && this.values.oldpassword ? util["a" /* default */].esmEncrypt({
3707
3707
  data: this.values.oldpassword,
3708
3708
  key: initLogin.secret
3709
3709
  }) : this.values.oldpassword,
3710
- password: initLogin && initLogin.secret ? util["a" /* default */].esmEncrypt({
3710
+ password: initLogin && initLogin.secret && this.values.password ? util["a" /* default */].esmEncrypt({
3711
3711
  data: this.values.password,
3712
3712
  key: initLogin.secret
3713
3713
  }) : this.values.password
@@ -3724,7 +3724,7 @@ var util = __webpack_require__(0);
3724
3724
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
3725
3725
  if (loginPage) {
3726
3726
  var src = void 0;
3727
- if (!util["a" /* default */].startWith(loginPage, ['http', '/'])) {
3727
+ if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
3728
3728
  var pathname = util["a" /* default */].win.top.location.pathname;
3729
3729
  if (pathname !== '/') {
3730
3730
  pathname = pathname.split('/');
@@ -3806,8 +3806,8 @@ var componentNormalizer = __webpack_require__(3);
3806
3806
 
3807
3807
  var component = Object(componentNormalizer["a" /* default */])(
3808
3808
  src_userinfovue_type_script_lang_js_,
3809
- userinfovue_type_template_id_2f7a984a_render,
3810
- userinfovue_type_template_id_2f7a984a_staticRenderFns,
3809
+ userinfovue_type_template_id_2b6e9e21_render,
3810
+ userinfovue_type_template_id_2b6e9e21_staticRenderFns,
3811
3811
  false,
3812
3812
  null,
3813
3813
  null,
@@ -5008,7 +5008,7 @@ var regenerator_ = __webpack_require__(9);
5008
5008
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
5009
5009
 
5010
5010
  // EXTERNAL MODULE: external "runtime-import"
5011
- var external_runtime_import_ = __webpack_require__(14);
5011
+ var external_runtime_import_ = __webpack_require__(19);
5012
5012
 
5013
5013
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/async-component/index.vue?vue&type=script&lang=js&
5014
5014
 
@@ -5160,11 +5160,11 @@ var async_component_component = Object(componentNormalizer["a" /* default */])(
5160
5160
 
5161
5161
  /* harmony default export */ var async_component = (async_component_component.exports);
5162
5162
  // EXTERNAL MODULE: external "sockjs-client"
5163
- var external_sockjs_client_ = __webpack_require__(15);
5163
+ var external_sockjs_client_ = __webpack_require__(20);
5164
5164
  var external_sockjs_client_default = /*#__PURE__*/__webpack_require__.n(external_sockjs_client_);
5165
5165
 
5166
5166
  // EXTERNAL MODULE: external "stompjs"
5167
- var external_stompjs_ = __webpack_require__(16);
5167
+ var external_stompjs_ = __webpack_require__(21);
5168
5168
  var external_stompjs_default = /*#__PURE__*/__webpack_require__.n(external_stompjs_);
5169
5169
 
5170
5170
  // 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&
@@ -5416,6 +5416,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5416
5416
  //
5417
5417
  //
5418
5418
  //
5419
+ //
5419
5420
 
5420
5421
 
5421
5422
 
@@ -5553,6 +5554,10 @@ var log = util["a" /* default */].getParams('console');
5553
5554
  userHeight: {
5554
5555
  type: String,
5555
5556
  default: '740px'
5557
+ },
5558
+ history: {
5559
+ type: Boolean,
5560
+ default: true
5556
5561
  }
5557
5562
  },
5558
5563
  computed: {
@@ -5575,7 +5580,6 @@ var log = util["a" /* default */].getParams('console');
5575
5580
  return true;
5576
5581
  },
5577
5582
  navWidth: function navWidth() {
5578
- console.log(this.layout === 'topside' ? '230px' : undefined, 9000);
5579
5583
  return this.layout === 'topside' ? '230px' : undefined;
5580
5584
  },
5581
5585
  showNavTitle: function showNavTitle() {
@@ -5761,7 +5765,8 @@ var log = util["a" /* default */].getParams('console');
5761
5765
  isHeader: '',
5762
5766
  isSide: null,
5763
5767
  navIds: null,
5764
- timer: null
5768
+ timer: null,
5769
+ pid: null
5765
5770
  };
5766
5771
  },
5767
5772
  created: function created() {
@@ -5861,6 +5866,15 @@ var log = util["a" /* default */].getParams('console');
5861
5866
  thalk.innerText = globalThalk;
5862
5867
  }
5863
5868
  },
5869
+ setTitle: function setTitle(id) {
5870
+ for (var i = 0; i < this.menus.length; i++) {
5871
+ var item = this.menus[i];
5872
+ if (item.id == id) {
5873
+ this.title = item.text;
5874
+ return item;
5875
+ }
5876
+ }
5877
+ },
5864
5878
  renderMenu: function renderMenu() {
5865
5879
  if (this.data !== undefined && this.data.length) {
5866
5880
  this.menus = JSON.parse(JSON.stringify(this.data));
@@ -5869,6 +5883,8 @@ var log = util["a" /* default */].getParams('console');
5869
5883
  var ids = this.getId(this.menus, applicationid);
5870
5884
  if (ids) {
5871
5885
  this.defaultActive = ids;
5886
+ this.navIds = ids;
5887
+ this.setTitle(ids[0]);
5872
5888
  }
5873
5889
  } else if (util["a" /* default */].win.location.hash) {
5874
5890
  var hash = util["a" /* default */].win.location.hash;
@@ -5879,17 +5895,23 @@ var log = util["a" /* default */].getParams('console');
5879
5895
  var _ids = this.getId(this.menus, util["a" /* default */].win.location.hash, true);
5880
5896
  if (_ids) {
5881
5897
  this.defaultActive = _ids;
5898
+ this.navIds = _ids;
5899
+ this.setTitle(_ids[0]);
5882
5900
  }
5883
- } else if (sessionStorage.getItem('jump')) {
5901
+ } else if (sessionStorage.getItem('jump') && this.history) {
5884
5902
  var _ids2 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
5885
5903
  if (_ids2) {
5886
5904
  this.defaultActive = _ids2;
5905
+ this.navIds = _ids2;
5906
+ this.setTitle(_ids2[0]);
5887
5907
  }
5888
5908
  }
5889
- } else if (sessionStorage.getItem('jump')) {
5909
+ } else if (sessionStorage.getItem('jump') && this.history) {
5890
5910
  var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
5891
5911
  if (_ids3) {
5892
5912
  this.defaultActive = _ids3;
5913
+ this.navIds = _ids3;
5914
+ this.setTitle(_ids3[0]);
5893
5915
  }
5894
5916
  }
5895
5917
  this.setMenu(this.menus);
@@ -5943,7 +5965,7 @@ var log = util["a" /* default */].getParams('console');
5943
5965
  key: {
5944
5966
  userId: results.userModel.userId,
5945
5967
  userName: results.userModel.username,
5946
- useCaseCodes: results.resourceCodes
5968
+ useCaseCodes: results.resourceCodes || results.userModel.resourceCodes
5947
5969
  }
5948
5970
  });
5949
5971
  }
@@ -5961,10 +5983,10 @@ var log = util["a" /* default */].getParams('console');
5961
5983
  this.homePage = results[i];
5962
5984
  if (this.isHomePage) {
5963
5985
  if (this.menus) {
5964
- var ids = null;
5965
- this.homePage && (ids = this.getId(this.menus, this.homePage));
5966
- if (ids) {
5967
- this.defaultActive = ids;
5986
+ var _ids4 = null;
5987
+ this.homePage && (_ids4 = this.getId(this.menus, this.homePage));
5988
+ if (_ids4) {
5989
+ this.defaultActive = _ids4;
5968
5990
  } else if (this.homePage) {
5969
5991
  this.handleJump(this.homePage);
5970
5992
  }
@@ -5979,9 +6001,6 @@ var log = util["a" /* default */].getParams('console');
5979
6001
  if (i === 'subsystemName') {
5980
6002
  document.title = results[i];
5981
6003
  }
5982
- if (i === 'resourceCodes') {
5983
- sessionStorage.setItem('useCaseCodes', results[i]);
5984
- }
5985
6004
  if (i === 'sysLogoIco' && results[i]) {
5986
6005
  sessionStorage.setItem('sysLogoIco', results[i]);
5987
6006
  util["a" /* default */].setFavicon(results[i]);
@@ -6116,9 +6135,9 @@ var log = util["a" /* default */].getParams('console');
6116
6135
  _this5.menus = JSON.parse(JSON.stringify(res.results));
6117
6136
  var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
6118
6137
  if (applicationid) {
6119
- var ids = _this5.getId(_this5.menus, applicationid);
6120
- if (ids) {
6121
- _this5.defaultActive = ids;
6138
+ var _ids5 = _this5.getId(_this5.menus, applicationid);
6139
+ if (_ids5) {
6140
+ _this5.defaultActive = _ids5;
6122
6141
  }
6123
6142
  } else if (util["a" /* default */].win.location.hash) {
6124
6143
  var hash = util["a" /* default */].win.location.hash;
@@ -6126,20 +6145,26 @@ var log = util["a" /* default */].getParams('console');
6126
6145
  hash = hash.split('?')[0];
6127
6146
  }
6128
6147
  if (hash !== '#/' && hash !== '#/main') {
6129
- var _ids4 = _this5.getId(_this5.menus, util["a" /* default */].win.location.hash, true);
6130
- if (_ids4) {
6131
- _this5.defaultActive = _ids4;
6148
+ var _ids6 = _this5.getId(_this5.menus, util["a" /* default */].win.location.hash, true);
6149
+ if (_ids6) {
6150
+ _this5.defaultActive = _ids6;
6151
+ _this5.navIds = _ids6;
6152
+ _this5.setTitle(_ids6[0]);
6132
6153
  }
6133
- } else if (sessionStorage.getItem('jump')) {
6134
- var _ids5 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6135
- if (_ids5) {
6136
- _this5.defaultActive = _ids5;
6154
+ } else if (sessionStorage.getItem('jump') && _this5.history) {
6155
+ var _ids7 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6156
+ if (_ids7) {
6157
+ _this5.defaultActive = _ids7;
6158
+ _this5.navIds = _ids7;
6159
+ _this5.setTitle(_ids7[0]);
6137
6160
  }
6138
6161
  }
6139
- } else if (sessionStorage.getItem('jump')) {
6140
- var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6141
- if (_ids6) {
6142
- _this5.defaultActive = _ids6;
6162
+ } else if (sessionStorage.getItem('jump') && _this5.history) {
6163
+ var _ids8 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6164
+ if (_ids8) {
6165
+ _this5.defaultActive = _ids8;
6166
+ _this5.navIds = _ids8;
6167
+ _this5.setTitle(_ids8[0]);
6143
6168
  }
6144
6169
  }
6145
6170
  _this5.setTips(_this5.menus);
@@ -6158,7 +6183,6 @@ var log = util["a" /* default */].getParams('console');
6158
6183
 
6159
6184
  //设置默认左侧导航
6160
6185
  setMenu: function setMenu(res) {
6161
- console.log(9000);
6162
6186
  if (this.defaultActive && this.defaultActive.length) {
6163
6187
  this.isDefault = false;
6164
6188
  this.setDefault(res, this.defaultActive);
@@ -6166,9 +6190,9 @@ var log = util["a" /* default */].getParams('console');
6166
6190
  if (this.homePage || !util["a" /* default */].getStorage('mainConfig')) {
6167
6191
  this.isDefault = true;
6168
6192
  if (this.homePage && (!this.defaultActive || !this.defaultActive.length)) {
6169
- var ids = this.getId(this.menus, this.homePage);
6170
- if (ids) {
6171
- this.defaultActive = ids;
6193
+ var _ids9 = this.getId(this.menus, this.homePage);
6194
+ if (_ids9) {
6195
+ this.defaultActive = _ids9;
6172
6196
  this.isDefault = false;
6173
6197
  this.setDefault(res, this.defaultActive);
6174
6198
  return false;
@@ -6242,11 +6266,15 @@ var log = util["a" /* default */].getParams('console');
6242
6266
  if (!obj) {
6243
6267
  return '';
6244
6268
  }
6269
+ var openIdex = 0;
6270
+ if (obj.extendData && (obj.extendData.subDefOpenIndex || obj.extendData.subDefOpen)) {
6271
+ openIdex = parseInt(obj.extendData.subDefOpenIndex || obj.extendData.subDefOpen, 10);
6272
+ }
6245
6273
  if (obj.children && obj.children.length) {
6246
- return this.getFirst(obj.children[0]);
6274
+ return this.getFirst(obj.children[openIdex]);
6247
6275
  } else if (obj.fourthTabs && obj.fourthTabs.length) {
6248
6276
  if (this.layout === 'topnav') {
6249
- return this.getFirst(obj.fourthTabs[0]);
6277
+ return this.getFirst(obj.fourthTabs[openIdex]);
6250
6278
  } else {
6251
6279
  this.tabs = obj.fourthTabs;
6252
6280
  if (obj.url) {
@@ -6408,15 +6436,17 @@ var log = util["a" /* default */].getParams('console');
6408
6436
  var _url = params._baseUrl ? params._baseUrl : './primary.html';
6409
6437
  return util["a" /* default */].urlJoinParams({ url: _url, param: obj });
6410
6438
  },
6411
- handleOpenNav: function handleOpenNav(res) {
6412
- console.log(res, 777);
6413
- },
6414
6439
 
6415
6440
  //应用导航交互
6416
6441
  handleSelect: function handleSelect(res, type, open) {
6417
- console.log(type);
6418
- var node = res.node;
6442
+ console.log(type, 11);
6443
+ var node = res.node,
6444
+ fourthTabs = res.fourthTabs;
6419
6445
 
6446
+ var openIdex = 0;
6447
+ if (node.extendData && (node.extendData.subDefOpenIndex || node.extendData.subDefOpen)) {
6448
+ openIdex = parseInt(node.extendData.subDefOpenIndex || node.extendData.subDefOpen, 10);
6449
+ }
6420
6450
  if (!open) {
6421
6451
  if (node.extendData && node.extendData.businessStatus == 0 && node.extendData.businessWarnMsg) {
6422
6452
  this.$alert(node.extendData.businessWarnMsg, '提示', {
@@ -6435,28 +6465,17 @@ var log = util["a" /* default */].getParams('console');
6435
6465
  this.navIds = [node.id];
6436
6466
  this.menu = node.children;
6437
6467
  this.title = node.text;
6438
- var subNode = this.getFirst(node.children[0]);
6439
- if (subNode) {
6440
- this.active = subNode.id;
6441
- this.navIds = [node.id].concat(this.getId(subNode.url));
6468
+ if (this.setFirstAsDefault) {
6469
+ var subNode = this.getFirst(node.children[openIdex]);
6470
+ if (subNode) {
6471
+ this.active = subNode.id;
6472
+ this.navIds = [node.id].concat(this.getId(node.children, subNode.url, true));
6473
+ }
6442
6474
  }
6443
6475
  } else {
6444
6476
  this.navIds = this.getId(this.menus, node.url, true);
6445
- if (node.url) {
6446
- var tab = node.fourthTabs.filter(function (item) {
6447
- return item.url === node.url;
6448
- })[0];
6449
- if (tab) {
6450
- this.tabs = node.fourthTabs;
6451
- this.tabsId = tab.id;
6452
- }
6453
- } else {
6454
- if (node.fourthTabs.length) {
6455
- this.tabs = node.fourthTabs;
6456
- this.tabsId = this.tabs[0].id;
6457
- this.handleJump(this.tabs[0].url, this.tabs[0].urlopenmode, this.tabs[0]);
6458
- }
6459
- }
6477
+ this.setTitle(ids[0]);
6478
+ this.tabsId = fourthTabs ? node.id : '';
6460
6479
  }
6461
6480
  break;
6462
6481
  case 'sys':
@@ -6465,7 +6484,9 @@ var log = util["a" /* default */].getParams('console');
6465
6484
  this.tabs = [];
6466
6485
  this.menu = node.children;
6467
6486
  this.title = node.text;
6468
- this.active = this.getFirst(node.children[0]).id;
6487
+ if (this.setFirstAsDefault) {
6488
+ this.active = this.getFirst(node.children[openIdex]).id;
6489
+ }
6469
6490
  this.isSide = true;
6470
6491
  }
6471
6492
  break;
@@ -6476,10 +6497,9 @@ var log = util["a" /* default */].getParams('console');
6476
6497
  }
6477
6498
  if (this.setFirstAsDefault) {
6478
6499
  var _subNode = this.getFirst(node);
6479
- this.$set(this.active, 0, node.id);
6500
+ this.active = [node.id];
6480
6501
  if (_subNode && node.id !== _subNode.id) {
6481
- console.log(_subNode, _subNode.url);
6482
- console.log(this.getId(this.menus, _subNode.url, true));
6502
+ this.navIds = this.getId(this.menus, _subNode.url, true);
6483
6503
  this.$set(this.active, 1, _subNode.id);
6484
6504
  }
6485
6505
  }
@@ -6497,33 +6517,39 @@ var log = util["a" /* default */].getParams('console');
6497
6517
  }
6498
6518
  if (node.url) {
6499
6519
  if (node.children && node.children.length) {
6500
- var _tab = node.children.filter(function (item) {
6520
+ var tab = node.children.filter(function (item) {
6501
6521
  return item.url === node.url;
6502
6522
  })[0];
6503
- if (_tab) {
6523
+ if (tab) {
6504
6524
  if (this.biserial) {
6505
- this.$set(this.active, 1, _tab.id);
6525
+ this.$set(this.active, 1, tab.id);
6506
6526
  } else {
6507
- this.active = _tab.id;
6527
+ this.active = tab.id;
6508
6528
  }
6529
+ this.navIds = this.getId(this.menus, tab.url, true);
6509
6530
  }
6510
6531
  } else {
6511
- var _tab2 = (node.fourthTabs || []).filter(function (item) {
6532
+ var _tab = (node.fourthTabs || []).filter(function (item) {
6512
6533
  return item.url === node.url;
6513
6534
  })[0];
6514
- if (_tab2) {
6535
+ if (_tab) {
6515
6536
  this.tabs = node.fourthTabs;
6516
- this.tabsId = _tab2.id;
6537
+ this.tabsId = _tab.id;
6538
+ this.navIds = this.getId(this.menus, _tab.url, true);
6539
+ } else {
6540
+ this.navIds = this.getId(this.menus, node.url, true);
6517
6541
  }
6518
6542
  }
6519
6543
  } else if (node.fourthTabs.length) {
6520
6544
  this.tabs = node.fourthTabs;
6521
6545
  this.tabsId = this.tabs[0].id;
6522
6546
  this.handleJump(this.tabs[0].url, this.tabs[0].urlopenmode, this.tabs[0]);
6547
+ this.navIds = this.getId(this.menus, this.tabs[0].url, true);
6523
6548
  }
6524
6549
  break;
6525
6550
  case 'tabs':
6526
6551
  this.tabsId = node.id;
6552
+ this.navIds = this.getId(this.menus, node.url, true);
6527
6553
  break;
6528
6554
  }
6529
6555
  if (node.url) {
@@ -6630,6 +6656,13 @@ var log = util["a" /* default */].getParams('console');
6630
6656
 
6631
6657
  console.log(page);
6632
6658
  sessionStorage.setItem('jump', page);
6659
+ if (res) {
6660
+ if (res.fourthTabs && res.fourthTabs.length) {
6661
+ this.pid = res.id;
6662
+ } else {
6663
+ this.pid = res.pid;
6664
+ }
6665
+ }
6633
6666
  if (util["a" /* default */].win.location.hash === page) {
6634
6667
  this.refresh = true;
6635
6668
  return;
@@ -6721,24 +6754,98 @@ var log = util["a" /* default */].getParams('console');
6721
6754
  break;
6722
6755
  }
6723
6756
  },
6757
+ getFourthTabs: function getFourthTabs(menus, id) {
6758
+ if (Array.isArray(menus)) {
6759
+ for (var i = 0; i < menus.length; i++) {
6760
+ var fourth = this.getFourthTabs(menus[i], id);
6761
+ if (fourth) {
6762
+ return fourth;
6763
+ }
6764
+ }
6765
+ } else {
6766
+ if (menus.fourthTabs && menus.fourthTabs.length) {
6767
+ for (var _i = 0; _i < menus.fourthTabs.length; _i++) {
6768
+ var item = menus.fourthTabs[_i];
6769
+ if (item.id === id) {
6770
+ return item;
6771
+ }
6772
+ }
6773
+ }
6774
+ if (menus.children && menus.children.length) {
6775
+ for (var _i2 = 0; _i2 < menus.children.length; _i2++) {
6776
+ var _fourth = this.getFourthTabs(menus.children[_i2], id);
6777
+ if (_fourth) {
6778
+ return _fourth;
6779
+ }
6780
+ }
6781
+ }
6782
+ }
6783
+ return false;
6784
+ },
6724
6785
  handleLayout: function handleLayout(res, old) {
6786
+ this.layout = res;
6725
6787
  switch (res) {
6726
6788
  case 'topnav':
6727
6789
  this.navs = this.menus;
6728
6790
  this.tabs = [];
6729
6791
  this.subsystem = [];
6730
- switch (old) {
6731
- case 'subsystem':
6732
- break;
6733
- default:
6734
- this.topActive = this.active.length ? this.active[this.active.length - 1] : '';
6735
- console.log(this.active, this.topActive, 666);
6792
+ this.topActive = this.navIds && this.navIds.length ? this.navIds[this.navIds.length - 1] : '';
6793
+ break;
6794
+ case 'subsystem':
6795
+ this.subsystem = this.menus;
6796
+ this.navs = [];
6797
+ this.tabs = [];
6798
+ if (this.navIds && this.navIds.length) {
6799
+ var node = this.setTitle(this.navIds[0]);
6800
+ this.active = JSON.parse(JSON.stringify(this.navIds)).slice(1);
6801
+ var tabs = this.getFourthTabs(this.menus, this.pid);
6802
+ if (tabs) {
6803
+ this.active.pop();
6804
+ this.tabs = tabs.fourthTabs;
6805
+ this.tabsId = this.navIds[this.navIds.length - 1];
6806
+ }
6807
+ this.menu = node.children;
6808
+ this.title = node.text;
6809
+ } else {
6810
+ //this.navIds = [this.menus[0].id]
6811
+ this.menu = this.menus[0].children;
6812
+ this.title = this.menus[0].text;
6736
6813
  }
6737
6814
  break;
6815
+ case 'topside':
6816
+ this.navs = this.menus;
6817
+ this.subsystem = [];
6818
+ this.tabs = [];
6819
+ if (this.navIds && this.navIds.length) {
6820
+ var _node = this.setTitle(this.navIds[0]);
6821
+ this.active = JSON.parse(JSON.stringify(this.navIds)).slice(1);
6822
+ var _tabs = this.getFourthTabs(this.menus, this.pid);
6823
+ if (_tabs) {
6824
+ this.active.pop();
6825
+ this.tabs = _tabs.fourthTabs;
6826
+ this.tabsId = this.navIds[this.navIds.length - 1];
6827
+ }
6828
+ this.topActive = this.navIds[0];
6829
+ this.menu = _node.children;
6830
+ } else {
6831
+ this.menu = this.menus[0].children;
6832
+ this.topActive = this.menus[0].id;
6833
+ }
6834
+ break;
6835
+ default:
6836
+ this.navs = [];
6837
+ this.subsystem = [];
6838
+ this.menu = this.menus;
6839
+ if (this.navIds && this.navIds.length) {
6840
+ this.active = JSON.parse(JSON.stringify(this.navIds));
6841
+ var _tabs2 = this.getFourthTabs(this.menus, this.pid);
6842
+ if (_tabs2) {
6843
+ this.active.pop();
6844
+ this.tabs = _tabs2.fourthTabs;
6845
+ this.tabsId = this.navIds[this.navIds.length - 1];
6846
+ }
6847
+ }
6738
6848
  }
6739
- console.log(this.sysId, this.topActive, this.active, this.tabsId);
6740
- //this.setMenu(this.menus);
6741
- console.log(this.layout, old, this.hide);
6742
6849
  },
6743
6850
 
6744
6851
  //监听改变菜单
@@ -6859,43 +6966,48 @@ var log = util["a" /* default */].getParams('console');
6859
6966
  msg = '登录已过期,请重新登录!';
6860
6967
  }
6861
6968
  }
6862
- !this.timer && (this.timer = setTimeout(function () {
6863
- console.log('handleReLogin');
6864
- _this13.$confirm(msg, btn).then(function () {
6865
- util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
6866
- var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
6867
- if (loginPage) {
6868
- var src = void 0;
6869
- if (!util["a" /* default */].startWith(loginPage, ['http', '/'])) {
6870
- var pathname = util["a" /* default */].win.top.location.pathname;
6871
- if (pathname !== '/') {
6872
- pathname = pathname.split('/');
6873
- pathname.splice(pathname.length - 1);
6874
- pathname = pathname.join('/');
6875
- src = pathname + '/' + loginPage.replace('./', '');
6969
+ cl;
6970
+ var remind = sessionStorage.getItem('remind');
6971
+ if (!remind) {
6972
+ clearTimeout(this.timer);
6973
+ this.timer = setTimeout(function () {
6974
+ console.log('handleReLogin');
6975
+ sessionStorage.setItem('remind', 1);
6976
+ _this13.$confirm(msg, btn).then(function () {
6977
+ util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
6978
+ var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
6979
+ if (loginPage) {
6980
+ var src = void 0;
6981
+ if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
6982
+ var pathname = util["a" /* default */].win.top.location.pathname;
6983
+ if (pathname !== '/') {
6984
+ pathname = pathname.split('/');
6985
+ pathname.splice(pathname.length - 1);
6986
+ pathname = pathname.join('/');
6987
+ src = pathname + '/' + loginPage.replace('./', '');
6988
+ } else {
6989
+ src = pathname + loginPage.replace('./', '');
6990
+ }
6876
6991
  } else {
6877
- src = pathname + loginPage.replace('./', '');
6992
+ src = loginPage;
6878
6993
  }
6994
+ util["a" /* default */].win.top.location.href = src;
6995
+ } else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
6996
+ util["a" /* default */].win.top.location.href = './login.html';
6879
6997
  } else {
6880
- src = loginPage;
6881
- }
6882
- util["a" /* default */].win.top.location.href = src;
6883
- } else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
6884
- util["a" /* default */].win.top.location.href = './login.html';
6885
- } else {
6886
- var hash = util["a" /* default */].win.top.location.hash;
6887
- if (hash) {
6888
- var len = util["a" /* default */].win.top.location.href.indexOf(hash);
6889
- util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
6890
- } else {
6891
- util["a" /* default */].win.top.location.href = '/login.html';
6998
+ var hash = util["a" /* default */].win.top.location.hash;
6999
+ if (hash) {
7000
+ var len = util["a" /* default */].win.top.location.href.indexOf(hash);
7001
+ util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
7002
+ } else {
7003
+ util["a" /* default */].win.top.location.href = '/login.html';
7004
+ }
6892
7005
  }
6893
- }
6894
- }).catch(function (e) {
6895
- clearTimeout(_this13.timer);
6896
- _this13.timer = null;
6897
- });
6898
- }, 1000));
7006
+ }).catch(function (e) {
7007
+ sessionStorage.removeItem('remind');
7008
+ });
7009
+ }, 2000);
7010
+ }
6899
7011
  },
6900
7012
  openPage: function openPage(url, name, width, height) {
6901
7013
  var src = url;