eoss-ui 0.4.25 → 0.4.27
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 +254 -58
- package/lib/form.js +142 -2
- package/lib/handler.js +14 -4
- package/lib/icon.js +3 -3
- package/lib/index.js +1 -1
- package/lib/login.js +23 -6
- package/lib/main.js +36 -9
- package/lib/menu.js +10 -8
- package/lib/theme-chalk/icons.css +1 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/package.json +2 -2
- package/packages/form/src/main.vue +28 -0
- package/packages/handler/src/main.vue +20 -6
- package/packages/icon/src/main.vue +1 -1
- package/packages/login/src/main.vue +19 -4
- package/packages/main/src/main.vue +51 -4
- package/packages/menu/src/main.vue +22 -9
- package/packages/theme-chalk/lib/icons.css +1 -0
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/src/{es-icon.scss → icons.scss} +1 -1
- package/packages/theme-chalk/src/login.scss +3 -0
- package/packages/theme-chalk/src/menu.scss +9 -0
- package/src/index.js +1 -1
- package/lib/theme-chalk/es-icon.css +0 -1
- package/packages/theme-chalk/lib/es-icon.css +0 -1
package/lib/login.js
CHANGED
|
@@ -2774,7 +2774,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
|
|
|
2774
2774
|
// ESM COMPAT FLAG
|
|
2775
2775
|
__webpack_require__.r(__webpack_exports__);
|
|
2776
2776
|
|
|
2777
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=
|
|
2777
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=f634d8fc&
|
|
2778
2778
|
var render = function () {
|
|
2779
2779
|
var _vm = this
|
|
2780
2780
|
var _h = _vm.$createElement
|
|
@@ -3491,14 +3491,17 @@ var render = function () {
|
|
|
3491
3491
|
? _c("div", { staticClass: "es-login-icp" }, [
|
|
3492
3492
|
_c(
|
|
3493
3493
|
"span",
|
|
3494
|
-
{
|
|
3494
|
+
{
|
|
3495
|
+
staticClass: "es-login-icp-item",
|
|
3496
|
+
style: _vm._copyrightStyle,
|
|
3497
|
+
},
|
|
3495
3498
|
[_vm._v(_vm._s(_vm.icpInfo.copyright_unit))]
|
|
3496
3499
|
),
|
|
3497
3500
|
_c(
|
|
3498
3501
|
"a",
|
|
3499
3502
|
{
|
|
3500
3503
|
staticClass: "es-login-icp-item",
|
|
3501
|
-
style: _vm.
|
|
3504
|
+
style: _vm._copyrightStyle,
|
|
3502
3505
|
attrs: {
|
|
3503
3506
|
target: "_blank",
|
|
3504
3507
|
href: _vm.icpInfo.copyright_icp_url,
|
|
@@ -3572,7 +3575,7 @@ var staticRenderFns = []
|
|
|
3572
3575
|
render._withStripped = true
|
|
3573
3576
|
|
|
3574
3577
|
|
|
3575
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
3578
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=f634d8fc&
|
|
3576
3579
|
|
|
3577
3580
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=669156c6&
|
|
3578
3581
|
var resetPasswordvue_type_template_id_669156c6_render = function () {
|
|
@@ -4425,7 +4428,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4425
4428
|
type: Boolean,
|
|
4426
4429
|
default: true
|
|
4427
4430
|
},
|
|
4428
|
-
|
|
4431
|
+
copyrightStyle: {
|
|
4429
4432
|
type: Object,
|
|
4430
4433
|
default: function _default() {
|
|
4431
4434
|
return { color: '#ffffff' };
|
|
@@ -4542,6 +4545,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4542
4545
|
icon.push(_this.iconfonts[item]);
|
|
4543
4546
|
});
|
|
4544
4547
|
return icon;
|
|
4548
|
+
},
|
|
4549
|
+
_copyrightStyle: function _copyrightStyle() {
|
|
4550
|
+
var style = {};
|
|
4551
|
+
this.copyrightBgColor && (style['background-color'] = this.copyrightBgColor);
|
|
4552
|
+
this.copyrightColor && (style['color'] = this.copyrightColor);
|
|
4553
|
+
return mainvue_type_script_lang_js_extends({}, this.copyrightStyle, style);
|
|
4545
4554
|
}
|
|
4546
4555
|
},
|
|
4547
4556
|
watch: {
|
|
@@ -4630,7 +4639,9 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4630
4639
|
timer: null,
|
|
4631
4640
|
countdown: 0,
|
|
4632
4641
|
code: null,
|
|
4633
|
-
defaultModel: JSON.parse(JSON.stringify(this.model))
|
|
4642
|
+
defaultModel: JSON.parse(JSON.stringify(this.model)),
|
|
4643
|
+
copyrightColor: null,
|
|
4644
|
+
copyrightBgColor: null
|
|
4634
4645
|
};
|
|
4635
4646
|
},
|
|
4636
4647
|
created: function created() {
|
|
@@ -4838,6 +4849,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4838
4849
|
if (res.subsystemExtend.loginBoxAlign && this.useResults) {
|
|
4839
4850
|
this.align = res.subsystemExtend.loginBoxAlign;
|
|
4840
4851
|
}
|
|
4852
|
+
if (res.subsystemExtend.copyrightColor) {
|
|
4853
|
+
this.copyrightColor = res.subsystemExtend.copyrightColor;
|
|
4854
|
+
}
|
|
4855
|
+
if (res.subsystemExtend.copyrightBackgroundColor) {
|
|
4856
|
+
this.copyrightBgColor = res.subsystemExtend.copyrightBackgroundColor;
|
|
4857
|
+
}
|
|
4841
4858
|
if (res.subsystemExtend.themeColor) {
|
|
4842
4859
|
util["a" /* default */].updateTheme(res.subsystemExtend.themeColor);
|
|
4843
4860
|
localStorage.setItem('theme', res.subsystemExtend.themeColor);
|
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,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.es-icons{display:inline-block}.es-icons.es-icon-readonly{-webkit-appearance:none;background-color:#fff;background-image:none;border-radius:3px;border:1px solid #d9d9d9;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.75);display:inline-block;font-size:inherit;height:40px;line-height:40px;outline:0;padding:0 15px;-webkit-transition:border-color .2s cubic-bezier(.645,.045,.355,1);transition:border-color .2s cubic-bezier(.645,.045,.355,1);width:100%;position:relative}.es-icons .el-input-group__prepend{width:auto;line-height:38px;position:absolute;z-index:3;left:2px;top:2px;right:62px;bottom:2px;border:0;background-color:#fff;padding:0 12px}.es-icons .es-iconfont{color:#606266;font-size:20px}.es-icons .el-input__inner{border-radius:3px!important;color:transparent;padding-right:60px}.es-icons .el-input__suffix{height:auto;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.es-icon-list{clear:both;overflow:hidden;list-style:none;padding:0!important;border:1px solid #eaeefb;border-radius:4px}.es-icon-list li{float:left;width:148px;text-align:center;height:120px;line-height:120px;color:#666;font-size:13px;border-right:1px solid #eee;border-bottom:1px solid #eee;margin-right:-1px;margin-bottom:-1px;-webkit-box-sizing:border-box;box-sizing:border-box}.es-icon-list li span{display:inline-block;line-height:normal;vertical-align:middle;font-family:'Helvetica Neue',Helvetica,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',SimSun,sans-serif;color:#99a9bf;-webkit-transition:color .15s linear;transition:color .15s linear}.es-icon-list li i{display:block;font-size:32px;margin-bottom:15px;color:#606266;-webkit-transition:color .15s linear;transition:color .15s linear}.es-icon-list li .icon-name{display:inline-block;padding:0 3px;height:1em}.es-icon-list li:hover i,.es-icon-list li:hover span{color:#5cb6ff}
|