eoss-ui 0.6.40 → 0.6.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 (98) hide show
  1. package/lib/button-group.js +5 -0
  2. package/lib/button.js +5 -0
  3. package/lib/checkbox-group.js +5 -0
  4. package/lib/data-table-form.js +5 -0
  5. package/lib/data-table.js +11 -6
  6. package/lib/date-picker.js +5 -0
  7. package/lib/dialog.js +5 -0
  8. package/lib/eoss-ui.common.js +831 -433
  9. package/lib/flow-group.js +5 -0
  10. package/lib/flow-list.js +5 -0
  11. package/lib/flow.js +37 -35
  12. package/lib/form.js +5 -0
  13. package/lib/handle-user.js +5 -0
  14. package/lib/handler.js +152 -76
  15. package/lib/icon.js +5 -0
  16. package/lib/icons.js +1 -1
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +5 -0
  19. package/lib/input.js +5 -0
  20. package/lib/login.js +248 -160
  21. package/lib/main.js +329 -113
  22. package/lib/nav.js +5 -0
  23. package/lib/page.js +5 -0
  24. package/lib/pagination.js +5 -0
  25. package/lib/player.js +5 -0
  26. package/lib/qr-code.js +5 -0
  27. package/lib/radio-group.js +5 -0
  28. package/lib/retrial-auth.js +5 -0
  29. package/lib/select-ganged.js +5 -0
  30. package/lib/select.js +5 -0
  31. package/lib/selector-panel.js +7 -3
  32. package/lib/selector.js +42 -5
  33. package/lib/sizer.js +5 -0
  34. package/lib/steps.js +5 -0
  35. package/lib/switch.js +5 -0
  36. package/lib/table-form.js +5 -0
  37. package/lib/tabs.js +5 -0
  38. package/lib/theme-chalk/base.css +1 -1
  39. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  40. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  41. package/lib/theme-chalk/icon.css +1 -1
  42. package/lib/theme-chalk/index.css +1 -1
  43. package/lib/theme-chalk/login.css +1 -1
  44. package/lib/theme-chalk/main.css +1 -1
  45. package/lib/theme-chalk/menu.css +1 -1
  46. package/lib/theme-chalk/simplicity.css +1 -1
  47. package/lib/theme-chalk/sizer.css +1 -1
  48. package/lib/theme-chalk/upload.css +1 -1
  49. package/lib/tips.js +5 -0
  50. package/lib/tree-group.js +5 -0
  51. package/lib/tree.js +5 -0
  52. package/lib/upload.js +5 -0
  53. package/lib/utils/util.js +5 -0
  54. package/lib/wujie.js +5 -0
  55. package/lib/wxlogin.js +5 -0
  56. package/package.json +1 -1
  57. package/packages/.DS_Store +0 -0
  58. package/packages/data-table/.DS_Store +0 -0
  59. package/packages/data-table/src/main.vue +3 -1
  60. package/packages/flow/.DS_Store +0 -0
  61. package/packages/flow/src/component/taskUnionExamine.vue +34 -26
  62. package/packages/flow/src/main.vue +0 -2
  63. package/packages/flow/src/processForm.vue +29 -18
  64. package/packages/flow/src/reset.vue +0 -2
  65. package/packages/handler/src/main.vue +163 -77
  66. package/packages/icons/src/icon.json +1 -1
  67. package/packages/login/.DS_Store +0 -0
  68. package/packages/login/src/main.vue +61 -18
  69. package/packages/main/.DS_Store +0 -0
  70. package/packages/main/src/.DS_Store +0 -0
  71. package/packages/main/src/default/index.vue +32 -3
  72. package/packages/main/src/public/search.vue +14 -7
  73. package/packages/main/src/simplicity/handler.vue +64 -26
  74. package/packages/main/src/simplicity/index.vue +80 -26
  75. package/packages/selector/.DS_Store +0 -0
  76. package/packages/selector/src/main.vue +17 -5
  77. package/packages/selector-panel/.DS_Store +0 -0
  78. package/packages/selector-panel/src/main.vue +0 -1
  79. package/packages/theme-chalk/lib/base.css +1 -1
  80. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  81. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  82. package/packages/theme-chalk/lib/icon.css +1 -1
  83. package/packages/theme-chalk/lib/index.css +1 -1
  84. package/packages/theme-chalk/lib/login.css +1 -1
  85. package/packages/theme-chalk/lib/main.css +1 -1
  86. package/packages/theme-chalk/lib/menu.css +1 -1
  87. package/packages/theme-chalk/lib/simplicity.css +1 -1
  88. package/packages/theme-chalk/lib/sizer.css +1 -1
  89. package/packages/theme-chalk/lib/upload.css +1 -1
  90. package/packages/theme-chalk/src/.DS_Store +0 -0
  91. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  92. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  93. package/packages/theme-chalk/src/icon.scss +29 -0
  94. package/packages/theme-chalk/src/login.scss +8 -0
  95. package/packages/theme-chalk/src/main.scss +7 -0
  96. package/src/.DS_Store +0 -0
  97. package/src/index.js +1 -1
  98. package/src/utils/util.js +5 -0
