eoss-ui 0.4.24 → 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=71ab55cc&
42996
- var mainvue_type_template_id_71ab55cc_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_71ab55cc_render = function () {
43407
43419
  1
43408
43420
  )
43409
43421
  }
43410
- var mainvue_type_template_id_71ab55cc_staticRenderFns = []
43411
- mainvue_type_template_id_71ab55cc_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=71ab55cc&
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 () {
@@ -45226,6 +45238,7 @@ var log = utils_util["a" /* default */].getParams('console');
45226
45238
  type: String,
45227
45239
  default: ''
45228
45240
  },
45241
+ param: Object,
45229
45242
  header: {
45230
45243
  type: Boolean,
45231
45244
  default: true
@@ -45624,7 +45637,7 @@ var log = utils_util["a" /* default */].getParams('console');
45624
45637
  if (ids) {
45625
45638
  this.defaultActive = ids;
45626
45639
  }
45627
- } else {
45640
+ } else if (utils_util["a" /* default */].win.location.hash) {
45628
45641
  var hash = utils_util["a" /* default */].win.location.hash;
45629
45642
  if (hash) {
45630
45643
  hash = hash.split('?')[0];
@@ -45634,6 +45647,16 @@ var log = utils_util["a" /* default */].getParams('console');
45634
45647
  if (_ids) {
45635
45648
  this.defaultActive = _ids;
45636
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;
45637
45660
  }
45638
45661
  }
45639
45662
  this.setMenu(this.menus);
@@ -45844,7 +45867,7 @@ var log = utils_util["a" /* default */].getParams('console');
45844
45867
  getMenu: function getMenu() {
45845
45868
  var _this5 = this;
45846
45869
 
45847
- utils_util["a" /* default */].ajax({ url: this.action }).then(function (res) {
45870
+ utils_util["a" /* default */].ajax({ url: this.action, params: this.param ? this.param : {} }).then(function (res) {
45848
45871
  if (res.rCode === 0) {
45849
45872
  _this5.menus = JSON.parse(JSON.stringify(res.results));
45850
45873
  var applicationid = utils_util["a" /* default */].getParams('applicationid') || utils_util["a" /* default */].getParams('applicationId');
@@ -45853,17 +45876,27 @@ var log = utils_util["a" /* default */].getParams('console');
45853
45876
  if (ids) {
45854
45877
  _this5.defaultActive = ids;
45855
45878
  }
45856
- } else {
45879
+ } else if (utils_util["a" /* default */].win.location.hash) {
45857
45880
  var hash = utils_util["a" /* default */].win.location.hash;
45858
45881
  if (hash) {
45859
45882
  hash = hash.split('?')[0];
45860
45883
  }
45861
45884
  if (hash !== '#/' && hash !== '#/main') {
45862
- var _ids2 = _this5.getId(_this5.menus, utils_util["a" /* default */].win.location.hash, true);
45863
- if (_ids2) {
45864
- _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;
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;
45865
45893
  }
45866
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;
45899
+ }
45867
45900
  }
45868
45901
  _this5.setTips(_this5.menus);
45869
45902
  utils_store.set('nav', _this5.menus);
@@ -46126,9 +46159,15 @@ var log = utils_util["a" /* default */].getParams('console');
46126
46159
 
46127
46160
  //应用导航交互
46128
46161
  handleSelect: function handleSelect(res, type) {
46129
- this.isDefault = false;
46130
46162
  var node = res.node;
46131
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;
46132
46171
  switch (type) {
46133
46172
  case 'nav':
46134
46173
  this.tabs = [];
@@ -46303,6 +46342,7 @@ var log = utils_util["a" /* default */].getParams('console');
46303
46342
  var _this9 = this;
46304
46343
 
46305
46344
  console.log(page);
46345
+ sessionStorage.setItem('jump', page);
46306
46346
  if (utils_util["a" /* default */].win.location.hash === page) {
46307
46347
  this.refresh = true;
46308
46348
  return;
@@ -46535,7 +46575,7 @@ var log = utils_util["a" /* default */].getParams('console');
46535
46575
  },
46536
46576
  openPage: function openPage(url, name, width, height) {
46537
46577
  var src = url;
46538
- if (!utils_util["a" /* default */].startWith(url, ['http', '/'])) {
46578
+ if (!utils_util["a" /* default */].startWith(url, ['http', '/'], true)) {
46539
46579
  var pathname = window.location.pathname;
46540
46580
  if (pathname !== '/') {
46541
46581
  pathname = pathname.split('/');
@@ -46571,8 +46611,8 @@ var log = utils_util["a" /* default */].getParams('console');
46571
46611
 
46572
46612
  var main_src_main_component = normalizeComponent(
46573
46613
  packages_main_src_mainvue_type_script_lang_js_,
46574
- mainvue_type_template_id_71ab55cc_render,
46575
- mainvue_type_template_id_71ab55cc_staticRenderFns,
46614
+ mainvue_type_template_id_60ce43f9_render,
46615
+ mainvue_type_template_id_60ce43f9_staticRenderFns,
46576
46616
  false,
46577
46617
  null,
46578
46618
  null,
@@ -50573,7 +50613,7 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50573
50613
  class: [item.icons ? this.unicode(item.icons) ? item.icons : 'es-icons iconfont' : 'es-icon-application', 'es-menu-item-icon'],
50574
50614
  domProps: item.icons === '' || this.unicode(item.icons) ? {} : { innerHTML: item.icons }
50575
50615
  }), h('div', {
50576
- class: 'es-menu-title-text es-menu-title-' + this.mode
50616
+ class: ['es-menu-title-text es-menu-title-' + this.mode]
50577
50617
  }, [h('el-badge', {
50578
50618
  class: ['es-badge', {
50579
50619
  'es-badge-right': item.tips && typeof item.tips !== 'boolean',
@@ -50589,7 +50629,7 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50589
50629
  }
50590
50630
  }, [item.text])])];
50591
50631
  var doms = [h('template', { slot: 'title' }, this.titleIcons ? title : [title[1]])];
50592
- if (this.deep && item.children && item.children.length) {
50632
+ if (this.deep && item.children && item.children.length && (!item.extendData || item.extendData.businessStatus != 0)) {
50593
50633
  doms = doms.concat(item.children.map(function (ele, index) {
50594
50634
  if (!ele) {
50595
50635
  console.error('\u5BF9\u8C61\u5B50\u6570\u636E\u4E2D\u7B2C[' + index + ']\u6761\u6570\u636E\u9519\u8BEF', item);
@@ -50607,7 +50647,7 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50607
50647
  },
50608
50648
  attrs: { index: item.id, key: item.id }
50609
50649
  }, doms)];
50610
- } 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)) {
50611
50651
  doms = doms.concat(item.fourthTabs.map(function (ele, index) {
50612
50652
  if (!ele) {
50613
50653
  console.error('\u5BF9\u8C61\u5B50\u6570\u636E\u4E2D\u7B2C[' + index + ']\u6761\u6570\u636E\u9519\u8BEF', item);
@@ -50627,9 +50667,10 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50627
50667
  }, doms)];
50628
50668
  } else {
50629
50669
  return [h('el-menu-item', {
50630
- class: 'es-menu-item ' + (this.deep ? '' : 'es-item-' + this.mode),
50670
+ class: ['es-menu-item ' + (this.deep ? '' : 'es-item-' + this.mode)],
50631
50671
  props: {
50632
- paddingLeft: this.paddingLeft
50672
+ paddingLeft: this.paddingLeft,
50673
+ disabled: item.extendData && item.extendData.businessStatus == 0
50633
50674
  },
50634
50675
  attrs: {
50635
50676
  data: item,
@@ -50652,14 +50693,14 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50652
50693
 
50653
50694
  var doms = [];
50654
50695
  this.data.forEach(function (item) {
50655
- if (item.children && item.children.length) {
50696
+ if (item.children && item.children.length && (!item.extendData || item.extendData.businessStatus != 0)) {
50656
50697
  doms = doms.concat(_this4.getSub(item, h, 'es-sub-menu'));
50657
50698
  } else {
50658
50699
  var title = [h('i', {
50659
- class: item.icons ? _this4.unicode(item.icons) ? item.icons : 'es-icons iconfont' : 'es-icon-application',
50700
+ class: [item.icons ? _this4.unicode(item.icons) ? item.icons : 'es-icons iconfont' : 'es-icon-application', 'es-menu-item-icon'],
50660
50701
  domProps: item.icons === '' || _this4.unicode(item.icons) ? {} : { innerHTML: item.icons }
50661
50702
  }), h('div', {
50662
- class: 'es-menu-title-text es-menu-title-' + _this4.mode
50703
+ class: ['es-menu-title-text es-menu-title-' + _this4.mode]
50663
50704
  }, [h('el-badge', {
50664
50705
  class: ['es-badge', {
50665
50706
  'es-badge-right': item.tips && typeof item.tips !== 'boolean',
@@ -50675,8 +50716,10 @@ var menu_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50675
50716
  }
50676
50717
  }, [item.text])])];
50677
50718
  doms.push(h('el-menu-item', {
50719
+ class: ['es-menu-item-' + _this4.mode],
50678
50720
  props: {
50679
- paddingLeft: _this4.paddingLeft
50721
+ paddingLeft: _this4.paddingLeft,
50722
+ disabled: item.extendData && item.extendData.businessStatus == 0
50680
50723
  },
50681
50724
  attrs: {
50682
50725
  data: item,
@@ -68434,7 +68477,7 @@ if (typeof window !== 'undefined' && window.Vue) {
68434
68477
  }
68435
68478
 
68436
68479
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
68437
- version: '0.4.24',
68480
+ version: '0.4.26',
68438
68481
  install: install,
68439
68482
  Button: packages_button,
68440
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
  },