eoss-ui 0.6.51 → 0.6.53

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 (76) hide show
  1. package/lib/button-group.js +58 -55
  2. package/lib/button.js +58 -55
  3. package/lib/checkbox-group.js +61 -58
  4. package/lib/data-table-form.js +58 -55
  5. package/lib/data-table.js +65 -62
  6. package/lib/date-picker.js +58 -55
  7. package/lib/dialog.js +58 -55
  8. package/lib/eoss-ui.common.js +422 -335
  9. package/lib/flow-group.js +58 -55
  10. package/lib/flow-list.js +87 -61
  11. package/lib/flow.js +187 -144
  12. package/lib/form.js +62 -59
  13. package/lib/handle-user.js +58 -55
  14. package/lib/handler.js +58 -55
  15. package/lib/icon.js +58 -55
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +58 -55
  18. package/lib/input.js +59 -56
  19. package/lib/login.js +61 -58
  20. package/lib/main.js +126 -103
  21. package/lib/menu.js +1 -1
  22. package/lib/nav.js +61 -58
  23. package/lib/page.js +58 -55
  24. package/lib/pagination.js +58 -55
  25. package/lib/player.js +58 -55
  26. package/lib/qr-code.js +58 -55
  27. package/lib/radio-group.js +61 -58
  28. package/lib/retrial-auth.js +58 -55
  29. package/lib/select-ganged.js +59 -56
  30. package/lib/select.js +61 -57
  31. package/lib/selector-panel.js +61 -58
  32. package/lib/selector.js +58 -55
  33. package/lib/sizer.js +58 -55
  34. package/lib/steps.js +61 -58
  35. package/lib/switch.js +58 -55
  36. package/lib/table-form.js +58 -55
  37. package/lib/tabs.js +58 -55
  38. package/lib/theme-chalk/index.css +1 -1
  39. package/lib/theme-chalk/upload.css +1 -1
  40. package/lib/tips.js +61 -58
  41. package/lib/tree-group.js +58 -55
  42. package/lib/tree.js +61 -58
  43. package/lib/upload.js +72 -69
  44. package/lib/utils/util.js +54 -51
  45. package/lib/wujie.js +58 -55
  46. package/lib/wxlogin.js +58 -55
  47. package/package.json +2 -2
  48. package/packages/checkbox-group/src/main.vue +2 -2
  49. package/packages/data-table/src/main.vue +3 -3
  50. package/packages/flow/src/reset.vue +4 -6
  51. package/packages/flow/src/startTaskRead.vue +180 -136
  52. package/packages/flow-list/src/main.vue +25 -2
  53. package/packages/form/src/main.vue +3 -3
  54. package/packages/input/src/main.vue +2 -2
  55. package/packages/login/src/main.vue +2 -2
  56. package/packages/main/src/default/index.vue +7 -1
  57. package/packages/main/src/main.vue +4 -1
  58. package/packages/main/src/public/search.vue +8 -3
  59. package/packages/main/src/simplicity/apps.vue +2 -2
  60. package/packages/main/src/simplicity/index.vue +3 -3
  61. package/packages/main/src/simplicity/user.vue +2 -2
  62. package/packages/menu/src/main.vue +2 -2
  63. package/packages/nav/src/main.vue +2 -2
  64. package/packages/radio-group/src/main.vue +2 -2
  65. package/packages/select/src/main.vue +4 -3
  66. package/packages/select-ganged/src/main.vue +2 -2
  67. package/packages/selector-panel/src/main.vue +2 -2
  68. package/packages/steps/src/main.vue +2 -2
  69. package/packages/theme-chalk/lib/index.css +1 -1
  70. package/packages/theme-chalk/lib/upload.css +1 -1
  71. package/packages/theme-chalk/src/upload.scss +1 -0
  72. package/packages/tips/src/main.vue +2 -2
  73. package/packages/tree/src/main.vue +2 -2
  74. package/packages/upload/src/main.vue +18 -10
  75. package/src/index.js +1 -1
  76. package/src/utils/util.js +15 -12
package/lib/flow.js CHANGED
@@ -114,8 +114,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
114
114
  **/
115
115
 
116
116
  /* eslint-disable indent */
117
- var sm2 = __webpack_require__(10).sm2;
118
- var lodash = __webpack_require__(11);
117
+ var sm2 = __webpack_require__(11).sm2;
118
+ var lodash = __webpack_require__(10);
119
119
 
120
120
 
121
121
 
