eoss-ui 0.4.14 → 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 +17 -4
- package/lib/button.js +17 -4
- package/lib/checkbox-group.js +17 -4
- package/lib/data-table-form.js +17 -4
- package/lib/data-table.js +24 -9
- package/lib/date-picker.js +17 -4
- package/lib/dialog.js +17 -4
- package/lib/eoss-ui.common.js +55 -39
- package/lib/flow-group.js +17 -4
- package/lib/flow-list.js +17 -4
- package/lib/flow.js +17 -4
- package/lib/form.js +17 -4
- package/lib/handle-user.js +17 -4
- package/lib/handler.js +17 -4
- package/lib/index.js +1 -1
- package/lib/input-number.js +17 -4
- package/lib/input.js +17 -4
- package/lib/login.js +17 -4
- package/lib/main.js +22 -9
- package/lib/mainComp.js +22 -9
- package/lib/nav.js +17 -4
- package/lib/page.js +17 -4
- package/lib/player.js +17 -4
- package/lib/qr-code.js +17 -4
- package/lib/radio-group.js +17 -4
- package/lib/select-ganged.js +17 -4
- package/lib/select.js +17 -4
- package/lib/selector-panel.js +17 -4
- package/lib/selector.js +17 -4
- package/lib/sizer.js +17 -4
- package/lib/steps.js +17 -4
- package/lib/switch.js +17 -4
- package/lib/table-form.js +17 -4
- package/lib/tabs.js +17 -4
- package/lib/tips.js +17 -4
- package/lib/tree-group.js +17 -4
- package/lib/tree.js +17 -4
- package/lib/upload.js +23 -9
- package/lib/utils/util.js +17 -4
- package/lib/wujie.js +17 -4
- package/lib/wxlogin.js +17 -4
- package/package.json +3 -3
- 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 +18 -5
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
:deep="modal === 'topnav'"
|
|
22
22
|
:default-active="topActive"
|
|
23
23
|
@select="
|
|
24
|
-
res => {
|
|
24
|
+
(res) => {
|
|
25
25
|
handleSelect(res, 'nav');
|
|
26
26
|
}
|
|
27
27
|
"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
:notice="notice"
|
|
38
38
|
:data="handleData"
|
|
39
39
|
@select="
|
|
40
|
-
res => {
|
|
40
|
+
(res) => {
|
|
41
41
|
handleSelect(res, 'sys');
|
|
42
42
|
}
|
|
43
43
|
"
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
:menu-tips="menuTips"
|
|
68
68
|
:is-default="isDefault"
|
|
69
69
|
@trigger="
|
|
70
|
-
res => {
|
|
70
|
+
(res) => {
|
|
71
71
|
handleSelect(res, 'sub');
|
|
72
72
|
}
|
|
73
73
|
"
|
|
74
74
|
@select="
|
|
75
|
-
res => {
|
|
75
|
+
(res) => {
|
|
76
76
|
handleSelect(res, 'menu');
|
|
77
77
|
}
|
|
78
78
|
"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
:default-active="tabsId"
|
|
88
88
|
:menu-tips="menuTips"
|
|
89
89
|
@select="
|
|
90
|
-
res => {
|
|
90
|
+
(res) => {
|
|
91
91
|
handleSelect(res, 'tabs');
|
|
92
92
|
}
|
|
93
93
|
"
|
|
@@ -522,7 +522,7 @@ export default {
|
|
|
522
522
|
util.win.refresh = this.handleRefresh;
|
|
523
523
|
util.win.jumpMenu = this.jumpMenu;
|
|
524
524
|
if (util.win.$wujie) {
|
|
525
|
-
util.win.$wujie.bus.$on('changeTheme', res => {
|
|
525
|
+
util.win.$wujie.bus.$on('changeTheme', (res) => {
|
|
526
526
|
util.updateTheme(res);
|
|
527
527
|
});
|
|
528
528
|
}
|
|
@@ -565,7 +565,7 @@ export default {
|
|
|
565
565
|
params: { color: escape(color.toLowerCase()) },
|
|
566
566
|
data: { color: escape(color.toLowerCase()) }
|
|
567
567
|
})
|
|
568
|
-
.then(res => {
|
|
568
|
+
.then((res) => {
|
|
569
569
|
if (res.rCode === 0) {
|
|
570
570
|
this.color = color;
|
|
571
571
|
localStorage.setItem('theme', color);
|
|
@@ -583,7 +583,7 @@ export default {
|
|
|
583
583
|
this.$message.error(msg);
|
|
584
584
|
}
|
|
585
585
|
})
|
|
586
|
-
.catch(err => {
|
|
586
|
+
.catch((err) => {
|
|
587
587
|
if (err.message && err.message !== 'canceled') {
|
|
588
588
|
this.$message.error(err.message);
|
|
589
589
|
}
|
|
@@ -666,7 +666,7 @@ export default {
|
|
|
666
666
|
}
|
|
667
667
|
util
|
|
668
668
|
.ajax({ url: this.mainConfig })
|
|
669
|
-
.then(res => {
|
|
669
|
+
.then((res) => {
|
|
670
670
|
if (res && res.rCode === 0) {
|
|
671
671
|
this.setConfig(res.results, 1);
|
|
672
672
|
} else {
|
|
@@ -674,7 +674,7 @@ export default {
|
|
|
674
674
|
this.$message.error(msg);
|
|
675
675
|
}
|
|
676
676
|
})
|
|
677
|
-
.catch(err => {
|
|
677
|
+
.catch((err) => {
|
|
678
678
|
if (err.message && err.message !== 'canceled') {
|
|
679
679
|
this.$message.error(err.message);
|
|
680
680
|
}
|
|
@@ -683,7 +683,7 @@ export default {
|
|
|
683
683
|
reGetConfig() {
|
|
684
684
|
util
|
|
685
685
|
.ajax({ url: this.mainConfig })
|
|
686
|
-
.then(res => {
|
|
686
|
+
.then((res) => {
|
|
687
687
|
if (res && res.rCode === 0) {
|
|
688
688
|
const results = JSON.parse(JSON.stringify(res.results));
|
|
689
689
|
this.setConfig(results, 1);
|
|
@@ -692,7 +692,7 @@ export default {
|
|
|
692
692
|
this.$message.error(msg);
|
|
693
693
|
}
|
|
694
694
|
})
|
|
695
|
-
.catch(err => {
|
|
695
|
+
.catch((err) => {
|
|
696
696
|
if (err.message && err.message !== 'canceled') {
|
|
697
697
|
this.$message.error(err.message);
|
|
698
698
|
}
|
|
@@ -759,7 +759,7 @@ export default {
|
|
|
759
759
|
getMenu() {
|
|
760
760
|
util
|
|
761
761
|
.ajax({ url: this.action })
|
|
762
|
-
.then(res => {
|
|
762
|
+
.then((res) => {
|
|
763
763
|
if (res.rCode === 0) {
|
|
764
764
|
this.menus = JSON.parse(JSON.stringify(res.results));
|
|
765
765
|
let applicationid =
|
|
@@ -790,7 +790,7 @@ export default {
|
|
|
790
790
|
this.$message.error(msg);
|
|
791
791
|
}
|
|
792
792
|
})
|
|
793
|
-
.catch(err => {
|
|
793
|
+
.catch((err) => {
|
|
794
794
|
if (err.message && err.message !== 'canceled') {
|
|
795
795
|
this.$message.error(err.message);
|
|
796
796
|
}
|
|
@@ -877,7 +877,7 @@ export default {
|
|
|
877
877
|
} else {
|
|
878
878
|
this.tabs = obj.fourthTabs;
|
|
879
879
|
if (obj.url) {
|
|
880
|
-
let tab = obj.fourthTabs.filter(item => {
|
|
880
|
+
let tab = obj.fourthTabs.filter((item) => {
|
|
881
881
|
return item.url === obj.url;
|
|
882
882
|
})[0];
|
|
883
883
|
if (tab) {
|
|
@@ -902,7 +902,7 @@ export default {
|
|
|
902
902
|
//遍历设置菜单气泡提醒
|
|
903
903
|
setTips(obj) {
|
|
904
904
|
if (Array.isArray(obj)) {
|
|
905
|
-
obj.forEach(item => {
|
|
905
|
+
obj.forEach((item) => {
|
|
906
906
|
this.setTips(item);
|
|
907
907
|
});
|
|
908
908
|
} else {
|
|
@@ -912,7 +912,7 @@ export default {
|
|
|
912
912
|
}
|
|
913
913
|
let flag = false;
|
|
914
914
|
if (obj.children && obj.children.length) {
|
|
915
|
-
obj.children.forEach(item => {
|
|
915
|
+
obj.children.forEach((item) => {
|
|
916
916
|
if (this.setTips(item)) {
|
|
917
917
|
flag = true;
|
|
918
918
|
}
|
|
@@ -922,7 +922,7 @@ export default {
|
|
|
922
922
|
return true;
|
|
923
923
|
}
|
|
924
924
|
} else if (obj.fourthTabs && obj.fourthTabs.length) {
|
|
925
|
-
obj.fourthTabs.forEach(item => {
|
|
925
|
+
obj.fourthTabs.forEach((item) => {
|
|
926
926
|
if (this.setTips(item)) {
|
|
927
927
|
flag = true;
|
|
928
928
|
}
|
|
@@ -1051,7 +1051,7 @@ export default {
|
|
|
1051
1051
|
this.active = this.getFirst(node.children[0]);
|
|
1052
1052
|
} else {
|
|
1053
1053
|
if (node.url) {
|
|
1054
|
-
let tab = node.fourthTabs.filter(item => {
|
|
1054
|
+
let tab = node.fourthTabs.filter((item) => {
|
|
1055
1055
|
return item.url === node.url;
|
|
1056
1056
|
})[0];
|
|
1057
1057
|
if (tab) {
|
|
@@ -1100,7 +1100,7 @@ export default {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
1102
|
if (node.url) {
|
|
1103
|
-
let tab = (node.fourthTabs || []).filter(item => {
|
|
1103
|
+
let tab = (node.fourthTabs || []).filter((item) => {
|
|
1104
1104
|
return item.url === node.url;
|
|
1105
1105
|
})[0];
|
|
1106
1106
|
if (tab) {
|
|
@@ -1314,7 +1314,7 @@ export default {
|
|
|
1314
1314
|
handleListener() {
|
|
1315
1315
|
util.win.addEventListener(
|
|
1316
1316
|
'message',
|
|
1317
|
-
e => {
|
|
1317
|
+
(e) => {
|
|
1318
1318
|
var msg = e.data;
|
|
1319
1319
|
if (msg.key == 'jump_Menu') {
|
|
1320
1320
|
let res = msg.data1;
|
|
@@ -1346,7 +1346,7 @@ export default {
|
|
|
1346
1346
|
() => {
|
|
1347
1347
|
//localStorage.setItem("socket",true);
|
|
1348
1348
|
//订阅服务端的
|
|
1349
|
-
client.subscribe(topic, response => {
|
|
1349
|
+
client.subscribe(topic, (response) => {
|
|
1350
1350
|
let res = JSON.parse(response.body);
|
|
1351
1351
|
let data = res.data;
|
|
1352
1352
|
for (let i in data) {
|
|
@@ -1373,7 +1373,7 @@ export default {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
});
|
|
1375
1375
|
},
|
|
1376
|
-
error => {
|
|
1376
|
+
(error) => {
|
|
1377
1377
|
console.log('webSocket连接失败');
|
|
1378
1378
|
client.disconnect();
|
|
1379
1379
|
}
|
|
@@ -1461,7 +1461,7 @@ export default {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
1463
|
})
|
|
1464
|
-
.catch(e => {});
|
|
1464
|
+
.catch((e) => {});
|
|
1465
1465
|
},
|
|
1466
1466
|
openPage(url, name, width, height) {
|
|
1467
1467
|
let src = url;
|
|
@@ -1472,18 +1472,18 @@ export default {
|
|
|
1472
1472
|
pathname.splice(pathname.length - 1);
|
|
1473
1473
|
pathname = pathname.join('/');
|
|
1474
1474
|
}
|
|
1475
|
-
src = pathname + url.replace('./', '');
|
|
1475
|
+
src = pathname + url.replace('./', '/');
|
|
1476
1476
|
}
|
|
1477
1477
|
if (name) {
|
|
1478
1478
|
let w = width ? width : util.win.top.screen.availWidth - 10;
|
|
1479
1479
|
let h = height ? height : util.win.top.screen.availHeight - 60;
|
|
1480
|
-
util.win.open(
|
|
1480
|
+
return util.win.open(
|
|
1481
1481
|
src,
|
|
1482
1482
|
name,
|
|
1483
1483
|
`width=${w}px,height=${h}px,resizable=yes,status=yes,menubar=no,scrollbars=yes`
|
|
1484
1484
|
);
|
|
1485
1485
|
} else {
|
|
1486
|
-
util.win.open(src);
|
|
1486
|
+
return util.win.open(src);
|
|
1487
1487
|
}
|
|
1488
1488
|
}
|
|
1489
1489
|
},
|
|
@@ -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
|
// 请求
|
|
@@ -1426,10 +1426,23 @@ const isLogged = function ({
|
|
|
1426
1426
|
} else {
|
|
1427
1427
|
const token = getStorage('token') || getStorage('Authorization');
|
|
1428
1428
|
if (
|
|
1429
|
-
Object.prototype.hasOwnProperty.call(to.query, 'serverId') &&
|
|
1429
|
+
!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') &&
|
|
1430
1430
|
Object.prototype.hasOwnProperty.call(to.query, 'authType')
|
|
1431
1431
|
) {
|
|
1432
|
-
|
|
1432
|
+
let url = win.top.location.href;
|
|
1433
|
+
if (to.query.openType) {
|
|
1434
|
+
switch (to.query.openType) {
|
|
1435
|
+
case 'self':
|
|
1436
|
+
url = win.location.href;
|
|
1437
|
+
break;
|
|
1438
|
+
case 'blank':
|
|
1439
|
+
url = win.location.href;
|
|
1440
|
+
break;
|
|
1441
|
+
case 'parent':
|
|
1442
|
+
url = win.parent.location.href;
|
|
1443
|
+
break;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1433
1446
|
ajax({
|
|
1434
1447
|
method: 'post',
|
|
1435
1448
|
url: authCenter,
|