eoss-ui 0.8.39 → 0.8.40

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 (41) hide show
  1. package/lib/eoss-ui.common.js +736 -1086
  2. package/lib/flow-list.js +83 -22
  3. package/lib/flow.js +167 -111
  4. package/lib/index.js +1 -1
  5. package/lib/selector-panel.js +189 -110
  6. package/lib/selector.js +164 -700
  7. package/lib/theme-chalk/flow-list.css +1 -1
  8. package/lib/theme-chalk/flow.css +1 -1
  9. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  10. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  11. package/lib/theme-chalk/form.css +1 -1
  12. package/lib/theme-chalk/index.css +1 -1
  13. package/lib/theme-chalk/selector-panel.css +1 -1
  14. package/lib/theme-chalk/selector.css +1 -1
  15. package/lib/theme-chalk/tree.css +1 -1
  16. package/package.json +2 -2
  17. package/packages/flow/src/flow.vue +26 -11
  18. package/packages/flow/src/main.vue +10 -5
  19. package/packages/flow/src/selectUser.vue +1 -0
  20. package/packages/flow-list/src/main.vue +72 -14
  21. package/packages/selector/src/main.vue +120 -269
  22. package/packages/selector-panel/src/main.vue +1071 -1036
  23. package/packages/selector-panel/src/tree.vue +24 -18
  24. package/packages/theme-chalk/lib/flow-list.css +1 -1
  25. package/packages/theme-chalk/lib/flow.css +1 -1
  26. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  27. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  28. package/packages/theme-chalk/lib/form.css +1 -1
  29. package/packages/theme-chalk/lib/index.css +1 -1
  30. package/packages/theme-chalk/lib/selector-panel.css +1 -1
  31. package/packages/theme-chalk/lib/selector.css +1 -1
  32. package/packages/theme-chalk/lib/tree.css +1 -1
  33. package/packages/theme-chalk/src/flow-list.scss +61 -55
  34. package/packages/theme-chalk/src/flow.scss +16 -2
  35. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  36. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  37. package/packages/theme-chalk/src/form.scss +5 -1
  38. package/packages/theme-chalk/src/selector-panel.scss +36 -6
  39. package/packages/theme-chalk/src/selector.scss +66 -115
  40. package/packages/theme-chalk/src/tree.scss +1 -1
  41. package/src/index.js +1 -1
@@ -41,6 +41,8 @@
41
41
  :userSelectRange="userSelectRange"
42
42
  :rows="rows"
43
43
  @success="handleNewFlowSuccess"
44
+ @save="handleNewFlowSave"
45
+ @shrink="setShrink"
44
46
  :showOther="showOther"
45
47
  :flowLabelConfig="flowLabelConfig"
46
48
  :isEndMessage="isEndMessage"
@@ -59,7 +61,7 @@
59
61
  size="medium"
60
62
  class="es-icon"
61
63
  :icon="shrink ? 'es-icon-shouqi' : 'es-icon-zhankai'"
62
- @click="setShrink"
64
+ @click="setShrink(!shrink)"
63
65
  ></es-button>
64
66
  </div>
65
67
  <div class="es-opinion" v-show="!shrink">
@@ -229,7 +231,7 @@
229
231
  size="medium"
230
232
  class="es-icon"
231
233
  :icon="shrink ? 'es-icon-shouqi' : 'es-icon-zhankai'"
232
- @click="setShrink"
234
+ @click="setShrink(!shrink)"
233
235
  ></es-button>
234
236
  </div>
235
237
  <!-- 'es-icon-indent' : 'es-icon-increase' -->
@@ -1990,6 +1992,9 @@ export default {
1990
1992
  this.$refs.esContent.scrollTop += this.$refs.messagebox.clientHeight;
1991
1993
  });
1992
1994
  },