@@ -591,61 +591,64 @@ var ajaxStream = function ajaxStream(_ref2) {
591
591
  if (line === '') {
592
592
  return;
593
593
  }
594
- if (line.startsWith('data:')) {
595
- var _data = line.replace('data:', '').trim();
596
- if (_data) {
597
- try {
598
- // 假设数据是 JSON 格式
599
- var parsedData = JSON.parse(_data);
600
- info.time = parsedData.time;
601
- info.conversationId = parsedData.conversationId;
602
- var thinkRegex = /<think>([\s\S]*?)<\/think>([\s\S]*)?/;
603
- var match = parsedData.message.match(thinkRegex);
604
- if (match) {
605
- var thinkContent = match[1] ? match[1].trim() : ''; // <think> 标签内的数据
606
- var content = match[2] ? match[2].trim() : ''; // <think> 标签后的数据
607
- // 更新 AI 消息内容
608
- info.thinkContent += thinkContent;
609
- info.content += content;
594
+ // if (line.startsWith('data:')) {
595
+ var data = line.startsWith('data:') ? line.replace('data:', '').trim() : line.trim();
596
+ if (data) {
597
+ try {
598
+ // 假设数据是 JSON 格式
599
+ var parsedData = JSON.parse(data);
600
+ info.time = parsedData.time;
601
+ info.conversationId = parsedData.conversationId;
602
+ var thinkRegex = /<think>([\s\S]*?)<\/think>([\s\S]*)?/;
603
+ var match = parsedData.message.match(thinkRegex);
604
+ if (match) {
605
+ var thinkContent = match[1] ? match[1].trim() : ''; // <think> 标签内的数据
606
+ var content = match[2] ? match[2].trim() : ''; // <think> 标签后的数据
607
+ // 更新 AI 消息内容
608
+ info.thinkContent += thinkContent;
609
+ info.content += content;
610
+ } else {
611
+ var startRegex = /<think>([\s\S]*)/;
612
+ var endRegex = /([\s\S]*?)<\/think>([\s\S]*)?/;
613
+ var start = parsedData.message.match(startRegex);
614
+ var end = parsedData.message.match(endRegex);
615
+ if (start) {
616
+ hasThink = true;
617
+ var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
618
+ info.thinkContent += _thinkContent;
619
+ } else if (hasThink === false) {
620
+ info.content += parsedData.message;
621
+ chunks += parsedData.message;
610
622
  } else {
611
- var startRegex = /<think>([\s\S]*)/;
612
- var endRegex = /([\s\S]*?)<\/think>([\s\S]*)?/;
613
- var start = parsedData.message.match(startRegex);
614
- var end = parsedData.message.match(endRegex);
615
- if (start) {
616
- hasThink = true;
617
- var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
618
- info.thinkContent += _thinkContent;
619
- } else if (hasThink === false) {
623
+ if (end) {
624
+ finishThink = true;
625
+ var _thinkContent2 = end[1] ? end[1].trim() : ''; // <think> 标签后的数据
626
+ var _content = end[2] ? end[2].trim() : '';
627
+ // 更新 AI 消息内容
628
+ info.thinkContent += _thinkContent2;
629
+ info.content += _content;
630
+ chunks += _content;
631
+ } else if (finishThink) {
620
632
  info.content += parsedData.message;
621
633
  chunks += parsedData.message;
622
634
  } else {
623
- if (end) {
624
- finishThink = true;
625
- var _thinkContent2 = end[1] ? end[1].trim() : ''; // <think> 标签后的数据
626
- var _content = end[2] ? end[2].trim() : '';
627
- // 更新 AI 消息内容
628
- info.thinkContent += _thinkContent2;
629
- info.content += _content;
630
- chunks += _content;
631
- } else if (finishThink) {
632
- info.content += parsedData.message;
633
- chunks += parsedData.message;
634
- } else {
635
- info.thinkContent += parsedData.message;
636
- }
635
+ info.thinkContent += parsedData.message;
637
636
  }
638
637
  }
639
- primeval += parsedData.message;
640
- done = parsedData.done;
641
- } catch (parseError) {
642
- console.error('解析数据出错:', parseError);
643
638
  }
639
+ primeval += parsedData.message;
640
+ done = parsedData.done;
641
+ } catch (parseError) {
642
+ remainingData += line;
643
+ console.log('解析数据出错:', parseError);
644
644
  }
645
- } else {
646
- // 保存未处理完的部分数据
647
- remainingData += line + '\n';
648
645
  }
646
+ // }
647
+ // else {
648
+ // console.log('未处理的数据:', line);
649
+ // // 保存未处理完的部分数据
650
+ // remainingData += line.replace('data:', '\ndata:');
651
+ // }
649
652
  });
650
653
  info.primeval = primeval;
651
654
  info.chunk = chunks;
@@ -654,7 +657,7 @@ var ajaxStream = function ajaxStream(_ref2) {
654
657
  partialData = remainingData;
655
658
  progress && progress({ message: info, controller: controller, done: done });
656
659
  }
657
- })).then(function () {
660
+ })).then(function (results) {
658
661
  // 处理请求完成后的信息
659
662
  var originalText = info.content;
660
663
  var regex = /<think>([\s\S]*?)<\/think>([\s\S]*)/;
@@ -663,8 +666,8 @@ var ajaxStream = function ajaxStream(_ref2) {
663
666
  info.thinkContent = match ? match[1].trim() : '';
664
667
  info.content = match ? match[2].trim() : '';
665
668
  }
666
- success && success({ message: info, controller: controller });
667
- }).catch(function () {
669
+ success && success({ message: info, controller: controller, results: results });
670
+ }).catch(function (results) {
668
671
  // 处理请求完成后的信息
669
672
  var originalText = info.content || '';
670
673
  var regex = /<think>([\s\S]*?)<\/think>([\s\S]*)/;
@@ -673,7 +676,7 @@ var ajaxStream = function ajaxStream(_ref2) {
673
676
  info.thinkContent = match ? match[1].trim() : '';
674
677
  info.content = match ? match[2].trim() : '';
675
678
  }
676
- fail && fail({ status: 1, message: info, controller: controller });
679
+ fail && fail({ status: 1, message: info, controller: controller, results: results });
677
680
  });
