ai-error-assistant-pro 0.0.11 → 0.0.13

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.
@@ -8,8 +8,8 @@ let prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants
8
8
  // 0.0.7 版本接口升级
9
9
  prefix += '/plugin/v2';
10
10
 
11
- export const pdfUrlBase = 'https://testagent.icve.com.cn';
12
- // export const pdfUrlBase = 'http://agent.icve.com.cn';
11
+ // export const pdfUrlBase = 'https://testagent.icve.com.cn';
12
+ export const pdfUrlBase = 'https://agent.icve.com.cn';
13
13
  export const pdfUrl = pdfUrlBase + '/ossurl';
14
14
  export const ssoAuth = (token, businessSource) => {
15
15
  return request({
@@ -11,34 +11,36 @@
11
11
  <div v-else class="robot user">user</div>
12
12
  <div :class="{'user-info': list.type === 'user'}" class="robot-message">
13
13
  <div v-html="list.message"></div>
14
- <div v-if="list.type === 'robot' && list.links.length > 0" class="link">
14
+ <div v-if="list.type === 'robot' && list.links.length > 0 && showFile" class="link">
15
15
  <div v-if="!list.allIdWithStart">
16
16
  <div class="link-title">参考文件</div>
17
17
  <div class="link-content">
18
18
  <template v-for="item in list.links">
19
- <div class="links" v-if="!item.title.startsWith(chatMajorId)">
19
+ <template v-if="!item.title.startsWith(chatMajorId)">
20
+ <div class="links" >
20
21
  <span>{{ `《${item.title}》` }} 共
21
22
  <span style="font-weight: bold">
22
23
  {{ item.fileDTOS.length }}
23
24
  </span>
24
25
  处引用
25
26
  </span>
26
- </div>
27
- <div
28
- v-for="(pdf, index) in item.fileDTOS"
29
- class="link-part-container"
30
- :key="index"
31
- >
27
+ </div>
28
+ <div
29
+ v-for="(pdf, index) in item.fileDTOS"
30
+ class="link-part-container"
31
+ :key="index"
32
+ >
32
33
  <span class="link-list-part">
33
34
  {{ pdf.matchContent }}
34
35
  </span>
35
- <span
36
- class="link-list-button"
37
- @click="seeDetail(pdf, item.documentUrl)"
38
- >
36
+ <span
37
+ class="link-list-button"
38
+ @click="seeDetail(pdf, item.documentUrl)"
39
+ >
39
40
  点击查看
40
41
  </span>
41
- </div>
42
+ </div>
43
+ </template>
42
44
  </template>
43
45
  </div>
44
46
  </div>
@@ -111,6 +113,10 @@ export default {
111
113
  type: Boolean,
112
114
  default: false,
113
115
  },
116
+ showFile: {
117
+ type: Boolean,
118
+ default: false,
119
+ },
114
120
  },
115
121
  data() {
116
122
  return {
@@ -315,7 +321,7 @@ export default {
315
321
  }
316
322
  const obj = {
317
323
  type: list.role === 'assistant' ? 'robot' : 'user',
318
- message: list.role === 'assistant' ? marked.parse(list.content) : list.content.replace(/\n/g, '<br>'),
324
+ message: list.role === 'assistant' ? marked.parse(list.content || '') : list.content.replace(/\n/g, '<br>'),
319
325
  zan: list.type === 1,
320
326
  cai: list.type === 2,
321
327
  stop: list.status === 1,
@@ -435,7 +441,7 @@ export default {
435
441
  background: #fafafd;
436
442
  border-radius: 8px;
437
443
  padding: 8px;
438
- max-height: 170px;
444
+ //max-height: 170px;
439
445
  overflow: auto;
440
446
 
441
447
  .links {
@@ -19,6 +19,7 @@
19
19
  :resId="resId"
20
20
  :xtId="xtId"
21
21
  :show-more-q-a="showMoreQA"
22
+ :show-file="showFile"
22
23
  :key-word="aiMessageKeyWord"
23
24
  :analy-exercise="analyExercise"
24
25
  @on-reanser="reanserMethod"
@@ -90,6 +91,7 @@ export default {
90
91
  courseFlag: false,
91
92
  message:'',
92
93
  showMoreQA: false,
94
+ showFile: false,
93
95
  }
94
96
  },
95
97
  async mounted() {
@@ -99,8 +101,9 @@ export default {
99
101
  getUserInfo(Cookies.get("token"), this.businessSource);
100
102
  const wordRes = await queryCallWord(this.resId);
101
103
  if (!wordRes) return;
102
- const { showMoreQA } = wordRes;
104
+ const { showMoreQA, isShowFile } = wordRes;
103
105
  this.showMoreQA = showMoreQA;
106
+ this.showFile = !!isShowFile;
104
107
  },
105
108
  methods: {
106
109
  closeMessage() {
@@ -6546,7 +6546,7 @@ if (typeof window !== 'undefined') {
6546
6546
  // Indicate to webpack that this file can be concatenated
6547
6547
  /* harmony default export */ var setPublicPath = (null);
6548
6548
 
6549
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=template&id=30b5baca&scoped=true
6549
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=template&id=2440bc18&scoped=true
6550
6550
  var render = function render() {
6551
6551
  var _vm = this,
6552
6552
  _c = _vm._self._c;
@@ -6575,6 +6575,7 @@ var render = function render() {
6575
6575
  "resId": _vm.resId,
6576
6576
  "xtId": _vm.xtId,
6577
6577
  "show-more-q-a": _vm.showMoreQA,
6578
+ "show-file": _vm.showFile,
6578
6579
  "key-word": _vm.aiMessageKeyWord,
6579
6580
  "analy-exercise": _vm.analyExercise
6580
6581
  },
@@ -6644,10 +6645,10 @@ var staticRenderFns = [function () {
6644
6645
  }, [_vm._v("智能解析")])]);
6645
6646
  }];
6646
6647
 
6647
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=30b5baca&scoped=true
6648
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=2440bc18&scoped=true
6648
6649
 
6649
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=template&id=422cbfc3&scoped=true
6650
- var chatvue_type_template_id_422cbfc3_scoped_true_render = function render() {
6650
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=template&id=3433f3ca&scoped=true
6651
+ var chatvue_type_template_id_3433f3ca_scoped_true_render = function render() {
6651
6652
  var _vm = this,
6652
6653
  _c = _vm._self._c;
6653
6654
  return _c('div', {
@@ -6682,20 +6683,20 @@ var chatvue_type_template_id_422cbfc3_scoped_true_render = function render() {
6682
6683
  domProps: {
6683
6684
  "innerHTML": _vm._s(list.message)
6684
6685
  }
6685
- }), list.type === 'robot' && list.links.length > 0 ? _c('div', {
6686
+ }), list.type === 'robot' && list.links.length > 0 && _vm.showFile ? _c('div', {
6686
6687
  staticClass: "link"
6687
6688
  }, [!list.allIdWithStart ? _c('div', [_c('div', {
6688
6689
  staticClass: "link-title"
6689
6690
  }, [_vm._v("参考文件")]), _c('div', {
6690
6691
  staticClass: "link-content"
6691
6692
  }, [_vm._l(list.links, function (item) {
6692
- return [!item.title.startsWith(_vm.chatMajorId) ? _c('div', {
6693
+ return [!item.title.startsWith(_vm.chatMajorId) ? [_c('div', {
6693
6694
  staticClass: "links"
6694
6695
  }, [_c('span', [_vm._v(_vm._s(`《${item.title}》`) + " 共 "), _c('span', {
6695
6696
  staticStyle: {
6696
6697
  "font-weight": "bold"
6697
6698
  }
6698
- }, [_vm._v(" " + _vm._s(item.fileDTOS.length) + " ")]), _vm._v(" 处引用 ")])]) : _vm._e(), _vm._l(item.fileDTOS, function (pdf, index) {
6699
+ }, [_vm._v(" " + _vm._s(item.fileDTOS.length) + " ")]), _vm._v(" 处引用 ")])]), _vm._l(item.fileDTOS, function (pdf, index) {
6699
6700
  return _c('div', {
6700
6701
  key: index,
6701
6702
  staticClass: "link-part-container"
@@ -6709,7 +6710,7 @@ var chatvue_type_template_id_422cbfc3_scoped_true_render = function render() {
6709
6710
  }
6710
6711
  }
6711
6712
  }, [_vm._v(" 点击查看 ")])]);
6712
- })];
6713
+ })] : _vm._e()];
6713
6714
  })], 2)]) : _vm._e()]) : _vm._e(), list.type === 'robot' && list.connectUrl.length > 0 ? _c('div', {
6714
6715
  staticClass: "link"
6715
6716
  }, [_c('div', {
@@ -6755,7 +6756,7 @@ var chatvue_type_template_id_422cbfc3_scoped_true_render = function render() {
6755
6756
  }) : _vm._e()], 1)]);
6756
6757
  })], 2);
