eoss-ui 0.8.39 → 0.8.41

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 (42) hide show
  1. package/lib/eoss-ui.common.js +771 -1097
  2. package/lib/flow-list.js +86 -24
  3. package/lib/flow.js +199 -120
  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 +40 -13
  18. package/packages/flow/src/main.vue +13 -5
  19. package/packages/flow/src/selectUser.vue +1 -0
  20. package/packages/flow/src/startTaskRead.vue +3 -0
  21. package/packages/flow-list/src/main.vue +75 -16
  22. package/packages/selector/src/main.vue +120 -269
  23. package/packages/selector-panel/src/main.vue +1071 -1036
  24. package/packages/selector-panel/src/tree.vue +24 -18
  25. package/packages/theme-chalk/lib/flow-list.css +1 -1
  26. package/packages/theme-chalk/lib/flow.css +1 -1
  27. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  28. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  29. package/packages/theme-chalk/lib/form.css +1 -1
  30. package/packages/theme-chalk/lib/index.css +1 -1
  31. package/packages/theme-chalk/lib/selector-panel.css +1 -1
  32. package/packages/theme-chalk/lib/selector.css +1 -1
  33. package/packages/theme-chalk/lib/tree.css +1 -1
  34. package/packages/theme-chalk/src/flow-list.scss +61 -55
  35. package/packages/theme-chalk/src/flow.scss +16 -2
  36. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  37. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  38. package/packages/theme-chalk/src/form.scss +5 -1
  39. package/packages/theme-chalk/src/selector-panel.scss +36 -6
  40. package/packages/theme-chalk/src/selector.scss +66 -115
  41. package/packages/theme-chalk/src/tree.scss +1 -1
  42. 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=25eb7336&
4840
+ var mainvue_type_template_id_25eb7336_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_25eb7336_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=25eb7336&
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'
@@ -5777,6 +5788,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5777
5788
  showSuggest: 'all', //筛选显示数据
5778
5789
  presetInfoListHiddenColumns: '', //隐藏表格展示数据
5779
5790
  canDelete: false, //是否展示操作按钮
5791
+ presetCanDelete: false, //预设列表是否展示操作按钮
5780
5792
  canBatchDelete: false, //是否可以批量删除
5781
5793
  isSuperRole: false, //是否管理员
5782
5794
  isShowReset: false, //是否显示重设记录
@@ -5930,6 +5942,16 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5930
5942
  splitReading: [{
5931
5943
  type: 'text',
5932
5944
  contents: (this.taskReadName ? this.taskReadName : '非流程') + '列表'
5945
+ }, {
5946
+ type: 'search',
5947
+ config: {
5948
+ enterSubmit: true
5949
+ },
5950
+ contents: [{
5951
+ name: 'splitReadingSearchKey',
5952
+ type: 'text',
5953
+ placeholder: '分阅办理人名称...'
5954
+ }]
5933
5955
  }],
5934
5956
  circular: [{
5935
5957
  type: 'text',
@@ -5959,6 +5981,22 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5959
5981
  totalCount: this.total
5960
5982
  };
5961
5983
  },
5984
+ filteredSplitReadingData: function filteredSplitReadingData() {
5985
+ if (!this.splitReadingSearchKey) {
5986
+ return this.splitReadingData;
5987
+ }
5988
+ var key = String(this.splitReadingSearchKey).trim();
5989
+ return this.splitReadingData.filter(function (item) {
5990
+ return item.userName && String(item.userName).includes(key);
5991
+ });
5992
+ },
5993
+ splitReadingPageInfo: function splitReadingPageInfo() {
5994
+ return {
5995
+ pageNum: this.splitReadingPageNum,
5996
+ pageSize: this.splitReadingPageSize,
5997
+ totalCount: this.filteredSplitReadingData.length
5998
+ };
5999
+ },
5962
6000
  theads: function theads() {
5963
6001
  var _this2 = this;
5964
6002
 
@@ -6027,9 +6065,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6027
6065
  }, {
6028
6066
  label: '办理意见',
6029
6067
  field: 'doresult',
6030
- align: 'center',
6068
+ align: 'left',
6031
6069
  width: this.theadWidth.doresult,
6032
- showOverflowTooltip: true,
6070
+ showOverflowTooltip: false,
6033
6071
  'min-width': 200,
6034
6072
  key: 'blyj',
6035
6073
  render: function render(h, params) {
@@ -6155,11 +6193,11 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6155
6193
  }, {
6156
6194
  label: '办理意见',
6157
6195
  field: 'doresult',
6158
- align: 'center',
6196
+ align: 'left',
6159
6197
  'min-width': 200,
6160
6198
  key: 'blyj',
6161
6199
  width: this.theadWidth.doresult,
6162
- showOverflowTooltip: true,
6200
+ showOverflowTooltip: false,
6163
6201
  render: function render(h, params) {
6164
6202
  if (params.row.doresult && (params.row.doresult.startsWith('http') || params.row.doresult.startsWith('https'))) {
6165
6203
  return h('img', {
@@ -6486,13 +6524,18 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6486
6524
  }
6487
6525
  });
6488
6526
  }
6489
- return {
6527
+ var baseConfig = {
6490
6528
  type: item,
6491
6529
  checkbox: newContents.indexOf('untreatedRead') != -1,
6492
6530
  toolbar: _this3.toolbars[item],
6493
6531
  thead: data.length > 0 ? data : _this3.theads[item],
6494
6532
  showFormBtn: false
6495
6533
  };
6534
+ if (item === 'splitReading') {
6535
+ baseConfig.showFormBtn = true;
6536
+ baseConfig.page = _this3.splitReadingPageInfo;
6537
+ }
6538
+ return baseConfig;
6496
6539
  } else {
6497
6540
  if (!Object.prototype.hasOwnProperty.call(item, 'toolbar')) {
6498
6541
  var toolbars = _this3.toolbars[item.type];
@@ -6598,7 +6641,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6598
6641
  return _this4.presetInfoListHiddenColumns.indexOf(items.key) == -1;
6599
6642
  });
6600
6643
  }
6601
- if (!this.canDelete) table.splice(table.length - 1, 1);
6644
+ if (!this.presetCanDelete) table.splice(table.length - 1, 1);
6602
6645
  return table;
6603
6646
  }