678
681
  } catch (error) {
679
682
  console.error('聊天请求出错:', error);
@@ -770,7 +773,7 @@ var busEmit = function busEmit(that, _ref3) {
770
773
 
771
774
  var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus : null;
772
775
  if (bus) {
773
- bus.$emit(method, args);
776
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
774
777
  } else {
775
778
  win.parent.postMessage({ method: method, query: args }, '*');
776
779
  }
@@ -4155,13 +4158,13 @@ module.exports = require("stompjs");
4155
4158
  /* 10 */
4156
4159
  /***/ (function(module, exports) {
4157
4160
 
4158
- module.exports = require("sm-crypto");
4161
+ module.exports = require("lodash");
4159
4162
 
4160
4163
  /***/ }),
4161
4164
  /* 11 */
4162
4165
  /***/ (function(module, exports) {
4163
4166
 
4164
- module.exports = require("lodash");
4167
+ module.exports = require("sm-crypto");
4165
4168
 
4166
4169
  /***/ }),
4167
4170
  /* 12 */,
@@ -12053,8 +12056,8 @@ var processReject_component = Object(componentNormalizer["a" /* default */])(
12053
12056
  )
12054
12057
 
12055
12058
  /* harmony default export */ var processReject = (processReject_component.exports);
12056
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=template&id=1d99a67a&
12057
- var startTaskReadvue_type_template_id_1d99a67a_render = function () {
12059
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=template&id=611e00dd&
12060
+ var startTaskReadvue_type_template_id_611e00dd_render = function () {
12058
12061
  var _vm = this
12059
12062
  var _h = _vm.$createElement
12060
12063
  var _c = _vm._self._c || _h
@@ -12395,9 +12398,9 @@ var startTaskReadvue_type_template_id_1d99a67a_render = function () {
12395
12398
  },
12396
12399
  [
12397
12400
  _vm._v(
12398
- "\n " +
12401
+ "\n " +
12399
12402
  _vm._s(item.shortName) +
12400
- "\n "
12403
+ "\n "
12401
12404
  ),
12402
12405
  ]
12403
12406
  )
@@ -12419,7 +12422,7 @@ var startTaskReadvue_type_template_id_1d99a67a_render = function () {
12419
12422
  _vm.nextNode.noticeType.length != 0 &&
12420
12423
  _vm.configInfo.isCdjxjTaskHandle != "true",
12421
12424
  expression:
12422
- "\n nextNode.noticeType.length != 0 &&\n configInfo.isCdjxjTaskHandle != 'true'\n ",
12425
+ "\n nextNode.noticeType.length != 0 &&\n configInfo.isCdjxjTaskHandle != 'true'\n ",
12423
12426
  },
12424
12427
  ],
12425
12428
  attrs: { prop: "nextNode", label: "通知消息" },
@@ -12478,11 +12481,11 @@ var startTaskReadvue_type_template_id_1d99a67a_render = function () {
12478
12481
  1
12479
12482
  )
12480
12483
  }
12481
- var startTaskReadvue_type_template_id_1d99a67a_staticRenderFns = []
12482
- startTaskReadvue_type_template_id_1d99a67a_render._withStripped = true
12484
+ var startTaskReadvue_type_template_id_611e00dd_staticRenderFns = []
12485
+ startTaskReadvue_type_template_id_611e00dd_render._withStripped = true
12483
12486
 
12484
12487
 
12485
- // CONCATENATED MODULE: ./packages/flow/src/startTaskRead.vue?vue&type=template&id=1d99a67a&
12488
+ // CONCATENATED MODULE: ./packages/flow/src/startTaskRead.vue?vue&type=template&id=611e00dd&
12486
12489
 
12487
12490
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=script&lang=js&
12488
12491
  var startTaskReadvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -12647,6 +12650,15 @@ var startTaskReadvue_type_script_lang_js_components;
12647
12650
  //
12648
12651
  //
12649
12652
  //
12653
+ //
12654
+ //
12655
+ //
12656
+ //
12657
+ //
12658
+ //
12659
+ //
12660
+ //
12661
+ //
12650
12662
 
12651
12663
 
12652
12664
 
@@ -12660,7 +12672,11 @@ var startTaskReadvue_type_script_lang_js_components;
12660
12672
  type: { type: String, default: '' },
12661
12673
  option: { type: String, default: '' },
12662
12674
  typeCode: { type: String, default: '' },
12663
- taskExamine: { type: Object, default: function _default() {} }
12675
+ taskExamine: { type: Object, default: function _default() {} },
12676
+ readParams: {
12677
+ type: [Object, undefined],
12678
+ default: undefined
12679
+ }
12664
12680
  },