6757
6758
  };
6758
- var chatvue_type_template_id_422cbfc3_scoped_true_staticRenderFns = [];
6759
+ var chatvue_type_template_id_3433f3ca_scoped_true_staticRenderFns = [];
6759
6760
 
6760
6761
  ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/bind.js
6761
6762
 
@@ -10897,8 +10898,9 @@ let prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants
10897
10898
 
10898
10899
  // 0.0.7 版本接口升级
10899
10900
  prefix += '/plugin/v2';
10900
- const pdfUrlBase = 'https://testagent.icve.com.cn';
10901
- // export const pdfUrlBase = 'http://agent.icve.com.cn';
10901
+
10902
+ // export const pdfUrlBase = 'https://testagent.icve.com.cn';
10903
+ const pdfUrlBase = 'https://agent.icve.com.cn';
10902
10904
  const pdfUrl = pdfUrlBase + '/ossurl';
10903
10905
  const ssoAuth = (token, businessSource) => {
10904
10906
  return utils_request({
@@ -14304,6 +14306,10 @@ const signal = controller.signal;
14304
14306
  showMoreQA: {
14305
14307
  type: Boolean,
14306
14308
  default: false
14309
+ },
14310
+ showFile: {
14311
+ type: Boolean,
14312
+ default: false
14307
14313
  }
14308
14314
  },
14309
14315
  data() {
@@ -14521,7 +14527,7 @@ const signal = controller.signal;
14521
14527
  }
14522
14528
  const obj = {
14523
14529
  type: list.role === 'assistant' ? 'robot' : 'user',
14524
- message: list.role === 'assistant' ? marked.parse(list.content) : list.content.replace(/\n/g, '<br>'),
14530
+ message: list.role === 'assistant' ? marked.parse(list.content || '') : list.content.replace(/\n/g, '<br>'),
14525
14531
  zan: list.type === 1,
14526
14532
  cai: list.type === 2,
14527
14533
  stop: list.status === 1,
@@ -14553,10 +14559,10 @@ const signal = controller.signal;
14553
14559
  });
14554
14560
  ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=script&lang=js
14555
14561
  /* harmony default export */ var src_chatvue_type_script_lang_js = (chatvue_type_script_lang_js);
14556
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=style&index=0&id=422cbfc3&prod&lang=scss&scoped=true
14562
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=style&index=0&id=3433f3ca&prod&lang=scss&scoped=true
14557
14563
  // extracted by mini-css-extract-plugin
14558
14564
 
14559
- ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=422cbfc3&prod&lang=scss&scoped=true
14565
+ ;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=3433f3ca&prod&lang=scss&scoped=true
14560
14566
 
14561
14567
  ;// CONCATENATED MODULE: ./components/demo/src/chat.vue
14562
14568
 
@@ -14569,11 +14575,11 @@ const signal = controller.signal;
14569
14575
 
14570
14576
  var chat_component = normalizeComponent(
14571
14577
  src_chatvue_type_script_lang_js,
14572
- chatvue_type_template_id_422cbfc3_scoped_true_render,
14573
- chatvue_type_template_id_422cbfc3_scoped_true_staticRenderFns,
14578
+ chatvue_type_template_id_3433f3ca_scoped_true_render,
14579
+ chatvue_type_template_id_3433f3ca_scoped_true_staticRenderFns,
14574
14580
  false,
14575
14581
  null,
14576
- "422cbfc3",
14582
+ "3433f3ca",
14577
14583
  null
14578
14584
 
14579
14585
  )
@@ -14764,7 +14770,8 @@ var api = init(defaultConverter, { path: '/' });
14764
14770
  stop: false,
14765
14771
  courseFlag: false,
14766
14772
  message: '',
14767
- showMoreQA: false
14773
+ showMoreQA: false,
14774
+ showFile: false
14768
14775
  };
