eoss-ui 0.4.15 → 0.4.17
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 +3 -3
- package/lib/button.js +3 -3
- package/lib/checkbox-group.js +3 -3
- package/lib/data-table-form.js +3 -3
- package/lib/data-table.js +10 -8
- package/lib/date-picker.js +3 -3
- package/lib/dialog.js +3 -3
- package/lib/eoss-ui.common.js +41 -38
- package/lib/flow-group.js +3 -3
- package/lib/flow-list.js +3 -3
- package/lib/flow.js +3 -3
- package/lib/form.js +3 -3
- package/lib/handle-user.js +3 -3
- package/lib/handler.js +3 -3
- package/lib/index.js +1 -1
- package/lib/input-number.js +3 -3
- package/lib/input.js +3 -3
- package/lib/login.js +3 -3
- package/lib/main.js +8 -8
- package/lib/mainComp.js +8 -8
- package/lib/nav.js +3 -3
- package/lib/page.js +3 -3
- package/lib/player.js +3 -3
- package/lib/qr-code.js +3 -3
- package/lib/radio-group.js +3 -3
- package/lib/select-ganged.js +3 -3
- package/lib/select.js +3 -3
- package/lib/selector-panel.js +3 -3
- package/lib/selector.js +3 -3
- package/lib/sizer.js +3 -3
- package/lib/steps.js +3 -3
- package/lib/switch.js +3 -3
- package/lib/table-form.js +3 -3
- package/lib/tabs.js +3 -3
- package/lib/tips.js +3 -3
- package/lib/tree-group.js +3 -3
- package/lib/tree.js +3 -3
- package/lib/upload.js +9 -8
- package/lib/utils/util.js +3 -3
- package/lib/wujie.js +3 -3
- package/lib/wxlogin.js +3 -3
- package/package.json +1 -1
- package/packages/data-table/src/main.vue +22 -22
- package/packages/main/src/main.vue +27 -27
- package/packages/mainComp/src/main.vue +40 -40
- package/packages/upload/src/main.vue +10 -9
- package/src/index.js +1 -1
- package/src/utils/util.js +3 -3
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
:deep="modal === 'topnav'"
|
|
30
30
|
:default-active="topActive"
|
|
31
31
|
@select="
|
|
32
|
-
res => {
|
|
32
|
+
(res) => {
|
|
33
33
|
handleSelect(res, 'nav');
|
|
34
34
|
}
|
|
35
35
|
"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
v-bind="themeJSON.topNav.data"
|
|
51
51
|
:componentRenderUrl="themeJSON.topNav.comp"
|
|
52
52
|
@select="
|
|
53
|
-
res => {
|
|
53
|
+
(res) => {
|
|
54
54
|
handleSelect(res, 'sys');
|
|
55
55
|
}
|
|
56
56
|
"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
:notice="notice"
|
|
68
68
|
:data="handleData"
|
|
69
69
|
@select="
|
|
70
|
-
res => {
|
|
70
|
+
(res) => {
|
|
71
71
|
handleSelect(res, 'sys');
|
|
72
72
|
}
|
|
73
73
|
"
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
:application="application"
|
|
91
91
|
:menuUrl="menuUrl"
|
|
92
92
|
@trigger="
|
|
93
|
-
res => {
|
|
93
|
+
(res) => {
|
|
94
94
|
handleSelect(res, 'sub');
|
|
95
95
|
}
|
|
96
96
|
"
|
|
97
97
|
@select="
|
|
98
|
-
res => {
|
|
98
|
+
(res) => {
|
|
99
99
|
handleSelect(res, 'menu');
|
|
100
100
|
}
|
|
101
101
|
"
|
|
@@ -113,12 +113,12 @@
|
|
|
113
113
|
:menu-tips="menuTips"
|
|
114
114
|
:is-default="isDefault"
|
|
115
115
|
@trigger="
|
|
116
|
-
res => {
|
|
116
|
+
(res) => {
|
|
117
117
|
handleSelect(res, 'sub');
|
|
118
118
|
}
|
|
119
119
|
"
|
|
120
120
|
@select="
|
|
121
|
-
res => {
|
|
121
|
+
(res) => {
|
|
122
122
|
handleSelect(res, 'menu');
|
|
123
123
|
}
|
|
124
124
|
"
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
:default-active="tabsId"
|
|
134
134
|
:menu-tips="menuTips"
|
|
135
135
|
@select="
|
|
136
|
-
res => {
|
|
136
|
+
(res) => {
|
|
137
137
|
handleSelect(res, 'tabs');
|
|
138
138
|
}
|
|
139
139
|
"
|
|
@@ -170,11 +170,13 @@
|
|
|
170
170
|
</template>
|
|
171
171
|
</div>
|
|
172
172
|
<AsyncComponent
|
|
173
|
-
style="
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
173
|
+
style="
|
|
174
|
+
position: absolute;
|
|
175
|
+
height: 60px;
|
|
176
|
+
bottom: 0;
|
|
177
|
+
left: 0;
|
|
178
|
+
right: 0;
|
|
179
|
+
"
|
|
178
180
|
v-if="themeJSON.copyright.comp"
|
|
179
181
|
:key="themeJSON.copyright.comp"
|
|
180
182
|
v-bind="themeJSON.copyright.data"
|
|
@@ -287,8 +289,6 @@ export default {
|
|
|
287
289
|
data: Array,
|
|
288
290
|
//头部背景图片
|
|
289
291
|
headerImage: String,
|
|
290
|
-
//默认选中菜单id
|
|
291
|
-
defaultActive: Array,
|
|
292
292
|
//默认主题颜色
|
|
293
293
|
theme: {
|
|
294
294
|
type: String,
|
|
@@ -609,7 +609,7 @@ export default {
|
|
|
609
609
|
util.win.refresh = this.handleRefresh;
|
|
610
610
|
util.win.jumpMenu = this.jumpMenu;
|
|
611
611
|
if (util.win.$wujie) {
|
|
612
|
-
util.win.$wujie.bus.$on('changeTheme', res => {
|
|
612
|
+
util.win.$wujie.bus.$on('changeTheme', (res) => {
|
|
613
613
|
util.updateTheme(res);
|
|
614
614
|
});
|
|
615
615
|
}
|
|
@@ -629,7 +629,7 @@ export default {
|
|
|
629
629
|
};
|
|
630
630
|
util
|
|
631
631
|
.ajax(params)
|
|
632
|
-
.then(res => {
|
|
632
|
+
.then((res) => {
|
|
633
633
|
let _that = this;
|
|
634
634
|
if (!res.results) {
|
|
635
635
|
_that.showDefault = true;
|
|
@@ -663,7 +663,7 @@ export default {
|
|
|
663
663
|
_that.setMenu(_that.data);
|
|
664
664
|
}
|
|
665
665
|
})
|
|
666
|
-
.catch(err => {
|
|
666
|
+
.catch((err) => {
|
|
667
667
|
if (err.message && err.message !== 'canceled') {
|
|
668
668
|
this.$message.error(err.message);
|
|
669
669
|
}
|
|
@@ -688,7 +688,7 @@ export default {
|
|
|
688
688
|
let area = this.$refs.area.$el;
|
|
689
689
|
let box = this.$refs.box;
|
|
690
690
|
let [sTime, eTime] = [0, 0];
|
|
691
|
-
area.addEventListener('mousedown', e => {
|
|
691
|
+
area.addEventListener('mousedown', (e) => {
|
|
692
692
|
sTime = new Date().getTime();
|
|
693
693
|
let { y: downY } = e;
|
|
694
694
|
let { height: winH } = document.body.getBoundingClientRect();
|
|
@@ -696,7 +696,7 @@ export default {
|
|
|
696
696
|
document.body.onselectstart = document.body.oncontextmenu = () => {
|
|
697
697
|
return false;
|
|
698
698
|
};
|
|
699
|
-
document.onmousemove = eve => {
|
|
699
|
+
document.onmousemove = (eve) => {
|
|
700
700
|
let size = 40;
|
|
701
701
|
let { y: moveY } = eve;
|
|
702
702
|
let { top: boxTop } = box.getBoundingClientRect();
|
|
@@ -737,7 +737,7 @@ export default {
|
|
|
737
737
|
params: { color: escape(color.toLowerCase()) },
|
|
738
738
|
data: { color: escape(color.toLowerCase()) }
|
|
739
739
|
})
|
|
740
|
-
.then(res => {
|
|
740
|
+
.then((res) => {
|
|
741
741
|
if (res.rCode === 0) {
|
|
742
742
|
this.color = color;
|
|
743
743
|
localStorage.setItem('theme', color);
|
|
@@ -752,7 +752,7 @@ export default {
|
|
|
752
752
|
this.$message.error(msg);
|
|
753
753
|
}
|
|
754
754
|
})
|
|
755
|
-
.catch(err => {
|
|
755
|
+
.catch((err) => {
|
|
756
756
|
if (err.message && err.message !== 'canceled') {
|
|
757
757
|
this.$message.error(err.message);
|
|
758
758
|
}
|
|
@@ -820,7 +820,7 @@ export default {
|
|
|
820
820
|
}
|
|
821
821
|
util
|
|
822
822
|
.ajax({ url: this.mainConfig })
|
|
823
|
-
.then(res => {
|
|
823
|
+
.then((res) => {
|
|
824
824
|
if (res && res.rCode === 0) {
|
|
825
825
|
this.setConfig(res.results, 1);
|
|
826
826
|
} else {
|
|
@@ -828,7 +828,7 @@ export default {
|
|
|
828
828
|
this.$message.error(msg);
|
|
829
829
|
}
|
|
830
830
|
})
|
|
831
|
-
.catch(err => {
|
|
831
|
+
.catch((err) => {
|
|
832
832
|
if (err.message && err.message !== 'canceled') {
|
|
833
833
|
this.$message.error(err.message);
|
|
834
834
|
}
|
|
@@ -837,7 +837,7 @@ export default {
|
|
|
837
837
|
reGetConfig() {
|
|
838
838
|
util
|
|
839
839
|
.ajax({ url: this.mainConfig })
|
|
840
|
-
.then(res => {
|
|
840
|
+
.then((res) => {
|
|
841
841
|
if (res && res.rCode === 0) {
|
|
842
842
|
const results = JSON.parse(JSON.stringify(res.results));
|
|
843
843
|
this.setConfig(results, 1);
|
|
@@ -846,7 +846,7 @@ export default {
|
|
|
846
846
|
this.$message.error(msg);
|
|
847
847
|
}
|
|
848
848
|
})
|
|
849
|
-
.catch(err => {
|
|
849
|
+
.catch((err) => {
|
|
850
850
|
if (err.message && err.message !== 'canceled') {
|
|
851
851
|
this.$message.error(err.message);
|
|
852
852
|
}
|
|
@@ -900,7 +900,7 @@ export default {
|
|
|
900
900
|
getMenu() {
|
|
901
901
|
util
|
|
902
902
|
.ajax({ url: this.action })
|
|
903
|
-
.then(res => {
|
|
903
|
+
.then((res) => {
|
|
904
904
|
if (res && res.rCode === 0) {
|
|
905
905
|
this.menus = JSON.parse(JSON.stringify(res.results));
|
|
906
906
|
if (
|
|
@@ -927,7 +927,7 @@ export default {
|
|
|
927
927
|
this.$message.error(msg);
|
|
928
928
|
}
|
|
929
929
|
})
|
|
930
|
-
.catch(err => {
|
|
930
|
+
.catch((err) => {
|
|
931
931
|
if (err.message && err.message !== 'canceled') {
|
|
932
932
|
this.$message.error(err.message);
|
|
933
933
|
}
|
|
@@ -936,7 +936,7 @@ export default {
|
|
|
936
936
|
//遍历设置菜单气泡提醒
|
|
937
937
|
setTips(obj) {
|
|
938
938
|
if (Array.isArray(obj)) {
|
|
939
|
-
obj.forEach(item => {
|
|
939
|
+
obj.forEach((item) => {
|
|
940
940
|
this.setTips(item);
|
|
941
941
|
});
|
|
942
942
|
} else {
|
|
@@ -946,7 +946,7 @@ export default {
|
|
|
946
946
|
}
|
|
947
947
|
let flag = false;
|
|
948
948
|
if (obj.children && obj.children.length) {
|
|
949
|
-
obj.children.forEach(item => {
|
|
949
|
+
obj.children.forEach((item) => {
|
|
950
950
|
if (this.setTips(item)) {
|
|
951
951
|
flag = true;
|
|
952
952
|
}
|
|
@@ -956,7 +956,7 @@ export default {
|
|
|
956
956
|
return true;
|
|
957
957
|
}
|
|
958
958
|
} else if (obj.fourthTabs && obj.fourthTabs.length) {
|
|
959
|
-
obj.fourthTabs.forEach(item => {
|
|
959
|
+
obj.fourthTabs.forEach((item) => {
|
|
960
960
|
if (this.setTips(item)) {
|
|
961
961
|
flag = true;
|
|
962
962
|
}
|
|
@@ -1143,7 +1143,7 @@ export default {
|
|
|
1143
1143
|
} else {
|
|
1144
1144
|
this.tabs = obj.fourthTabs;
|
|
1145
1145
|
if (obj.url) {
|
|
1146
|
-
let tab = obj.fourthTabs.filter(item => {
|
|
1146
|
+
let tab = obj.fourthTabs.filter((item) => {
|
|
1147
1147
|
return item.url === obj.url;
|
|
1148
1148
|
})[0];
|
|
1149
1149
|
if (tab) {
|
|
@@ -1268,7 +1268,7 @@ export default {
|
|
|
1268
1268
|
if (view.indexOf('.js') > -1) {
|
|
1269
1269
|
let views = view.split(',');
|
|
1270
1270
|
let jss = [];
|
|
1271
|
-
views.forEach(item => {
|
|
1271
|
+
views.forEach((item) => {
|
|
1272
1272
|
jss.push({
|
|
1273
1273
|
src:
|
|
1274
1274
|
(util.win.path
|
|
@@ -1482,7 +1482,7 @@ export default {
|
|
|
1482
1482
|
this.active = this.getFirst(node.children[0]);
|
|
1483
1483
|
} else {
|
|
1484
1484
|
if (node.url) {
|
|
1485
|
-
let tab = node.fourthTabs.filter(item => {
|
|
1485
|
+
let tab = node.fourthTabs.filter((item) => {
|
|
1486
1486
|
return item.url === node.url;
|
|
1487
1487
|
})[0];
|
|
1488
1488
|
if (tab) {
|
|
@@ -1532,7 +1532,7 @@ export default {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
1534
1534
|
if (node.url) {
|
|
1535
|
-
let tab = node.fourthTabs.filter(item => {
|
|
1535
|
+
let tab = node.fourthTabs.filter((item) => {
|
|
1536
1536
|
return item.url === node.url;
|
|
1537
1537
|
})[0];
|
|
1538
1538
|
if (tab) {
|
|
@@ -1749,7 +1749,7 @@ export default {
|
|
|
1749
1749
|
handleListener() {
|
|
1750
1750
|
util.win.addEventListener(
|
|
1751
1751
|
'message',
|
|
1752
|
-
function(e) {
|
|
1752
|
+
function (e) {
|
|
1753
1753
|
var msg = e.data;
|
|
1754
1754
|
if (msg.key == 'jump_Menu') {
|
|
1755
1755
|
let res = msg.data1;
|
|
@@ -1771,7 +1771,7 @@ export default {
|
|
|
1771
1771
|
this.websocket = new SockJS(url);
|
|
1772
1772
|
}
|
|
1773
1773
|
|
|
1774
|
-
if (!this.console) {
|
|
1774
|
+
if (!this.console && this.client) {
|
|
1775
1775
|
this.client.debug = null;
|
|
1776
1776
|
}
|
|
1777
1777
|
this.handleConnect(this.client);
|
|
@@ -1782,7 +1782,7 @@ export default {
|
|
|
1782
1782
|
() => {
|
|
1783
1783
|
//localStorage.setItem("socket",true);
|
|
1784
1784
|
//订阅服务端的
|
|
1785
|
-
client.subscribe(topic, response => {
|
|
1785
|
+
client.subscribe(topic, (response) => {
|
|
1786
1786
|
let res = JSON.parse(response.body);
|
|
1787
1787
|
let data = res.data;
|
|
1788
1788
|
for (let i in data) {
|
|
@@ -1809,7 +1809,7 @@ export default {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
});
|
|
1811
1811
|
},
|
|
1812
|
-
error => {
|
|
1812
|
+
(error) => {
|
|
1813
1813
|
console.log('webSocket连接失败');
|
|
1814
1814
|
if (this.connect < 10 && !util.getStorage('timer')) {
|
|
1815
1815
|
this.handleConnect(client);
|
|
@@ -1898,7 +1898,7 @@ export default {
|
|
|
1898
1898
|
}
|
|
1899
1899
|
}
|
|
1900
1900
|
})
|
|
1901
|
-
.catch(e => {});
|
|
1901
|
+
.catch((e) => {});
|
|
1902
1902
|
},
|
|
1903
1903
|
openPage(url, name, width, height) {
|
|
1904
1904
|
let src = url;
|
|
@@ -640,7 +640,7 @@ export default {
|
|
|
640
640
|
data: { code: this.code },
|
|
641
641
|
params: { code: this.code }
|
|
642
642
|
})
|
|
643
|
-
.then(res => {
|
|
643
|
+
.then((res) => {
|
|
644
644
|
if (res.rCode === 0) {
|
|
645
645
|
if (res.results) {
|
|
646
646
|
this.excludeNames = res.results.excludeName;
|
|
@@ -655,7 +655,7 @@ export default {
|
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
})
|
|
658
|
-
.catch(err => {
|
|
658
|
+
.catch((err) => {
|
|
659
659
|
if (err.message && err.message !== 'canceled') {
|
|
660
660
|
this.$message.error(err.message);
|
|
661
661
|
}
|
|
@@ -663,6 +663,7 @@ export default {
|
|
|
663
663
|
}
|
|
664
664
|
},
|
|
665
665
|
getFiles(params) {
|
|
666
|
+
console.log(111, params);
|
|
666
667
|
if (
|
|
667
668
|
!this.show ||
|
|
668
669
|
(this.isRequiredOwnId &&
|
|
@@ -678,7 +679,7 @@ export default {
|
|
|
678
679
|
params: params,
|
|
679
680
|
format: false
|
|
680
681
|
})
|
|
681
|
-
.then(res => {
|
|
682
|
+
.then((res) => {
|
|
682
683
|
if (res.rCode === 0) {
|
|
683
684
|
if (this.portrait === true) {
|
|
684
685
|
this.image = JSON.parse(JSON.stringify(res.results))[0];
|
|
@@ -691,7 +692,7 @@ export default {
|
|
|
691
692
|
this.$message.error(msg);
|
|
692
693
|
}
|
|
693
694
|
})
|
|
694
|
-
.catch(err => {
|
|
695
|
+
.catch((err) => {
|
|
695
696
|
if (err.message && err.message !== 'canceled') {
|
|
696
697
|
this.$message.error(err.message);
|
|
697
698
|
}
|
|
@@ -858,7 +859,7 @@ export default {
|
|
|
858
859
|
id: file.adjunctId || file.response.adjunctId
|
|
859
860
|
}
|
|
860
861
|
})
|
|
861
|
-
.then(res => {
|
|
862
|
+
.then((res) => {
|
|
862
863
|
if (res.rCode === 0) {
|
|
863
864
|
this.$message.success(res.msg);
|
|
864
865
|
resolve();
|
|
@@ -868,7 +869,7 @@ export default {
|
|
|
868
869
|
reject();
|
|
869
870
|
}
|
|
870
871
|
})
|
|
871
|
-
.catch(err => {
|
|
872
|
+
.catch((err) => {
|
|
872
873
|
if (err.message && err.message !== 'canceled') {
|
|
873
874
|
this.$message.error(err.message);
|
|
874
875
|
}
|
|
@@ -930,7 +931,7 @@ export default {
|
|
|
930
931
|
if (this.onSort) {
|
|
931
932
|
this.onSort(files);
|
|
932
933
|
} else {
|
|
933
|
-
let ids = files.map(item => {
|
|
934
|
+
let ids = files.map((item) => {
|
|
934
935
|
if (item.status === 'success') {
|
|
935
936
|
return item.adjunctId || item.response.adjunctId;
|
|
936
937
|
}
|
|
@@ -947,7 +948,7 @@ export default {
|
|
|
947
948
|
ids: ids
|
|
948
949
|
}
|
|
949
950
|
})
|
|
950
|
-
.then(res => {
|
|
951
|
+
.then((res) => {
|
|
951
952
|
if (res.rCode === 0) {
|
|
952
953
|
this.$message.success(res.msg);
|
|
953
954
|
} else {
|
|
@@ -955,7 +956,7 @@ export default {
|
|
|
955
956
|
this.$message.error(msg);
|
|
956
957
|
}
|
|
957
958
|
})
|
|
958
|
-
.catch(err => {
|
|
959
|
+
.catch((err) => {
|
|
959
960
|
if (err.message && err.message !== 'canceled') {
|
|
960
961
|
this.$message.error(err.message);
|
|
961
962
|
}
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -37,9 +37,9 @@ import { MessageBox, Loading } from 'eoss-element';
|
|
|
37
37
|
* @param {String} [host] - host
|
|
38
38
|
* @param {Object} [data] - 请求参数
|
|
39
39
|
* @param {Object} [params] - 请求参数
|
|
40
|
-
* @param {Boolean} [format] - post请求是否使用表单类型
|
|
41
|
-
* @param {Boolean} [mix] - 是否混合传参
|
|
42
|
-
* @param {Boolean} [defaults] - 是否传入默认参数userId
|
|
40
|
+
* @param {Boolean} [format = true] - post请求是否使用表单类型
|
|
41
|
+
* @param {Boolean} [mix = false] - 是否混合传参
|
|
42
|
+
* @param {Boolean} [defaults = false] - 是否传入默认参数userId
|
|
43
43
|
* @param {Object} [loading] - loading加载对象
|
|
44
44
|
**/
|
|
45
45
|
// 请求
|