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
|
@@ -152,6 +152,7 @@
|
|
|
152
152
|
type="handle"
|
|
153
153
|
align="center"
|
|
154
154
|
label="操作"
|
|
155
|
+
fixed="right"
|
|
155
156
|
class="eoss-ui-eidt-column"
|
|
156
157
|
:total="false"
|
|
157
158
|
>
|
|
@@ -582,7 +583,7 @@ export default {
|
|
|
582
583
|
return false;
|
|
583
584
|
},
|
|
584
585
|
getOptions(res) {
|
|
585
|
-
res.forEach(item => {
|
|
586
|
+
res.forEach((item) => {
|
|
586
587
|
if (item.sysCode || item.url) {
|
|
587
588
|
let params = util.extend(
|
|
588
589
|
{},
|
|
@@ -596,7 +597,7 @@ export default {
|
|
|
596
597
|
params: params,
|
|
597
598
|
data: params
|
|
598
599
|
})
|
|
599
|
-
.then(res => {
|
|
600
|
+
.then((res) => {
|
|
600
601
|
if (res.rCode === 0) {
|
|
601
602
|
if (item.type == 'ganged') {
|
|
602
603
|
this.$set(this.options, item.field || item.prop, [
|
|
@@ -614,7 +615,7 @@ export default {
|
|
|
614
615
|
this.$message.error(msg);
|
|
615
616
|
}
|
|
616
617
|
})
|
|
617
|
-
.catch(err => {
|
|
618
|
+
.catch((err) => {
|
|
618
619
|
if (err.message && err.message !== 'canceled') {
|
|
619
620
|
this.$message.error(err.message);
|
|
620
621
|
}
|
|
@@ -638,7 +639,7 @@ export default {
|
|
|
638
639
|
return;
|
|
639
640
|
}
|
|
640
641
|
const arr = JSON.parse(JSON.stringify(this.thead));
|
|
641
|
-
arr.forEach(item => {
|
|
642
|
+
arr.forEach((item) => {
|
|
642
643
|
if (item.total) {
|
|
643
644
|
this.showTotal = true;
|
|
644
645
|
}
|
|
@@ -675,7 +676,7 @@ export default {
|
|
|
675
676
|
checkSelect(newVal) {
|
|
676
677
|
if (!this.isFirsetCheck && newVal) {
|
|
677
678
|
if (util.getObjectType(newVal) === 'array') {
|
|
678
|
-
newVal.forEach(row => {
|
|
679
|
+
newVal.forEach((row) => {
|
|
679
680
|
this.$refs.oaTable.toggleRowSelection(row, true);
|
|
680
681
|
});
|
|
681
682
|
} else if (newVal === true) {
|
|
@@ -693,7 +694,7 @@ export default {
|
|
|
693
694
|
params: this.param,
|
|
694
695
|
data: this.param
|
|
695
696
|
})
|
|
696
|
-
.then(res => {
|
|
697
|
+
.then((res) => {
|
|
697
698
|
if (res.rCode === 0) {
|
|
698
699
|
let results = res.results;
|
|
699
700
|
if (Array.isArray(results)) {
|
|
@@ -711,7 +712,7 @@ export default {
|
|
|
711
712
|
}
|
|
712
713
|
this.$emit('success', res);
|
|
713
714
|
})
|
|
714
|
-
.catch(err => {
|
|
715
|
+
.catch((err) => {
|
|
715
716
|
if (err.message && err.message !== 'canceled') {
|
|
716
717
|
this.$message.error(err.message);
|
|
717
718
|
}
|
|
@@ -747,7 +748,7 @@ export default {
|
|
|
747
748
|
params: reqData,
|
|
748
749
|
data: reqData
|
|
749
750
|
})
|
|
750
|
-
.then(res => {
|
|
751
|
+
.then((res) => {
|
|
751
752
|
this.tableLoading = false;
|
|
752
753
|
if (res.rCode === 0 || res.status === 'success') {
|
|
753
754
|
let results =
|
|
@@ -764,7 +765,7 @@ export default {
|
|
|
764
765
|
}
|
|
765
766
|
this.$emit('success', res);
|
|
766
767
|
})
|
|
767
|
-
.catch(err => {
|
|
768
|
+
.catch((err) => {
|
|
768
769
|
if (err.message && err.message !== 'canceled') {
|
|
769
770
|
this.$message.error(err.message);
|
|
770
771
|
}
|
|
@@ -822,7 +823,7 @@ export default {
|
|
|
822
823
|
} else if (Array.isArray(handle.syncKeys)) {
|
|
823
824
|
for (let i in handle.syncKeys) {
|
|
824
825
|
if (Array.isArray(row)) {
|
|
825
|
-
let param = row.map(item => {
|
|
826
|
+
let param = row.map((item) => {
|
|
826
827
|
return item[handle.syncKeys[i]];
|
|
827
828
|
});
|
|
828
829
|
params[handle.syncKeys[i]] = param.join(',');
|
|
@@ -833,7 +834,7 @@ export default {
|
|
|
833
834
|
} else {
|
|
834
835
|
for (let i in handle.syncKeys) {
|
|
835
836
|
if (Array.isArray(row)) {
|
|
836
|
-
let param = row.map(item => {
|
|
837
|
+
let param = row.map((item) => {
|
|
837
838
|
return item[handle.syncKeys[i]];
|
|
838
839
|
});
|
|
839
840
|
params[i] = param.join(',');
|
|
@@ -844,7 +845,7 @@ export default {
|
|
|
844
845
|
}
|
|
845
846
|
} else {
|
|
846
847
|
if (Array.isArray(row)) {
|
|
847
|
-
let param = row.map(item => {
|
|
848
|
+
let param = row.map((item) => {
|
|
848
849
|
return item.id;
|
|
849
850
|
});
|
|
850
851
|
params.id = param.join(',');
|
|
@@ -867,7 +868,7 @@ export default {
|
|
|
867
868
|
method: handle.method,
|
|
868
869
|
format: handle.format
|
|
869
870
|
})
|
|
870
|
-
.then(res => {
|
|
871
|
+
.then((res) => {
|
|
871
872
|
this.changeLoading(false);
|
|
872
873
|
if (res.rCode === 0) {
|
|
873
874
|
this.$message({
|
|
@@ -893,7 +894,7 @@ export default {
|
|
|
893
894
|
);
|
|
894
895
|
}
|
|
895
896
|
})
|
|
896
|
-
.catch(err => {
|
|
897
|
+
.catch((err) => {
|
|
897
898
|
this.changeLoading(false);
|
|
898
899
|
if (err.message && err.message !== 'canceled') {
|
|
899
900
|
this.$message.error(err.message);
|
|
@@ -902,7 +903,7 @@ export default {
|
|
|
902
903
|
},
|
|
903
904
|
checkParse(data, parse) {
|
|
904
905
|
if (Array.isArray(data)) {
|
|
905
|
-
return data.map(items => {
|
|
906
|
+
return data.map((items) => {
|
|
906
907
|
let item = JSON.parse(JSON.stringify(items));
|
|
907
908
|
let obj = {};
|
|
908
909
|
for (let i in parse) {
|
|
@@ -1005,7 +1006,7 @@ export default {
|
|
|
1005
1006
|
} else if (handle.changeData) {
|
|
1006
1007
|
let changeData = {};
|
|
1007
1008
|
if (Array.isArray(handle.changeData)) {
|
|
1008
|
-
handle.changeData.forEach(item => {
|
|
1009
|
+
handle.changeData.forEach((item) => {
|
|
1009
1010
|
if (util.isObject(item)) {
|
|
1010
1011
|
for (let i in item) {
|
|
1011
1012
|
if (typeof item[i] === 'boolean') {
|
|
@@ -1056,8 +1057,8 @@ export default {
|
|
|
1056
1057
|
) {
|
|
1057
1058
|
text = this.thead[this.thead.length - 1].title;
|
|
1058
1059
|
}
|
|
1059
|
-
thead = thead.map(item => {
|
|
1060
|
-
return item.filter(ele => {
|
|
1060
|
+
thead = thead.map((item) => {
|
|
1061
|
+
return item.filter((ele) => {
|
|
1061
1062
|
return ele.label !== text && ele.label;
|
|
1062
1063
|
});
|
|
1063
1064
|
});
|
|
@@ -1175,9 +1176,8 @@ export default {
|
|
|
1175
1176
|
}
|
|
1176
1177
|
}
|
|
1177
1178
|
this.styles = { height: height + 'px' };
|
|
1178
|
-
const loadingDom =
|
|
1179
|
-
'.el-loading-mask'
|
|
1180
|
-
);
|
|
1179
|
+
const loadingDom =
|
|
1180
|
+
this.$refs.esTableContent.querySelector('.el-loading-mask');
|
|
1181
1181
|
for (
|
|
1182
1182
|
let i = 0;
|
|
1183
1183
|
i < this.$refs.esTableContent.childNodes.length;
|
|
@@ -1205,7 +1205,7 @@ export default {
|
|
|
1205
1205
|
},
|
|
1206
1206
|
validate(callback) {
|
|
1207
1207
|
let form = this.elForm || this.$refs.esTableForm;
|
|
1208
|
-
form.validate(valid => {
|
|
1208
|
+
form.validate((valid) => {
|
|
1209
1209
|
callback(valid);
|
|
1210
1210
|
});
|
|
1211
1211
|
},
|
|
@@ -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
|
},
|