eoss-ui 0.5.97 → 0.5.98

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 (88) hide show
  1. package/lib/button-group.js +6 -2
  2. package/lib/button.js +6 -2
  3. package/lib/checkbox-group.js +6 -2
  4. package/lib/data-table-form.js +6 -2
  5. package/lib/data-table.js +28 -16
  6. package/lib/date-picker.js +6 -2
  7. package/lib/dialog.js +6 -2
  8. package/lib/eoss-ui.common.js +281 -209
  9. package/lib/flow-group.js +6 -2
  10. package/lib/flow-list.js +6 -2
  11. package/lib/flow.js +6 -2
  12. package/lib/form.js +6 -2
  13. package/lib/handle-user.js +6 -2
  14. package/lib/handler.js +17 -9
  15. package/lib/icon.js +6 -2
  16. package/lib/icons.js +1 -1
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +6 -2
  19. package/lib/input.js +6 -2
  20. package/lib/login.js +9 -5
  21. package/lib/main.js +223 -163
  22. package/lib/nav.js +6 -2
  23. package/lib/page.js +6 -2
  24. package/lib/pagination.js +6 -2
  25. package/lib/player.js +6 -2
  26. package/lib/qr-code.js +6 -2
  27. package/lib/radio-group.js +6 -2
  28. package/lib/retrial-auth.js +6 -2
  29. package/lib/select-ganged.js +6 -2
  30. package/lib/select.js +6 -2
  31. package/lib/selector-panel.js +6 -2
  32. package/lib/selector.js +6 -2
  33. package/lib/sizer.js +6 -2
  34. package/lib/steps.js +6 -2
  35. package/lib/switch.js +6 -2
  36. package/lib/table-form.js +6 -2
  37. package/lib/tabs.js +6 -2
  38. package/lib/theme-chalk/base.css +1 -1
  39. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  40. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  41. package/lib/theme-chalk/icon.css +1 -1
  42. package/lib/theme-chalk/index.css +1 -1
  43. package/lib/theme-chalk/main.css +1 -1
  44. package/lib/theme-chalk/menu.css +1 -1
  45. package/lib/theme-chalk/simplicity.css +1 -1
  46. package/lib/theme-chalk/sizer.css +1 -1
  47. package/lib/theme-chalk/upload.css +1 -1
  48. package/lib/tips.js +6 -2
  49. package/lib/tree-group.js +6 -2
  50. package/lib/tree.js +6 -2
  51. package/lib/upload.js +6 -2
  52. package/lib/utils/util.js +6 -2
  53. package/lib/wujie.js +6 -2
  54. package/lib/wxlogin.js +6 -2
  55. package/package.json +1 -1
  56. package/packages/.DS_Store +0 -0
  57. package/packages/data-table/src/main.vue +18 -12
  58. package/packages/handler/.DS_Store +0 -0
  59. package/packages/handler/src/main.vue +11 -6
  60. package/packages/icons/src/icon.json +1 -1
  61. package/packages/login/.DS_Store +0 -0
  62. package/packages/login/src/main.vue +1 -1
  63. package/packages/main/.DS_Store +0 -0
  64. package/packages/main/src/.DS_Store +0 -0
  65. package/packages/main/src/default/index.vue +19 -3
  66. package/packages/main/src/default/settings.vue +2 -2
  67. package/packages/main/src/main.vue +22 -3
  68. package/packages/main/src/simplicity/handler.vue +32 -28
  69. package/packages/main/src/simplicity/index.vue +46 -39
  70. package/packages/theme-chalk/lib/base.css +1 -1
  71. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  72. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  73. package/packages/theme-chalk/lib/icon.css +1 -1
  74. package/packages/theme-chalk/lib/index.css +1 -1
  75. package/packages/theme-chalk/lib/main.css +1 -1
  76. package/packages/theme-chalk/lib/menu.css +1 -1
  77. package/packages/theme-chalk/lib/simplicity.css +1 -1
  78. package/packages/theme-chalk/lib/sizer.css +1 -1
  79. package/packages/theme-chalk/lib/upload.css +1 -1
  80. package/packages/theme-chalk/src/.DS_Store +0 -0
  81. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  82. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  83. package/packages/theme-chalk/src/icon.scss +8 -0
  84. package/packages/theme-chalk/src/mixins/util.scss +0 -0
  85. package/packages/theme-chalk/src/simplicity.scss +160 -0
  86. package/src/.DS_Store +0 -0
  87. package/src/index.js +1 -1
  88. package/src/utils/util.js +6 -2
package/lib/main.js CHANGED
@@ -2174,6 +2174,7 @@ var isLogined = function isLogined(_ref8) {
2174
2174
  next && next();
2175
2175
  } else {
2176
2176
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
2177
+ var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2177
2178
  ajax({
2178
2179
  method: 'post',
2179
2180
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -2272,7 +2273,10 @@ var isLogined = function isLogined(_ref8) {
2272
2273
  }
2273
2274
  });
2274
2275
  }
