eoss-ui 0.5.77 → 0.5.79
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/button-group.js +1 -1
- package/lib/button.js +1 -1
- package/lib/checkbox-group.js +1 -1
- package/lib/clients.js +184 -110
- package/lib/data-table-form.js +1 -1
- package/lib/data-table.js +115 -104
- package/lib/date-picker.js +1 -1
- package/lib/dialog.js +1 -1
- package/lib/eoss-ui.common.js +422 -306
- package/lib/flow-group.js +1 -1
- package/lib/flow-list.js +1 -1
- package/lib/flow.js +1 -1
- package/lib/form.js +10 -7
- package/lib/handle-user.js +1 -1
- package/lib/handler.js +13 -5
- package/lib/index.js +1 -1
- package/lib/input-number.js +1 -1
- package/lib/input.js +9 -3
- package/lib/login.js +7 -4
- package/lib/main.js +36 -27
- package/lib/nav.js +1 -1
- package/lib/page.js +1 -1
- package/lib/player.js +1 -1
- package/lib/qr-code.js +4 -4
- package/lib/radio-group.js +1 -1
- package/lib/retrial-auth.js +1 -1
- package/lib/select-ganged.js +1 -1
- package/lib/select.js +1 -1
- package/lib/selector-panel.js +1 -1
- package/lib/selector.js +5 -3
- package/lib/sizer.js +1 -1
- package/lib/steps.js +1 -1
- package/lib/switch.js +1 -1
- package/lib/table-form.js +1 -1
- package/lib/tabs.js +1 -1
- package/lib/theme-chalk/clients.css +1 -1
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/handler.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/tips.js +1 -1
- package/lib/tree-group.js +1 -1
- package/lib/tree.js +1 -1
- package/lib/upload.js +1 -1
- package/lib/utils/util.js +1 -1
- package/lib/wujie.js +1 -1
- package/lib/wxlogin.js +1 -1
- package/package.json +1 -1
- package/packages/clients/src/main.vue +64 -31
- package/packages/data-table/src/main.vue +12 -3
- package/packages/form/src/main.vue +13 -4
- package/packages/handler/src/main.vue +7 -2
- package/packages/input/src/main.vue +19 -2
- package/packages/login/src/main.vue +4 -1
- package/packages/main/src/main.vue +30 -29
- package/packages/qr-code/src/main.vue +1 -1
- package/packages/selector/src/main.vue +2 -0
- package/packages/theme-chalk/lib/clients.css +1 -1
- package/packages/theme-chalk/lib/form.css +1 -1
- package/packages/theme-chalk/lib/handler.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/src/clients.scss +12 -5
- package/packages/theme-chalk/src/form.scss +6 -0
- package/packages/theme-chalk/src/handler.scss +0 -1
- package/packages/theme-chalk/src/login.scss +8 -5
- package/src/index.js +1 -1
- package/src/utils/util.js +1 -1
|
@@ -131,7 +131,9 @@
|
|
|
131
131
|
:sub-icon="subIcon"
|
|
132
132
|
:biserial="biserial"
|
|
133
133
|
:title="showNavTitle ? title : false"
|
|
134
|
-
:showCollapse="
|
|
134
|
+
:showCollapse="
|
|
135
|
+
showNavTitle ? (layout == 'side' ? false : showCollapse) : false
|
|
136
|
+
"
|
|
135
137
|
:menu-tips="menuTips"
|
|
136
138
|
:is-default="isDefault"
|
|
137
139
|
:paddingLeft="navPaddingLeft"
|
|
@@ -488,7 +490,7 @@ export default {
|
|
|
488
490
|
_navWidth() {
|
|
489
491
|
return this.layout === 'side'
|
|
490
492
|
? this.navBoxWidth
|
|
491
|
-
: this.layout === '
|
|
493
|
+
: this.layout === 'topside'
|
|
492
494
|
? '0'
|
|
493
495
|
: this.navWidth;
|
|
494
496
|
},
|
|
@@ -843,14 +845,14 @@ export default {
|
|
|
843
845
|
var ids = this.getId(this.menus, applicationid);
|
|
844
846
|
if (ids) {
|
|
845
847
|
this.defaultActive = ids;
|
|
846
|
-
this.navIds = ids;
|
|
848
|
+
//this.navIds = ids;
|
|
847
849
|
this.setTitle(ids[0]);
|
|
848
850
|
}
|
|
849
851
|
} else if (sessionStorage.getItem('jump') && this.isHistory) {
|
|
850
852
|
let ids = this.getId(this.menus, sessionStorage.getItem('jump'));
|
|
851
853
|
if (ids) {
|
|
852
854
|
this.defaultActive = ids;
|
|
853
|
-
this.navIds = ids;
|
|
855
|
+
//this.navIds = ids;
|
|
854
856
|
this.setTitle(ids[0]);
|
|
855
857
|
}
|
|
856
858
|
} else if (util.win.location.hash) {
|
|
@@ -862,14 +864,14 @@ export default {
|
|
|
862
864
|
let ids = this.getId(this.menus, util.win.location.hash);
|
|
863
865
|
if (ids) {
|
|
864
866
|
this.defaultActive = ids;
|
|
865
|
-
this.navIds = ids;
|
|
867
|
+
//this.navIds = ids;
|
|
866
868
|
this.setTitle(ids[0]);
|
|
867
869
|
}
|
|
868
870
|
} else if (sessionStorage.getItem('jump') && this.isHistory) {
|
|
869
871
|
let ids = this.getId(this.menus, sessionStorage.getItem('jump'));
|
|
870
872
|
if (ids) {
|
|
871
873
|
this.defaultActive = ids;
|
|
872
|
-
this.navIds = ids;
|
|
874
|
+
//this.navIds = ids;
|
|
873
875
|
this.setTitle(ids[0]);
|
|
874
876
|
}
|
|
875
877
|
}
|
|
@@ -1262,7 +1264,7 @@ export default {
|
|
|
1262
1264
|
let ids = this.getId(this.menus, util.win.location.hash);
|
|
1263
1265
|
if (ids) {
|
|
1264
1266
|
this.defaultActive = ids;
|
|
1265
|
-
this.navIds = ids;
|
|
1267
|
+
//this.navIds = ids;
|
|
1266
1268
|
this.setTitle(ids[0]);
|
|
1267
1269
|
}
|
|
1268
1270
|
}
|
|
@@ -1270,7 +1272,7 @@ export default {
|
|
|
1270
1272
|
let ids = this.getId(this.menus, sessionStorage.getItem('jump'));
|
|
1271
1273
|
if (ids) {
|
|
1272
1274
|
this.defaultActive = ids;
|
|
1273
|
-
this.navIds = ids;
|
|
1275
|
+
//this.navIds = ids;
|
|
1274
1276
|
this.setTitle(ids[0]);
|
|
1275
1277
|
}
|
|
1276
1278
|
}
|
|
@@ -1597,7 +1599,7 @@ export default {
|
|
|
1597
1599
|
//this.active = '';
|
|
1598
1600
|
if (this.layout === 'topside') {
|
|
1599
1601
|
if (this.title !== node.text) {
|
|
1600
|
-
this.navIds = [node.id];
|
|
1602
|
+
//this.navIds = [node.id];
|
|
1601
1603
|
this.menu = node.children;
|
|
1602
1604
|
this.active = node.id;
|
|
1603
1605
|
this.title = node.text;
|
|
@@ -1606,21 +1608,21 @@ export default {
|
|
|
1606
1608
|
let subNode = this.getFirst(node);
|
|
1607
1609
|
if (subNode) {
|
|
1608
1610
|
this.active = subNode.id;
|
|
1609
|
-
this.navIds = [
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
];
|
|
1611
|
+
// this.navIds = [
|
|
1612
|
+
// node.id,
|
|
1613
|
+
// ...this.getId(node.children, subNode.url)
|
|
1614
|
+
// ];
|
|
1613
1615
|
}
|
|
1614
1616
|
}
|
|
1615
1617
|
} else {
|
|
1616
|
-
this.navIds = this.getId(this.menus, node.url);
|
|
1618
|
+
//this.navIds = this.getId(this.menus, node.url);
|
|
1617
1619
|
this.setTitle(this.navIds[0]);
|
|
1618
1620
|
this.tabsId = fourthTabs ? node.id : '';
|
|
1619
1621
|
}
|
|
1620
1622
|
break;
|
|
1621
1623
|
case 'sys':
|
|
1622
1624
|
if (Number(node.urlopenmode) !== 1) {
|
|
1623
|
-
this.navIds = [node.id];
|
|
1625
|
+
//this.navIds = [node.id];
|
|
1624
1626
|
this.tabs = [];
|
|
1625
1627
|
this.menu = node.children;
|
|
1626
1628
|
if (this.title !== node.text) {
|
|
@@ -1631,10 +1633,10 @@ export default {
|
|
|
1631
1633
|
let subNode = this.getFirst(node);
|
|
1632
1634
|
if (subNode) {
|
|
1633
1635
|
this.active = subNode.id;
|
|
1634
|
-
this.navIds = [
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
];
|
|
1636
|
+
// this.navIds = [
|
|
1637
|
+
// node.id,
|
|
1638
|
+
// ...this.getId(node.children, subNode.url)
|
|
1639
|
+
// ];
|
|
1638
1640
|
}
|
|
1639
1641
|
}
|
|
1640
1642
|
this.isSide = true;
|
|
@@ -1642,7 +1644,7 @@ export default {
|
|
|
1642
1644
|
break;
|
|
1643
1645
|
case 'sub':
|
|
1644
1646
|
this.hideSubMenu = false;
|
|
1645
|
-
this.navIds = [node.id];
|
|
1647
|
+
//this.navIds = [node.id];
|
|
1646
1648
|
if (node.url) {
|
|
1647
1649
|
this.tabs = [];
|
|
1648
1650
|
}
|
|
@@ -1654,7 +1656,7 @@ export default {
|
|
|
1654
1656
|
let subNode = this.getFirst(node);
|
|
1655
1657
|
this.active = [node.id];
|
|
1656
1658
|
if (subNode && node.id !== subNode.id) {
|
|
1657
|
-
this.navIds = this.getId(this.menus, subNode.url);
|
|
1659
|
+
//this.navIds = this.getId(this.menus, subNode.url);
|
|
1658
1660
|
this.$set(this.active, 1, subNode.id);
|
|
1659
1661
|
}
|
|
1660
1662
|
}
|
|
@@ -1678,7 +1680,7 @@ export default {
|
|
|
1678
1680
|
} else {
|
|
1679
1681
|
this.active = tab.id;
|
|
1680
1682
|
}
|
|
1681
|
-
this.navIds = this.getId(this.menus, tab.url);
|
|
1683
|
+
//this.navIds = this.getId(this.menus, tab.url);
|
|
1682
1684
|
}
|
|
1683
1685
|
} else {
|
|
1684
1686
|
let tab = (node.fourthTabs || []).filter((item) => {
|
|
@@ -1687,9 +1689,9 @@ export default {
|
|
|
1687
1689
|
if (tab) {
|
|
1688
1690
|
this.tabs = node.fourthTabs;
|
|
1689
1691
|
this.tabsId = tab.id;
|
|
1690
|
-
this.navIds = this.getId(this.menus, tab.url);
|
|
1692
|
+
//this.navIds = this.getId(this.menus, tab.url);
|
|
1691
1693
|
} else {
|
|
1692
|
-
this.navIds = this.getId(this.menus, node.url);
|
|
1694
|
+
//this.navIds = this.getId(this.menus, node.url);
|
|
1693
1695
|
}
|
|
1694
1696
|
}
|
|
1695
1697
|
} else {
|
|
@@ -1701,7 +1703,7 @@ export default {
|
|
|
1701
1703
|
this.tabs[0].urlopenmode,
|
|
1702
1704
|
this.tabs[0]
|
|
1703
1705
|
);
|
|
1704
|
-
this.navIds = this.getId(this.menus, this.tabs[0].url);
|
|
1706
|
+
//this.navIds = this.getId(this.menus, this.tabs[0].url);
|
|
1705
1707
|
}
|
|
1706
1708
|
}
|
|
1707
1709
|
} else {
|
|
@@ -1714,14 +1716,14 @@ export default {
|
|
|
1714
1716
|
} else {
|
|
1715
1717
|
this.active = subNode.id;
|
|
1716
1718
|
}
|
|
1717
|
-
this.navIds = this.getId(this.menus, subNode.url);
|
|
1719
|
+
//this.navIds = this.getId(this.menus, subNode.url);
|
|
1718
1720
|
}
|
|
1719
1721
|
}
|
|
1720
1722
|
}
|
|
1721
1723
|
break;
|
|
1722
1724
|
case 'tabs':
|
|
1723
1725
|
this.tabsId = node.id;
|
|
1724
|
-
this.navIds = this.getId(this.menus, node.url);
|
|
1726
|
+
//this.navIds = this.getId(this.menus, node.url);
|
|
1725
1727
|
break;
|
|
1726
1728
|
}
|
|
1727
1729
|
if (node.url) {
|
|
@@ -1762,10 +1764,8 @@ export default {
|
|
|
1762
1764
|
}
|
|
1763
1765
|
return false;
|
|
1764
1766
|
},
|
|
1765
|
-
handleTrigger(res) {},
|
|
1766
1767
|
//头部工具交互事件
|
|
1767
1768
|
handleClick(res) {
|
|
1768
|
-
console.log(res);
|
|
1769
1769
|
const { type } = res;
|
|
1770
1770
|
switch (type) {
|
|
1771
1771
|
//刷新
|
|
@@ -1824,6 +1824,7 @@ export default {
|
|
|
1824
1824
|
},
|
|
1825
1825
|
//跳转页面
|
|
1826
1826
|
handleJump(page, type, res, param) {
|
|
1827
|
+
this.navIds = this.getId(this.menus, page);
|
|
1827
1828
|
console.log(page);
|
|
1828
1829
|
let prevPage = sessionStorage.getItem('jump');
|
|
1829
1830
|
sessionStorage.setItem('jump', page);
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
85
85
|
mounted() {
|
|
86
86
|
if (this.auto) {
|
|
87
87
|
let h =
|
|
88
|
-
this.$refs.qrcode.offsetHeight -
|
|
88
|
+
(this.$refs.qrcode.offsetHeight || this.$refs.qrcode.offsetWidth) -
|
|
89
89
|
parseInt(util.getStyle(this.$refs.qrcode, 'padding-top'), 10) -
|
|
90
90
|
parseInt(util.getStyle(this.$refs.qrcode, 'padding-bottom'), 10);
|
|
91
91
|
if (h > 0) {
|