14769
14776
  },
14770
14777
  async mounted() {
@@ -14775,9 +14782,11 @@ var api = init(defaultConverter, { path: '/' });
14775
14782
  const wordRes = await queryCallWord(this.resId);
14776
14783
  if (!wordRes) return;
14777
14784
  const {
14778
- showMoreQA
14785
+ showMoreQA,
14786
+ isShowFile
14779
14787
  } = wordRes;
14780
14788
  this.showMoreQA = showMoreQA;
14789
+ this.showFile = !!isShowFile;
14781
14790
  },
14782
14791
  methods: {
14783
14792
  closeMessage() {
@@ -14830,10 +14839,10 @@ var api = init(defaultConverter, { path: '/' });
14830
14839
  });
14831
14840
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
14832
14841
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
14833
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=0&id=30b5baca&prod&lang=scss&scoped=true
14842
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=0&id=2440bc18&prod&lang=scss&scoped=true
14834
14843
  // extracted by mini-css-extract-plugin
14835
14844
 
14836
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=30b5baca&prod&lang=scss&scoped=true
14845
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=2440bc18&prod&lang=scss&scoped=true
14837
14846
 
14838
14847
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue
14839
14848
 
@@ -14850,7 +14859,7 @@ var main_component = normalizeComponent(
14850
14859
  staticRenderFns,
14851
14860
  false,
14852
14861
  null,
14853
- "30b5baca",
14862
+ "2440bc18",
14854
14863
  null
14855
14864
 
14856
14865
  )