1995
+ handleNewFlowSave(businessIds){
1996
+ this.$emit('save', businessIds)
1997
+ },
1993
1998
  handleNewFlowSuccess(type) {
1994
1999
  if(type == 'taskRead'){
1995
2000
  this.$emit('successRead',type);
@@ -2124,10 +2129,10 @@ export default {
2124
2129
  }
2125
2130
  }
2126
2131
  },
2127
- setShrink() {
2128
- this.shrink = !this.shrink;
2132
+ setShrink(val) {
2133
+ this.shrink = val;
2129
2134
  this.styles = this.shrink
2130
- ? { width: 0 }
2135
+ ? { width: '80px' }
2131
2136
  : { width: this.width ? parseInt(this.width, 10) + 'px' : '' };
2132
2137
  this.$emit('shrink', this.shrink);
2133
2138
  },
@@ -382,6 +382,7 @@ export default {
382
382
  return mixArr;
383
383
  },
384
384
  getSelectUser(val) {
385
+ console.log(val,'val')
385
386
  this.newOptions = [];
386
387
  let data = {};
387
388
  if (this.mix) data = this.getMixList();
@@ -36,6 +36,9 @@
36
36
  "
37
37
  @btn-click="handleBtnClick"
38
38
  @selection-change="handleSelectionChange"
39
+ @search="handleSplitReadingSearch"
40
+ @page-size-change="handleSplitReadingSizeChange"
41
+ @page-current-change="handleSplitReadingCurrentChange"
39
42
  ></es-data-table>
40
43
  </div>
41
44
  </div>
@@ -280,6 +283,9 @@ export default {
280
283
  currentPage: 1,
281
284
  pageSize: 20,
282
285
  flowListCount: {},
286
+ splitReadingSearchKey: '',
287
+ splitReadingPageNum: 1,
288
+ splitReadingPageSize: 5,
283
289
  currentUserHasPresetInfoAuth: false,
284
290
  pressThead: [
285
291
  {
@@ -364,8 +370,8 @@ export default {
364
370
  },
365
371
  {
366
372
  title: '办理意见',
367
- align: 'center',
368
- showOverflowTooltip: true,
373
+ align: 'left',
374
+ showOverflowTooltip: false,
369
375
  'min-width':200,
370
376
  // sortable: true,
371
377
  field: 'doresult'
@@ -405,8 +411,8 @@ export default {
405
411
  },
406
412
  {
407
413
  title: '办理意见',
408
- align: 'center',
409
- showOverflowTooltip: true,
414
+ align: 'left',
415
+ showOverflowTooltip: false,
410
416
  width: 240,
411
417
  // sortable: true,
412
418
  field: 'doresult'
@@ -719,6 +725,19 @@ export default {
719
725
  type: 'text',
720
726
  contents:
721
727
  (this.taskReadName ? this.taskReadName : '非流程') + '列表'
728
+ },
729
+ {
730
+ type: 'search',
731
+ config: {
732
+ enterSubmit: true
733
+ },
734
+ contents: [
735
+ {
736
+ name: 'splitReadingSearchKey',
737
+ type: 'text',
738
+ placeholder: '分阅办理人名称...'
739
+ }
740
+ ]
722
741
  }
723
742
  ],
724
743
  circular: [
@@ -758,6 +777,22 @@ export default {
758
777
  totalCount: this.total
759
778
  };
760
779
  },
780
+ filteredSplitReadingData() {
781
+ if (!this.splitReadingSearchKey) {
782
+ return this.splitReadingData;
783
+ }
784
+ const key = String(this.splitReadingSearchKey).trim();
785
+ return this.splitReadingData.filter((item) => {
786
+ return item.userName && String(item.userName).includes(key);
787
+ });
788
+ },
789
+ splitReadingPageInfo() {
790
+ return {
791
+ pageNum: this.splitReadingPageNum,
792
+ pageSize: this.splitReadingPageSize,
793
+ totalCount: this.filteredSplitReadingData.length
794
+ };
795
+ },
761
796
  theads() {
762
797
  const _that = this;
763
798
  let newThead = {
@@ -835,9 +870,9 @@ export default {
835
870
  {
836
871
  label: '办理意见',
837
872
  field: 'doresult',
838
- align: 'center',
873
+ align: 'left',
839
874
  width: this.theadWidth.doresult,
840
- showOverflowTooltip: true,
875
+ showOverflowTooltip: false,
841
876
  'min-width':200,
842
877
  key: 'blyj',
843
878
  render: (h, params) => {
@@ -1014,11 +1049,11 @@ export default {
1014
1049
  {
1015
1050
  label: '办理意见',
1016
1051
  field: 'doresult',
1017
- align: 'center',
1052
+ align: 'left',
1018
1053
  'min-width':200,
1019
1054
  key: 'blyj',
1020
1055
  width: this.theadWidth.doresult,
1021
- showOverflowTooltip: true,
1056
+ showOverflowTooltip: false,
1022
1057
  render: (h, params) => {
1023
1058
  if (
1024
1059
  params.row.doresult &&
@@ -1457,13 +1492,18 @@ export default {
1457
1492
  }
1458
1493
  });
1459
1494
  }
1460
- return {
1495
+ const baseConfig = {
1461
1496
  type: item,
1462
1497
  checkbox: newContents.indexOf('untreatedRead') != -1,
1463
1498
  toolbar: this.toolbars[item],
1464
1499
  thead: data.length > 0 ? data : this.theads[item],
1465
1500
  showFormBtn: false
1466
1501
  };
1502
+ if (item === 'splitReading') {
1503
+ baseConfig.showFormBtn = true;
1504
+ baseConfig.page = this.splitReadingPageInfo;
1505
+ }
1506
+ return baseConfig;
1467
1507
  } else {
1468
1508
  if (!Object.prototype.hasOwnProperty.call(item, 'toolbar')) {
1469
1509
  let toolbars = this.toolbars[item.type];
@@ -1610,7 +1650,20 @@ export default {
1610
1650
  },
1611
1651
 
1612
1652
  methods: {
1613
- /**
1653
+ handleSplitReadingSearch(data) {
1654
+ if (data && data.splitReadingSearchKey !== undefined) {
1655
+ this.splitReadingSearchKey = data.splitReadingSearchKey;
1656
+ this.splitReadingPageNum = 1;
1657
+ }
1658
+ },
1659
+ handleSplitReadingSizeChange(size) {
1660
+ this.splitReadingPageSize = size;
1661
+ this.splitReadingPageNum = 1;
1662
+ },
1663
+ handleSplitReadingCurrentChange(page) {
1664
+ this.splitReadingPageNum = page;
1665
+ },
1666
+ /**
1614
1667
  * handleBatchDelete
1615
1668
  * @desc:批量删除
1616
1669
  * @author liufan
@@ -1794,10 +1847,15 @@ export default {
1794
1847
  this.flowListCount.sign = this.signData.length;
1795
1848
  this.flowListCount.signData = this.signData;
1796
1849
  return this.signData;
1797
- case 'splitReading':
1798
- this.flowListCount.splitReading = this.splitReadingData.length;
1799
- this.flowListCount.splitReadingData = this.splitReadingData;
1800
- return this.splitReadingData;
1850
+ case 'splitReading': {
1851
+ const splitData = this.filteredSplitReadingData;
1852
+ this.flowListCount.splitReading = splitData.length;
1853
+ this.flowListCount.splitReadingData = splitData;
1854
+ const start =
1855
+ (this.splitReadingPageNum - 1) * this.splitReadingPageSize;
1856
+ const end = start + this.splitReadingPageSize;
1857
+ return splitData.slice(start, end);
1858
+ }
1801
1859
  case 'circular':
1802
1860
  this.flowListCount.circular = this.circularData.length;
1803
1861
  this.flowListCount.circularData = this.circularData;