2275
- }).catch(function (e) {});
2276
+ loadingInstance.close();
2277
+ }).catch(function (e) {
2278
+ loadingInstance.close();
2279
+ });
2276
2280
  } else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2277
2281
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2278
2282
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
@@ -2675,7 +2679,7 @@ var setScale = function setScale() {
2675
2679
  } else {
2676
2680
  n = 1;
2677
2681
  }
2678
- if (zoom === 1) {
2682
+ if (zoom === 1 && window.innerWidth === width) {
2679
2683
  document.body.style.removeProperty('transform');
2680
2684
  document.body.style.removeProperty('width');
2681
2685
  document.body.style.removeProperty('height');
@@ -3979,7 +3983,7 @@ module.exports = require("wujie-vue2");
3979
3983
  // ESM COMPAT FLAG
3980
3984
  __webpack_require__.r(__webpack_exports__);
3981
3985
 
3982
- // 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=c342434c&
3986
+ // 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=6f2b9926&
3983
3987
  var render = function () {
3984
3988
  var _vm = this
3985
3989
  var _h = _vm.$createElement
@@ -3989,12 +3993,19 @@ var render = function () {
3989
3993
  "div",
3990
3994
  { staticClass: "es-main-box" },
3991
3995
  [
3992
- _vm.type == "simplicity"
3996
+ _vm.layout == "simplicity"
3993
3997
  ? _c(
3994
3998
  "simplicity",
3995
3999
  _vm._g(
3996
4000
  _vm._b(
3997
- { ref: "main", attrs: { appCode: _vm.appCode } },
4001
+ {
4002
+ ref: "main",
4003
+ attrs: {
4004
+ appCode: _vm.appCode,
4005
+ "old-version": _vm.multiple,
4006
+ },
4007
+ on: { "chang-layout": _vm.changLayout },
4008
+ },
3998
4009
  "simplicity",
3999
4010
  _vm.$attrs,
4000
4011
  false
@@ -4005,7 +4016,16 @@ var render = function () {
4005
4016
  : _c(
4006
4017
  "main-default",
4007
4018
  _vm._g(
4008
- _vm._b({ ref: "main" }, "main-default", _vm.$attrs, false),
4019
+ _vm._b(
4020
+ {
4021
+ ref: "main",
4022
+ attrs: { "new-version": _vm.multiple },
4023
+ on: { "chang-layout": _vm.changLayout },
4024
+ },
4025
+ "main-default",
4026
+ _vm.$attrs,
4027
+ false
4028
+ ),
4009
4029
  _vm.$listeners
4010
4030
  )
4011
4031
  ),
@@ -4055,13 +4075,13 @@ var staticRenderFns = []
4055
4075
  render._withStripped = true
4056
4076
 
4057
4077
 
4058
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=c342434c&
4078
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=6f2b9926&
4059
4079
 
4060
4080
  // EXTERNAL MODULE: ./src/config/image.js
4061
4081
  var config_image = __webpack_require__(18);
4062
4082
 
4063
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=03f1f7f2&scoped=true&
4064
- var simplicityvue_type_template_id_03f1f7f2_scoped_true_render = function () {
4083
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=38f18b0d&scoped=true&
4084
+ var simplicityvue_type_template_id_38f18b0d_scoped_true_render = function () {
4065
4085
  var _vm = this
4066
4086
  var _h = _vm.$createElement
4067
4087
  var _c = _vm._self._c || _h
@@ -4688,11 +4708,11 @@ var simplicityvue_type_template_id_03f1f7f2_scoped_true_render = function () {
4688
4708
  ),
4689
4709
  ])
4690
4710
  }
4691
- var simplicityvue_type_template_id_03f1f7f2_scoped_true_staticRenderFns = []
4692
- simplicityvue_type_template_id_03f1f7f2_scoped_true_render._withStripped = true
4711
+ var simplicityvue_type_template_id_38f18b0d_scoped_true_staticRenderFns = []
4712
+ simplicityvue_type_template_id_38f18b0d_scoped_true_render._withStripped = true
4693
4713
 
4694
4714
 
4695
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=03f1f7f2&scoped=true&
4715
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=38f18b0d&scoped=true&
4696
4716
 
4697
4717
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=1560e8bf&scoped=true&
4698
4718
  var avatarvue_type_template_id_1560e8bf_scoped_true_render = function () {
@@ -4850,8 +4870,8 @@ var component = Object(componentNormalizer["a" /* default */])(
4850
4870
  )
4851
4871
 
4852
4872
  /* harmony default export */ var avatar = (component.exports);
4853
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/handler.vue?vue&type=template&id=7eac3976&scoped=true&
4854
- var handlervue_type_template_id_7eac3976_scoped_true_render = function () {
4873
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/handler.vue?vue&type=template&id=d8a0cc36&scoped=true&
4874
+ var handlervue_type_template_id_d8a0cc36_scoped_true_render = function () {
4855
4875
  var _vm = this
4856
4876
  var _h = _vm.$createElement
4857
4877
  var _c = _vm._self._c || _h
@@ -4884,58 +4904,54 @@ var handlervue_type_template_id_7eac3976_scoped_true_render = function () {
4884
4904
  ]),
4885
4905
  _vm._l(_vm.lists, function (item) {
4886
4906
  return [
4887
- _vm.isShow(item.type)
4888
- ? [
4889
- item.type === "notice"
4890
- ? _c(
4891
- "el-badge",
4892
- {
4893
- key: item.type,
4894
- staticClass: "es-simplicity-handler-item",
4895
- attrs: {
4896
- value: _vm.noticeNum,
4897
- max: 99,
4898
- hidden: _vm.noticeNum === 0,
4899
- },
4900
- },
4901
- [
4902
- _c("div", {
4903
- staticClass: "es-simplicity-handler-icon",
4904
- class: item.icon,
4905
- attrs: { title: item.title },
4906
- on: {
4907
- click: function ($event) {
4908
- _vm.handleClick(item)
4909
- },
4910
- },
4911
- }),
4912
- ]
4913
- )
4914
- : _c("div", {
4915
- key: item.type,
4916
- staticClass:
4917
- "es-simplicity-handler-item es-simplicity-handler-icon",
4918
- class: item.icon,
4919
- attrs: { title: item.title },
4920
- on: {
4921
- click: function ($event) {
4922
- _vm.handleClick(item)
4923
- },
4907
+ item.type === "notice"
4908
+ ? _c(
4909
+ "el-badge",
4910
+ {
4911
+ key: item.type,
4912
+ staticClass: "es-simplicity-handler-item",
4913
+ attrs: {
4914
+ value: _vm.noticeNum,
4915
+ max: 99,
4916
+ hidden: _vm.noticeNum === 0,
4917
+ },
4918
+ },
4919
+ [
4920
+ _c("div", {
4921
+ staticClass: "es-simplicity-handler-icon",
4922
+ class: item.icon,
4923
+ attrs: { title: item.title },
4924
+ on: {
4925
+ click: function ($event) {
4926
+ _vm.handleClick(item)
4924
4927
  },
4925
- }),
4926
- ]
4927
- : _vm._e(),
4928
+ },
4929
+ }),
4930
+ ]
4931
+ )
4932
+ : _c("div", {
4933
+ key: item.type,
4934
+ staticClass:
4935
+ "es-simplicity-handler-item es-simplicity-handler-icon",
4936
+ class: item.icon,
4937
+ attrs: { title: item.title },
4938
+ on: {
4939
+ click: function ($event) {
4940
+ _vm.handleClick(item)
4941
+ },
4942
+ },
4943
+ }),
4928
4944
  ]
4929
4945
  }),
4930
4946
  ],
4931
4947
  2
4932
4948
  )
4933
4949
  }
4934
- var handlervue_type_template_id_7eac3976_scoped_true_staticRenderFns = []
4935
- handlervue_type_template_id_7eac3976_scoped_true_render._withStripped = true
4950
+ var handlervue_type_template_id_d8a0cc36_scoped_true_staticRenderFns = []
4951
+ handlervue_type_template_id_d8a0cc36_scoped_true_render._withStripped = true
4936
4952
 
4937
4953
 
4938
- // CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=7eac3976&scoped=true&
4954
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=d8a0cc36&scoped=true&
4939
4955
 
4940
4956
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/handler.vue?vue&type=script&lang=js&
4941
4957
  //
@@ -4983,8 +4999,6 @@ handlervue_type_template_id_7eac3976_scoped_true_render._withStripped = true
4983
4999
  //
4984
5000
  //
4985
5001
  //
4986
- //
4987
- //
4988
5002
 
4989
5003
 
4990
5004
  /* harmony default export */ var handlervue_type_script_lang_js_ = ({
@@ -5021,6 +5035,16 @@ handlervue_type_template_id_7eac3976_scoped_true_render._withStripped = true
5021
5035
  };
5022
5036
  }
5023
5037
  },
5038
+ old: {
5039
+ type: Object,
5040
+ default: function _default() {
5041
+ return {
5042
+ type: 'old',
5043
+ icon: 'es-icon-shiyongjiuban',
5044
+ title: '使用旧版'
5045
+ };
5046
+ }
5047
+ },
5024
5048
  notice: {
5025
5049
  type: Object,
5026
5050
  default: function _default() {
@@ -5055,7 +5079,9 @@ handlervue_type_template_id_7eac3976_scoped_true_render._withStripped = true
5055
5079
  hide: {
5056
5080
  type: Object,
5057
5081
  default: function _default() {
5058
- return {};
5082
+ return {
5083
+ old: true
5084
+ };
5059
5085
  }
5060
5086
  },
5061
5087
  noticeNum: {
@@ -5079,7 +5105,7 @@ handlervue_type_template_id_7eac3976_scoped_true_render._withStripped = true
5079
5105
  lists: function lists() {
5080
5106
  var _this = this;
5081
5107
 
5082
- var data = this.data ? this.data : [this.search, this.index, this.home, this.notice, this.quit, this.set];
5108
+ var data = this.data ? this.data : [this.search, this.index, this.home, this.old, this.notice, this.quit, this.set];
5083
5109
  return data.filter(function (item) {
5084
5110
  return !_this.hide[item.type];
5085
5111
  });
@@ -5107,13 +5133,6 @@ handlervue_type_template_id_7eac3976_scoped_true_render._withStripped = true
5107
5133
  _this2.time = util["a" /* default */].formatDate('', 'HH:mm:ss');
5108
5134
  });
5109
5135
  },
5110
- isShow: function isShow(res) {
5111
- if (Array.isArray(this.hide)) {
5112
- return !this.hide.includes(res);
5113
- } else {
5114
- return !this.hide[res];
5115
- }
5116
- },
5117
5136
  handleClick: function handleClick(res) {
5118
5137
  this.$emit('click', res);
5119
5138
  }
@@ -5134,11 +5153,11 @@ handlervue_type_template_id_7eac3976_scoped_true_render._withStripped = true
5134
5153
 
5135
5154
  var handler_component = Object(componentNormalizer["a" /* default */])(
5136
5155
  simplicity_handlervue_type_script_lang_js_,
5137
- handlervue_type_template_id_7eac3976_scoped_true_render,
5138
- handlervue_type_template_id_7eac3976_scoped_true_staticRenderFns,
5156
+ handlervue_type_template_id_d8a0cc36_scoped_true_render,
5157
+ handlervue_type_template_id_d8a0cc36_scoped_true_staticRenderFns,
5139
5158
  false,
5140
5159
  null,
5141
- "7eac3976",
5160
+ "d8a0cc36",
5142
5161
  null
5143
5162
 
5144
5163
  )
@@ -9994,7 +10013,9 @@ var events = [function (tabs, index, that) {
9994
10013
  default: function _default() {
9995
10014
  return sessionStorage.getItem('host') || '';
9996
10015
  }
9997
- }
10016
+ },
10017
+ //切换旧版样式
10018
+ oldVersion: Boolean
9998
10019
  },
9999
10020
  data: function data() {
10000
10021
  return {
@@ -10088,7 +10109,8 @@ var events = [function (tabs, index, that) {
10088
10109
  active: '',
10089
10110
  //单位名称
10090
10111
  simpleUserInfo: {},
10091
- topRightToolHide: ''
10112
+ topRightToolHide: '',
10113
+ showOld: this.oldVersion
10092
10114
  };
10093
10115
  },
10094
10116
 
@@ -10139,7 +10161,8 @@ var events = [function (tabs, index, that) {
10139
10161
  }
10140
10162
  var hides = {
10141
10163
  home: this.indexUrl ? false : true,
10142
- index: this.doorIndex ? false : true
10164
+ index: this.doorIndex ? false : true,
10165
+ old: this.showOld ? false : true
10143
10166
  };
10144
10167
 
10145
10168
  if (this.layout === 'subsystem' || this.application) {
@@ -10325,6 +10348,9 @@ var events = [function (tabs, index, that) {
10325
10348
  if (results[i].portalPage || results[i].portalpage) {
10326
10349
  this.doorIndex = results[i].portalPage || results[i].portalpage;
10327
10350
  }
10351
+ if (results[i].multipleVersion || results[i].oldVersion) {
10352
+ this.showOld = results[i].oldVersion ? results[i].oldVersion : true;
10353
+ }
10328
10354
  if (results[i].topRightToolHide) {
10329
10355
  this.topRightToolHide = results[i].topRightToolHide;
10330
10356
  }
@@ -10410,6 +10436,20 @@ var events = [function (tabs, index, that) {
10410
10436
  _this2.menus = res.results;
10411
10437
  _this2.setTips(_this2.menus);
10412
10438
  store["a" /* default */].set('nav', _this2.menus);
10439
+ if (_this2.indexUrl) {
10440
+ var obj = _this2.getMenu(_this2.menus, _this2.indexUrl);
10441
+ obj = obj ? obj : {
10442
+ url: _this2.indexUrl,
10443
+ text: '工作台',
10444
+ id: '0',
10445
+ appCode: 'indexUrl'
10446
+ };
10447
+ _this2.homePage = _this2.setIframeType(obj);
10448
+ if (!_this2.appCode) {
10449
+ _this2.tabs = [_this2.homePage];
10450
+ _this2.activeName = _this2.homePage.id;
10451
+ }
10452
+ }
10413
10453
  if (_this2.appCode) {
10414
10454
  var code = _this2.sysCode || _this2.appCode;
10415
10455
  var app = _this2.userApps.filter(function (item) {
@@ -10418,9 +10458,9 @@ var events = [function (tabs, index, that) {
10418
10458
  if (app) {
10419
10459
  _this2.active = app.id;
10420
10460
  if (app.url) {
10421
- var obj = _this2.getMenu(_this2.menus, app.url);
10422
- if (obj) {
10423
- var tab = _this2.setIframeType(obj);
10461
+ var _obj = _this2.getMenu(_this2.menus, app.url);
10462
+ if (_obj) {
10463
+ var tab = _this2.setIframeType(_obj);
10424
10464
  _this2.tabs = [tab];
10425
10465
  _this2.activeName = tab.id;
10426
10466
  } else {
@@ -10431,13 +10471,13 @@ var events = [function (tabs, index, that) {
10431
10471
  if (_this2.sysCode) {
10432
10472
  var subMenus = _this2.getMenu(_this2.menus, _this2.sysCode, 'appCode');
10433
10473
  if (subMenus) {
10434
- var _obj = _this2.getMenu(_this2.menus, _this2.appCode, 'appCode');
10435
- if (_obj) {
10436
- if (!_obj.url) {
10437
- _obj = _this2.getFirst(_obj);
10474
+ var _obj2 = _this2.getMenu(_this2.menus, _this2.appCode, 'appCode');
10475
+ if (_obj2) {
10476
+ if (!_obj2.url) {
10477
+ _obj2 = _this2.getFirst(_obj2);
10438
10478
  }
10439
- _this2.subActive = _obj.id;
10440
- var _tab = _this2.setIframeType(_obj);
10479
+ _this2.subActive = _obj2.id;
10480
+ var _tab = _this2.setIframeType(_obj2);
10441
10481
  _this2.tabs = [_tab];
10442
10482
  _this2.activeName = _tab.id;
10443
10483
  } else {
@@ -10453,10 +10493,10 @@ var events = [function (tabs, index, that) {
10453
10493
  var _subMenus = _this2.getMenu(_this2.menus, _this2.appCode, 'appCode');
10454
10494
  if (_subMenus) {
10455
10495
  if (_this2.tabs.length == 0) {
10456
- var _obj2 = _this2.getFirst(_subMenus);
10457
- if (_obj2) {
10458
- _this2.subActive = _obj2.id;
10459
- var _tab2 = _this2.setIframeType(_obj2);
10496
+ var _obj3 = _this2.getFirst(_subMenus);
10497
+ if (_obj3) {
10498
+ _this2.subActive = _obj3.id;
10499
+ var _tab2 = _this2.setIframeType(_obj3);
10460
10500
  _this2.tabs = [_tab2];
10461
10501
  _this2.activeName = _tab2.id;
10462
10502
  } else {
@@ -10470,35 +10510,12 @@ var events = [function (tabs, index, that) {
10470
10510
  _this2.showMenu = false;
10471
10511
  }
10472
10512
  }
10473
- } else {
10474
- if (_this2.indexUrl) {
10475
- var _obj3 = _this2.getMenu(_this2.menus, _this2.indexUrl);
10476
- if (_obj3) {
10477
- if (!_this2.appCode) {
10478
- var _tab3 = _this2.setIframeType(_obj3);
10479
- _this2.tabs = [_tab3];
10480
- _this2.activeName = _tab3.id;
10481
- }
10482
- _this2.homePage = _obj3;
10483
- } else {
10484
- _this2.homePage = _this2.setIframeType({
10485
- url: _this2.indexUrl,
10486
- text: '工作台',
10487
- id: '0',
10488
- appCode: 'indexUrl'
10489
- });
10490
- if (!_this2.appCode) {
10491
- _this2.tabs = [_this2.homePage];
10492
- _this2.activeName = '0';
10493
- }
10494
- }
10495
- } else if (_this2.initApps && _this2.initApps.length && !_this2.appCode) {
10496
- var _obj4 = _this2.getMenu(_this2.menus, _this2.initApps[_this2.initApps.length - 1]);
10497
- if (_obj4) {
10498
- var _tab4 = _this2.setIframeType(_obj4);
10499
- _this2.tabs.push(_tab4);
10500
- _this2.activeName = _tab4.id;
10501
- }
10513
+ } else if (_this2.initApps && _this2.initApps.length && !_this2.indexUrl) {
10514
+ var _obj4 = _this2.getMenu(_this2.menus, _this2.initApps[_this2.initApps.length - 1]);
10515
+ if (_obj4) {
10516
+ var _tab3 = _this2.setIframeType(_obj4);
10517
+ _this2.tabs.push(_tab3);
10518
+ _this2.activeName = _tab3.id;
10502
10519
  }
10503
10520
  }
10504
10521
  } else {
@@ -10817,9 +10834,9 @@ var events = [function (tabs, index, that) {
10817
10834
  }
10818
10835
  }
10819
10836
  } else {
10820
- var _tab5 = this.setIframeType(res);
10821
- this.tabs.push(_tab5);
10822
- this.activeName = _tab5.id;
10837
+ var _tab4 = this.setIframeType(res);
10838
+ this.tabs.push(_tab4);
10839
+ this.activeName = _tab4.id;
10823
10840
  }
10824
10841
  } else {
10825
10842
  if (res.method == 'iframe') {
@@ -10844,8 +10861,8 @@ var events = [function (tabs, index, that) {
10844
10861
  var _i = util["a" /* default */].indexOfObj(this.tabs, subMenus, 'id');
10845
10862
  this.activeName = subMenus.id;
10846
10863
  if (_i == -1) {
10847
- var _tab6 = this.setIframeType(subMenus);
10848
- this.tabs.push(_tab6);
10864
+ var _tab5 = this.setIframeType(subMenus);
10865
+ this.tabs.push(_tab5);
10849
10866
  } else {
10850
10867
  if (subMenus.method == 'iframe') {
10851
10868
  subMenus.url = util["a" /* default */].handlerUrl(subMenus.url);
@@ -10904,15 +10921,15 @@ var events = [function (tabs, index, that) {
10904
10921
  this.tabs.push(tab);
10905
10922
  this.activeName = res.id;
10906
10923
  } else {
10907
- var _tab7 = this.tabs[i];
10908
- if (_tab7.method === 'iframe') {
10924
+ var _tab6 = this.tabs[i];
10925
+ if (_tab6.method === 'iframe') {
10909
10926
  this.activeName = res.id;
10910
- this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab7.url));
10927
+ this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url));
10911
10928
  } else {
10912
- if (_tab7.method === 'wujie' && _tab7.appCode) {
10913
- window.document.querySelector('iframe[name=' + _tab7.appCode + ']').contentWindow.location.reload(true);
10929
+ if (_tab6.method === 'wujie' && _tab6.appCode) {
10930
+ window.document.querySelector('iframe[name=' + _tab6.appCode + ']').contentWindow.location.reload(true);
10914
10931
  }
10915
- if (_tab7.method === 'router') {
10932
+ if (_tab6.method === 'router') {
10916
10933
  this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
10917
10934
  }
10918
10935
  this.activeName = res.id;
@@ -10971,14 +10988,14 @@ var events = [function (tabs, index, that) {
10971
10988
  if (tab.method === 'iframe') {
10972
10989
  tab.url = util["a" /* default */].handlerUrl(tab.url);
10973
10990
  } else {
10974
- var _tab8 = this.tabs[i];
10975
- if (_tab8.method === 'iframe') {
10976
- this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab8.url));
10991
+ var _tab7 = this.tabs[i];
10992
+ if (_tab7.method === 'iframe') {
10993
+ this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab7.url));
10977
10994
  }
10978
- if (_tab8.method === 'wujie' && _tab8.appCode) {
10979
- window.document.querySelector('iframe[name=' + _tab8.appCode + ']').contentWindow.location.reload(true);
10995
+ if (_tab7.method === 'wujie' && _tab7.appCode) {
10996
+ window.document.querySelector('iframe[name=' + _tab7.appCode + ']').contentWindow.location.reload(true);
10980
10997
  }
10981
- if (_tab8.method === 'router') {
10998
+ if (_tab7.method === 'router') {
10982
10999
  this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
10983
11000
  }
10984
11001
  }
@@ -11091,6 +11108,13 @@ var events = [function (tabs, index, that) {
11091
11108
  case 'index':
11092
11109
  util["a" /* default */].win.open(this.doorIndex, '_self');
11093
11110
  break;
11111
+ case 'old':
11112
+ if (typeof this.showOld === 'string') {
11113
+ window.location.href = this.showOld;
11114
+ } else {
11115
+ this.$emit('chang-layout', 'default');
11116
+ }
11117
+ break;
11094
11118
  case 'set':
11095
11119
  this.showSet = !this.showSet;
11096
11120
  this.showMsg = false;
@@ -11259,14 +11283,14 @@ var events = [function (tabs, index, that) {
11259
11283
  var tab = this.setIframeType(obj);
11260
11284
  this.tabs.splice(n + 1, 0, tab);
11261
11285
  } else {
11262
- var _tab9 = this.tabs[i];
11263
- if (_tab9.method === 'iframe') {
11264
- this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab9.url));
11286
+ var _tab8 = this.tabs[i];
11287
+ if (_tab8.method === 'iframe') {
11288
+ this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab8.url));
11265
11289
  }
11266
- if (_tab9.method === 'wujie' && _tab9.appCode) {
11267
- window.document.querySelector('iframe[name=' + _tab9.appCode + ']').contentWindow.location.reload(true);
11290
+ if (_tab8.method === 'wujie' && _tab8.appCode) {
11291
+ window.document.querySelector('iframe[name=' + _tab8.appCode + ']').contentWindow.location.reload(true);
11268
11292
  }
11269
- if (_tab9.method === 'router') {
11293
+ if (_tab8.method === 'router') {
11270
11294
  this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
11271
11295
  }
11272
11296
  }
@@ -11327,18 +11351,18 @@ var events = [function (tabs, index, that) {
11327
11351
 
11328
11352
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
11329
11353
  src_simplicityvue_type_script_lang_js_,
11330
- simplicityvue_type_template_id_03f1f7f2_scoped_true_render,
11331
- simplicityvue_type_template_id_03f1f7f2_scoped_true_staticRenderFns,
11354
+ simplicityvue_type_template_id_38f18b0d_scoped_true_render,
11355
+ simplicityvue_type_template_id_38f18b0d_scoped_true_staticRenderFns,
11332
11356
  false,
11333
11357
  null,
11334
- "03f1f7f2",
11358
+ "38f18b0d",
11335
11359
  null
11336
11360
 
11337
11361
  )
11338
11362
 
11339
11363
  /* harmony default export */ var simplicity = (simplicity_component.exports);
11340
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=3c855b6a&
11341
- var defaultvue_type_template_id_3c855b6a_render = function () {
11364
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=149ff0da&
11365
+ var defaultvue_type_template_id_149ff0da_render = function () {
11342
11366
  var _vm = this
11343
11367
  var _h = _vm.$createElement
11344
11368
  var _c = _vm._self._c || _h
@@ -11725,11 +11749,11 @@ var defaultvue_type_template_id_3c855b6a_render = function () {
11725
11749
  1
11726
11750
  )
11727
11751
  }
11728
- var defaultvue_type_template_id_3c855b6a_staticRenderFns = []
11729
- defaultvue_type_template_id_3c855b6a_render._withStripped = true
11752
+ var defaultvue_type_template_id_149ff0da_staticRenderFns = []
11753
+ defaultvue_type_template_id_149ff0da_render._withStripped = true
11730
11754
 
11731
11755
 
11732
- // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=3c855b6a&
11756
+ // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=149ff0da&
11733
11757
 
11734
11758
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=template&id=d207c2e8&
11735
11759
  var userinfovue_type_template_id_d207c2e8_render = function () {
@@ -12211,8 +12235,8 @@ var default_userinfo_component = Object(componentNormalizer["a" /* default */])(
12211
12235
  )
12212
12236
 
12213
12237
  /* harmony default export */ var default_userinfo = (default_userinfo_component.exports);
12214
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/settings.vue?vue&type=template&id=2d7a058d&
12215
- var settingsvue_type_template_id_2d7a058d_render = function () {
12238
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/settings.vue?vue&type=template&id=52aa078c&
12239
+ var settingsvue_type_template_id_52aa078c_render = function () {
12216
12240
  var _vm = this
12217
12241
  var _h = _vm.$createElement
12218
12242
  var _c = _vm._self._c || _h
@@ -12291,7 +12315,7 @@ var settingsvue_type_template_id_2d7a058d_render = function () {
12291
12315
  1
12292
12316
  ),
12293
12317
  _c("div", { staticClass: "es-setting-item" }, [
12294
- _c("div", { staticClass: "es-setting-title" }, [_vm._v("导航模式")]),
12318
+ _c("div", { staticClass: "es-setting-title" }, [_vm._v("菜单风格")]),
12295
12319
  _c(
12296
12320
  "div",
12297
12321
  { staticClass: "es-setting-navs-box" },
@@ -12455,7 +12479,7 @@ var settingsvue_type_template_id_2d7a058d_render = function () {
12455
12479
  staticClass: "es-setting-navs-item",
12456
12480
  attrs: {
12457
12481
  effect: "dark",
12458
- content: "侧边菜单布局",
12482
+ content: "侧边+按钮菜单布局",
12459
12483
  placement: "bottom",
12460
12484
  },
12461
12485
  },
@@ -12494,11 +12518,11 @@ var settingsvue_type_template_id_2d7a058d_render = function () {
12494
12518
  ]
12495
12519
  )
12496
12520
  }
12497
- var settingsvue_type_template_id_2d7a058d_staticRenderFns = []
12498
- settingsvue_type_template_id_2d7a058d_render._withStripped = true
12521
+ var settingsvue_type_template_id_52aa078c_staticRenderFns = []
12522
+ settingsvue_type_template_id_52aa078c_render._withStripped = true
12499
12523
 
12500
12524
 
12501
- // CONCATENATED MODULE: ./packages/main/src/default/settings.vue?vue&type=template&id=2d7a058d&
12525
+ // CONCATENATED MODULE: ./packages/main/src/default/settings.vue?vue&type=template&id=52aa078c&
12502
12526
 
12503
12527
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/settings.vue?vue&type=script&lang=js&
12504
12528
  //
@@ -12701,8 +12725,8 @@ settingsvue_type_template_id_2d7a058d_render._withStripped = true
12701
12725
 
12702
12726
  var default_settings_component = Object(componentNormalizer["a" /* default */])(
12703
12727
  src_default_settingsvue_type_script_lang_js_,
12704
- settingsvue_type_template_id_2d7a058d_render,
12705
- settingsvue_type_template_id_2d7a058d_staticRenderFns,
12728
+ settingsvue_type_template_id_52aa078c_render,
12729
+ settingsvue_type_template_id_52aa078c_staticRenderFns,
12706
12730
  false,
12707
12731
  null,
12708
12732
  null,
@@ -13826,7 +13850,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
13826
13850
  onlineView: {
13827
13851
  type: [String, Boolean],
13828
13852
  default: true
13829
- }
13853
+ },
13854
+ newVersion: Boolean
13830
13855
  },
13831
13856
  computed: {
13832
13857
  showHeader: function showHeader() {
@@ -13898,7 +13923,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
13898
13923
  set: !this.set,
13899
13924
  index: this.doorIndex ? false : true,
13900
13925
  system: true,
13901
- home: this.homePage ? false : true
13926
+ home: this.homePage ? false : true,
13927
+ new: this.showNew ? false : true
13902
13928
  };
13903
13929
 
13904
13930
  if (this.layout === 'subsystem' || this.application) {
@@ -14048,10 +14074,13 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14048
14074
  dialog: {},
14049
14075
  hideSubMenu: false,
14050
14076
  doorIndex: '',
14051
- topRightToolHide: ''
14077
+ topRightToolHide: '',
14078
+ showNew: this.newVersion
14052
14079
  };
14053
14080
  },
14054
14081
  created: function created() {
14082
+ var layout = localStorage.getItem('layout');
14083
+ layout && (this.layout = layout);
14055
14084
  var params = util["a" /* default */].getParams() || {};
14056
14085
  if (params.homePage == 0) {
14057
14086
  this.isLoadHomePage = false;
@@ -14293,6 +14322,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14293
14322
  if (results[i].portalPage || results[i].portalpage) {
14294
14323
  this.doorIndex = results[i].portalPage || results[i].portalpage;
14295
14324
  }
14325
+ if (results[i].multipleVersion || results[i].newVersion) {
14326
+ this.showNew = results[i].newVersion ? results[i].newVersion : true;
14327
+ }
14296
14328
  if (results[i].topRightToolHide) {
14297
14329
  this.topRightToolHide = results[i].topRightToolHide;
14298
14330
  }
@@ -15054,6 +15086,13 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15054
15086
  case 'set':
15055
15087
  this.handleSet();
15056
15088
  break;
15089
+ case 'new':
15090
+ if (typeof this.showNew === 'string') {
15091
+ window.location.href = this.showNew;
15092
+ } else {
15093
+ this.$emit('chang-layout', 'simplicity');
15094
+ }
15095
+ break;
15057
15096
  case 'goView':
15058
15097
  util["a" /* default */].win.open(res.path, '_blank');
15059
15098
  break;
@@ -15219,6 +15258,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15219
15258
  return;
15220
15259
  }
15221
15260
  this.layout = res;
15261
+ localStorage.setItem('layout', res);
15222
15262
  switch (res) {
15223
15263
  case 'topnav':
15224
15264
  this.navs = this.menus;
@@ -15393,8 +15433,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15393
15433
 
15394
15434
  var default_component = Object(componentNormalizer["a" /* default */])(
15395
15435
  src_defaultvue_type_script_lang_js_,
15396
- defaultvue_type_template_id_3c855b6a_render,
15397
- defaultvue_type_template_id_3c855b6a_staticRenderFns,
15436
+ defaultvue_type_template_id_149ff0da_render,
15437
+ defaultvue_type_template_id_149ff0da_staticRenderFns,
15398
15438
  false,
15399
15439
  null,
15400
15440
  null,
@@ -15449,6 +15489,10 @@ var external_wujie_vue2_default = /*#__PURE__*/__webpack_require__.n(external_wu
15449
15489
  //
15450
15490
  //
15451
15491
  //
15492
+ //
15493
+ //
15494
+ //
15495
+ //
15452
15496
 
15453
15497
 
15454
15498
 
@@ -15485,7 +15529,8 @@ var bus = external_wujie_vue2_default.a.bus;
15485
15529
  launchTime: {
15486
15530
  type: Number,
15487
15531
  default: 3000
15488
- }
15532
+ },
15533
+ multiple: Boolean
15489
15534
  },
15490
15535
  computed: {
15491
15536
  _launchImage: function _launchImage() {
@@ -15501,10 +15546,15 @@ var bus = external_wujie_vue2_default.a.bus;
15501
15546
  params: {},
15502
15547
  dialogs: [],
15503
15548
  visibles: [],
15504
- isLogin: false
15549
+ isLogin: false,
15550
+ layout: this.type
15505
15551
  };
15506
15552
  },
15507
15553
  created: function created() {
15554
+ var layoutType = localStorage.getItem('layoutType');
15555
+ if (layoutType) {
15556
+ this.layout = layoutType;
15557
+ }
15508
15558
  this.params = util["a" /* default */].getParams() || {};
15509
15559
  this.sysCode = this.params.sysCode;
15510
15560
  this.appCode = this.params.appCode;
@@ -15568,6 +15618,16 @@ var bus = external_wujie_vue2_default.a.bus;
15568
15618
  },
15569
15619
 
15570
15620
  methods: {
15621
+ /**
15622
+ * @desc: 切换布局风格
15623
+ * @author huangbo
15624
+ * @date 2024年9月7日
15625
+ **/
15626
+ changLayout: function changLayout(res) {
15627
+ this.layout = res;
15628
+ localStorage.setItem('layoutType', res);
15629
+ },
15630
+
15571
15631
  /**
15572
15632
  * @desc:重新登录
15573
15633
  * @author huangbo