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
package/lib/flow-list.js CHANGED
@@ -4836,8 +4836,8 @@ module.exports = require("qs");
4836
4836
  // ESM COMPAT FLAG
4837
4837
  __webpack_require__.r(__webpack_exports__);
4838
4838
 
4839
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-list/src/main.vue?vue&type=template&id=6a97d245&
4840
- var mainvue_type_template_id_6a97d245_render = function () {
4839
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-list/src/main.vue?vue&type=template&id=608ddef1&
4840
+ var mainvue_type_template_id_608ddef1_render = function () {
4841
4841
  var _vm = this
4842
4842
  var _h = _vm.$createElement
4843
4843
  var _c = _vm._self._c || _h
@@ -4905,6 +4905,11 @@ var mainvue_type_template_id_6a97d245_render = function () {
4905
4905
  "cell-click": _vm.handleCellClick,
4906
4906
  "btn-click": _vm.handleBtnClick,
4907
4907
  "selection-change": _vm.handleSelectionChange,
4908
+ search: _vm.handleSplitReadingSearch,
4909
+ "page-size-change":
4910
+ _vm.handleSplitReadingSizeChange,
4911
+ "page-current-change":
4912
+ _vm.handleSplitReadingCurrentChange,
4908
4913
  },
4909
4914
  },
4910
4915
  "es-data-table",
@@ -5269,10 +5274,10 @@ var mainvue_type_template_id_6a97d245_render = function () {
5269
5274
  )
5270
5275
  }
5271
5276
  var staticRenderFns = []
5272
- mainvue_type_template_id_6a97d245_render._withStripped = true
5277
+ mainvue_type_template_id_608ddef1_render._withStripped = true
5273
5278
 
5274
5279
 
5275
- // CONCATENATED MODULE: ./packages/flow-list/src/main.vue?vue&type=template&id=6a97d245&
5280
+ // CONCATENATED MODULE: ./packages/flow-list/src/main.vue?vue&type=template&id=608ddef1&
5276
5281
 
5277
5282
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5278
5283
  var regenerator_ = __webpack_require__(4);
@@ -5467,6 +5472,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5467
5472
  //
5468
5473
  //
5469
5474
  //
5475
+ //
5476
+ //
5477
+ //
5470
5478
 
5471
5479
 
5472
5480
 
@@ -5564,6 +5572,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5564
5572
  currentPage: 1,
5565
5573
  pageSize: 20,
5566
5574
  flowListCount: {},
5575
+ splitReadingSearchKey: '',
5576
+ splitReadingPageNum: 1,
5577
+ splitReadingPageSize: 5,
5567
5578
  currentUserHasPresetInfoAuth: false,
