eoss-ui 0.5.94 → 0.5.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/main.js CHANGED
@@ -3979,7 +3979,7 @@ module.exports = require("wujie-vue2");
3979
3979
  // ESM COMPAT FLAG
3980
3980
  __webpack_require__.r(__webpack_exports__);
3981
3981
 
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=24977ea8&
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=f52b5d68&
3983
3983
  var render = function () {
3984
3984
  var _vm = this
3985
3985
  var _h = _vm.$createElement
@@ -4045,31 +4045,6 @@ var render = function () {
4045
4045
  ]
4046
4046
  )
4047
4047
  }),
4048
- _c("transition", { attrs: { name: "launch-fade" } }, [
4049
- _c(
4050
- "div",
4051
- {
4052
- directives: [
4053
- {
4054
- name: "show",
4055
- rawName: "v-show",
4056
- value: _vm.launchShow,
4057
- expression: "launchShow",
4058
- },
4059
- ],
4060
- staticClass: "es-launch-image",
4061
- style: _vm._launchImage,
4062
- },
4063
- [
4064
- _c("p", { staticClass: "es-launch-text es-launch-user-name" }, [
4065
- _vm._v(_vm._s(_vm.userName) + ",你好!"),
4066
- ]),
4067
- _c("p", { staticClass: "es-launch-text es-launch-system-name" }, [
4068
- _vm._v("\n 欢迎进入" + _vm._s(_vm.sysName) + "\n "),
4069
- ]),
4070
- ]
4071
- ),
4072
- ]),
4073
4048
  ],
4074
4049
  2
4075
4050
  )
@@ -4078,13 +4053,13 @@ var staticRenderFns = []
4078
4053
  render._withStripped = true
4079
4054
 
4080
4055
 
4081
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=24977ea8&
4056
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=f52b5d68&
4082
4057
 
4083
4058
  // EXTERNAL MODULE: ./src/config/image.js
4084
4059
  var config_image = __webpack_require__(18);
4085
4060
 
