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.
- package/lib/eoss-ui.common.js +77 -34
- package/lib/handler.js +16 -4
- package/lib/index.js +1 -1
- package/lib/main.js +38 -10
- package/lib/menu.js +12 -9
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/package.json +151 -151
- package/packages/handler/src/main.vue +25 -6
- package/packages/main/src/main.vue +54 -6
- package/packages/menu/src/main.vue +34 -17
- 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 +13 -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 () {
|
|
@@ -5016,6 +5016,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
5016
5016
|
type: String,
|
|
5017
5017
|
default: ''
|
|
5018
5018
|
},
|
|
5019
|
+
param: Object,
|
|
5019
5020
|
header: {
|
|
5020
5021
|
type: Boolean,
|
|
5021
5022
|
default: true
|
|
@@ -5414,7 +5415,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
5414
5415
|
if (ids) {
|
|
5415
5416
|
this.defaultActive = ids;
|
|
5416
5417
|
}
|
|
5417
|
-
} else {
|
|
5418
|
+
} else if (util["a" /* default */].win.location.hash) {
|
|
5418
5419
|
var hash = util["a" /* default */].win.location.hash;
|
|
5419
5420
|
if (hash) {
|
|
5420
5421
|
hash = hash.split('?')[0];
|
|
@@ -5424,6 +5425,16 @@ var log = util["a" /* default */].getParams('console');
|
|
|
5424
5425
|
if (_ids) {
|
|
5425
5426
|
this.defaultActive = _ids;
|
|
5426
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;
|
|
5427
5438
|
}
|
|
5428
5439
|
}
|
|
5429
5440
|
this.setMenu(this.menus);
|
|
@@ -5634,7 +5645,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
5634
5645
|
getMenu: function getMenu() {
|
|
5635
5646
|
var _this5 = this;
|
|
5636
5647
|
|
|
5637
|
-
util["a" /* default */].ajax({ url: this.action }).then(function (res) {
|
|
5648
|
+
util["a" /* default */].ajax({ url: this.action, params: this.param ? this.param : {} }).then(function (res) {
|
|
5638
5649
|
if (res.rCode === 0) {
|
|
5639
5650
|
_this5.menus = JSON.parse(JSON.stringify(res.results));
|
|
5640
5651
|
var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
|
|
@@ -5643,17 +5654,27 @@ var log = util["a" /* default */].getParams('console');
|
|
|
5643
5654
|
if (ids) {
|
|
5644
5655
|
_this5.defaultActive = ids;
|
|
5645
5656
|
}
|
|
5646
|
-
} else {
|
|
5657
|
+
} else if (util["a" /* default */].win.location.hash) {
|
|
5647
5658
|
var hash = util["a" /* default */].win.location.hash;
|
|
5648
5659
|
if (hash) {
|
|
5649
5660
|
hash = hash.split('?')[0];
|
|
5650
5661
|
}
|
|
5651
5662
|
if (hash !== '#/' && hash !== '#/main') {
|
|
5652
|
-
var
|
|
5653
|
-
if (
|
|
5654
|
-
_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;
|
|
5655
5671
|
}
|
|
5656
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
|
+
}
|
|
5657
5678
|
}
|
|
5658
5679
|
_this5.setTips(_this5.menus);
|
|
5659
5680
|
store["a" /* default */].set('nav', _this5.menus);
|
|
@@ -5916,9 +5937,15 @@ var log = util["a" /* default */].getParams('console');
|
|
|
5916
5937
|
|
|
5917
5938
|
//应用导航交互
|
|
5918
5939
|
handleSelect: function handleSelect(res, type) {
|
|
5919
|
-
this.isDefault = false;
|
|
5920
5940
|
var node = res.node;
|
|
5921
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;
|
|
5922
5949
|
switch (type) {
|
|
5923
5950
|
case 'nav':
|
|
5924
5951
|
this.tabs = [];
|
|
@@ -6093,6 +6120,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6093
6120
|
var _this9 = this;
|
|
6094
6121
|
|
|
6095
6122
|
console.log(page);
|
|
6123
|
+
sessionStorage.setItem('jump', page);
|
|
6096
6124
|
if (util["a" /* default */].win.location.hash === page) {
|
|
6097
6125
|
this.refresh = true;
|
|
6098
6126
|
return;
|
|
@@ -6325,7 +6353,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6325
6353
|
},
|
|
6326
6354
|
openPage: function openPage(url, name, width, height) {
|
|
6327
6355
|
var src = url;
|
|
6328
|
-
if (!util["a" /* default */].startWith(url, ['http', '/'])) {
|
|
6356
|
+
if (!util["a" /* default */].startWith(url, ['http', '/'], true)) {
|
|
6329
6357
|
var pathname = window.location.pathname;
|
|
6330
6358
|
if (pathname !== '/') {
|
|
6331
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
|
-
class: item.icons ? _this4.unicode(item.icons) ? item.icons : 'es-icons iconfont' : 'es-icon-application',
|
|
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',
|
|
@@ -454,8 +455,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
454
455
|
}
|
|
455
456
|
}, [item.text])])];
|
|
456
457
|
doms.push(h('el-menu-item', {
|
|
458
|
+
class: ['es-menu-item-' + _this4.mode],
|
|
457
459
|
props: {
|
|
458
|
-
paddingLeft: _this4.paddingLeft
|
|
460
|
+
paddingLeft: _this4.paddingLeft,
|
|
461
|
+
disabled: item.extendData && item.extendData.businessStatus == 0
|
|
459
462
|
},
|
|
460
463
|
attrs: {
|
|
461
464
|
data: item,
|