5568
5579
  pressThead: [{
5569
5580
  title: '催办节点',
@@ -5632,8 +5643,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5632
5643
  }
5633
5644
  }, {
5634
5645
  title: '办理意见',
5635
- align: 'center',
5636
- showOverflowTooltip: true,
5646
+ align: 'left',
5647
+ showOverflowTooltip: false,
5637
5648
  'min-width': 200,
5638
5649
  // sortable: true,
5639
5650
  field: 'doresult'
@@ -5662,8 +5673,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5662
5673
  field: 'userName'
5663
5674
  }, {
5664
5675
  title: '办理意见',
5665
- align: 'center',
5666
- showOverflowTooltip: true,
5676
+ align: 'left',
5677
+ showOverflowTooltip: false,
5667
5678
  width: 240,
5668
5679
  // sortable: true,
5669
5680
  field: 'doresult'
@@ -5930,6 +5941,16 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5930
5941
  splitReading: [{
5931
5942
  type: 'text',
5932
5943
  contents: (this.taskReadName ? this.taskReadName : '非流程') + '列表'
5944
+ }, {
5945
+ type: 'search',
5946
+ config: {
5947
+ enterSubmit: true
5948
+ },
5949
+ contents: [{
5950
+ name: 'splitReadingSearchKey',
5951
+ type: 'text',
5952
+ placeholder: '分阅办理人名称...'
5953
+ }]
5933
5954
  }],
5934
5955
  circular: [{
5935
5956
  type: 'text',
@@ -5959,6 +5980,22 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5959
5980
  totalCount: this.total
5960
5981
  };
5961
5982
  },
5983
+ filteredSplitReadingData: function filteredSplitReadingData() {
5984
+ if (!this.splitReadingSearchKey) {
5985
+ return this.splitReadingData;
5986
+ }
5987
+ var key = String(this.splitReadingSearchKey).trim();
5988
+ return this.splitReadingData.filter(function (item) {
5989
+ return item.userName && String(item.userName).includes(key);
5990
+ });
5991
+ },
5992
+ splitReadingPageInfo: function splitReadingPageInfo() {
5993
+ return {
5994
+ pageNum: this.splitReadingPageNum,
5995
+ pageSize: this.splitReadingPageSize,
5996
+ totalCount: this.filteredSplitReadingData.length
5997
+ };
5998
+ },
5962
5999
  theads: function theads() {
5963
6000
  var _this2 = this;
5964
6001
 
@@ -6027,9 +6064,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6027
6064
  }, {
6028
6065
  label: '办理意见',
6029
6066
  field: 'doresult',
6030
- align: 'center',
6067
+ align: 'left',
6031
6068
  width: this.theadWidth.doresult,
6032
- showOverflowTooltip: true,
6069
+ showOverflowTooltip: false,
6033
6070
  'min-width': 200,
6034
6071
  key: 'blyj',
6035
6072
  render: function render(h, params) {
@@ -6155,11 +6192,11 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6155
6192
  }, {
6156
6193
  label: '办理意见',
6157
6194
  field: 'doresult',
6158
- align: 'center',
6195
+ align: 'left',
6159
6196
  'min-width': 200,
6160
6197
  key: 'blyj',
6161
6198
  width: this.theadWidth.doresult,
6162
- showOverflowTooltip: true,
6199
+ showOverflowTooltip: false,
6163
6200
  render: function render(h, params) {
6164
6201
  if (params.row.doresult && (params.row.doresult.startsWith('http') || params.row.doresult.startsWith('https'))) {
6165
6202
  return h('img', {
@@ -6486,13 +6523,18 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6486
6523
  }
6487
6524
  });
6488
6525
  }
6489
- return {
6526
+ var baseConfig = {
6490
6527
  type: item,
6491
6528
  checkbox: newContents.indexOf('untreatedRead') != -1,
6492
6529
  toolbar: _this3.toolbars[item],
6493
6530
  thead: data.length > 0 ? data : _this3.theads[item],
6494
6531
  showFormBtn: false
6495
6532
  };
6533
+ if (item === 'splitReading') {
6534
+ baseConfig.showFormBtn = true;
6535
+ baseConfig.page = _this3.splitReadingPageInfo;
6536
+ }
6537
+ return baseConfig;
6496
6538
  } else {
6497
6539
  if (!Object.prototype.hasOwnProperty.call(item, 'toolbar')) {
6498
6540
  var toolbars = _this3.toolbars[item.type];
@@ -6649,12 +6691,26 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6649
6691
 
6650
6692
 
6651
6693
  methods: {
6694
+ handleSplitReadingSearch: function handleSplitReadingSearch(data) {
6695
+ if (data && data.splitReadingSearchKey !== undefined) {
6696
+ this.splitReadingSearchKey = data.splitReadingSearchKey;
6697
+ this.splitReadingPageNum = 1;
6698
+ }
6699
+ },
6700
+ handleSplitReadingSizeChange: function handleSplitReadingSizeChange(size) {
6701
+ this.splitReadingPageSize = size;
6702
+ this.splitReadingPageNum = 1;
6703
+ },
6704
+ handleSplitReadingCurrentChange: function handleSplitReadingCurrentChange(page) {
6705
+ this.splitReadingPageNum = page;
6706
+ },
6707
+
6652
6708
  /**
6653
- * handleBatchDelete
6654
- * @desc:批量删除
6655
- * @author liufan
6656
- * @date 2025年12月31日
6657
- **/
6709
+ * handleBatchDelete
6710
+ * @desc:批量删除
6711
+ * @author liufan
6712
+ * @date 2025年12月31日
6713
+ **/
6658
6714
  handleBatchDelete: function handleBatchDelete() {
6659
6715
  var _this6 = this;
6660
6716
 
@@ -6870,9 +6926,14 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6870
6926
  this.flowListCount.signData = this.signData;
6871
6927
  return this.signData;
6872
6928
  case 'splitReading':
6873
- this.flowListCount.splitReading = this.splitReadingData.length;
6874
- this.flowListCount.splitReadingData = this.splitReadingData;
6875
- return this.splitReadingData;
6929
+ {
6930
+ var splitData = this.filteredSplitReadingData;
6931
+ this.flowListCount.splitReading = splitData.length;
6932
+ this.flowListCount.splitReadingData = splitData;
6933
+ var start = (this.splitReadingPageNum - 1) * this.splitReadingPageSize;
6934
+ var end = start + this.splitReadingPageSize;
6935
+ return splitData.slice(start, end);
6936
+ }
6876
6937
  case 'circular':
6877
6938
  this.flowListCount.circular = this.circularData.length;
6878
6939
  this.flowListCount.circularData = this.circularData;
@@ -7470,7 +7531,7 @@ var componentNormalizer = __webpack_require__(3);
7470
7531
 
7471
7532
  var component = Object(componentNormalizer["a" /* default */])(
7472
7533
  src_mainvue_type_script_lang_js_,
7473
- mainvue_type_template_id_6a97d245_render,
7534
+ mainvue_type_template_id_608ddef1_render,
7474
7535
  staticRenderFns,
7475
7536
  false,
7476
7537
  null,