12665
12681
  data: function data() {
12666
12682
  return {
@@ -12719,6 +12735,9 @@ var startTaskReadvue_type_script_lang_js_components;
12719
12735
  },
12720
12736
  mounted: function mounted() {
12721
12737
  this.newsNoice = this.newsInfo;
12738
+ if (this.readParams) {
12739
+ this.getMessage();
12740
+ }
12722
12741
  this.getFind();
12723
12742
  if (util["a" /* default */].getStorage('mainConfig')) {
12724
12743
  this.orgId = JSON.parse(util["a" /* default */].getStorage('mainConfig')).userModel.orgId;
@@ -12726,9 +12745,27 @@ var startTaskReadvue_type_script_lang_js_components;
12726
12745
  },
12727
12746
 
12728
12747
  methods: {
12729
- toTaskTransfer: function toTaskTransfer() {
12748
+ //获取通知信息
12749
+ getMessage: function getMessage() {
12730
12750
  var _this = this;
12731
12751
 
12752
+ var params = {
12753
+ appId: this.readParams.appId
12754
+ };
12755
+ util["a" /* default */].ajax({ url: api["N" /* getNotificationMsg */], params: params, methods: 'post' }).then(function (res) {
12756
+ if (res.status === 'success') {
12757
+ _this.newsNoice = res.message;
12758
+ }
12759
+ }).catch(function (err) {
12760
+ _this.loading = false;
12761
+ if (err.message && err.message !== 'canceled') {
12762
+ _this.$message.error(err.message);
12763
+ }
12764
+ });
12765
+ },
12766
+ toTaskTransfer: function toTaskTransfer() {
12767
+ var _this2 = this;
12768
+
12732
12769
  var opinion = this.opinion,
12733
12770
  pendingId = this.pendingId,
12734
12771
  taskExamine = this.taskExamine;
@@ -12752,16 +12789,16 @@ var startTaskReadvue_type_script_lang_js_components;
12752
12789
  taskExamine = _res$data.taskExamine;
12753
12790
 
12754
12791
  if (status == 'success') {
12755
- _this.isMultipleTransfer(nodeInfoMap.nodeExtAttr.userSelectionType, choiceOrgId, choiceDeptId);
12756
- _this.nextNode.nodeName = taskExamine.nodeName;
12757
- _this.transferInfo = taskExamine;
12792
+ _this2.isMultipleTransfer(nodeInfoMap.nodeExtAttr.userSelectionType, choiceOrgId, choiceDeptId);
12793
+ _this2.nextNode.nodeName = taskExamine.nodeName;
12794
+ _this2.transferInfo = taskExamine;
12758
12795
  } else {
12759
- _this.$message.error(message || '系统错误,请联系管理员!');
12796
+ _this2.$message.error(message || '系统错误,请联系管理员!');
12760
12797
  }
12761
12798
  }).catch(function (err) {
12762
- _this.loading = false;
12799
+ _this2.loading = false;
12763
12800
  if (err.message && err.message !== 'canceled') {
12764
- _this.$message.error(err.message);
12801
+ _this2.$message.error(err.message);
12765
12802
  }
12766
12803
  });
12767
12804
  },
@@ -12817,7 +12854,7 @@ var startTaskReadvue_type_script_lang_js_components;
12817
12854
  }
12818
12855
  },
