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.
- package/lib/eoss-ui.common.js +73 -32
- package/lib/handler.js +16 -4
- package/lib/index.js +1 -1
- package/lib/main.js +36 -9
- package/lib/menu.js +10 -8
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/package.json +2 -2
- package/packages/handler/src/main.vue +25 -6
- package/packages/main/src/main.vue +51 -4
- package/packages/menu/src/main.vue +22 -9
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/src/menu.scss +9 -0
- package/src/index.js +1 -1
package/lib/main.js
CHANGED
|
@@ -2766,7 +2766,7 @@ module.exports = require("stompjs");
|
|
|
2766
2766
|
// ESM COMPAT FLAG
|
|
2767
2767
|
__webpack_require__.r(__webpack_exports__);
|
|
2768
2768
|
|
|
2769
|
-
// 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=
|
|
2769
|
+
// 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&
|
|
2770
2770
|
var render = function () {
|
|
2771
2771
|
var _vm = this
|
|
2772
2772
|
var _h = _vm.$createElement
|
|
@@ -3185,7 +3185,7 @@ var staticRenderFns = []
|
|
|
3185
3185
|
render._withStripped = true
|
|
3186
3186
|
|
|
3187
3187
|
|
|
3188
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
3188
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=60ce43f9&
|
|
3189
3189
|
|
|
3190
3190
|
// 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&
|
|
3191
3191
|
var userinfovue_type_template_id_d575fa30_render = function () {
|
|
@@ -5415,7 +5415,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
5415
5415
|
if (ids) {
|
|
5416
5416
|
this.defaultActive = ids;
|
|
5417
5417
|
}
|
|
5418
|
-
} else {
|
|
5418
|
+
} else if (util["a" /* default */].win.location.hash) {
|
|
5419
5419
|
var hash = util["a" /* default */].win.location.hash;
|
|
5420
5420
|
if (hash) {
|
|
5421
5421
|
hash = hash.split('?')[0];
|
|
@@ -5425,6 +5425,16 @@ var log = util["a" /* default */].getParams('console');
|
|
|
5425
5425
|
if (_ids) {
|
|
5426
5426
|
this.defaultActive = _ids;
|
|
5427
5427
|
}
|
|
5428
|
+
} else if (sessionStorage.getItem('jump')) {
|
|
5429
|
+
var _ids2 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
|
|
5430
|
+
if (_ids2) {
|
|
5431
|
+
this.defaultActive = _ids2;
|
|
5432
|
+
}
|
|
5433
|
+
}
|
|
5434
|
+
} else if (sessionStorage.getItem('jump')) {
|
|
5435
|
+
var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
|
|
5436
|
+
if (_ids3) {
|
|
5437
|
+
this.defaultActive = _ids3;
|
|
5428
5438
|
}
|
|
5429
5439
|
}
|
|
5430
5440
|
this.setMenu(this.menus);
|
|
@@ -5644,17 +5654,27 @@ var log = util["a" /* default */].getParams('console');
|
|
|
5644
5654
|
if (ids) {
|
|
5645
5655
|
_this5.defaultActive = ids;
|
|
5646
5656
|
}
|
|
5647
|
-
} else {
|
|
5657
|
+
} else if (util["a" /* default */].win.location.hash) {
|
|
5648
5658
|
var hash = util["a" /* default */].win.location.hash;
|
|
5649
5659
|
if (hash) {
|
|
5650
5660
|
hash = hash.split('?')[0];
|
|
5651
5661
|
}
|
|
5652
5662
|
if (hash !== '#/' && hash !== '#/main') {
|
|
5653
|
-
var
|
|
5654
|
-
if (
|
|
5655
|
-
_this5.defaultActive =
|
|
5663
|
+
var _ids4 = _this5.getId(_this5.menus, util["a" /* default */].win.location.hash, true);
|
|
5664
|
+
if (_ids4) {
|
|
5665
|
+
_this5.defaultActive = _ids4;
|
|
5666
|
+
}
|
|
5667
|
+
} else if (sessionStorage.getItem('jump')) {
|
|
5668
|
+
var _ids5 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
|
|
5669
|
+
if (_ids5) {
|
|
5670
|
+
_this5.defaultActive = _ids5;
|
|
5656
5671
|
}
|
|
5657
5672
|
}
|
|
5673
|
+
} else if (sessionStorage.getItem('jump')) {
|
|
5674
|
+
var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
|
|
5675
|
+
if (_ids6) {
|
|
5676
|
+
_this5.defaultActive = _ids6;
|
|
5677
|
+
}
|
|
5658
5678
|
}
|
|
5659
5679
|
_this5.setTips(_this5.menus);
|
|
5660
5680
|
store["a" /* default */].set('nav', _this5.menus);
|
|
@@ -5917,9 +5937,15 @@ var log = util["a" /* default */].getParams('console');
|
|
|
5917
5937
|
|
|
5918
5938
|
//应用导航交互
|
|
5919
5939
|
handleSelect: function handleSelect(res, type) {
|
|
5920
|
-
this.isDefault = false;
|
|
5921
5940
|
var node = res.node;
|
|
5922
5941
|
|
|
5942
|
+
if (node.extendData && node.extendData.businessStatus == 0 && node.extendData.businessWarnMsg) {
|
|
5943
|
+
this.$alert(node.extendData.businessWarnMsg, '提示', {
|
|
5944
|
+
type: 'warning'
|
|
5945
|
+
});
|
|
5946
|
+
return;
|
|
5947
|
+
}
|
|
5948
|
+
this.isDefault = false;
|
|
5923
5949
|
switch (type) {
|
|
5924
5950
|
case 'nav':
|
|
5925
5951
|
this.tabs = [];
|
|
@@ -6094,6 +6120,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6094
6120
|
var _this9 = this;
|
|
6095
6121
|
|
|
6096
6122
|
console.log(page);
|
|
6123
|
+
sessionStorage.setItem('jump', page);
|
|
6097
6124
|
if (util["a" /* default */].win.location.hash === page) {
|
|
6098
6125
|
this.refresh = true;
|
|
6099
6126
|
return;
|
|
@@ -6326,7 +6353,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6326
6353
|
},
|
|
6327
6354
|
openPage: function openPage(url, name, width, height) {
|
|
6328
6355
|
var src = url;
|
|
6329
|
-
if (!util["a" /* default */].startWith(url, ['http', '/'])) {
|
|
6356
|
+
if (!util["a" /* default */].startWith(url, ['http', '/'], true)) {
|
|
6330
6357
|
var pathname = window.location.pathname;
|
|
6331
6358
|
if (pathname !== '/') {
|
|
6332
6359
|
pathname = pathname.split('/');
|
package/lib/menu.js
CHANGED
|
@@ -352,7 +352,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
352
352
|
class: [item.icons ? this.unicode(item.icons) ? item.icons : 'es-icons iconfont' : 'es-icon-application', 'es-menu-item-icon'],
|
|
353
353
|
domProps: item.icons === '' || this.unicode(item.icons) ? {} : { innerHTML: item.icons }
|
|
354
354
|
}), h('div', {
|
|
355
|
-
class: 'es-menu-title-text es-menu-title-' + this.mode
|
|
355
|
+
class: ['es-menu-title-text es-menu-title-' + this.mode]
|
|
356
356
|
}, [h('el-badge', {
|
|
357
357
|
class: ['es-badge', {
|
|
358
358
|
'es-badge-right': item.tips && typeof item.tips !== 'boolean',
|
|
@@ -368,7 +368,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
368
368
|
}
|
|
369
369
|
}, [item.text])])];
|
|
370
370
|
var doms = [h('template', { slot: 'title' }, this.titleIcons ? title : [title[1]])];
|
|
371
|
-
if (this.deep && item.children && item.children.length) {
|
|
371
|
+
if (this.deep && item.children && item.children.length && (!item.extendData || item.extendData.businessStatus != 0)) {
|
|
372
372
|
doms = doms.concat(item.children.map(function (ele, index) {
|
|
373
373
|
if (!ele) {
|
|
374
374
|
console.error('\u5BF9\u8C61\u5B50\u6570\u636E\u4E2D\u7B2C[' + index + ']\u6761\u6570\u636E\u9519\u8BEF', item);
|
|
@@ -386,7 +386,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
386
386
|
},
|
|
387
387
|
attrs: { index: item.id, key: item.id }
|
|
388
388
|
}, doms)];
|
|
389
|
-
} else if (this.deep && this.mode === 'horizontal' && item.fourthTabs && item.fourthTabs.length) {
|
|
389
|
+
} else if (this.deep && this.mode === 'horizontal' && item.fourthTabs && item.fourthTabs.length && (!item.extendData || item.extendData.businessStatus != 0)) {
|
|
390
390
|
doms = doms.concat(item.fourthTabs.map(function (ele, index) {
|
|
391
391
|
if (!ele) {
|
|
392
392
|
console.error('\u5BF9\u8C61\u5B50\u6570\u636E\u4E2D\u7B2C[' + index + ']\u6761\u6570\u636E\u9519\u8BEF', item);
|
|
@@ -406,9 +406,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
406
406
|
}, doms)];
|
|
407
407
|
} else {
|
|
408
408
|
return [h('el-menu-item', {
|
|
409
|
-
class: 'es-menu-item ' + (this.deep ? '' : 'es-item-' + this.mode),
|
|
409
|
+
class: ['es-menu-item ' + (this.deep ? '' : 'es-item-' + this.mode)],
|
|
410
410
|
props: {
|
|
411
|
-
paddingLeft: this.paddingLeft
|
|
411
|
+
paddingLeft: this.paddingLeft,
|
|
412
|
+
disabled: item.extendData && item.extendData.businessStatus == 0
|
|
412
413
|
},
|
|
413
414
|
attrs: {
|
|
414
415
|
data: item,
|
|
@@ -431,14 +432,14 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
431
432
|
|
|
432
433
|
var doms = [];
|
|
433
434
|
this.data.forEach(function (item) {
|
|
434
|
-
if (item.children && item.children.length) {
|
|
435
|
+
if (item.children && item.children.length && (!item.extendData || item.extendData.businessStatus != 0)) {
|
|
435
436
|
doms = doms.concat(_this4.getSub(item, h, 'es-sub-menu'));
|
|
436
437
|
} else {
|
|
437
438
|
var title = [h('i', {
|
|
438
439
|
class: [item.icons ? _this4.unicode(item.icons) ? item.icons : 'es-icons iconfont' : 'es-icon-application', 'es-menu-item-icon'],
|
|
439
440
|
domProps: item.icons === '' || _this4.unicode(item.icons) ? {} : { innerHTML: item.icons }
|
|
440
441
|
}), h('div', {
|
|
441
|
-
class: 'es-menu-title-text es-menu-title-' + _this4.mode
|
|
442
|
+
class: ['es-menu-title-text es-menu-title-' + _this4.mode]
|
|
442
443
|
}, [h('el-badge', {
|
|
443
444
|
class: ['es-badge', {
|
|
444
445
|
'es-badge-right': item.tips && typeof item.tips !== 'boolean',
|
|
@@ -456,7 +457,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
456
457
|
doms.push(h('el-menu-item', {
|
|
457
458
|
class: ['es-menu-item-' + _this4.mode],
|
|
458
459
|
props: {
|
|
459
|
-
paddingLeft: _this4.paddingLeft
|
|
460
|
+
paddingLeft: _this4.paddingLeft,
|
|
461
|
+
disabled: item.extendData && item.extendData.businessStatus == 0
|
|
460
462
|
},
|
|
461
463
|
attrs: {
|
|
462
464
|
data: item,
|