4086
- // 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=797818d8&scoped=true&
4087
- var simplicityvue_type_template_id_797818d8_scoped_true_render = function () {
4061
+ // 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&
4062
+ var simplicityvue_type_template_id_03f1f7f2_scoped_true_render = function () {
4088
4063
  var _vm = this
4089
4064
  var _h = _vm.$createElement
4090
4065
  var _c = _vm._self._c || _h
@@ -4391,6 +4366,7 @@ var simplicityvue_type_template_id_797818d8_scoped_true_render = function () {
4391
4366
  : [
4392
4367
  _c("es-wujie", {
4393
4368
  attrs: {
4369
+ host: _vm.host,
4394
4370
  show: true,
4395
4371
  props: _vm.wjProps,
4396
4372
  attrs: _vm.wjAttrs,
@@ -4567,8 +4543,17 @@ var simplicityvue_type_template_id_797818d8_scoped_true_render = function () {
4567
4543
  attrs: { label: item.text || item.name, name: item.id },
4568
4544
  },
4569
4545
  [
4570
- (_vm.isIE && item.method !== "router") ||
4571
- item.method == "iframe"
4546
+ item.method === "router"
4547
+ ? _c(
4548
+ "router-page",
4549
+ _vm._b(
4550
+ { attrs: { query: _vm.$parent.params } },
4551
+ "router-page",
4552
+ item,
4553
+ false
4554
+ )
4555
+ )
4556
+ : _vm.isIE || item.method == "iframe"
4572
4557
  ? _c("iframe", {
4573
4558
  attrs: {
4574
4559
  id: _vm.activeName == item.id ? _vm.iframeId : "",
@@ -4579,9 +4564,10 @@ var simplicityvue_type_template_id_797818d8_scoped_true_render = function () {
4579
4564
  src: item.url,
4580
4565
  },
4581
4566
  })
4582
- : item.method === "wujie" && item.refresh
4567
+ : item.method === "wujie"
4583
4568
  ? _c("es-wujie", {
4584
4569
  attrs: {
4570
+ host: _vm.host,
4585
4571
  show: true,
4586
4572
  props: _vm.wjProps,
4587
4573
  attrs: _vm.wjAttrs,
@@ -4589,16 +4575,6 @@ var simplicityvue_type_template_id_797818d8_scoped_true_render = function () {
4589
4575
  url: item.url,
4590
4576
  },
4591
4577
  })
4592
- : item.method === "router" && item.refresh
4593
- ? _c(
4594
- "router-page",
4595
- _vm._b(
4596
- { attrs: { query: _vm.$parent.params } },
4597
- "router-page",
4598
- item,
4599
- false
4600
- )
4601
- )
4602
4578
  : _vm._e(),
4603
4579
  ],
4604
4580
  1
@@ -4710,11 +4686,11 @@ var simplicityvue_type_template_id_797818d8_scoped_true_render = function () {
4710
4686
  ),
4711
4687
  ])
4712
4688
  }
4713
- var simplicityvue_type_template_id_797818d8_scoped_true_staticRenderFns = []
4714
- simplicityvue_type_template_id_797818d8_scoped_true_render._withStripped = true
4689
+ var simplicityvue_type_template_id_03f1f7f2_scoped_true_staticRenderFns = []
4690
+ simplicityvue_type_template_id_03f1f7f2_scoped_true_render._withStripped = true
4715
4691
 
4716
4692
 
4717
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=797818d8&scoped=true&
4693
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=03f1f7f2&scoped=true&
4718
4694
 
4719
4695
  // 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&
4720
4696
  var avatarvue_type_template_id_1560e8bf_scoped_true_render = function () {
@@ -8418,22 +8394,28 @@ var settings_component = Object(componentNormalizer["a" /* default */])(
8418
8394
  )
8419
8395
 
8420
8396
  /* harmony default export */ var settings = (settings_component.exports);
8421
- // 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/router-page.vue?vue&type=template&id=fa212f84&scoped=true&
8422
- var router_pagevue_type_template_id_fa212f84_scoped_true_render = function () {
8397
+ // 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/router-page.vue?vue&type=template&id=31352afe&scoped=true&
8398
+ var router_pagevue_type_template_id_31352afe_scoped_true_render = function () {
8423
8399
  var _vm = this
8424
8400
  var _h = _vm.$createElement
8425
8401
  var _c = _vm._self._c || _h
8426
8402
  return _c(
8427
- "keep-alive",
8428
- [_c("router-view", { attrs: { name: _vm.appCode } })],
8403
+ "div",
8404
+ { staticStyle: { height: "100%" } },
8405
+ [
8406
+ _c("router-view", {
8407
+ key: _vm.keys || _vm.appCode,
8408
+ attrs: { name: _vm.appCode },
8409
+ }),
8410
+ ],
8429
8411
  1
8430
8412
  )
8431
8413
  }
8432
- var router_pagevue_type_template_id_fa212f84_scoped_true_staticRenderFns = []
8433
- router_pagevue_type_template_id_fa212f84_scoped_true_render._withStripped = true
8414
+ var router_pagevue_type_template_id_31352afe_scoped_true_staticRenderFns = []
8415
+ router_pagevue_type_template_id_31352afe_scoped_true_render._withStripped = true
8434
8416
 
8435
8417
 
8436
- // CONCATENATED MODULE: ./packages/main/src/simplicity/router-page.vue?vue&type=template&id=fa212f84&scoped=true&
8418
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/router-page.vue?vue&type=template&id=31352afe&scoped=true&
8437
8419
 
8438
8420
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/router-page.vue?vue&type=script&lang=js&
8439
8421
  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; };
@@ -8458,7 +8440,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
8458
8440
  default: function _default() {
8459
8441
  return {};
8460
8442
  }
8461
- }
8443
+ },
8444
+ keys: String
8462
8445
  },
8463
8446
  data: function data() {
8464
8447
  return {};
@@ -8493,11 +8476,11 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
8493
8476
 
8494
8477
  var router_page_component = Object(componentNormalizer["a" /* default */])(
8495
8478
  simplicity_router_pagevue_type_script_lang_js_,
8496
- router_pagevue_type_template_id_fa212f84_scoped_true_render,
8497
- router_pagevue_type_template_id_fa212f84_scoped_true_staticRenderFns,
8479
+ router_pagevue_type_template_id_31352afe_scoped_true_render,
8480
+ router_pagevue_type_template_id_31352afe_scoped_true_staticRenderFns,
8498
8481
  false,
8499
8482
  null,
8500
- "fa212f84",
8483
+ "31352afe",
8501
8484
  null
8502
8485
 
8503
8486
  )
@@ -9824,6 +9807,8 @@ var simplicityvue_type_script_lang_js_extends = Object.assign || function (targe
9824
9807
  //
9825
9808
  //
9826
9809
  //
9810
+ //
9811
+ //
9827
9812
 
9828
9813
 
9829
9814
 
@@ -9846,11 +9831,12 @@ var events = [function (tabs, index, that) {
9846
9831
 
9847
9832
  if (tab.method == 'iframe') {
9848
9833
  tabs[index].url = util["a" /* default */].handlerUrl(tab.url);
9849
- } else {
9850
- tabs[index].refresh = false;
9851
- that.$nextTick(function () {
9852
- tabs[index].refresh = true;
9853
- });
9834
+ }
9835
+ if (tab.method === 'wujie' && tab.appCode) {
9836
+ window.document.querySelector('iframe[name=' + tab.appCode + ']').contentWindow.location.reload(true);
9837
+ }
9838
+ if (tab.method === 'router') {
9839
+ that.$set(tabs[index], 'keys', util["a" /* default */].uuid());
9854
9840
  }
9855
9841
  return tabs;
9856
9842
  }, function (tabs, index, that) {
@@ -10000,7 +9986,13 @@ var events = [function (tabs, index, that) {
10000
9986
  default: 220
10001
9987
  },
10002
9988
  //路由方式
10003
- routeType: String
9989
+ routeType: String,
9990
+ host: {
9991
+ type: String,
9992
+ default: function _default() {
9993
+ return sessionStorage.getItem('host') || '';
9994
+ }
9995
+ }
10004
9996
  },
10005
9997
  data: function data() {
10006
9998
  return {
@@ -10530,12 +10522,12 @@ var events = [function (tabs, index, that) {
10530
10522
  setIframeType: function setIframeType(res) {
10531
10523
  var url = res.url;
10532
10524
 
10533
- if (url) {
10534
- res.refresh = false;
10535
- }
10536
10525
  var urls = url.split('?');
10537
10526
  if (urls[0].indexOf('.js') > 1 && !isIE) {
10538
10527
  res.method = 'wujie';
10528
+ if (!res.appCode) {
10529
+ res.appCode = 'application_' + Date.now();
10530
+ }
10539
10531
  } else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
10540
10532
  res.method = 'iframe';
10541
10533
  } else {
@@ -10548,6 +10540,7 @@ var events = [function (tabs, index, that) {
10548
10540
  if (path && this.routeType !== 'wujie') {
10549
10541
  res.method = 'router';
10550
10542
  res.path = path;
10543
+ res.keys = util["a" /* default */].uuid();
10551
10544
  } else {
10552
10545
  var urlopenmode = util["a" /* default */].getParams({
10553
10546
  url: url,
@@ -10557,18 +10550,21 @@ var events = [function (tabs, index, that) {
10557
10550
  res.method = 'iframe';
10558
10551
  } else {
10559
10552
  res.method = 'wujie';
10553
+ if (!res.appCode) {
10554
+ res.appCode = 'application_' + Date.now();
10555
+ }
10560
10556
  }
10561
10557
  }
10562
10558
  } else if (urls[0].indexOf('.html') > -1 && urls[0].indexOf('#/') > -1 || urls[0].indexOf('/#/') > -1) {
10563
10559
  res.method = 'wujie';
10560
+ if (!res.appCode) {
10561
+ res.appCode = 'application_' + Date.now();
10562
+ }
10564
10563
  } else {
10565
10564
  res.method = 'iframe';
10566
10565
  }
10567
10566
  }
10568
10567
  }
10569
- if (Object.prototype.hasOwnProperty.call(res, 'refresh')) {
10570
- res.refresh = true;
10571
- }
10572
10568
  return res;
10573
10569
  },
10574
10570
 
@@ -10891,8 +10887,6 @@ var events = [function (tabs, index, that) {
10891
10887
  * @date 2024年9月7日
10892
10888
  **/
10893
10889
  handlerClickMenu: function handlerClickMenu(res) {
10894
- var _this5 = this;
10895
-
10896
10890
  util["a" /* default */].ajax({
10897
10891
  url: api["mb" /* recordUserApp */],
10898
10892
  params: {
@@ -10913,14 +10907,13 @@ var events = [function (tabs, index, that) {
10913
10907
  this.activeName = res.id;
10914
10908
  this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab7.url));
10915
10909
  } else {
10916
- this.$set(this.tabs[i], 'refresh', false);
10917
- if (_tab7.method === 'wujie') {
10918
- this.activeName = res.id;
10910
+ if (_tab7.method === 'wujie' && _tab7.appCode) {
10911
+ window.document.querySelector('iframe[name=' + _tab7.appCode + ']').contentWindow.location.reload(true);
10919
10912
  }
10920
- this.$nextTick(function () {
10921
- _this5.$set(_this5.tabs[i], 'refresh', true);
10922
- _this5.activeName = res.id;
10923
- });
10913
+ if (_tab7.method === 'router') {
10914
+ this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
10915
+ }
10916
+ this.activeName = res.id;
10924
10917
  }
10925
10918
  }
10926
10919
  },
@@ -10971,8 +10964,6 @@ var events = [function (tabs, index, that) {
10971
10964
  * @date 2024年9月7日
10972
10965
  **/
10973
10966
  handleRefresh: function handleRefresh() {
10974
- var _this6 = this;
10975
-
10976
10967
  var i = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
10977
10968
  var tab = this.tabs[i];
10978
10969
  if (tab.method === 'iframe') {
@@ -10981,11 +10972,12 @@ var events = [function (tabs, index, that) {
10981
10972
  var _tab8 = this.tabs[i];
10982
10973
  if (_tab8.method === 'iframe') {
10983
10974
  this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab8.url));
10984
- } else {
10985
- this.$set(this.tabs[i], 'refresh', false);
10986
- this.$nextTick(function () {
10987
- _this6.$set(_this6.tabs[i], 'refresh', true);
10988
- });
10975
+ }
10976
+ if (_tab8.method === 'wujie' && _tab8.appCode) {
10977
+ window.document.querySelector('iframe[name=' + _tab8.appCode + ']').contentWindow.location.reload(true);
10978
+ }
10979
+ if (_tab8.method === 'router') {
10980
+ this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
10989
10981
  }
10990
10982
  }
10991
10983
  },
@@ -11065,8 +11057,6 @@ var events = [function (tabs, index, that) {
11065
11057
  * @date 2024年9月7日
11066
11058
  **/
11067
11059
  handleClick: function handleClick(res) {
11068
- var _this7 = this;
11069
-
11070
11060
  var type = res.type,
11071
11061
  event = res.event,
11072
11062
  open = res.open,
@@ -11111,11 +11101,12 @@ var events = [function (tabs, index, that) {
11111
11101
  var tab = this.tabs[i];
11112
11102
  if (tab.method === 'iframe') {
11113
11103
  this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(tab.url));
11114
- } else {
11115
- this.$set(this.tabs[i], 'refresh', false);
11116
- this.$nextTick(function () {
11117
- _this7.$set(_this7.tabs[i], 'refresh', true);
11118
- });
11104
+ }
11105
+ if (tab.method === 'wujie' && tab.appCode) {
11106
+ window.document.querySelector('iframe[name=' + tab.appCode + ']').contentWindow.location.reload(true);
11107
+ }
11108
+ if (tab.method === 'router') {
11109
+ this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
11119
11110
  }
11120
11111
  }
11121
11112
  this.activeName = this.homePage.id;
@@ -11145,7 +11136,7 @@ var events = [function (tabs, index, that) {
11145
11136
  * @date 2024年9月7日
11146
11137
  **/
11147
11138
  handleQuit: function handleQuit() {
11148
- var _this8 = this;
11139
+ var _this5 = this;
11149
11140
 
11150
11141
  this.$confirm('确定注销吗?', '退出系统', {
11151
11142
  confirmButtonText: '确定',
@@ -11154,9 +11145,9 @@ var events = [function (tabs, index, that) {
11154
11145
  }).then(function () {
11155
11146
  util["a" /* default */].ajax({ method: 'post', url: api["eb" /* logout */] }).then(function (res) {
11156
11147
  if (res.rCode == 0) {
11157
- util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump', 'showLaunch']);
11158
- if (_this8.onQuit && typeof _this8.onQuit === 'function') {
11159
- _this8.onQuit();
11148
+ util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
11149
+ if (_this5.onQuit && typeof _this5.onQuit === 'function') {
11150
+ _this5.onQuit();
11160
11151
  } else {
11161
11152
  try {
11162
11153
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
@@ -11194,7 +11185,7 @@ var events = [function (tabs, index, that) {
11194
11185
  }
11195
11186
  }).catch(function (err) {
11196
11187
  if (err.message && err.message !== 'canceled') {
11197
- _this8.$message.error(err.message);
11188
+ _this5.$message.error(err.message);
11198
11189
  }
11199
11190
  });
11200
11191
  }).catch(function (e) {});
@@ -11239,21 +11230,19 @@ var events = [function (tabs, index, that) {
11239
11230
  * @date 2024年9月7日
11240
11231
  **/
11241
11232
  handleOpened: function handleOpened(res) {
11242
- var _this9 = this;
11233
+ var _this6 = this;
11243
11234
 
11244
11235
  if (res === undefined) {
11245
11236
  this.sysMsg = [];
11246
11237
  } else if (res == false && this.sysMsg.length) {
11247
11238
  this.sysMsgOut = setTimeout(function () {
11248
- _this9.sysMsg = [];
11239
+ _this6.sysMsg = [];
11249
11240
  }, 3000);
11250
11241
  } else if (this.sysMsgOut) {
11251
11242
  clearTimeout(this.sysMsgOut);
11252
11243
  }
11253
11244
  },
11254
11245
  jumpMenu: function jumpMenu(res, close) {
11255
- var _this10 = this;
11256
-
11257
11246
  var apps = res;
11258
11247
  if (typeof res === 'string') {
11259
11248
  apps = res.split(',');
@@ -11271,11 +11260,12 @@ var events = [function (tabs, index, that) {
11271
11260
  var _tab9 = this.tabs[i];
11272
11261
  if (_tab9.method === 'iframe') {
11273
11262
  this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab9.url));
11274
- } else {
11275
- this.$set(this.tabs[i], 'refresh', false);
11276
- this.$nextTick(function () {
11277
- _this10.$set(_this10.tabs[i], 'refresh', true);
11278
- });
11263
+ }
11264
+ if (_tab9.method === 'wujie' && _tab9.appCode) {
11265
+ window.document.querySelector('iframe[name=' + _tab9.appCode + ']').contentWindow.location.reload(true);
11266
+ }
11267
+ if (_tab9.method === 'router') {
11268
+ this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
11279
11269
  }
11280
11270
  }
11281
11271
  if (close) {
@@ -11295,13 +11285,13 @@ var events = [function (tabs, index, that) {
11295
11285
 
11296
11286
  //监听改变菜单
11297
11287
  handleListener: function handleListener() {
11298
- var _this11 = this;
11288
+ var _this7 = this;
11299
11289
 
11300
11290
  util["a" /* default */].win.addEventListener('message', function (e) {
11301
11291
  var msg = e.data;
11302
11292
  if (msg.key == 'jump_Menu') {
11303
11293
  var res = msg.data1;
11304
- _this11.jumpMenu(res);
11294
+ _this7.jumpMenu(res);
11305
11295
  }
11306
11296
  }, false);
11307
11297
  },
@@ -11335,18 +11325,18 @@ var events = [function (tabs, index, that) {
11335
11325
 
11336
11326
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
11337
11327
  src_simplicityvue_type_script_lang_js_,
11338
- simplicityvue_type_template_id_797818d8_scoped_true_render,
11339
- simplicityvue_type_template_id_797818d8_scoped_true_staticRenderFns,
11328
+ simplicityvue_type_template_id_03f1f7f2_scoped_true_render,
11329
+ simplicityvue_type_template_id_03f1f7f2_scoped_true_staticRenderFns,
11340
11330
  false,
11341
11331
  null,
11342
- "797818d8",
11332
+ "03f1f7f2",
11343
11333
  null
11344
11334
 
11345
11335
  )
11346
11336
 
11347
11337
  /* harmony default export */ var simplicity = (simplicity_component.exports);
11348
- // 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=3665477e&
11349
- var defaultvue_type_template_id_3665477e_render = function () {
11338
+ // 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&
11339
+ var defaultvue_type_template_id_3c855b6a_render = function () {
11350
11340
  var _vm = this
11351
11341
  var _h = _vm.$createElement
11352
11342
  var _c = _vm._self._c || _h
@@ -11733,11 +11723,11 @@ var defaultvue_type_template_id_3665477e_render = function () {
11733
11723
  1
11734
11724
  )
11735
11725
  }
11736
- var defaultvue_type_template_id_3665477e_staticRenderFns = []
11737
- defaultvue_type_template_id_3665477e_render._withStripped = true
11726
+ var defaultvue_type_template_id_3c855b6a_staticRenderFns = []
11727
+ defaultvue_type_template_id_3c855b6a_render._withStripped = true
11738
11728
 
11739
11729
 
11740
- // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=3665477e&
11730
+ // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=3c855b6a&
11741
11731
 
11742
11732
  // 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&
11743
11733
  var userinfovue_type_template_id_d207c2e8_render = function () {
@@ -13816,7 +13806,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
13816
13806
  default: true
13817
13807
  },
13818
13808
  loadHomePage: {
13819
- type: [Boolean, String],
13809
+ type: Boolean,
13820
13810
  default: true
13821
13811
  },
13822
13812
  appCode: String,
@@ -14007,6 +13997,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14007
13997
  selectPage: '',
14008
13998
  //主页面
14009
13999
  homePage: '',
14000
+ isLoadHomePage: this.loadHomePage,
14010
14001
  //header背景
14011
14002
  mainLogo: null,
14012
14003
  headerImg: this.headerImage,
@@ -14060,8 +14051,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14060
14051
  },
14061
14052
  created: function created() {
14062
14053
  var params = util["a" /* default */].getParams() || {};
14063
- if (typeof this.loadHomePage === 'string') {
14064
- this.homePage = this.loadHomePage;
14054
+ if (params.homePage == 0) {
14055
+ this.isLoadHomePage = false;
14065
14056
  }
14066
14057
  this.isHeader = params.header;
14067
14058
  var sysLogoIco = sessionStorage.getItem('sysLogoIco');
@@ -14233,29 +14224,30 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14233
14224
  if (i === 'initApplication' && results[i]) {
14234
14225
  this.results[i] = results[i].split(',');
14235
14226
  }
14236
- if (i === 'indexUrl' && results[i] && this.loadHomePage) {
14237
- var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
14238
- var hash = util["a" /* default */].win.location.hash;
14239
- if (hash) {
14240
- hash = hash.split('?')[0];
14241
- }
14242
- var jump = sessionStorage.getItem('jump');
14243
- if (!applicationid && !this.menuCode && (!jump || !this.isHistory) && (hash === '#/' || hash === '#/main') || jump == results[i]) {
14244
- this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : results[i];
14245
- if (this.isHomePage && this.homePage) {
14246
- if (this.menus && this.menus.length) {
14247
- var ids = null;
14248
- this.homePage && (ids = this.getId(this.menus, this.homePage));
14249
- if (ids) {
14250
- this.defaultActive = ids;
14251
- } else if (this.homePage) {
14252
- this.handleJump(this.homePage);
14227
+ if (i === 'indexUrl' && results[i]) {
14228
+ this.homePage = results[i];
14229
+ if (this.isLoadHomePage) {
14230
+ var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
14231
+ var hash = util["a" /* default */].win.location.hash;
14232
+ if (hash) {
14233
+ hash = hash.split('?')[0];
14234
+ }
14235
+ var jump = sessionStorage.getItem('jump');
14236
+ if (!applicationid && !this.menuCode && (!jump || !this.isHistory) && (hash === '#/' || hash === '#/main') || jump == results[i]) {
14237
+ if (this.isHomePage) {
14238
+ if (this.menus && this.menus.length) {
14239
+ var ids = ids = this.getId(this.menus, this.homePage);
14240
+ if (ids) {
14241
+ this.defaultActive = ids;
14242
+ } else {
14243
+ this.handleJump(this.homePage);
14244
+ }
14245
+ this.setMenu(this.menus);
14253
14246
  }
14254
- this.setMenu(this.menus);
14255
14247
  }
14248
+ } else if (this.menus && this.menus.length) {
14249
+ this.setMenu(this.menus);
14256
14250
  }
14257
- } else if (this.menus && this.menus.length) {
14258
- this.setMenu(this.menus);
14259
14251
  }
14260
14252
  }
14261
14253
  if (i === 'doorIndex' && results[i]) {
@@ -14563,9 +14555,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
14563
14555
  this.isDefault = false;
14564
14556
  this.setDefault(res, this.defaultActive);
14565
14557
  } else {
14566
- if (this.homePage || !util["a" /* default */].getStorage('mainConfig')) {
14567
- this.isDefault = true;
14568
- if (this.homePage && (!this.defaultActive || !this.defaultActive.length)) {
14558
+ if (this.homePage) {
14559
+ this.isDefault = this.isLoadHomePage;
14560
+ if (this.isLoadHomePage && (!this.defaultActive || !this.defaultActive.length)) {
14569
14561
  var _ids6 = this.getId(this.menus, this.homePage);
14570
14562
  if (_ids6) {
14571
14563
  this.defaultActive = _ids6;
@@ -15399,8 +15391,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15399
15391
 
15400
15392
  var default_component = Object(componentNormalizer["a" /* default */])(
15401
15393
  src_defaultvue_type_script_lang_js_,
15402
- defaultvue_type_template_id_3665477e_render,
15403
- defaultvue_type_template_id_3665477e_staticRenderFns,
15394
+ defaultvue_type_template_id_3c855b6a_render,
15395
+ defaultvue_type_template_id_3c855b6a_staticRenderFns,
15404
15396
  false,
15405
15397
  null,
15406
15398
  null,
@@ -15455,15 +15447,6 @@ var external_wujie_vue2_default = /*#__PURE__*/__webpack_require__.n(external_wu
15455
15447
  //
15456
15448
  //
15457
15449
  //
15458
- //
15459
- //
15460
- //
15461
- //
15462
- //
15463
- //
15464
- //
15465
- //
15466
- //
15467
15450
 
15468
15451
 
15469
15452
 
@@ -15515,18 +15498,10 @@ var bus = external_wujie_vue2_default.a.bus;
15515
15498
  appCode: '',
15516
15499
  params: {},
15517
15500
  dialogs: [],
15518
- visibles: [],
15519
- sysName: '',
15520
- userName: '',
15521
- launchShow: this.launch,
15522
- showLaunch: false,
15523
- launchImages: this.launchImage,
15524
- launchKey: 'day',
15525
- launchTimer: null
15501
+ visibles: []
15526
15502
  };
15527
15503
  },
15528
15504
  created: function created() {
15529
- this.init();
15530
15505
  this.params = util["a" /* default */].getParams() || {};
15531
15506
  this.sysCode = this.params.sysCode;
15532
15507
  this.appCode = this.params.appCode;
@@ -15590,47 +15565,13 @@ var bus = external_wujie_vue2_default.a.bus;
15590
15565
  },
15591
15566
 
15592
15567
  methods: {
15593
- /**
15594
- * @desc:初始化
15595
- * @author huangbo
15596
- * @date 2024年9月7日
15597
- **/
15598
- init: function init() {
15599
- var _this2 = this;
15600
-
15601
- this.userName = util["a" /* default */].getStorage('userName');
15602
- this.sysName = util["a" /* default */].getStorage('sysName');
15603
- this.launchKey = 5 < new Date().getHours() < 18 ? 'day' : 'night';
15604
- var showLaunch = sessionStorage.getItem('showLaunch');
15605
- var launch = sessionStorage.getItem('launch');
15606
- var launchImage = sessionStorage.getItem('launchImage');
15607
- var launchTime = util["a" /* default */].getStorage('launchTime');
15608
- if (launchImage) {
15609
- this.launchImages = JSON.parse(launchImage);
15610
- }
15611
- if (showLaunch) {
15612
- this.launchShow = false;
15613
- } else if (launch) {
15614
- if (launch == 'true') {
15615
- this.launchShow = true;
15616
- clearTimeout(this.launchTimer);
15617
- this.launchTimer = setTimeout(function () {
15618
- _this2.launchShow = false;
15619
- sessionStorage.setItem('showLaunch', 1);
15620
- }, launchTime ? parseInt(launchTime, 10) : this.launchTime);
15621
- } else {
15622
- this.launchShow = false;
15623
- }
15624
- }
15625
- },
15626
-
15627
15568
  /**
15628
15569
  * @desc:重新登录
15629
15570
  * @author huangbo
15630
15571
  * @date 2024年9月7日
15631
15572
  **/
15632
15573
  handleReLogin: function handleReLogin(res) {
15633
- var _this3 = this;
15574
+ var _this2 = this;
15634
15575
 
15635
15576
  if (res && typeof res == 'string') {
15636
15577
  res = JSON.parse(res);
@@ -15661,8 +15602,8 @@ var bus = external_wujie_vue2_default.a.bus;
15661
15602
  this.timer = setTimeout(function () {
15662
15603
  console.log('handleReLogin');
15663
15604
  sessionStorage.setItem('remind', 1);
15664
- _this3.$confirm(msg, btn).then(function () {
15665
- util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump', 'showLaunch']);
15605
+ _this2.$confirm(msg, btn).then(function () {
15606
+ util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
15666
15607
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
15667
15608
  try {
15668
15609
  if (loginPage) {
@@ -15708,7 +15649,7 @@ var bus = external_wujie_vue2_default.a.bus;
15708
15649
  * @date 2024年9月7日
15709
15650
  **/
15710
15651
  getConfig: function getConfig(query) {
15711
- var _this4 = this;
15652
+ var _this3 = this;
15712
15653
 
15713
15654
  var token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
15714
15655
  if (!token && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType')) {
@@ -15717,28 +15658,10 @@ var bus = external_wujie_vue2_default.a.bus;
15717
15658
  var mainConfig = util["a" /* default */].getStorage('mainConfig');
15718
15659
  if (!mainConfig || mainConfig == '{}') {
15719
15660
  util["a" /* default */].getMainConfig(function (res) {
15720
- _this4.userName = res.results.userModel.username || res.userModel.userName;
15721
- _this4.sysName = res.subsystemName;
15722
- if (res.subsystemExtend && res.subsystemExtend.launchImage) {
15723
- if (!_this4.launchShow) {
15724
- _this4.launchShow = true;
15725
- clearTimeout(_this4.launchTimer);
15726
- _this4.launchTimer = setTimeout(function () {
15727
- _this4.launchShow = false;
15728
- sessionStorage.setItem('showLaunch', 1);
15729
- }, res.subsystemExtend.launchTime ? parseInt(res.subsystemExtend.launchTime, 10) : _this4.launchTime);
15730
- }
15731
- if (res.subsystemExtend.launchImage != 'true' && res.subsystemExtend.launchImage != true) {
15732
- _this4.launchImages = res.subsystemExtend.launchImage.indexOf('{') > -1 && res.subsystemExtend.launchImage.indexOf('}') > -1 ? JSON.parse(res.subsystemExtend.launchImage) : res.subsystemExtend.launchImage;
15733
- }
15734
- sessionStorage.setItem('launchImage', JSON.stringify(_this4.launchImages));
15735
- }
15736
- _this4.$refs.main.init(res);
15661
+ _this3.$refs.main.init(res);
15737
15662
  });
15738
15663
  } else {
15739
15664
  mainConfig = JSON.parse(mainConfig);
15740
- this.userName = mainConfig.userModel.username || mainConfig.userModel.userName;
15741
- this.sysName = mainConfig.subsystemName;
15742
15665
  }
15743
15666
  },
15744
15667