12819
12856
  handleSelectCheck: function handleSelectCheck(val, data) {
12820
- var _this2 = this;
12857
+ var _this3 = this;
12821
12858
 
12822
12859
  var userIds = data.userIds,
12823
12860
  userNames = data.userNames;
@@ -12826,10 +12863,10 @@ var startTaskReadvue_type_script_lang_js_components;
12826
12863
  var newUserIds = userIds.split(',');
12827
12864
  var newUserNames = userNames.split(',');
12828
12865
  newUserIds.map(function (item, index) {
12829
- _this2.nextNode.nextUser.push(item);
12830
- _this2.userOptions.push({ id: item, name: newUserNames[index] });
12866
+ _this3.nextNode.nextUser.push(item);
12867
+ _this3.userOptions.push({ id: item, name: newUserNames[index] });
12831
12868
 
12832
- _this2.selectUserList.push({
12869
+ _this3.selectUserList.push({
12833
12870
  showid: item,
12834
12871
  showname: newUserNames[index]
12835
12872
  });
@@ -12856,7 +12893,7 @@ var startTaskReadvue_type_script_lang_js_components;
12856
12893
  }
12857
12894
  },
12858
12895
  toStartTaskRead: function toStartTaskRead() {
12859
- var _this3 = this;
12896
+ var _this4 = this;
12860
12897
 
12861
12898
  var params = {
12862
12899
  url: api["Vb" /* toStartTaskRead */],
@@ -12868,18 +12905,18 @@ var startTaskReadvue_type_script_lang_js_components;
12868
12905
  data = res.data;
12869
12906
 
12870
12907
  if (status === 'success') {
12871
- _this3.configInfo = data;
12872
- _this3.isMultiple();
12908
+ _this4.configInfo = data;
12909
+ _this4.isMultiple();
12873
12910
  }
12874
12911
  }).catch(function (err) {
12875
- _this3.loading = false;
12912
+ _this4.loading = false;
12876
12913
  if (err.message && err.message !== 'canceled') {
12877
- _this3.$message.error(err.message);
12914
+ _this4.$message.error(err.message);
12878
12915
  }
12879
12916
  });
12880
12917
  },
12881
12918
  changeSelectUser: function changeSelectUser(val, type) {
12882
- var _this4 = this;
12919
+ var _this5 = this;
12883
12920
 
12884
12921
  var nextUser = val.nextUser,
12885
12922
  options = val.options,
@@ -12888,45 +12925,48 @@ var startTaskReadvue_type_script_lang_js_components;
12888
12925
  this.nextNode[type] = nextUser;
12889
12926
  this.mixList = mixList;
12890
12927
  options.map(function (item) {
12891
- _this4.newSelectUserList.push({
12928
+ _this5.newSelectUserList.push({
12892
12929
  showname: item.showname,
12893
12930
  showid: item.showid
12894
12931
  });
12895
12932
  });
12896
12933
  },
12897
12934
  getNodeType: function getNodeType() {
12898
- var _this5 = this;
12935
+ var _this6 = this;
12899
12936
 
12900
12937
  util["a" /* default */].ajax({
12901
12938
  url: api["x" /* findCodeValues */],
12902
- params: { ccCode: 'notification_type', userId: util["a" /* default */].getStorage('userId') }
12939
+ params: {
12940
+ ccCode: 'notification_type',
12941
+ userId: util["a" /* default */].getStorage('userId')
12942
+ }
12903
12943
  }).then(function (res) {
12904
12944
  var status = res.status,
12905
12945
  data = res.data;
12906
12946
 
12907
12947
  if (status === 'success') {
12908
- _this5.noticeList = data;
12948
+ _this6.noticeList = data;
12909
12949
  var arr = [];
12910
- _this5.noticeList.map(function (item) {
12911
- _this5.nextNode.noticeType.map(function (x) {
12950
+ _this6.noticeList.map(function (item) {
12951
+ _this6.nextNode.noticeType.map(function (x) {
12912
12952
  if (x == item.cciValue) {
12913
12953
  arr.push(x);
12914
12954
  }
12915
12955
  });
12916
12956
  });
12917
- _this5.nextNode.noticeType = arr;
12957
+ _this6.nextNode.noticeType = arr;
12918
12958
  }
12919
12959
  }).catch(function (err) {
12920
- _this5.loading = false;
12960
+ _this6.loading = false;
12921
12961
  if (err.message && err.message !== 'canceled') {
12922
- _this5.$message.error(err.message);
12962
+ _this6.$message.error(err.message);
12923
12963
  }
12924
12964
  });
12925
12965
  },
12926
12966
 
12927
12967
  // 转办提交
12928
12968
  subTaskTransfer: function subTaskTransfer() {
12929
- var _this6 = this;
12969
+ var _this7 = this;
12930
12970
 
12931
12971
  var _taskExamine = this.taskExamine,
12932
12972
  choiceDeptId = _taskExamine.choiceDeptId,
@@ -12961,28 +13001,28 @@ var startTaskReadvue_type_script_lang_js_components;
12961
13001
  status = res.status;
12962
13002
 
12963
13003
  if (status === 'success') {
12964
- _this6.$message.success('操作成功');
12965
- _this6.quit(true);
13004
+ _this7.$message.success('操作成功');
13005
+ _this7.quit(true);
12966
13006
  } else {
12967
- _this6.$message.error(message || '系统错误,请联系管理员!');
13007
+ _this7.$message.error(message || '系统错误,请联系管理员!');
12968
13008
  }
12969
- _this6.loading = false;
13009
+ _this7.loading = false;
12970
13010
  }).catch(function (err) {
12971
- _this6.loading = false;
13011
+ _this7.loading = false;
12972
13012
  if (err.message && err.message !== 'canceled') {
12973
- _this6.$message.error(err.message);
13013
+ _this7.$message.error(err.message);
12974
13014
  }
12975
13015
  });
12976
13016
  },
12977
13017
 
12978
13018
  // 提交表单
12979
13019
  submit: function submit(formName) {
12980
- var _this7 = this;
13020
+ var _this8 = this;
12981
13021
 
12982
13022
  this.$refs[formName].validate(function (valid) {
12983
13023
  if (valid) {
12984
- if (!_this7.option && _this7.isOpinionRequired === 1) {
12985
- _this7.$message.warning('请选择输入审批意见');
13024
+ if (!_this8.option && _this8.isOpinionRequired === 1) {
13025
+ _this8.$message.warning('请选择输入审批意见');
12986
13026
  return;
12987
13027
  }
12988
13028
  // let nextUser = [];
@@ -12990,12 +13030,12 @@ var startTaskReadvue_type_script_lang_js_components;
12990
13030
  // nextUser.push(item);
12991
13031
  // });
12992
13032
  var noticeType = '';
12993
- noticeType = _this7.nextNode.noticeType.join(',');
12994
- _this7.loading = true;
12995
- if (_this7.type === 'transfer') {
12996
- _this7.subTaskTransfer();
13033
+ noticeType = _this8.nextNode.noticeType.join(',');
13034
+ _this8.loading = true;
13035
+ if (_this8.type === 'transfer') {
13036
+ _this8.subTaskTransfer();
12997
13037
  } else {
12998
- var _taskExamine2 = _this7.taskExamine,
13038
+ var _taskExamine2 = _this8.taskExamine,
12999
13039
  appId = _taskExamine2.appId,
13000
13040
  businessId = _taskExamine2.businessId,
13001
13041
  bCode = _taskExamine2.bCode,
@@ -13005,7 +13045,7 @@ var startTaskReadvue_type_script_lang_js_components;
13005
13045
  businessName = _taskExamine2.businessName,
13006
13046
  processDefinitionId = _taskExamine2.processDefinitionId;
13007
13047
 
13008
- var params = startTaskReadvue_type_script_lang_js_extends({}, _this7.nextNode, {
13048
+ var params = startTaskReadvue_type_script_lang_js_extends({}, _this8.nextNode, {
13009
13049
  bCode: bCode,
13010
13050
  bName: bName,
13011
13051
  appId: appId,
@@ -13015,16 +13055,16 @@ var startTaskReadvue_type_script_lang_js_components;
13015
13055
  businessName: businessName,
13016
13056
  processDefinitionId: processDefinitionId,
13017
13057
  currentOrgProcessKey: processDefinitionId,
13018
- pendingId: _this7.pendingId,
13019
- opinion: _this7.option, // 审批意见
13058
+ pendingId: _this8.pendingId,
13059
+ opinion: _this8.option, // 审批意见
13020
13060
  userId: util["a" /* default */].getStorage('userId'),
13021
- nextReadUserId: _this7.mixList.join('|'),
13061
+ nextReadUserId: _this8.mixList.join('|'),
13022
13062
  noticeType: noticeType,
13023
- taskAction: _this7.type
13063
+ taskAction: _this8.type
13024
13064
  // nextNodeId: this.form.nextNodeId
13025
13065
  });
13026
13066
  delete params.nextUser;
13027
- var _configInfo = _this7.configInfo,
13067
+ var _configInfo = _this8.configInfo,
13028
13068
  fyDoresult = _configInfo.fyDoresult,
13029
13069
  fyeh = _configInfo.fyeh,
13030
13070
  download = _configInfo.download,
@@ -13034,9 +13074,12 @@ var startTaskReadvue_type_script_lang_js_components;
13034
13074
  fyeh != 'true' && delete params.isInHistory;
13035
13075
  !download && delete params.isDownload;
13036
13076
  isCdjxjTaskHandle == 'true' && delete params.noticeType;
13077
+ if (_this8.readParams) {
13078
+ params = startTaskReadvue_type_script_lang_js_extends({}, params, _this8.readParams);
13079
+ }
13037
13080
  util["a" /* default */].ajax({
13038
13081
  url: api["Ib" /* taskReadHtml */],
13039
- params: { taskAction: _this7.type },
13082
+ params: { taskAction: _this8.type },
13040
13083
  headers: {
13041
13084
  Accept: 'application/json,text/plain'
13042
13085
  },
@@ -13046,17 +13089,17 @@ var startTaskReadvue_type_script_lang_js_components;
13046
13089
  var message = res.message,
13047
13090
  status = res.status;
13048
13091
 
13049
- _this7.loading = false;
13092
+ _this8.loading = false;
13050
13093
  if (status === 'success') {
13051
- _this7.$message.success('操作成功');
13052
- _this7.quit(true);
13094
+ _this8.$message.success('操作成功');
13095
+ _this8.quit(true);
13053
13096
  } else {
13054
- _this7.$message.error(message || '系统错误,请联系管理员!');
13097
+ _this8.$message.error(message || '系统错误,请联系管理员!');
13055
13098
  }
13056
13099
  }).catch(function (err) {
13057
- _this7.loading = false;
13100
+ _this8.loading = false;
13058
13101
  if (err.message && err.message !== 'canceled') {
13059
- _this7.$message.error(err.message);
13102
+ _this8.$message.error(err.message);
13060
13103
  }
13061
13104
  });
13062
13105
  }
@@ -13070,7 +13113,7 @@ var startTaskReadvue_type_script_lang_js_components;
13070
13113
  this.$emit('cancel');
13071
13114
  },
13072
13115
  getFind: function getFind() {
13073
- var _this8 = this;
13116
+ var _this9 = this;
13074
13117
 
13075
13118
  this.loading = true;
13076
13119
  util["a" /* default */].ajax({
@@ -13080,26 +13123,26 @@ var startTaskReadvue_type_script_lang_js_components;
13080
13123
  message = res.message,
13081
13124
  data = res.data;
13082
13125
 
13083
- _this8.loading = false;
13126
+ _this9.loading = false;
13084
13127
  if (status === 'success') {
13085
- _this8.nextNode.noticeType = message.split(',');
13128
+ _this9.nextNode.noticeType = message.split(',');
13086
13129
  if (data) {
13087
- _this8.notificationMessageReadOnly = data.notificationMessageReadOnly;
13088
- _this8.readOnlyNotificationType = data.readOnlyNotificationType;
13130
+ _this9.notificationMessageReadOnly = data.notificationMessageReadOnly;
13131
+ _this9.readOnlyNotificationType = data.readOnlyNotificationType;
13089
13132
  }
13090
13133
  } else {
13091
- _this8.$message.error(message || '系统错误,请联系管理员!');
13134
+ _this9.$message.error(message || '系统错误,请联系管理员!');
13092
13135
  }
13093
- _this8.getNodeType();
13094
- if (_this8.type === 'transfer') {
13095
- _this8.toTaskTransfer();
13096
- } else {
13097
- _this8.toStartTaskRead();
13136
+ _this9.getNodeType();
13137
+ if (_this9.type === 'transfer') {
13138
+ _this9.toTaskTransfer();
13139
+ } else if (!_this9.readParams) {
13140
+ _this9.toStartTaskRead();
13098
13141
  }
13099
13142
  }).catch(function (err) {
13100
- _this8.loading = false;
13143
+ _this9.loading = false;
13101
13144
  if (err.message && err.message !== 'canceled') {
13102
- _this8.$message.error(err.message);
13145
+ _this9.$message.error(err.message);
13103
13146
  }
13104
13147
  });
13105
13148
  }
@@ -13117,8 +13160,8 @@ var startTaskReadvue_type_script_lang_js_components;
13117
13160
 
13118
13161
  var startTaskRead_component = Object(componentNormalizer["a" /* default */])(
13119
13162
  src_startTaskReadvue_type_script_lang_js_,
13120
- startTaskReadvue_type_template_id_1d99a67a_render,
13121
- startTaskReadvue_type_template_id_1d99a67a_staticRenderFns,
13163
+ startTaskReadvue_type_template_id_611e00dd_render,
13164
+ startTaskReadvue_type_template_id_611e00dd_staticRenderFns,
13122
13165
  false,
13123
13166
  null,
13124
13167
  null,
@@ -13127,8 +13170,8 @@ var startTaskRead_component = Object(componentNormalizer["a" /* default */])(
13127
13170
  )
13128
13171
 
13129
13172
  /* harmony default export */ var startTaskRead = (startTaskRead_component.exports);
13130
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/reset.vue?vue&type=template&id=506a888c&
13131
- var resetvue_type_template_id_506a888c_render = function () {
13173
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/reset.vue?vue&type=template&id=6b258c7a&
13174
+ var resetvue_type_template_id_6b258c7a_render = function () {
13132
13175
  var _vm = this
13133
13176
  var _h = _vm.$createElement
13134
13177
  var _c = _vm._self._c || _h
@@ -13554,11 +13597,11 @@ var resetvue_type_template_id_506a888c_render = function () {
13554
13597
  1
13555
13598
  )
13556
13599
  }
13557
- var resetvue_type_template_id_506a888c_staticRenderFns = []
13558
- resetvue_type_template_id_506a888c_render._withStripped = true
13600
+ var resetvue_type_template_id_6b258c7a_staticRenderFns = []
13601
+ resetvue_type_template_id_6b258c7a_render._withStripped = true
13559
13602
 
13560
13603
 
13561
- // CONCATENATED MODULE: ./packages/flow/src/reset.vue?vue&type=template&id=506a888c&
13604
+ // CONCATENATED MODULE: ./packages/flow/src/reset.vue?vue&type=template&id=6b258c7a&
13562
13605
 
13563
13606
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/reset.vue?vue&type=script&lang=js&
13564
13607
  var resetvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -13841,13 +13884,13 @@ var resetvue_type_script_lang_js_components;
13841
13884
  tabs: {
13842
13885
  employee: {
13843
13886
  param: {
13844
- filid: JSON.parse(sessionStorage.getItem('mainConfig')).userModel.orgId,
13887
+ filid: JSON.parse(util["a" /* default */].getStorage('mainConfig')).userModel.orgId,
13845
13888
  name: '本单位用户'
13846
13889
  }
13847
13890
  },
13848
13891
  department: {
13849
13892
  param: {
13850
- filid: JSON.parse(sessionStorage.getItem('mainConfig')).userModel.orgId
13893
+ filid: JSON.parse(util["a" /* default */].getStorage('mainConfig')).userModel.orgId
13851
13894
  }
13852
13895
  }
13853
13896
  },
@@ -13938,7 +13981,7 @@ var resetvue_type_script_lang_js_components;
13938
13981
  this.nextUserTabs = {
13939
13982
  department: {
13940
13983
  param: {
13941
- filid: JSON.parse(sessionStorage.getItem('mainConfig')).userModel.orgId
13984
+ filid: JSON.parse(util["a" /* default */].getStorage('mainConfig')).userModel.orgId
13942
13985
  }
13943
13986
  }
13944
13987
  };
@@ -13953,7 +13996,7 @@ var resetvue_type_script_lang_js_components;
13953
13996
  enterprise: { param: { filid: 'other' } },
13954
13997
  department: {
13955
13998
  param: {
13956
- filid: JSON.parse(sessionStorage.getItem('mainConfig')).userModel.orgId
13999
+ filid: JSON.parse(util["a" /* default */].getStorage('mainConfig')).userModel.orgId
13957
14000
  }
13958
14001
  }
13959
14002
  };
@@ -14419,8 +14462,8 @@ var resetvue_type_script_lang_js_components;
14419
14462
 
14420
14463
  var reset_component = Object(componentNormalizer["a" /* default */])(
14421
14464
  src_resetvue_type_script_lang_js_,
14422
- resetvue_type_template_id_506a888c_render,
14423
- resetvue_type_template_id_506a888c_staticRenderFns,
14465
+ resetvue_type_template_id_6b258c7a_render,
14466
+ resetvue_type_template_id_6b258c7a_staticRenderFns,
14424
14467
  false,
14425
14468
  null,
14426
14469
  null,