ai-error-assistant-pro 0.0.21 → 0.0.23

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.
@@ -72,7 +72,7 @@
72
72
  </div>
73
73
  <div class="answer-content" v-if="businessSource !== '2' ">
74
74
  <div v-for="(list,index) in analysisData.recommend" :key="index" style="margin-bottom: 8px">
75
- <a :href="'https://ai-yuliao.hep.com.cn' + list.url"
75
+ <a :href="seeDetail(list.pageIndex, list.url)"
76
76
  target="_blank"
77
77
  v-if="!list.title.startsWith(chatMajorId)">{{ list.title }}
78
78
  </a>
@@ -88,7 +88,7 @@
88
88
  </template>
89
89
  <script>
90
90
  import ChatTools from './chat-tools.vue';
91
- import { erranalysis, retryAnalysis } from '../api/index'
91
+ import {erranalysis, pdfUrlBase, retryAnalysis} from '../api/index'
92
92
  export default {
93
93
  name: 'ErrorChart',
94
94
  components: {
@@ -136,6 +136,7 @@ export default {
136
136
  answer: this.questionStem.answer.join(','),
137
137
  studentAnswer: this.questionStem.studentAnswer.join(','),
138
138
  optionList: this.questionStem.options,
139
+ businessSource: this.businessSource,
139
140
  });
140
141
  const {
141
142
  eaAnalysisDtoList: [{ content, errId, chatId, contentId, type }],
@@ -170,6 +171,10 @@ export default {
170
171
  throw new Error(e);
171
172
  }
172
173
  },
174
+ seeDetail(pageIndex, url){
175
+ const baseUrl = `${pdfUrlBase}/#/pdf-view?documentUrl=${encodeURIComponent(url)}&pageIndex=${pageIndex}`;
176
+ return baseUrl
177
+ },
173
178
  async reanswer(list) {
174
179
  const cache = {...this.analysisData};
175
180
  this.analysisData = {};
@@ -11500,8 +11500,8 @@ var component = normalizeComponent(
11500
11500
  )
11501
11501
 
11502
11502
  /* harmony default export */ var chat_tools = (component.exports);
11503
- ;// 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=9097633c&scoped=true
11504
- var error_chatvue_type_template_id_9097633c_scoped_true_render = function render() {
11503
+ ;// 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=70115630&scoped=true
11504
+ var error_chatvue_type_template_id_70115630_scoped_true_render = function render() {
11505
11505
  var _vm = this,
11506
11506
  _c = _vm._self._c;
11507
11507
  return _c('div', {
@@ -11632,7 +11632,7 @@ var error_chatvue_type_template_id_9097633c_scoped_true_render = function render
11632
11632
  }
11633
11633
  }, [!list.title.startsWith(_vm.chatMajorId) ? _c('a', {
11634
11634
  attrs: {
11635
- "href": 'https://ai-yuliao.hep.com.cn' + list.url,
11635
+ "href": _vm.seeDetail(list.pageIndex, list.url),
11636
11636
  "target": "_blank"
11637
11637
  }
11638
11638
  }, [_vm._v(_vm._s(list.title) + " ")]) : _vm._e()]);
@@ -11648,7 +11648,7 @@ var error_chatvue_type_template_id_9097633c_scoped_true_render = function render
11648
11648
  }
11649
11649
  })], 1)]);
11650
11650
  };
11651
- var error_chatvue_type_template_id_9097633c_scoped_true_staticRenderFns = [function () {
11651
+ var error_chatvue_type_template_id_70115630_scoped_true_staticRenderFns = [function () {
11652
11652
  var _vm = this,
11653
11653
  _c = _vm._self._c;
11654
11654
  return _c('div', {
@@ -11667,7 +11667,7 @@ var error_chatvue_type_template_id_9097633c_scoped_true_staticRenderFns = [funct
11667
11667
  })]);
11668
11668
  }];
11669
11669
 
11670
- ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=template&id=9097633c&scoped=true
11670
+ ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=template&id=70115630&scoped=true
11671
11671
 
11672
11672
  ;// 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
11673
11673
 
@@ -11722,7 +11722,8 @@ var error_chatvue_type_template_id_9097633c_scoped_true_staticRenderFns = [funct
11722
11722
  title: this.questionStem.title,
11723
11723
  answer: this.questionStem.answer.join(','),
11724
11724
  studentAnswer: this.questionStem.studentAnswer.join(','),
11725
- optionList: this.questionStem.options
11725
+ optionList: this.questionStem.options,
11726
+ businessSource: this.businessSource
11726
11727
  });
11727
11728
  const {
11728
11729
  eaAnalysisDtoList: [{
@@ -11764,6 +11765,10 @@ var error_chatvue_type_template_id_9097633c_scoped_true_staticRenderFns = [funct
11764
11765
  throw new Error(e);
11765
11766
  }
11766
11767
  },
11768
+ seeDetail(pageIndex, url) {
11769
+ const baseUrl = `${pdfUrlBase}/#/pdf-view?documentUrl=${encodeURIComponent(url)}&pageIndex=${pageIndex}`;
11770
+ return baseUrl;
11771
+ },
11767
11772
  async reanswer(list) {
11768
11773
  const cache = {
11769
11774
  ...this.analysisData
@@ -11804,10 +11809,10 @@ var error_chatvue_type_template_id_9097633c_scoped_true_staticRenderFns = [funct
11804
11809
  });
11805
11810
  ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=script&lang=js
11806
11811
  /* harmony default export */ var src_error_chatvue_type_script_lang_js = (error_chatvue_type_script_lang_js);
11807
- ;// 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=9097633c&prod&lang=scss&scoped=true
11812
+ ;// 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=70115630&prod&lang=scss&scoped=true
11808
11813
  // extracted by mini-css-extract-plugin
11809
11814
 
11810
- ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=style&index=0&id=9097633c&prod&lang=scss&scoped=true
11815
+ ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=style&index=0&id=70115630&prod&lang=scss&scoped=true
11811
11816
 
11812
11817
  ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue
11813
11818
 
@@ -11820,11 +11825,11 @@ var error_chatvue_type_template_id_9097633c_scoped_true_staticRenderFns = [funct
11820
11825
 
11821
11826
  var error_chat_component = normalizeComponent(
11822
11827
  src_error_chatvue_type_script_lang_js,
11823
- error_chatvue_type_template_id_9097633c_scoped_true_render,
11824
- error_chatvue_type_template_id_9097633c_scoped_true_staticRenderFns,
11828
+ error_chatvue_type_template_id_70115630_scoped_true_render,
11829
+ error_chatvue_type_template_id_70115630_scoped_true_staticRenderFns,
11825
11830
  false,
11826
11831
  null,
11827
- "9097633c",
11832
+ "70115630",
11828
11833
  null
11829
11834
 
11830
11835
  )