eoss-ui 0.5.12 → 0.5.13
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 -13
- package/lib/button.js +1 -13
- package/lib/checkbox-group.js +1 -13
- package/lib/data-table-form.js +1 -13
- package/lib/data-table.js +24 -22
- package/lib/date-picker.js +1 -13
- package/lib/dialog.js +1 -13
- package/lib/eoss-ui.common.js +83 -78
- package/lib/flow-group.js +1 -13
- package/lib/flow-list.js +1 -13
- package/lib/flow.js +36 -48
- package/lib/form.js +1 -13
- package/lib/handle-user.js +1 -13
- package/lib/handler.js +1 -13
- package/lib/index.js +1 -1
- package/lib/input-number.js +1 -13
- package/lib/input.js +1 -13
- package/lib/label.js +3 -2
- package/lib/login.js +1 -13
- package/lib/main.js +9 -19
- package/lib/nav.js +1 -13
- package/lib/page.js +1 -13
- package/lib/player.js +1 -13
- package/lib/qr-code.js +1 -13
- package/lib/radio-group.js +1 -13
- package/lib/retrial-auth.js +1 -13
- package/lib/select-ganged.js +1 -13
- package/lib/select.js +1 -13
- package/lib/selector-panel.js +1 -13
- package/lib/selector.js +1 -13
- package/lib/sizer.js +1 -13
- package/lib/steps.js +1 -13
- package/lib/switch.js +1 -13
- package/lib/table-form.js +1 -13
- package/lib/tabs.js +1 -13
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/nav.css +1 -1
- package/lib/tips.js +1 -13
- package/lib/tree-group.js +1 -13
- package/lib/tree.js +1 -13
- package/lib/upload.js +1 -13
- package/lib/utils/util.js +1 -10
- package/lib/utils/webSocket.js +0 -3
- package/lib/wujie.js +1 -13
- package/lib/wxlogin.js +1 -13
- package/package.json +1 -1
- package/packages/data-table/src/column copy.vue +977 -0
- package/packages/data-table/src/main copy.vue +1325 -0
- package/packages/data-table/src/main.vue +29 -6
- package/packages/flow/src/component/taskUnionExamine.vue +1 -1
- package/packages/flow/src/main.vue +1 -1
- package/packages/flow/src/processForm.vue +1 -1
- package/packages/flow/src/processReject.vue +1 -1
- package/packages/flow/src/startTaskRead.vue +1 -1
- package/packages/label/src/main.vue +3 -2
- package/packages/main/src/main.vue +6 -4
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/nav.css +1 -1
- package/packages/theme-chalk/src/nav.scss +21 -2
- package/src/index.js +1 -1
- package/src/utils/util.js +1 -10
- package/src/utils/webSocket.js +0 -3
|
@@ -415,7 +415,13 @@ export default {
|
|
|
415
415
|
type: Boolean,
|
|
416
416
|
default: true
|
|
417
417
|
},
|
|
418
|
-
zoom: false
|
|
418
|
+
zoom: false,
|
|
419
|
+
exportExcludeLabel: {
|
|
420
|
+
type: Array,
|
|
421
|
+
default() {
|
|
422
|
+
return [];
|
|
423
|
+
}
|
|
424
|
+
}
|
|
419
425
|
},
|
|
420
426
|
data() {
|
|
421
427
|
return {
|
|
@@ -581,6 +587,11 @@ export default {
|
|
|
581
587
|
this.config = util.extend({}, this.config, this.page);
|
|
582
588
|
}
|
|
583
589
|
},
|
|
590
|
+
'config.pageNum'() {
|
|
591
|
+
if (this.data.length) {
|
|
592
|
+
this.$refs.oaTable.resetScroll(0, 0);
|
|
593
|
+
}
|
|
594
|
+
},
|
|
584
595
|
height: {
|
|
585
596
|
immediate: true,
|
|
586
597
|
handler(val) {
|
|
@@ -822,10 +833,16 @@ export default {
|
|
|
822
833
|
this.config.pageNum = 1;
|
|
823
834
|
}
|
|
824
835
|
this.tableLoadingText = '加载中...';
|
|
825
|
-
let reqData = util.extend(
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
836
|
+
let reqData = util.extend(
|
|
837
|
+
{},
|
|
838
|
+
this.param,
|
|
839
|
+
this.page
|
|
840
|
+
? {
|
|
841
|
+
pageNum: this.config.pageNum,
|
|
842
|
+
pageSize: this.config.pageSize
|
|
843
|
+
}
|
|
844
|
+
: {}
|
|
845
|
+
);
|
|
829
846
|
if (where) {
|
|
830
847
|
reqData = util.extend({}, reqData, where);
|
|
831
848
|
}
|
|
@@ -841,6 +858,7 @@ export default {
|
|
|
841
858
|
.then((res) => {
|
|
842
859
|
this.tableLoading = false;
|
|
843
860
|
if (res.rCode === 0 || res.status === 'success') {
|
|
861
|
+
this.$refs.oaTable.resetScroll(0, 0);
|
|
844
862
|
let results =
|
|
845
863
|
this.parseData !== undefined
|
|
846
864
|
? this.parseData(res.results || res.data || res)
|
|
@@ -1153,9 +1171,14 @@ export default {
|
|
|
1153
1171
|
) {
|
|
1154
1172
|
text = this.theads[this.theads.length - 1].title;
|
|
1155
1173
|
}
|
|
1174
|
+
let type = ['selection', 'index', 'expand'];
|
|
1156
1175
|
thead = thead.map((item) => {
|
|
1157
1176
|
return item.filter((ele) => {
|
|
1158
|
-
return
|
|
1177
|
+
return (
|
|
1178
|
+
!type.includes(ele.type) &&
|
|
1179
|
+
ele.label !== text &&
|
|
1180
|
+
!this.exportExcludeLabel.includes(ele.label)
|
|
1181
|
+
);
|
|
1159
1182
|
});
|
|
1160
1183
|
});
|
|
1161
1184
|
util.exportXls({
|
|
@@ -1197,7 +1197,7 @@ export default {
|
|
|
1197
1197
|
util
|
|
1198
1198
|
.ajax({
|
|
1199
1199
|
url: findCodeValues,
|
|
1200
|
-
params: { ccCode: 'notification_type' }
|
|
1200
|
+
params: { ccCode: 'notification_type',userId:util.getStorage('userId') }
|
|
1201
1201
|
})
|
|
1202
1202
|
.then((res) => {
|
|
1203
1203
|
const { status, data } = res;
|
|
@@ -10,6 +10,7 @@ export default {
|
|
|
10
10
|
return '';
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
+
text: String,
|
|
13
14
|
rules: {
|
|
14
15
|
type: [Array, Object],
|
|
15
16
|
default() {
|
|
@@ -132,8 +133,8 @@ export default {
|
|
|
132
133
|
doms.push(this.$slots.prepend);
|
|
133
134
|
}
|
|
134
135
|
if (typeof this.contents === 'string') {
|
|
135
|
-
if (this.contents) {
|
|
136
|
-
doms.push(this.contents);
|
|
136
|
+
if (this.contents || this.text) {
|
|
137
|
+
doms.push(this.contents || this.text);
|
|
137
138
|
}
|
|
138
139
|
if (this.icon) {
|
|
139
140
|
if (
|
|
@@ -819,6 +819,9 @@ export default {
|
|
|
819
819
|
this.showSet = !this.showSet;
|
|
820
820
|
},
|
|
821
821
|
setConfig(results, flag) {
|
|
822
|
+
if (this.socket) {
|
|
823
|
+
this.initWebSocket();
|
|
824
|
+
}
|
|
822
825
|
if (flag) {
|
|
823
826
|
sessionStorage.setItem('mainConfig', JSON.stringify(results));
|
|
824
827
|
util.setStorage({
|
|
@@ -934,9 +937,6 @@ export default {
|
|
|
934
937
|
.then((res) => {
|
|
935
938
|
if (res && res.rCode === 0) {
|
|
936
939
|
this.setConfig(res.results, 1);
|
|
937
|
-
if (this.socket) {
|
|
938
|
-
this.initWebSocket();
|
|
939
|
-
}
|
|
940
940
|
if (this.remote) {
|
|
941
941
|
this.getMenu();
|
|
942
942
|
} else {
|
|
@@ -1903,7 +1903,9 @@ export default {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
1905
|
if (this.$store) {
|
|
1906
|
-
|
|
1906
|
+
try {
|
|
1907
|
+
this.$store.commit('websocket', data);
|
|
1908
|
+
} catch (error) {}
|
|
1907
1909
|
}
|
|
1908
1910
|
if (this.$eventBus) {
|
|
1909
1911
|
this.$eventBus.$emit('websocket', data);
|