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.
Files changed (62) hide show
  1. package/lib/button-group.js +1 -13
  2. package/lib/button.js +1 -13
  3. package/lib/checkbox-group.js +1 -13
  4. package/lib/data-table-form.js +1 -13
  5. package/lib/data-table.js +24 -22
  6. package/lib/date-picker.js +1 -13
  7. package/lib/dialog.js +1 -13
  8. package/lib/eoss-ui.common.js +83 -78
  9. package/lib/flow-group.js +1 -13
  10. package/lib/flow-list.js +1 -13
  11. package/lib/flow.js +36 -48
  12. package/lib/form.js +1 -13
  13. package/lib/handle-user.js +1 -13
  14. package/lib/handler.js +1 -13
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +1 -13
  17. package/lib/input.js +1 -13
  18. package/lib/label.js +3 -2
  19. package/lib/login.js +1 -13
  20. package/lib/main.js +9 -19
  21. package/lib/nav.js +1 -13
  22. package/lib/page.js +1 -13
  23. package/lib/player.js +1 -13
  24. package/lib/qr-code.js +1 -13
  25. package/lib/radio-group.js +1 -13
  26. package/lib/retrial-auth.js +1 -13
  27. package/lib/select-ganged.js +1 -13
  28. package/lib/select.js +1 -13
  29. package/lib/selector-panel.js +1 -13
  30. package/lib/selector.js +1 -13
  31. package/lib/sizer.js +1 -13
  32. package/lib/steps.js +1 -13
  33. package/lib/switch.js +1 -13
  34. package/lib/table-form.js +1 -13
  35. package/lib/tabs.js +1 -13
  36. package/lib/theme-chalk/index.css +1 -1
  37. package/lib/theme-chalk/nav.css +1 -1
  38. package/lib/tips.js +1 -13
  39. package/lib/tree-group.js +1 -13
  40. package/lib/tree.js +1 -13
  41. package/lib/upload.js +1 -13
  42. package/lib/utils/util.js +1 -10
  43. package/lib/utils/webSocket.js +0 -3
  44. package/lib/wujie.js +1 -13
  45. package/lib/wxlogin.js +1 -13
  46. package/package.json +1 -1
  47. package/packages/data-table/src/column copy.vue +977 -0
  48. package/packages/data-table/src/main copy.vue +1325 -0
  49. package/packages/data-table/src/main.vue +29 -6
  50. package/packages/flow/src/component/taskUnionExamine.vue +1 -1
  51. package/packages/flow/src/main.vue +1 -1
  52. package/packages/flow/src/processForm.vue +1 -1
  53. package/packages/flow/src/processReject.vue +1 -1
  54. package/packages/flow/src/startTaskRead.vue +1 -1
  55. package/packages/label/src/main.vue +3 -2
  56. package/packages/main/src/main.vue +6 -4
  57. package/packages/theme-chalk/lib/index.css +1 -1
  58. package/packages/theme-chalk/lib/nav.css +1 -1
  59. package/packages/theme-chalk/src/nav.scss +21 -2
  60. package/src/index.js +1 -1
  61. package/src/utils/util.js +1 -10
  62. 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({}, this.param, {
826
- pageNum: this.config.pageNum,
827
- pageSize: this.config.pageSize
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 ele.label !== text && ele.label;
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({
@@ -448,7 +448,7 @@ export default {
448
448
  util
449
449
  .ajax({
450
450
  url: findCodeValues,
451
- params: { ccCode: 'notification_type' }
451
+ params: { ccCode: 'notification_type',userId:util.getStorage('userId') }
452
452
  })
453
453
  .then((res) => {
454
454
  const { status, data } = res;
@@ -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;
@@ -482,7 +482,7 @@ export default {
482
482
  util
483
483
  .ajax({
484
484
  url: findCodeValues,
485
- params: { ccCode: 'notification_type' }
485
+ params: { ccCode: 'notification_type',userId:util.getStorage('userId') }
486
486
  })
487
487
  .then((res) => {
488
488
  const { status, data } = res;
@@ -131,7 +131,7 @@ export default {
131
131
  util
132
132
  .ajax({
133
133
  url: findCodeValues,
134
- params: { ccCode: 'notification_type' }
134
+ params: { ccCode: 'notification_type',userId:util.getStorage('userId') }
135
135
  })
136
136
  .then(res => {
137
137
  const { status, data } = res;
@@ -384,7 +384,7 @@ export default {
384
384
  util
385
385
  .ajax({
386
386
  url: findCodeValues,
387
- params: { ccCode: 'notification_type' }
387
+ params: { ccCode: 'notification_type',userId:util.getStorage('userId') }
388
388
  })
389
389
  .then((res) => {
390
390
  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
- this.$store.commit('websocket', data);
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);