ai-error-assistant-mobile 0.0.2 → 0.0.3

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.
@@ -74,7 +74,7 @@
74
74
  </div>
75
75
  <div class="answer-content" v-if="businessSource !== '2' ">
76
76
  <div v-for="(list,index) in analysisData.recommend" :key="index" style="margin-bottom: 8px">
77
- <a :href="'https://ai-yuliao.hep.com.cn' + list.url"
77
+ <a :href="seeDetail(list.pageIndex, list.url)"
78
78
  target="_blank"
79
79
  v-if="!list.title.startsWith(chatMajorId)">{{ list.title }}
80
80
  </a>
@@ -89,7 +89,7 @@
89
89
  </template>
90
90
  <script>
91
91
  import ChatTools from './chat-tools.vue';
92
- import {erranalysis, retryAnalysis} from '../api/index'
92
+ import {erranalysis, retryAnalysis,pdfUrlBase} from '../api/index'
93
93
 
94
94
  export default {
95
95
  name: 'ErrorChart',
@@ -166,6 +166,10 @@ export default {
166
166
  throw new Error(e);
167
167
  }
168
168
  },
169
+ seeDetail(pageIndex, url){
170
+ const baseUrl = `${pdfUrlBase}/#/pdf-view?documentUrl=${encodeURIComponent(url)}&pageIndex=${pageIndex}`;
171
+ return baseUrl
172
+ },
169
173
  async reanswer(list) {
170
174
  const cache = {...this.analysisData};
171
175
  this.analysisData = {};
@@ -11470,8 +11470,8 @@ var component = normalizeComponent(
11470
11470
  )
11471
11471
 
11472
11472
  /* harmony default export */ var chat_tools = (component.exports);
11473
- ;// 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/error-chat.vue?vue&type=template&id=0ace6e87&scoped=true
11474
- var error_chatvue_type_template_id_0ace6e87_scoped_true_render = function render() {
11473
+ ;// 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/error-chat.vue?vue&type=template&id=7e6cfafb&scoped=true
11474
+ var error_chatvue_type_template_id_7e6cfafb_scoped_true_render = function render() {
11475
11475
  var _vm = this,
11476
11476
  _c = _vm._self._c;
11477
11477
  return _c('div', {
@@ -11601,7 +11601,7 @@ var error_chatvue_type_template_id_0ace6e87_scoped_true_render = function render
11601
11601
  }
11602
11602
  }, [!list.title.startsWith(_vm.chatMajorId) ? _c('a', {
11603
11603
  attrs: {
11604
- "href": 'https://ai-yuliao.hep.com.cn' + list.url,
11604
+ "href": _vm.seeDetail(list.pageIndex, list.url),
11605
11605
  "target": "_blank"
11606
11606
  }
11607
11607
  }, [_vm._v(_vm._s(list.title) + " ")]) : _vm._e()]);
@@ -11616,7 +11616,7 @@ var error_chatvue_type_template_id_0ace6e87_scoped_true_render = function render
11616
11616
  }
11617
11617
  })], 1)]);
11618
11618
  };
11619
- var error_chatvue_type_template_id_0ace6e87_scoped_true_staticRenderFns = [function () {
11619
+ var error_chatvue_type_template_id_7e6cfafb_scoped_true_staticRenderFns = [function () {
11620
11620
  var _vm = this,
11621
11621
  _c = _vm._self._c;
11622
11622
  return _c('div', {
@@ -11635,7 +11635,7 @@ var error_chatvue_type_template_id_0ace6e87_scoped_true_staticRenderFns = [funct
11635
11635
  })]);
11636
11636
  }];
11637
11637
 
11638
- ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=template&id=0ace6e87&scoped=true
11638
+ ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=template&id=7e6cfafb&scoped=true
11639
11639
 
11640
11640
  ;// 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/index.js??vue-loader-options!./components/demo/src/error-chat.vue?vue&type=script&lang=js
11641
11641
 
@@ -11726,6 +11726,10 @@ var error_chatvue_type_template_id_0ace6e87_scoped_true_staticRenderFns = [funct
11726
11726
  throw new Error(e);
11727
11727
  }
11728
11728
  },
11729
+ seeDetail(pageIndex, url) {
11730
+ const baseUrl = `${pdfUrlBase}/#/pdf-view?documentUrl=${encodeURIComponent(url)}&pageIndex=${pageIndex}`;
11731
+ return baseUrl;
11732
+ },
11729
11733
  async reanswer(list) {
11730
11734
  const cache = {
11731
11735
  ...this.analysisData
@@ -11766,10 +11770,10 @@ var error_chatvue_type_template_id_0ace6e87_scoped_true_staticRenderFns = [funct
11766
11770
  });
11767
11771
  ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=script&lang=js
11768
11772
  /* harmony default export */ var src_error_chatvue_type_script_lang_js = (error_chatvue_type_script_lang_js);
11769
- ;// 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/error-chat.vue?vue&type=style&index=0&id=0ace6e87&prod&lang=scss&scoped=true
11773
+ ;// 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/error-chat.vue?vue&type=style&index=0&id=7e6cfafb&prod&lang=scss&scoped=true
11770
11774
  // extracted by mini-css-extract-plugin
11771
11775
 
11772
- ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=style&index=0&id=0ace6e87&prod&lang=scss&scoped=true
11776
+ ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=style&index=0&id=7e6cfafb&prod&lang=scss&scoped=true
11773
11777
 
11774
11778
  ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue
11775
11779
 
@@ -11782,11 +11786,11 @@ var error_chatvue_type_template_id_0ace6e87_scoped_true_staticRenderFns = [funct
11782
11786
 
11783
11787
  var error_chat_component = normalizeComponent(
11784
11788
  src_error_chatvue_type_script_lang_js,
11785
- error_chatvue_type_template_id_0ace6e87_scoped_true_render,
11786
- error_chatvue_type_template_id_0ace6e87_scoped_true_staticRenderFns,
11789
+ error_chatvue_type_template_id_7e6cfafb_scoped_true_render,
11790
+ error_chatvue_type_template_id_7e6cfafb_scoped_true_staticRenderFns,
11787
11791
  false,
11788
11792
  null,
11789
- "0ace6e87",
11793
+ "7e6cfafb",
11790
11794
  null
11791
11795
 
11792
11796
  )