6604
6647
  },
@@ -6649,12 +6692,26 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6649
6692
 
6650
6693
 
6651
6694
  methods: {
6695
+ handleSplitReadingSearch: function handleSplitReadingSearch(data) {
6696
+ if (data && data.splitReadingSearchKey !== undefined) {
6697
+ this.splitReadingSearchKey = data.splitReadingSearchKey;
6698
+ this.splitReadingPageNum = 1;
6699
+ }
6700
+ },
6701
+ handleSplitReadingSizeChange: function handleSplitReadingSizeChange(size) {
6702
+ this.splitReadingPageSize = size;
6703
+ this.splitReadingPageNum = 1;
6704
+ },
6705
+ handleSplitReadingCurrentChange: function handleSplitReadingCurrentChange(page) {
6706
+ this.splitReadingPageNum = page;
6707
+ },
6708
+
6652
6709
  /**
6653
- * handleBatchDelete
6654
- * @desc:批量删除
6655
- * @author liufan
6656
- * @date 2025年12月31日
6657
- **/
6710
+ * handleBatchDelete
6711
+ * @desc:批量删除
6712
+ * @author liufan
6713
+ * @date 2025年12月31日
6714
+ **/
6658
6715
  handleBatchDelete: function handleBatchDelete() {
6659
6716
  var _this6 = this;
6660
6717
 
@@ -6870,9 +6927,14 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6870
6927
  this.flowListCount.signData = this.signData;
6871
6928
  return this.signData;
6872
6929
  case 'splitReading':
6873
- this.flowListCount.splitReading = this.splitReadingData.length;
6874
- this.flowListCount.splitReadingData = this.splitReadingData;
6875
- return this.splitReadingData;
6930
+ {
6931
+ var splitData = this.filteredSplitReadingData;
6932
+ this.flowListCount.splitReading = splitData.length;
6933
+ this.flowListCount.splitReadingData = splitData;
6934
+ var start = (this.splitReadingPageNum - 1) * this.splitReadingPageSize;
6935
+ var end = start + this.splitReadingPageSize;
6936
+ return splitData.slice(start, end);
6937
+ }
6876
6938
  case 'circular':
6877
6939
  this.flowListCount.circular = this.circularData.length;
6878
6940
  this.flowListCount.circularData = this.circularData;
@@ -7442,7 +7504,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7442
7504
  }
7443
7505
  _this20.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
7444
7506
  _this20.currentUserHasPresetInfoAuth = currentUserHasPresetInfoAuth;
7445
- _this20.canDelete = canDelete;
7507
+ _this20.presetCanDelete = canDelete;
7446
7508
  } else {
7447
7509
  _this20.$message.error(message || '系统错误,请联系管理员!');
7448
7510
  }
@@ -7470,7 +7532,7 @@ var componentNormalizer = __webpack_require__(3);
7470
7532
 
7471
7533
  var component = Object(componentNormalizer["a" /* default */])(
7472
7534
  src_mainvue_type_script_lang_js_,
7473
- mainvue_type_template_id_6a97d245_render,
7535
+ mainvue_type_template_id_25eb7336_render,
7474
7536
  staticRenderFns,
7475
7537
  false,
7476
7538
  null,