eoss-ui 0.4.25 → 0.4.26

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.
@@ -39260,8 +39260,8 @@ handle_user_src_main.install = function (Vue) {
39260
39260
  };
39261
39261
 
39262
39262
  /* harmony default export */ var handle_user = (handle_user_src_main);
39263
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=45008084&
39264
- var mainvue_type_template_id_45008084_render = function () {
39263
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=6c3c5ce0&
39264
+ var mainvue_type_template_id_6c3c5ce0_render = function () {
39265
39265
  var _vm = this
39266
39266
  var _h = _vm.$createElement
39267
39267
  var _c = _vm._self._c || _h
@@ -39327,7 +39327,9 @@ var mainvue_type_template_id_45008084_render = function () {
39327
39327
  staticClass: "es-sub-system-item",
39328
39328
  class: {
39329
39329
  "es-disabled":
39330
- _vm.application && !ele.hasPermission,
39330
+ (_vm.application && !ele.hasPermission) ||
39331
+ (ele.extendData &&
39332
+ ele.extendData.businessStatus == 0),
39331
39333
  },
39332
39334
  attrs: { title: ele.text },
39333
39335
  on: {
@@ -39429,11 +39431,11 @@ var mainvue_type_template_id_45008084_render = function () {
39429
39431
  0
39430
39432
  )
39431
39433
  }
39432
- var mainvue_type_template_id_45008084_staticRenderFns = []
39433
- mainvue_type_template_id_45008084_render._withStripped = true
39434
+ var mainvue_type_template_id_6c3c5ce0_staticRenderFns = []
39435
+ mainvue_type_template_id_6c3c5ce0_render._withStripped = true
39434
39436
 
39435
39437
 
39436
- // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=45008084&
39438
+ // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=6c3c5ce0&
39437
39439
 
39438
39440
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=script&lang=js&
39439
39441
  //
@@ -39528,6 +39530,10 @@ mainvue_type_template_id_45008084_render._withStripped = true
39528
39530
  //
39529
39531
  //
39530
39532
  //
39533
+ //
39534
+ //
39535
+ //
39536
+ //
39531
39537
 
39532
39538
 
39533
39539
 
@@ -39674,7 +39680,13 @@ mainvue_type_template_id_45008084_render._withStripped = true
39674
39680
  handleSelect: function handleSelect(res) {
39675
39681
  var node = res.node;
39676
39682
 
39677
- if (!this.application || node.hasPermission) {
39683
+ console.log(node);
39684
+ if (node.extendData && node.extendData.businessStatus == 0 && node.extendData.businessWarnMsg) {
39685
+ this.$alert(node.extendData.businessWarnMsg, '提示', {
39686
+ type: 'warning'
39687
+ });
39688
+ }
39689
+ if (!this.application && !node.hasPermission && node.extendData && node.extendData.businessStatus != 0) {
39678
39690
  this.$emit('select', res);
39679
39691
  }
39680
39692
  },
@@ -39731,8 +39743,8 @@ mainvue_type_template_id_45008084_render._withStripped = true
39731
39743
 
39732
39744
  var handler_src_main_component = normalizeComponent(
39733
39745
  packages_handler_src_mainvue_type_script_lang_js_,
39734
- mainvue_type_template_id_45008084_render,
39735
- mainvue_type_template_id_45008084_staticRenderFns,
39746
+ mainvue_type_template_id_6c3c5ce0_render,
39747
+ mainvue_type_template_id_6c3c5ce0_staticRenderFns,
39736
39748
  false,
39737
39749
  null,
39738
39750
  null,
@@ -42992,8 +43004,8 @@ login_src_main.install = function (Vue) {
42992
43004
  };
42993
43005
 
42994
43006
  /* harmony default export */ var login = (login_src_main);
42995
- // 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=23fb4503&
42996
- var mainvue_type_template_id_23fb4503_render = function () {
43007
+ // 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=60ce43f9&
43008
+ var mainvue_type_template_id_60ce43f9_render = function () {
42997
43009
  var _vm = this
42998
43010
  var _h = _vm.$createElement
42999
43011
  var _c = _vm._self._c || _h
@@ -43407,11 +43419,11 @@ var mainvue_type_template_id_23fb4503_render = function () {
43407
43419
  1
43408
43420
  )
43409
43421
  }
43410
- var mainvue_type_template_id_23fb4503_staticRenderFns = []
43411
- mainvue_type_template_id_23fb4503_render._withStripped = true
43422
+ var mainvue_type_template_id_60ce43f9_staticRenderFns = []
43423
+ mainvue_type_template_id_60ce43f9_render._withStripped = true
43412
43424
 
43413
43425
 
43414
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=23fb4503&
43426
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=60ce43f9&
43415
43427
 
43416
43428
  // 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=d575fa30&
43417
43429
  var userinfovue_type_template_id_d575fa30_render = function () {
@@ -45625,7 +45637,7 @@ var log = utils_util["a" /* default */].getParams('console');
45625
45637
  if (ids) {
45626
45638
  this.defaultActive = ids;
45627
45639
  }
45628
- } else {
45640
+ } else if (utils_util["a" /* default */].win.location.hash) {
45629
45641
  var hash = utils_util["a" /* default */].win.location.hash;
45630
45642
  if (hash) {
45631
45643
  hash = hash.split('?')[0];
@@ -45635,6 +45647,16 @@ var log = utils_util["a" /* default */].getParams('console');
45635
45647
  if (_ids) {
45636
45648
  this.defaultActive = _ids;
45637
45649
  }
45650
+ } else if (sessionStorage.getItem('jump')) {
45651
+ var _ids2 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
45652
+ if (_ids2) {
45653
+ this.defaultActive = _ids2;
45654
+ }
45655
+ }
45656
+ } else if (sessionStorage.getItem('jump')) {
45657
+ var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
45658
+ if (_ids3) {
45659
+ this.defaultActive = _ids3;
45638
45660
  }
45639
45661
  }
45640
45662
  this.setMenu(this.menus);
@@ -45854,16 +45876,26 @@ var log = utils_util["a" /* default */].getParams('console');
45854
45876
  if (ids) {
45855
45877
  _this5.defaultActive = ids;
45856
45878
  }
45857
- } else {
45879
+ } else if (utils_util["a" /* default */].win.location.hash) {
45858
45880
  var hash = utils_util["a" /* default */].win.location.hash;
45859
45881
  if (hash) {
45860
45882
  hash = hash.split('?')[0];
45861
45883
  }
45862
45884
  if (hash !== '#/' && hash !== '#/main') {
45863
- var _ids2 = _this5.getId(_this5.menus, utils_util["a" /* default */].win.location.hash, true);
45864
- if (_ids2) {
45865
- _this5.defaultActive = _ids2;
45885
+ var _ids4 = _this5.getId(_this5.menus, utils_util["a" /* default */].win.location.hash, true);
45886
+ if (_ids4) {
45887
+ _this5.defaultActive = _ids4;
45866
45888
  }
45889
+ } else if (sessionStorage.getItem('jump')) {
45890
+ var _ids5 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
45891
+ if (_ids5) {
45892
+ _this5.defaultActive = _ids5;
45893
+ }
45894
+ }
45895
+ } else if (sessionStorage.getItem('jump')) {
45896
+ var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
45897
+ if (_ids6) {
45898
+ _this5.defaultActive = _ids6;
45867
45899
  }
45868
45900
  }
45869
45901
  _this5.setTips(_this5.menus);
@@ -46127,9 +46159,15 @@ var log = utils_util["a" /* default */].getParams('console');
46127
46159
 
46128
46160
  //应用导航交互
46129
46161
  handleSelect: function handleSelect(res, type) {
46130
- this.isDefault = false;
46131
46162
  var node = res.node;
46132
46163
 
46164
+ if (node.extendData && node.extendData.businessStatus == 0 && node.extendData.businessWarnMsg) {
46165
+ this.$alert(node.extendData.businessWarnMsg, '提示', {
46166
+ type: 'warning'
46167
+ });
46168
+ return;
46169
+ }
46170
+ this.isDefault = false;
46133
46171
  switch (type) {
46134
46172
  case 'nav':
46135
46173
  this.tabs = [];
@@ -46304,6 +46342,7 @@ var log = utils_util["a" /* default */].getParams('console');
46304
46342
  var _this9 = this;
46305
46343
 
46306
46344
  console.log(page);
46345
+ sessionStorage.setItem('jump', page);
46307
46346
  if (utils_util["a" /* default */].win.location.hash === page) {
46308
46347
  this.refresh = true;
46309
46348
  return;
@@ -46536,7 +46575,7 @@ var log = utils_util["a" /* default */].getParams('console');
46536
46575
  },
46537
46576
  openPage: function openPage(url, name, width, height) {
46538
46577
  var src = url;
46539
- if (!utils_util["a" /* default */].startWith(url, ['http', '/'])) {
46578
+ if (!utils_util["a" /* default */].startWith(url, ['http', '/'], true)) {
46540
46579
  var pathname = window.location.pathname;
46541
46580
  if (pathname !== '/') {
46542
46581
  pathname = pathname.split('/');
@@ -46572,8 +46611,8 @@ var log = utils_util["a" /* default */].getParams('console');
46572
46611
 
46573
46612
  var main_src_main_component = normalizeComponent(
46574
46613
  packages_main_src_mainvue_type_script_lang_js_,
46575
- mainvue_type_template_id_23fb4503_render,
46576
- mainvue_type_template_id_23fb4503_staticRenderFns,
46614
+ mainvue_type_template_id_60ce43f9_render,
46615
+ mainvue_type_template_id_60ce43f9_staticRenderFns,
46577
46616
  false,
46578
46617
  null,
46579
46618
  null,
@@ -50574,7 +50613,7 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50574
50613
  class: [item.icons ? this.unicode(item.icons) ? item.icons : 'es-icons iconfont' : 'es-icon-application', 'es-menu-item-icon'],
50575
50614
  domProps: item.icons === '' || this.unicode(item.icons) ? {} : { innerHTML: item.icons }
50576
50615
  }), h('div', {
50577
- class: 'es-menu-title-text es-menu-title-' + this.mode
50616
+ class: ['es-menu-title-text es-menu-title-' + this.mode]
50578
50617
  }, [h('el-badge', {
50579
50618
  class: ['es-badge', {
50580
50619
  'es-badge-right': item.tips && typeof item.tips !== 'boolean',
@@ -50590,7 +50629,7 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50590
50629
  }
50591
50630
  }, [item.text])])];
50592
50631
  var doms = [h('template', { slot: 'title' }, this.titleIcons ? title : [title[1]])];
50593
- if (this.deep && item.children && item.children.length) {
50632
+ if (this.deep && item.children && item.children.length && (!item.extendData || item.extendData.businessStatus != 0)) {
50594
50633
  doms = doms.concat(item.children.map(function (ele, index) {
50595
50634
  if (!ele) {
50596
50635
  console.error('\u5BF9\u8C61\u5B50\u6570\u636E\u4E2D\u7B2C[' + index + ']\u6761\u6570\u636E\u9519\u8BEF', item);
@@ -50608,7 +50647,7 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50608
50647
  },
50609
50648
  attrs: { index: item.id, key: item.id }
50610
50649
  }, doms)];
50611
- } else if (this.deep && this.mode === 'horizontal' && item.fourthTabs && item.fourthTabs.length) {
50650
+ } else if (this.deep && this.mode === 'horizontal' && item.fourthTabs && item.fourthTabs.length && (!item.extendData || item.extendData.businessStatus != 0)) {
50612
50651
  doms = doms.concat(item.fourthTabs.map(function (ele, index) {
50613
50652
  if (!ele) {
50614
50653
  console.error('\u5BF9\u8C61\u5B50\u6570\u636E\u4E2D\u7B2C[' + index + ']\u6761\u6570\u636E\u9519\u8BEF', item);
@@ -50628,9 +50667,10 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50628
50667
  }, doms)];
50629
50668
  } else {
50630
50669
  return [h('el-menu-item', {
50631
- class: 'es-menu-item ' + (this.deep ? '' : 'es-item-' + this.mode),
50670
+ class: ['es-menu-item ' + (this.deep ? '' : 'es-item-' + this.mode)],
50632
50671
  props: {
50633
- paddingLeft: this.paddingLeft
50672
+ paddingLeft: this.paddingLeft,
50673
+ disabled: item.extendData && item.extendData.businessStatus == 0
50634
50674
  },
50635
50675
  attrs: {
50636
50676
  data: item,
@@ -50653,14 +50693,14 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50653
50693
 
50654
50694
  var doms = [];
50655
50695
  this.data.forEach(function (item) {
50656
- if (item.children && item.children.length) {
50696
+ if (item.children && item.children.length && (!item.extendData || item.extendData.businessStatus != 0)) {
50657
50697
  doms = doms.concat(_this4.getSub(item, h, 'es-sub-menu'));
50658
50698
  } else {
50659
50699
  var title = [h('i', {
50660
50700
  class: [item.icons ? _this4.unicode(item.icons) ? item.icons : 'es-icons iconfont' : 'es-icon-application', 'es-menu-item-icon'],
50661
50701
  domProps: item.icons === '' || _this4.unicode(item.icons) ? {} : { innerHTML: item.icons }
50662
50702
  }), h('div', {
50663
- class: 'es-menu-title-text es-menu-title-' + _this4.mode
50703
+ class: ['es-menu-title-text es-menu-title-' + _this4.mode]
50664
50704
  }, [h('el-badge', {
50665
50705
  class: ['es-badge', {
50666
50706
  'es-badge-right': item.tips && typeof item.tips !== 'boolean',
@@ -50678,7 +50718,8 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50678
50718
  doms.push(h('el-menu-item', {
50679
50719
  class: ['es-menu-item-' + _this4.mode],
50680
50720
  props: {
50681
- paddingLeft: _this4.paddingLeft
50721
+ paddingLeft: _this4.paddingLeft,
50722
+ disabled: item.extendData && item.extendData.businessStatus == 0
50682
50723
  },
50683
50724
  attrs: {
50684
50725
  data: item,
@@ -68436,7 +68477,7 @@ if (typeof window !== 'undefined' && window.Vue) {
68436
68477
  }
68437
68478
 
68438
68479
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
68439
- version: '0.4.25',
68480
+ version: '0.4.26',
68440
68481
  install: install,
68441
68482
  Button: packages_button,
68442
68483
  ButtonGroup: button_group,
package/lib/handler.js CHANGED
@@ -2689,7 +2689,7 @@ module.exports = require("axios");
2689
2689
  // ESM COMPAT FLAG
2690
2690
  __webpack_require__.r(__webpack_exports__);
2691
2691
 
2692
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=45008084&
2692
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=6c3c5ce0&
2693
2693
  var render = function () {
2694
2694
  var _vm = this
2695
2695
  var _h = _vm.$createElement
@@ -2756,7 +2756,9 @@ var render = function () {
2756
2756
  staticClass: "es-sub-system-item",
2757
2757
  class: {
2758
2758
  "es-disabled":
2759
- _vm.application && !ele.hasPermission,
2759
+ (_vm.application && !ele.hasPermission) ||
2760
+ (ele.extendData &&
2761
+ ele.extendData.businessStatus == 0),
2760
2762
  },
2761
2763
  attrs: { title: ele.text },
2762
2764
  on: {
@@ -2862,7 +2864,7 @@ var staticRenderFns = []
2862
2864
  render._withStripped = true
2863
2865
 
2864
2866
 
2865
- // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=45008084&
2867
+ // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=6c3c5ce0&
2866
2868
 
2867
2869
  // EXTERNAL MODULE: ./src/config/api.js
2868
2870
  var api = __webpack_require__(1);
@@ -2963,6 +2965,10 @@ var util = __webpack_require__(0);
2963
2965
  //
2964
2966
  //
2965
2967
  //
2968
+ //
2969
+ //
2970
+ //
2971
+ //
2966
2972
 
2967
2973
 
2968
2974
 
@@ -3109,7 +3115,13 @@ var util = __webpack_require__(0);
3109
3115
  handleSelect: function handleSelect(res) {
3110
3116
  var node = res.node;
3111
3117
 
3112
- if (!this.application || node.hasPermission) {
3118
+ console.log(node);
3119
+ if (node.extendData && node.extendData.businessStatus == 0 && node.extendData.businessWarnMsg) {
3120
+ this.$alert(node.extendData.businessWarnMsg, '提示', {
3121
+ type: 'warning'
3122
+ });
3123
+ }
3124
+ if (!this.application && !node.hasPermission && node.extendData && node.extendData.businessStatus != 0) {
3113
3125
  this.$emit('select', res);
3114
3126
  }
3115
3127
  },