eoss-ui 0.6.75 → 0.6.76

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
@@ -4316,7 +4316,7 @@ var nightImg = 'data:image/jpeg;base64,/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
4316
4316
  // ESM COMPAT FLAG
4317
4317
  __webpack_require__.r(__webpack_exports__);
4318
4318
 
4319
- // 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=2c29aadc&
4319
+ // 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=7d366933&
4320
4320
  var render = function () {
4321
4321
  var _vm = this
4322
4322
  var _h = _vm.$createElement
@@ -4414,7 +4414,7 @@ var staticRenderFns = []
4414
4414
  render._withStripped = true
4415
4415
 
4416
4416
 
4417
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=2c29aadc&
4417
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=7d366933&
4418
4418
 
4419
4419
  // EXTERNAL MODULE: ./src/config/image.js
4420
4420
  var config_image = __webpack_require__(20);
@@ -12518,8 +12518,8 @@ var simplicity_component = Object(componentNormalizer["a" /* default */])(
12518
12518
  )
12519
12519
 
12520
12520
  /* harmony default export */ var simplicity = (simplicity_component.exports);
12521
- // 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=5f979f7b&
12522
- var defaultvue_type_template_id_5f979f7b_render = function () {
12521
+ // 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=0d60331a&
12522
+ var defaultvue_type_template_id_0d60331a_render = function () {
12523
12523
  var _vm = this
12524
12524
  var _h = _vm.$createElement
12525
12525
  var _c = _vm._self._c || _h
@@ -13070,11 +13070,11 @@ var defaultvue_type_template_id_5f979f7b_render = function () {
13070
13070
  1
13071
13071
  )
13072
13072
  }
13073
- var defaultvue_type_template_id_5f979f7b_staticRenderFns = []
13074
- defaultvue_type_template_id_5f979f7b_render._withStripped = true
13073
+ var defaultvue_type_template_id_0d60331a_staticRenderFns = []
13074
+ defaultvue_type_template_id_0d60331a_render._withStripped = true
13075
13075
 
13076
13076
 
13077
- // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=5f979f7b&
13077
+ // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=0d60331a&
13078
13078
 
13079
13079
  // 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=516cb128&
13080
13080
  var userinfovue_type_template_id_516cb128_render = function () {
@@ -15112,8 +15112,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15112
15112
  },
15113
15113
  setTitle: function setTitle(id) {
15114
15114
  var node = void 0;
15115
- for (var i = 0; i < this.menus.length; i++) {
15116
- var item = this.menus[i];
15115
+ for (var _i = 0; _i < this.menus.length; _i++) {
15116
+ var item = this.menus[_i];
15117
15117
  if (item.id == id) {
15118
15118
  this.title = item.text;
15119
15119
  node = item;
@@ -15223,109 +15223,88 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15223
15223
  useCaseCodes: results.resourceCodes || results.userModel.resourceCodes
15224
15224
  }
15225
15225
  });
15226
- for (var i in results) {
15227
- if (i === 'mainLogoUrl' && results[i]) {
15228
- this.mainLogo = results[i];
15226
+ for (var _i2 in results) {
15227
+ if (_i2 === 'mainLogoUrl' && results[_i2]) {
15228
+ this.mainLogo = results[_i2];
15229
15229
  }
15230
- if (i === 'mainBannerUrl' && results[i] && this.headerImage === undefined) {
15231
- this.headerImg = results[i];
15230
+ if (_i2 === 'mainBannerUrl' && results[_i2] && this.headerImage === undefined) {
15231
+ this.headerImg = results[_i2];
15232
15232
  }
15233
- if (i === 'initApplication' && results[i]) {
15234
- this.results[i] = results[i].split(',');
15233
+ if (_i2 === 'initApplication' && results[_i2]) {
15234
+ this.results[_i2] = results[_i2].split(',');
15235
15235
  }
15236
- if (i === 'indexUrl' && results[i]) {
15237
- this.homePage = results[i];
15238
- if (this.isLoadHomePage) {
15239
- var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
15240
- var hash = util["a" /* default */].win.location.hash;
15241
- if (hash) {
15242
- hash = hash.split('?')[0];
15243
- }
15244
- var jump = sessionStorage.getItem('jump');
15245
- if (!applicationid && !this.menuCode && (!jump || !this.isHistory) && (hash === '#/' || hash === '#/main') || jump == results[i]) {
15246
- if (this.isHomePage) {
15247
- if (this.menus && this.menus.length) {
15248
- var ids = ids = this.getId(this.menus, this.homePage);
15249
- if (ids) {
15250
- this.defaultActive = ids;
15251
- } else {
15252
- this.handleJump(this.homePage);
15253
- }
15254
- this.setMenu(this.menus);
15255
- }
15256
- }
15257
- } else if (this.menus && this.menus.length) {
15258
- this.setMenu(this.menus);
15259
- }
15260
- }
15236
+ if (_i2 === 'indexUrl' && results[_i2]) {
15237
+ this.homePage = results[_i2];
15261
15238
  }
15262
- if (i === 'doorIndex' && results[i]) {
15263
- window.open(results[i]);
15264
- this.doorIndex = results[i];
15239
+ if (_i2 === 'doorIndex' && results[_i2]) {
15240
+ window.open(results[_i2]);
15241
+ this.doorIndex = results[_i2];
15265
15242
  }
15266
- if (i === 'subsystemName' && results[i]) {
15267
- document.title = results[i];
15243
+ if (_i2 === 'subsystemName' && results[_i2]) {
15244
+ document.title = results[_i2];
15268
15245
  }
15269
- if (i === 'loginPage' && results[i]) {
15270
- util["a" /* default */].setStorage('loginPage', results[i]);
15246
+ if (_i2 === 'loginPage' && results[_i2]) {
15247
+ util["a" /* default */].setStorage('loginPage', results[_i2]);
15271
15248
  }
15272
- if (i === 'sysLogoIco' && results[i]) {
15273
- localStorage.setItem('sysLogoIco', results[i]);
15274
- util["a" /* default */].setFavicon(results[i]);
15249
+ if (_i2 === 'sysLogoIco' && results[_i2]) {
15250
+ localStorage.setItem('sysLogoIco', results[_i2]);
15251
+ util["a" /* default */].setFavicon(results[_i2]);
15275
15252
  }
15276
- if (i === 'userStyle' && results[i] && results[i].color) {
15277
- var color = unescape(results[i].color).toLowerCase();
15278
- if (util["a" /* default */].startWith(color, '#')) {
15279
- this.color = color;
15253
+ if (_i2 === 'userStyle' && results[_i2]) {
15254
+ if (results[_i2].color) {
15255
+ var color = unescape(results[_i2].color).toLowerCase();
15256
+ if (util["a" /* default */].startWith(color, '#')) {
15257
+ this.color = color;
15258
+ }
15280
15259
  }
15281
- if (results[i].indexUrl) {
15282
- this.indexUrl = results[i].indexUrl;
15260
+ if (results[_i2].indexUrl) {
15261
+ this.homePage = results[_i2].indexUrl;
15283
15262
  }
15284
15263
  }
15285
- if (i === 'subsystemExtend' && results[i]) {
15286
- if (results[i].singleLogout) {
15287
- this.singleLogout = results[i].singleLogout.split(',');
15264
+ if (_i2 === 'subsystemExtend' && results[_i2]) {
15265
+ if (results[_i2].singleLogout) {
15266
+ this.singleLogout = results[_i2].singleLogout.split(',');
15288
15267
  }
15289
- if (results[i].themeColor) {
15290
- this.color = unescape(results[i].themeColor).toLowerCase();
15268
+ if (results[_i2].themeColor) {
15269
+ this.color = unescape(results[_i2].themeColor).toLowerCase();
15291
15270
  }
15292
- if (results[i].userInfoContents) {
15293
- this.userInfoContents = results[i].userInfoContents;
15271
+ if (results[_i2].userInfoContents) {
15272
+ this.userInfoContents = results[_i2].userInfoContents;
15294
15273
  }
15295
- if (results[i].webPageWatermark) {
15274
+ if (results[_i2].webPageWatermark) {
15296
15275
  try {
15297
- util["a" /* default */].win.webPageWatermark = results[i].webPageWatermark;
15298
- util["a" /* default */].watermark(results[i].webPageWatermark);
15276
+ util["a" /* default */].win.webPageWatermark = results[_i2].webPageWatermark;
15277
+ util["a" /* default */].watermark(results[_i2].webPageWatermark);
15299
15278
  } catch (error) {}
15300
15279
  }
15301
- if (results[i].loginPage) {
15302
- util["a" /* default */].setStorage('loginPage', results[i].loginPage);
15280
+ if (results[_i2].loginPage) {
15281
+ util["a" /* default */].setStorage('loginPage', results[_i2].loginPage);
15303
15282
  }
15304
- if (results[i].portalPage || results[i].portalpage) {
15305
- this.doorIndex = results[i].portalPage || results[i].portalpage;
15283
+ if (results[_i2].portalPage || results[_i2].portalpage) {
15284
+ this.doorIndex = results[_i2].portalPage || results[_i2].portalpage;
15306
15285
  }
15307
- if (results[i].multipleVersion) {
15286
+ if (results[_i2].multipleVersion) {
15308
15287
  this.showSet = true;
15309
15288
  }
15310
- if (results[i].topRightToolHide) {
15311
- this.topRightToolHide = results[i].topRightToolHide;
15289
+ if (results[_i2].topRightToolHide) {
15290
+ this.topRightToolHide = results[_i2].topRightToolHide;
15312
15291
  }
15313
- if (results[i].contact) {
15314
- var contact = JSON.parse(results[i].contact);
15292
+ if (results[_i2].contact) {
15293
+ var contact = JSON.parse(results[_i2].contact);
15315
15294
  var content = contact.content.split(',');
15316
15295
  this.contact = defaultvue_type_script_lang_js_extends({}, contact, {
15317
15296
  content: content
15318
15297
  });
15319
15298
  }
15320
- if (results[i].aiConfig) {
15321
- if (typeof results[i].aiConfig == 'string') {
15299
+ if (results[_i2].aiConfig) {
15300
+ if (typeof results[_i2].aiConfig == 'string') {
15322
15301
  try {
15323
- this.aiConfig = JSON.parse(results[i].aiConfig);
15302
+ this.aiConfig = JSON.parse(results[_i2].aiConfig);
15324
15303
  } catch (error) {
15325
- this.aiConfig = { url: results[i].aiConfig };
15304
+ this.aiConfig = { url: results[_i2].aiConfig };
15326
15305
  }
15327
15306
  } else {
15328
- this.aiConfig = results[i].aiConfig;
15307
+ this.aiConfig = results[_i2].aiConfig;
15329
15308
  }
15330
15309
  this.$nextTick(function () {
15331
15310
  // util.draggableMove({
@@ -15335,19 +15314,42 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15335
15314
  // });
15336
15315
  });
15337
15316
  }
15338
- if (results[i].imConfig) {
15339
- if (typeof results[i].imConfig == 'string') {
15317
+ if (results[_i2].imConfig) {
15318
+ if (typeof results[_i2].imConfig == 'string') {
15340
15319
  try {
15341
- this.imConfig = JSON.parse(results[i].imConfig);
15320
+ this.imConfig = JSON.parse(results[_i2].imConfig);
15342
15321
  } catch (error) {
15343
- this.imConfig = { url: results[i].imConfig };
15322
+ this.imConfig = { url: results[_i2].imConfig };
15344
15323
  }
15345
15324
  } else {
15346
- this.imConfig = results[i].imConfig;
15325
+ this.imConfig = results[_i2].imConfig;
15347
15326
  }
15348
15327
  }
15349
15328
  }
15350
- store["a" /* default */].set(i, results[i]);
15329
+ store["a" /* default */].set(_i2, results[_i2]);
15330
+ }
15331
+ if (this.isLoadHomePage && this.homePage) {
15332
+ var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
15333
+ var hash = util["a" /* default */].win.location.hash;
15334
+ if (hash) {
15335
+ hash = hash.split('?')[0];
15336
+ }
15337
+ var jump = sessionStorage.getItem('jump');
15338
+ if (!applicationid && !this.menuCode && (!jump || !this.isHistory) && (hash === '#/' || hash === '#/main') || jump == results[i]) {
15339
+ if (this.isHomePage) {
15340
+ if (this.menus && this.menus.length) {
15341
+ var ids = ids = this.getId(this.menus, this.homePage);
15342
+ if (ids) {
15343
+ this.defaultActive = ids;
15344
+ } else {
15345
+ this.handleJump(this.homePage);
15346
+ }
15347
+ this.setMenu(this.menus);
15348
+ }
15349
+ }
15350
+ } else if (this.menus && this.menus.length) {
15351
+ this.setMenu(this.menus);
15352
+ }
15351
15353
  }
15352
15354
  this.userModel = results.userModel;
15353
15355
  },
@@ -15467,8 +15469,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15467
15469
  if (!url) {
15468
15470
  return false;
15469
15471
  }
15470
- for (var i = 0; i < menus.length; i++) {
15471
- var item = menus[i];
15472
+ for (var _i3 = 0; _i3 < menus.length; _i3++) {
15473
+ var item = menus[_i3];
15472
15474
  if (item.id === url || item.appCode && item.appCode === url) {
15473
15475
  if (item.url) {
15474
15476
  if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
@@ -15655,10 +15657,10 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15655
15657
  }
15656
15658
  }
15657
15659
  if (this.application) {
15658
- for (var i = 0; i < res.length; i++) {
15659
- if (res[i].hasPermission) {
15660
- this.menu = res[i].children;
15661
- this.title = res[i].text;
15660
+ for (var _i4 = 0; _i4 < res.length; _i4++) {
15661
+ if (res[_i4].hasPermission) {
15662
+ this.menu = res[_i4].children;
15663
+ this.title = res[_i4].text;
15662
15664
  break;
15663
15665
  }
15664
15666
  }
@@ -15821,10 +15823,10 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15821
15823
  } else {
15822
15824
  this.active = active.slice(1);
15823
15825
  }
15824
- for (var i = 0; i < res.length; i++) {
15825
- if (res[i].id === active[0]) {
15826
- this.menu = res[i].children;
15827
- this.title = res[i].text;
15826
+ for (var _i5 = 0; _i5 < res.length; _i5++) {
15827
+ if (res[_i5].id === active[0]) {
15828
+ this.menu = res[_i5].children;
15829
+ this.title = res[_i5].text;
15828
15830
  break;
15829
15831
  }
15830
15832
  }
@@ -15844,8 +15846,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15844
15846
 
15845
15847
  //获取页面类型及地址
15846
15848
  getUrl: function getUrl(res, active, param) {
15847
- for (var i = 0; i < res.length; i++) {
15848
- var item = res[i];
15849
+ for (var _i6 = 0; _i6 < res.length; _i6++) {
15850
+ var item = res[_i6];
15849
15851
  if (item.id === active) {
15850
15852
  if (item.url) {
15851
15853
  this.handleJump(item.url, item.urlopenmode, item, param);
@@ -15873,9 +15875,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
15873
15875
  setUrl: function setUrl(url, param) {
15874
15876
  var obj = param ? param : {};
15875
15877
  var params = util["a" /* default */].getParams({ url: url }, true);
15876
- for (var i in params) {
15877
- if (i != 'model' && i != 'view' && i != '_baseUrl') {
15878
- obj[i] = params[i];
15878
+ for (var _i7 in params) {
15879
+ if (_i7 != 'model' && _i7 != 'view' && _i7 != '_baseUrl') {
15880
+ obj[_i7] = params[_i7];
15879
15881
  }
15880
15882
  }
15881
15883
  var _url = params._baseUrl ? params._baseUrl : './primary.html';
@@ -16051,8 +16053,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
16051
16053
  return false;
16052
16054
  }
16053
16055
  if (Array.isArray(res)) {
16054
- for (var i in res) {
16055
- var path = this.hasRouter(res[i], url);
16056
+ for (var _i8 in res) {
16057
+ var path = this.hasRouter(res[_i8], url);
16056
16058
  if (path) {
16057
16059
  return path;
16058
16060
  }
@@ -16271,8 +16273,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
16271
16273
  },
16272
16274
  getFourthTabs: function getFourthTabs(menus, id) {
16273
16275
  if (Array.isArray(menus)) {
16274
- for (var i = 0; i < menus.length; i++) {
16275
- var fourth = this.getFourthTabs(menus[i], id);
16276
+ for (var _i9 = 0; _i9 < menus.length; _i9++) {
16277
+ var fourth = this.getFourthTabs(menus[_i9], id);
16276
16278
  if (fourth) {
16277
16279
  return fourth;
16278
16280
  }
@@ -16282,8 +16284,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
16282
16284
  return menus;
16283
16285
  }
16284
16286
  if (menus.children && menus.children.length) {
16285
- for (var _i = 0; _i < menus.children.length; _i++) {
16286
- var _fourth = this.getFourthTabs(menus.children[_i], id);
16287
+ for (var _i10 = 0; _i10 < menus.children.length; _i10++) {
16288
+ var _fourth = this.getFourthTabs(menus.children[_i10], id);
16287
16289
  if (_fourth) {
16288
16290
  return _fourth;
16289
16291
  }
@@ -16388,26 +16390,26 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
16388
16390
  take: api["oc" /* topic */],
16389
16391
  success: function success(res) {
16390
16392
  var data = res.data || {};
16391
- for (var i in data) {
16392
- if (data[i] !== null && data[i] !== undefined) {
16393
- if (i === 'onlineUserNums' && data[i] > 0) {
16394
- _this11.online = data[i];
16393
+ for (var _i11 in data) {
16394
+ if (data[_i11] !== null && data[_i11] !== undefined) {
16395
+ if (_i11 === 'onlineUserNums' && data[_i11] > 0) {
16396
+ _this11.online = data[_i11];
16395
16397
  }
16396
- if (i === 'sysMsgNums' && data[i] !== null) {
16397
- _this11.notice = data[i];
16398
+ if (_i11 === 'sysMsgNums' && data[_i11] !== null) {
16399
+ _this11.notice = data[_i11];
16398
16400
  if (_this11.showMsg) {
16399
16401
  _this11.$refs.message.getMsg(true);
16400
16402
  }
16401
16403
  }
16402
- if (i === 'menuTipsMap' && data[i] !== null) {
16403
- _this11.menuTips = data[i];
16404
+ if (_i11 === 'menuTipsMap' && data[_i11] !== null) {
16405
+ _this11.menuTips = data[_i11];
16404
16406
  }
16405
- if (i === 'sysMsgList' && data[i] !== null) {
16406
- _this11.sysMsg = data[i];
16407
- data[i] && data[i].length && _this11.$emit('bus-emit', 'waitdone');
16407
+ if (_i11 === 'sysMsgList' && data[_i11] !== null) {
16408
+ _this11.sysMsg = data[_i11];
16409
+ data[_i11] && data[_i11].length && _this11.$emit('bus-emit', 'waitdone');
16408
16410
  }
16409
- if (i === 'extraData' && data[i] !== null) {
16410
- _this11.extraData = data[i];
16411
+ if (_i11 === 'extraData' && data[_i11] !== null) {
16412
+ _this11.extraData = data[_i11];
16411
16413
  }
16412
16414
  }
16413
16415
  }
@@ -16514,8 +16516,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
16514
16516
 
16515
16517
  var default_component = Object(componentNormalizer["a" /* default */])(
16516
16518
  src_defaultvue_type_script_lang_js_,
16517
- defaultvue_type_template_id_5f979f7b_render,
16518
- defaultvue_type_template_id_5f979f7b_staticRenderFns,
16519
+ defaultvue_type_template_id_0d60331a_render,
16520
+ defaultvue_type_template_id_0d60331a_staticRenderFns,
16519
16521
  false,
16520
16522
  null,
16521
16523
  null,
@@ -16651,12 +16653,11 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
16651
16653
  if (this.params.cookie && (this.params.cookie == true || this.params.cookie == 1)) {
16652
16654
  this.isLogin = true;
16653
16655
  }
16654
- this.getConfig(this.params);
16655
- // 主应用监听事件
16656
16656
  },
16657
16657
  mounted: function mounted() {
16658
16658
  var _this = this;
16659
16659
 
16660
+ this.getConfig(this.params);
16660
16661
  if (this.isLogin) {
16661
16662
  if (util["a" /* default */].win.$wujie) {
16662
16663
  util["a" /* default */].win.$wujie.bus.$on('changeTheme', function (res) {