package/lib/flow-group.js CHANGED
@@ -560,6 +560,7 @@ var ajaxStream = function ajaxStream(_ref2) {
560
560
  var lastProcessedIndex = 0;
561
561
  var done = false;
562
562
  var finishThink = false;
563
+ var hasThink = false;
563
564
  ajax(_extends({
564
565
  timeout: 990000,
565
566
  format: false,
@@ -613,8 +614,12 @@ var ajaxStream = function ajaxStream(_ref2) {
613
614
  var start = parsedData.message.match(startRegex);
614
615
  var end = parsedData.message.match(endRegex);
615
616
  if (start) {
617
+ hasThink = true;
616
618
  var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
617
619
  info.thinkContent += _thinkContent;
620
+ } else if (hasThink === false) {
621
+ info.content += parsedData.message;
622
+ chunks += parsedData.message;
618
623
  } else {
619
624
  if (end) {
620
625
  finishThink = true;
package/lib/flow-list.js CHANGED
@@ -560,6 +560,7 @@ var ajaxStream = function ajaxStream(_ref2) {
560
560
  var lastProcessedIndex = 0;
561
561
  var done = false;
562
562
  var finishThink = false;
563
+ var hasThink = false;
563
564
  ajax(_extends({
564
565
  timeout: 990000,
565
566
  format: false,
@@ -613,8 +614,12 @@ var ajaxStream = function ajaxStream(_ref2) {
613
614
  var start = parsedData.message.match(startRegex);
614
615
  var end = parsedData.message.match(endRegex);
615
616
  if (start) {
617
+ hasThink = true;
616
618
  var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
617
619
  info.thinkContent += _thinkContent;
620
+ } else if (hasThink === false) {
621
+ info.content += parsedData.message;
622
+ chunks += parsedData.message;
618
623
  } else {
619
624
  if (end) {
620
625
  finishThink = true;
package/lib/flow.js CHANGED
@@ -559,6 +559,7 @@ var ajaxStream = function ajaxStream(_ref2) {
559
559
  var lastProcessedIndex = 0;
560
560
  var done = false;
561
561
  var finishThink = false;
562
+ var hasThink = false;
562
563
  ajax(_extends({
563
564
  timeout: 990000,
564
565
  format: false,
@@ -612,8 +613,12 @@ var ajaxStream = function ajaxStream(_ref2) {
612
613
  var start = parsedData.message.match(startRegex);
613
614
  var end = parsedData.message.match(endRegex);
614
615
  if (start) {
616
+ hasThink = true;
615
617
  var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
616
618
  info.thinkContent += _thinkContent;
619
+ } else if (hasThink === false) {
620
+ info.content += parsedData.message;
621
+ chunks += parsedData.message;
617
622
  } else {
618
623
  if (end) {
619
624
  finishThink = true;
@@ -4342,7 +4347,7 @@ var component = Object(componentNormalizer["a" /* default */])(
4342
4347
  // ESM COMPAT FLAG
4343
4348
  __webpack_require__.r(__webpack_exports__);
4344
4349
 
4345
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=2feffd01&
4350
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=5d052dc2&
4346
4351
  var render = function () {
4347
4352
  var _vm = this
4348
4353
  var _h = _vm.$createElement
@@ -6453,7 +6458,7 @@ var staticRenderFns = []
6453
6458
  render._withStripped = true
6454
6459
 
6455
6460
 
6456
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=2feffd01&
6461
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=5d052dc2&
6457
6462
 
6458
6463
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
6459
6464
  var regenerator_ = __webpack_require__(14);
@@ -7462,8 +7467,8 @@ var CommonOpinions_component = Object(componentNormalizer["a" /* default */])(
7462
7467
  )
7463
7468
 
7464
7469
  /* harmony default export */ var CommonOpinions = (CommonOpinions_component.exports);
7465
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=3ec67af0&
7466
- var processFormvue_type_template_id_3ec67af0_render = function () {
7470
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=4c3e6186&
7471
+ var processFormvue_type_template_id_4c3e6186_render = function () {
7467
7472
  var _vm = this
7468
7473
  var _h = _vm.$createElement
7469
7474
  var _c = _vm._self._c || _h
@@ -7984,11 +7989,11 @@ var processFormvue_type_template_id_3ec67af0_render = function () {
7984
7989
  1
7985
7990
  )
7986
7991
  }
7987
- var processFormvue_type_template_id_3ec67af0_staticRenderFns = []
7988
- processFormvue_type_template_id_3ec67af0_render._withStripped = true
7992
+ var processFormvue_type_template_id_4c3e6186_staticRenderFns = []
7993
+ processFormvue_type_template_id_4c3e6186_render._withStripped = true
7989
7994
 
7990
7995
 
7991
- // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=3ec67af0&
7996
+ // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=4c3e6186&
7992
7997
 
7993
7998
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/selectUser.vue?vue&type=template&id=615d0e78&
7994
7999
  var selectUservue_type_template_id_615d0e78_render = function () {
@@ -9867,7 +9872,6 @@ var processFormvue_type_script_lang_js_components;
9867
9872
  this.getUserInfo();
9868
9873
  },
9869
9874
  mounted: function mounted() {
9870
- console.log('发起流程开始');
9871
9875
  this.getNodeType();
9872
9876
  this.getStartFlow(this.processDefinitionId);
9873
9877
  this.newOpinion = this.opinion;
@@ -10101,7 +10105,11 @@ var processFormvue_type_script_lang_js_components;
10101
10105
  newParm.submitTaskParamJson = JSON.stringify(_this4.taskParams);
10102
10106
  params = newParm;
10103
10107
  }
10104
- util["a" /* default */].ajax({ url: _this4.isFreeStartFlow ? api["z" /* freeStartFlowWithSubmitTask */] : api["pb" /* register */], method: 'post', data: params }).then(function (res) {
10108
+ util["a" /* default */].ajax({
10109
+ url: _this4.isFreeStartFlow ? api["z" /* freeStartFlowWithSubmitTask */] : api["pb" /* register */],
10110
+ method: 'post',
10111
+ data: params
10112
+ }).then(function (res) {
10105
10113
  var status = res.status,
10106
10114
  message = res.message;
10107
10115
 
@@ -10403,8 +10411,8 @@ var processFormvue_type_script_lang_js_components;
10403
10411
 
10404
10412
  var processForm_component = Object(componentNormalizer["a" /* default */])(
10405
10413
  src_processFormvue_type_script_lang_js_,
10406
- processFormvue_type_template_id_3ec67af0_render,
10407
- processFormvue_type_template_id_3ec67af0_staticRenderFns,
10414
+ processFormvue_type_template_id_4c3e6186_render,
10415
+ processFormvue_type_template_id_4c3e6186_staticRenderFns,
10408
10416
  false,
10409
10417
  null,
10410
10418
  null,
@@ -12902,8 +12910,8 @@ var startTaskRead_component = Object(componentNormalizer["a" /* default */])(
12902
12910
  )
12903
12911
 
12904
12912
  /* harmony default export */ var startTaskRead = (startTaskRead_component.exports);
12905
- // 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=138bb789&
12906
- var resetvue_type_template_id_138bb789_render = function () {
12913
+ // 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=2b7d4b66&
12914
+ var resetvue_type_template_id_2b7d4b66_render = function () {
12907
12915
  var _vm = this
12908
12916
  var _h = _vm.$createElement
12909
12917
  var _c = _vm._self._c || _h
@@ -13334,11 +13342,11 @@ var resetvue_type_template_id_138bb789_render = function () {
13334
13342
  1
13335
13343
  )
13336
13344
  }
13337
- var resetvue_type_template_id_138bb789_staticRenderFns = []
13338
- resetvue_type_template_id_138bb789_render._withStripped = true
13345
+ var resetvue_type_template_id_2b7d4b66_staticRenderFns = []
13346
+ resetvue_type_template_id_2b7d4b66_render._withStripped = true
13339
13347
 
13340
13348
 
13341
- // CONCATENATED MODULE: ./packages/flow/src/reset.vue?vue&type=template&id=138bb789&
13349
+ // CONCATENATED MODULE: ./packages/flow/src/reset.vue?vue&type=template&id=2b7d4b66&
13342
13350
 
13343
13351
  // 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&
13344
13352
  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; };
@@ -14120,7 +14128,6 @@ var resetvue_type_script_lang_js_components;
14120
14128
  _this7.readOnlyNotificationType = data.readOnlyNotificationType;
14121
14129
  _this7.notificationMessageReadOnly = data.notificationMessageReadOnly == 'true';
14122
14130
  var flowList = [];
14123
- console.log(data.taskNodeList);
14124
14131
  if (data.taskNodeList && data.taskNodeList.length > 0) {
14125
14132
  for (var key in data.taskNodeList[0]) {
14126
14133
  flowList.push({
@@ -14138,7 +14145,6 @@ var resetvue_type_script_lang_js_components;
14138
14145
  }
14139
14146
 
14140
14147
  _this7.nextNode.nodeInfo = flowList;
14141
- console.log(_this7.nextNode.nodeInfo, 'this.nextNode.nodeInfo');
14142
14148
  _this7.nextNode.nextNode = flowList[0].nodeId;
14143
14149
  _this7.taskExamine = data.taskExamine;
14144
14150
  _this7.processDefinitionId = data.taskExamine.processDefinitionId;
@@ -14198,8 +14204,8 @@ var resetvue_type_script_lang_js_components;
14198
14204
 
14199
14205
  var reset_component = Object(componentNormalizer["a" /* default */])(
14200
14206
  src_resetvue_type_script_lang_js_,
14201
- resetvue_type_template_id_138bb789_render,
14202
- resetvue_type_template_id_138bb789_staticRenderFns,
14207
+ resetvue_type_template_id_2b7d4b66_render,
14208
+ resetvue_type_template_id_2b7d4b66_staticRenderFns,
14203
14209
  false,
14204
14210
  null,
14205
14211
  null,
@@ -14208,8 +14214,8 @@ var reset_component = Object(componentNormalizer["a" /* default */])(
14208
14214
  )
14209
14215
 
14210
14216
  /* harmony default export */ var src_reset = (reset_component.exports);
14211
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=e8b3de86&
14212
- var taskUnionExaminevue_type_template_id_e8b3de86_render = function () {
14217
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=3d269602&
14218
+ var taskUnionExaminevue_type_template_id_3d269602_render = function () {
14213
14219
  var _vm = this
14214
14220
  var _h = _vm.$createElement
14215
14221
  var _c = _vm._self._c || _h
@@ -14448,7 +14454,7 @@ var taskUnionExaminevue_type_template_id_e8b3de86_render = function () {
14448
14454
  attrs: { type: "primary", size: "small" },
14449
14455
  on: { click: _vm.subMit },
14450
14456
  },
14451
- [_vm._v("\n 确定\n ")]
14457
+ [_vm._v(" 确定 ")]
14452
14458
  ),
14453
14459
  _c(
14454
14460
  "el-button",
@@ -14462,11 +14468,11 @@ var taskUnionExaminevue_type_template_id_e8b3de86_render = function () {
14462
14468
  1
14463
14469
  )
14464
14470
  }
14465
- var taskUnionExaminevue_type_template_id_e8b3de86_staticRenderFns = []
14466
- taskUnionExaminevue_type_template_id_e8b3de86_render._withStripped = true
14471
+ var taskUnionExaminevue_type_template_id_3d269602_staticRenderFns = []
14472
+ taskUnionExaminevue_type_template_id_3d269602_render._withStripped = true
14467
14473
 
14468
14474
 
14469
- // CONCATENATED MODULE: ./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=e8b3de86&
14475
+ // CONCATENATED MODULE: ./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=3d269602&
14470
14476
 
14471
14477
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/taskUnionExamine.vue?vue&type=script&lang=js&
14472
14478
  var taskUnionExaminevue_type_script_lang_js_components;
@@ -14600,9 +14606,6 @@ var taskUnionExaminevue_type_script_lang_js_components;
14600
14606
  //
14601
14607
  //
14602
14608
  //
14603
- //
14604
- //
14605
- //
14606
14609
 
14607
14610
 
14608
14611
 
@@ -14784,7 +14787,9 @@ var taskUnionExaminevue_type_script_lang_js_components;
14784
14787
  _this3.currentOrgTabs = res.data.customizedConfig.currentOrgSelectorItemList.split(',');
14785
14788
  var param = res.data.customizedConfig.currentOrgSelectorRangeList.split(',');
14786
14789
  _this3.currentOrgTabs.map(function (x, i) {
14787
- _this3.params[x] = { filid: param[i] == 'my' ? _this3.params.filid = JSON.parse(sessionStorage.getItem('mainConfig')).userModel.orgId : param[i] };
14790
+ _this3.params[x] = {
14791
+ filid: param[i] == 'my' ? _this3.params.filid = JSON.parse(sessionStorage.getItem('mainConfig')).userModel.orgId : param[i]
14792
+ };
14788
14793
  });
14789
14794
  } else {
14790
14795
  if (_this3.type == 'takeAdvice') {
@@ -14888,7 +14893,6 @@ var taskUnionExaminevue_type_script_lang_js_components;
14888
14893
  method: 'POST'
14889
14894
  };
14890
14895
  this.loading = true;
14891
- console.log(param.data, nextCurrentOrgObj, 'data');
14892
14896
  util["a" /* default */].ajax(param).then(function (res) {
14893
14897
  var message = res.message,
14894
14898
  status = res.status;
@@ -15023,8 +15027,8 @@ var taskUnionExaminevue_type_script_lang_js_components;
15023
15027
 
15024
15028
  var taskUnionExamine_component = Object(componentNormalizer["a" /* default */])(
15025
15029
  component_taskUnionExaminevue_type_script_lang_js_,
15026
- taskUnionExaminevue_type_template_id_e8b3de86_render,
15027
- taskUnionExaminevue_type_template_id_e8b3de86_staticRenderFns,
15030
+ taskUnionExaminevue_type_template_id_3d269602_render,
15031
+ taskUnionExaminevue_type_template_id_3d269602_staticRenderFns,
15028
15032
  false,
15029
15033
  null,
15030
15034
  null,
@@ -22298,7 +22302,6 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
22298
22302
  _this27.value = _this27.value.replace(RegExp('同意。', 'g'), '');
22299
22303
  _this27.value = val + _this27.value;
22300
22304
  }
22301
- console.log(112);
22302
22305
  if (!_this27.validInfo()) {
22303
22306
  _this27.freeValid = false;
22304
22307
  return;
@@ -22343,7 +22346,6 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
22343
22346
  return false;
22344
22347
  }
22345
22348
  if (!this.value && this.isOpinionRequired === 1) {
22346
- console.log(1);
22347
22349
  this.$message.warning('请选择输入审批意见');
22348
22350
  return false;
22349
22351
  }
package/lib/form.js CHANGED
@@ -559,6 +559,7 @@ var ajaxStream = function ajaxStream(_ref2) {
559
559
  var lastProcessedIndex = 0;
560
560
  var done = false;
561
561
  var finishThink = false;
562
+ var hasThink = false;
562
563
  ajax(_extends({
563
564
  timeout: 990000,
564
565
  format: false,
@@ -612,8 +613,12 @@ var ajaxStream = function ajaxStream(_ref2) {
612
613
  var start = parsedData.message.match(startRegex);
613
614
  var end = parsedData.message.match(endRegex);
614
615
  if (start) {
616
+ hasThink = true;
615
617
  var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
616
618
  info.thinkContent += _thinkContent;
619
+ } else if (hasThink === false) {
620
+ info.content += parsedData.message;
621
+ chunks += parsedData.message;
617
622
  } else {
618
623
  if (end) {
619
624
  finishThink = true;
@@ -560,6 +560,7 @@ var ajaxStream = function ajaxStream(_ref2) {
560
560
  var lastProcessedIndex = 0;
561
561
  var done = false;
562
562
  var finishThink = false;
563
+ var hasThink = false;
563
564
  ajax(_extends({
564
565
  timeout: 990000,
565
566
  format: false,
@@ -613,8 +614,12 @@ var ajaxStream = function ajaxStream(_ref2) {
613
614
  var start = parsedData.message.match(startRegex);
614
615
  var end = parsedData.message.match(endRegex);
615
616
  if (start) {
617
+ hasThink = true;
616
618
  var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
617
619
  info.thinkContent += _thinkContent;
620
+ } else if (hasThink === false) {
621
+ info.content += parsedData.message;
622
+ chunks += parsedData.message;
618
623
  } else {
619
624
  if (end) {
620
625
  finishThink = true;
package/lib/handler.js CHANGED
@@ -560,6 +560,7 @@ var ajaxStream = function ajaxStream(_ref2) {
560
560
  var lastProcessedIndex = 0;
561
561
  var done = false;
562
562
  var finishThink = false;
563
+ var hasThink = false;
563
564
  ajax(_extends({
564
565
  timeout: 990000,
565
566
  format: false,
@@ -613,8 +614,12 @@ var ajaxStream = function ajaxStream(_ref2) {
613
614
  var start = parsedData.message.match(startRegex);
614
615
  var end = parsedData.message.match(endRegex);
615
616
  if (start) {
617
+ hasThink = true;
616
618
  var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
617
619
  info.thinkContent += _thinkContent;
620
+ } else if (hasThink === false) {
621
+ info.content += parsedData.message;
622
+ chunks += parsedData.message;
618
623
  } else {
619
624
  if (end) {
620
625
  finishThink = true;
@@ -3987,7 +3992,7 @@ module.exports = require("qs");
3987
3992
  // ESM COMPAT FLAG
3988
3993
  __webpack_require__.r(__webpack_exports__);
3989
3994
 
3990
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=5095bbf9&
3995
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=781785ca&
3991
3996
  var render = function () {
3992
3997
  var _vm = this
3993
3998
  var _h = _vm.$createElement
@@ -4037,7 +4042,7 @@ var render = function () {
4037
4042
  ),
4038
4043
  ]
4039
4044
  )
4040
- : item.type === "date"
4045
+ : item.type === "dateTime"
4041
4046
  ? _c("div", { staticClass: "es-handler-date" }, [
4042
4047
  _c("div", [
4043
4048
  _vm._v(
@@ -4078,7 +4083,7 @@ var render = function () {
4078
4083
  placement: "bottom",
4079
4084
  trigger: "hover",
4080
4085
  "popper-class":
4081
- _vm.system.length > 4
4086
+ _vm.systemData.length > 4
4082
4087
  ? "es-popper-sub-system is-width"
4083
4088
  : "es-popper-sub-system",
4084
4089
  },
@@ -4092,7 +4097,7 @@ var render = function () {
4092
4097
  },
4093
4098
  },
4094
4099
  [
4095
- _vm.system.length
4100
+ _vm.systemData.length
4096
4101
  ? _c(
4097
4102
  "el-scrollbar",
4098
4103
  { attrs: { "max-height": _vm.maxHeight } },
@@ -4100,7 +4105,7 @@ var render = function () {
4100
4105
  _c(
4101
4106
  "ul",
4102
4107
  { staticClass: "es-sub-system" },
4103
- _vm._l(_vm.system, function (ele) {
4108
+ _vm._l(_vm.systemData, function (ele) {
4104
4109
  return _c(
4105
4110
  "li",
4106
4111
  {
@@ -4191,9 +4196,9 @@ var render = function () {
4191
4196
  {
4192
4197
  staticClass: "es-badge",
4193
4198
  attrs: {
4194
- value: _vm.notice,
4199
+ value: _vm.noticeNum,
4195
4200
  max: 99,
4196
- hidden: _vm.notice < 1,
4201
+ hidden: _vm.noticeNum < 1,
4197
4202
  },
4198
4203
  },
4199
4204
  [
@@ -4235,7 +4240,7 @@ var staticRenderFns = []
4235
4240
  render._withStripped = true
4236
4241
 
4237
4242
 
4238
- // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=5095bbf9&
4243
+ // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=781785ca&
4239
4244
 
4240
4245
  // EXTERNAL MODULE: ./src/config/api.js
4241
4246
  var api = __webpack_require__(1);
@@ -4246,6 +4251,8 @@ var util = __webpack_require__(0);
4246
4251
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=script&lang=js&
4247
4252
  var _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; };
4248
4253
 
4254
+ var _props;
4255
+
4249
4256
  //
4250
4257
  //
4251
4258
  //
@@ -4372,7 +4379,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4372
4379
  default: ''
4373
4380
  }
4374
4381
  },
4375
- props: {
4382
+ props: (_props = {
4376
4383
  contact: Object,
4377
4384
  jobScrollbar: Boolean,
4378
4385
  data: Array,
@@ -4387,20 +4394,12 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4387
4394
  return [];
4388
4395
  }
4389
4396
  },
4390
- notice: {
4391
- type: Number,
4392
- default: 0
4393
- },
4394
4397
  hide: {
4395
4398
  type: Object,
4396
4399
  default: function _default() {
4397
- return { system: true, new: true };
4400
+ return {};
4398
4401
  }
4399
4402
  },
4400
- online: {
4401
- type: [Number, Boolean],
4402
- default: 1
4403
- },
4404
4403
  photo: String,
4405
4404
  storage: String,
4406
4405
  application: {
@@ -4410,8 +4409,128 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4410
4409
  maxHeight: {
4411
4410
  type: String,
4412
4411
  default: '100%'
4412
+ },
4413
+ user: {
4414
+ type: Object,
4415
+ default: function _default() {
4416
+ return {
4417
+ type: 'user'
4418
+ };
4419
+ }
4420
+ },
4421
+ dateTime: {
4422
+ type: Object,
4423
+ default: function _default() {
4424
+ return {
4425
+ type: 'dateTime'
4426
+ };
4427
+ }
4428
+ },
4429
+ system: {
4430
+ type: Object,
4431
+ default: function _default() {
4432
+ return {
4433
+ type: 'system',
4434
+ icon: 'es-icon-yingyong',
4435
+ title: '切换子系统'
4436
+ };
4437
+ }
4438
+ },
4439
+ home: {
4440
+ type: Object,
4441
+ default: function _default() {
4442
+ return {
4443
+ type: 'home',
4444
+ icon: 'es-icon-zuomian',
4445
+ title: '个人工作台'
4446
+ };
4447
+ }
4448
+ },
4449
+ search: {
4450
+ type: Object,
4451
+ default: function _default() {
4452
+ return {
4453
+ type: 'search',
4454
+ icon: 'es-icon-magnifier',
4455
+ title: '搜索'
4456
+ };
4457
+ }
4458
+ },
4459
+ im: {
4460
+ type: Object,
4461
+ default: function _default() {
4462
+ return {
4463
+ type: 'im',
4464
+ icon: 'es-icon-liaotian',
4465
+ title: 'IM'
4466
+ };
4467
+ }
4468
+ },
4469
+ index: {
4470
+ type: Object,
4471
+ default: function _default() {
4472
+ return {
4473
+ type: 'index',
4474
+ icon: 'es-icon-home',
4475
+ title: '门户'
4476
+ };
4477
+ }
4413
4478
  }
4414
- },
4479
+ }, _props['home'] = {
4480
+ type: Object,
4481
+ default: function _default() {
4482
+ return {
4483
+ type: 'home',
4484
+ icon: 'es-icon-zuomian',
4485
+ title: '个人工作台'
4486
+ };
4487
+ }
4488
+ }, _props.notice = {
4489
+ type: Object,
4490
+ default: function _default() {
4491
+ return {
4492
+ type: 'notice',
4493
+ icon: 'es-icon-tongzhi',
4494
+ title: '通知消息'
4495
+ };
4496
+ }
4497
+ }, _props.refresh = {
4498
+ type: Object,
4499
+ default: function _default() {
4500
+ return {
4501
+ type: 'refresh',
4502
+ icon: 'es-icon-shuaxin',
4503
+ title: '刷新'
4504
+ };
4505
+ }
4506
+ }, _props.quit = {
4507
+ type: Object,
4508
+ default: function _default() {
4509
+ return {
4510
+ type: 'quit',
4511
+ icon: 'es-icon-guanji',
4512
+ title: '退出'
4513
+ };
4514
+ }
4515
+ }, _props.set = {
4516
+ type: Object,
4517
+ default: function _default() {
4518
+ return {
4519
+ type: 'set',
4520
+ icon: 'es-icon-xitongguanli',
4521
+ title: '设置'
4522
+ };
4523
+ }
4524
+ }, _props.msgNum = {
4525
+ type: Number,
4526
+ default: 0
4527
+ }, _props.noticeNum = {
4528
+ type: Number,
4529
+ default: 0
4530
+ }, _props.online = {
4531
+ type: Number,
4532
+ default: 1
4533
+ }, _props),
4415
4534
  watch: {
4416
4535
  subSystem: {
4417
4536
  handler: function handler(val) {
@@ -4424,60 +4543,17 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4424
4543
  },
4425
4544
  computed: {
4426
4545
  lists: function lists() {
4427
- var _this = this;
4428
-
4429
- if (this.data === undefined) {
4430
- var list = [{
4431
- type: 'user'
4432
- }, this.contact ? _extends({}, this.contact, { type: 'contact' }) : {}, {
4433
- type: 'date'
4434
- }, {
4435
- type: 'system',
4436
- icon: 'es-icon-yingyong',
4437
- title: '切换子系统'
4438
- }, {
4439
- type: 'home',
4440
- icon: 'es-icon-zuomian',
4441
- title: '个人工作台'
4442
- }, {
4443
- type: 'index',
4444
- icon: 'es-icon-home',
4445
- title: '门户'
4446
- }, {
4447
- type: 'notice',
4448
- icon: 'es-icon-tongzhi',
4449
- title: '通知消息'
4450
- }, {
4451
- type: 'refresh',
4452
- icon: 'es-icon-shuaxin',
4453
- title: '刷新'
4454
- }, {
4455
- type: 'quit',
4456
- icon: 'es-icon-guanji',
4457
- title: '退出'
4458
- }, {
4459
- type: 'set',
4460
- icon: 'es-icon-xitongguanli',
4461
- title: '设置'
4462
- }].filter(function (item) {
4463
- return Object.keys(item).length;
4464
- });
4465
- if (Object.keys(this.hide).length) {
4466
- list.forEach(function (item) {
4467
- item.hide = _this.hide[item.type];
4468
- });
4469
- }
4470
- return list;
4471
- } else {
4472
- if (Object.keys(this.hide).length) {
4473
- this.data.forEach(function (item) {
4474
- item.hide = _this.hide[item.type];
4475
- });
4476
- }
4477
- }
4478
- return this.data;
4546
+ var hide = _extends({
4547
+ system: true,
4548
+ new: true,
4549
+ im: true
4550
+ }, this.hide);
4551
+ var data = this.data ? this.data : [this.user, this.contact ? _extends({}, this.contact, { type: 'contact' }) : {}, this.dateTime, this.system, this.search, this.im, this.index, this.home, this.notice, this.refresh, this.quit, this.set];
4552
+ return data.filter(function (item) {
4553
+ return item && Object.keys(item).length && !item.hide && !hide[item.type];
4554
+ });
4479
4555
  },
4480
- system: function system() {
4556
+ systemData: function systemData() {
4481
4557
  return this.subSystem;
4482
4558
  },
4483
4559
  show: function show() {
@@ -4542,7 +4618,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4542
4618
  }
4543
4619
  },
4544
4620
  handleQuit: function handleQuit() {
4545
- var _this2 = this;
4621
+ var _this = this;
4546
4622
 
4547
4623
  this.$confirm('确定退出吗?', '退出系统', {
4548
4624
  confirmButtonText: '确定',
@@ -4552,8 +4628,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4552
4628
  util["a" /* default */].ajax({ method: 'post', url: api["gb" /* logout */] }).then(function (res) {
4553
4629
  if (res.rCode == 0) {
4554
4630
  util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
4555
- if (_this2.onQuit && typeof _this2.onQuit === 'function') {
4556
- _this2.onQuit();
4631
+ if (_this.onQuit && typeof _this.onQuit === 'function') {
4632
+ _this.onQuit();
4557
4633
  } else {
4558
4634
  try {
4559
4635
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
@@ -4591,7 +4667,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4591
4667
  }
4592
4668
  }).catch(function (err) {
4593
4669
  if (err.message && err.message !== 'canceled') {
4594
- _this2.$message.error(err.message);
4670
+ _this.$message.error(err.message);
4595
4671
  }
4596
4672
  });
4597
4673
  }).catch(function (e) {});