ai-error-assistant-pro 0.0.2 → 0.0.4

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.
@@ -49,6 +49,7 @@
49
49
  </el-checkbox-group>
50
50
  <el-input v-model="input" :rows="4"
51
51
  maxlength="30"
52
+ show-word-limit
52
53
  placeholder="其他"
53
54
  resize="none"
54
55
  type="textarea" />
@@ -2,9 +2,7 @@
2
2
  <div class="error-chat-contain">
3
3
  <div class="exercises-answer">
4
4
  <div class="exercises-answer-bg"></div>
5
- <p class="question-stem">
6
- {{ questionStem.title }}
7
- </p>
5
+ <p class="question-stem" v-html="questionStem.title"></p>
8
6
  <div class="answer-part" v-if="questionStem.type === 'single' || questionStem.type === 'multiple'">
9
7
  <div class="answer-list" v-for="(item, index) in questionStem.options" :key="index">
10
8
  <div class="check-content" style="width: 24px">
@@ -13,7 +11,7 @@
13
11
  alt=""
14
12
  style="width: 24px">
15
13
  </div>
16
- <div class="answer-list">{{ item }}</div>
14
+ <div class="answer-list" v-html="item"></div>
17
15
  </div>
18
16
  </div>
19
17
  <div class="answer-part"
@@ -21,43 +19,44 @@
21
19
  v-if="questionStem.type === 'judge'">
22
20
  正确答案: <span style="margin-left: 8px">{{ questionStem.answer.join(',') }}</span>
23
21
  </div>
22
+ <!-- <div class="answer-part"-->
23
+ <!-- style="padding-bottom: 24px"-->
24
+ <!-- v-if="questionStem.type === 'gapfilling'">-->
25
+ <!-- 正确答案:-->
26
+ <!-- <span style="margin-left: 8px"-->
27
+ <!-- v-for="(item, index) in questionStem.answer"-->
28
+ <!-- :key="index">-->
29
+ <!-- {{ item }}<span v-if="index !== questionStem.answer.length - 1">,</span>-->
30
+ <!-- </span>-->
31
+ <!-- </div>-->
24
32
  <div class="answer-part"
25
33
  style="padding-bottom: 24px"
26
- v-if="questionStem.type === 'gapfilling'">
27
- 正确答案:
28
- <span style="margin-left: 8px"
29
- v-for="(item, index) in questionStem.answer"
30
- :key="index">
31
- {{ item }}<span v-if="index !== questionStem.answer.length - 1">,</span>
32
- </span>
33
- </div>
34
- <div class="answer-part"
35
- style="padding-bottom: 24px"
36
- v-if="questionStem.type === 'shortanswer'">
37
- 正确答案: <span style="margin-left: 8px">{{ questionStem.answer.join(',') }}</span>
34
+ v-if="questionStem.type === 'shortanswer' || questionStem.type === 'gapfilling'">
35
+ <span style="vertical-align: inherit; display: inline-block">正确答案:</span>
36
+ <span style="margin-left: 8px; display: inline-block; width: calc(100% - 82px); vertical-align: top;" v-html="questionStem.answer.join(',')"></span>
38
37
  </div>
39
38
  <div class="student-answer-part">
40
39
  <div class="check-content" style="width: 24px; margin-right: 16px">
41
40
  <img src="../static/error.png" style="width: 24px">
42
41
  </div>
43
42
  <div v-if="questionStem.type === 'single' || questionStem.type === 'multiple'">
44
- <span v-for="(item, index) in questionStem.studentAnswer"
43
+ <div v-for="(item, index) in questionStem.studentAnswer"
45
44
  style="margin-right: 16px"
46
- :key="index">
47
- {{ item }}
48
- </span>
45
+ :key="index"
46
+ v-html="item">
47
+ </div>
49
48
  </div>
50
49
  <div v-if="questionStem.type === 'judge'">
51
50
  <span style="margin-left: 8px">{{ questionStem.studentAnswer.join(',') }}</span>
52
51
  </div>
53
- <span style="margin-left: 8px"
54
- v-if="questionStem.type === 'gapfilling'"
55
- v-for="(item, index) in questionStem.studentAnswer"
56
- :key="index">
57
- {{ item }}<span v-if="index !== questionStem.studentAnswer.length - 1">,</span>
58
- </span>
59
- <div v-if="questionStem.type === 'shortanswer'">
60
- <span style="margin-left: 8px">{{ questionStem.studentAnswer.join(',') }}</span>
52
+ <!-- <span style="margin-left: 8px"-->
53
+ <!-- v-if="questionStem.type === 'gapfilling'"-->
54
+ <!-- v-for="(item, index) in questionStem.studentAnswer"-->
55
+ <!-- :key="index">-->
56
+ <!-- {{ item }}<span v-if="index !== questionStem.studentAnswer.length - 1">,</span>-->
57
+ <!-- </span>-->
58
+ <div v-if="questionStem.type === 'shortanswer' || questionStem.type === 'gapfilling'">
59
+ <span style="margin-left: 8px" v-html="questionStem.studentAnswer.join(',')"></span>
61
60
  </div>
62
61
  </div>
63
62
  </div>
@@ -10927,8 +10927,8 @@ const getUserInfo = async token => {
10927
10927
  });
10928
10928
  cache.session.setJSON('SRKJ_TOKEN_CACHE', userRes);
10929
10929
  };
10930
- ;// 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-tools.vue?vue&type=template&id=769c4966&scoped=true
10931
- var chat_toolsvue_type_template_id_769c4966_scoped_true_render = function render() {
10930
+ ;// 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-tools.vue?vue&type=template&id=7e1b214b&scoped=true
10931
+ var chat_toolsvue_type_template_id_7e1b214b_scoped_true_render = function render() {
10932
10932
  var _vm = this,
10933
10933
  _c = _vm._self._c;
10934
10934
  return _vm.listData ? _c('div', {
@@ -11065,6 +11065,7 @@ var chat_toolsvue_type_template_id_769c4966_scoped_true_render = function render
11065
11065
  attrs: {
11066
11066
  "rows": 4,
11067
11067
  "maxlength": "30",
11068
+ "show-word-limit": "",
11068
11069
  "placeholder": "其他",
11069
11070
  "resize": "none",
11070
11071
  "type": "textarea"
@@ -11089,9 +11090,9 @@ var chat_toolsvue_type_template_id_769c4966_scoped_true_render = function render
11089
11090
  }
11090
11091
  }, [_vm._v("提交")])], 1)], 1)])])], 1)]) : _vm._e();
11091
11092
  };
11092
- var chat_toolsvue_type_template_id_769c4966_scoped_true_staticRenderFns = [];
11093
+ var chat_toolsvue_type_template_id_7e1b214b_scoped_true_staticRenderFns = [];
11093
11094
 
11094
- ;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=template&id=769c4966&scoped=true
11095
+ ;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=template&id=7e1b214b&scoped=true
11095
11096
 
11096
11097
  ;// 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/chat-tools.vue?vue&type=script&lang=js
11097
11098
 
@@ -11184,10 +11185,10 @@ var chat_toolsvue_type_template_id_769c4966_scoped_true_staticRenderFns = [];
11184
11185
  });
11185
11186
  ;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=script&lang=js
11186
11187
  /* harmony default export */ var src_chat_toolsvue_type_script_lang_js = (chat_toolsvue_type_script_lang_js);
11187
- ;// 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-tools.vue?vue&type=style&index=0&id=769c4966&prod&lang=scss&scoped=true
11188
+ ;// 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-tools.vue?vue&type=style&index=0&id=7e1b214b&prod&lang=scss&scoped=true
11188
11189
  // extracted by mini-css-extract-plugin
11189
11190
 
11190
- ;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=style&index=0&id=769c4966&prod&lang=scss&scoped=true
11191
+ ;// CONCATENATED MODULE: ./components/demo/src/chat-tools.vue?vue&type=style&index=0&id=7e1b214b&prod&lang=scss&scoped=true
11191
11192
 
11192
11193
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
11193
11194
  /* globals __VUE_SSR_CONTEXT__ */
@@ -11298,18 +11299,18 @@ function normalizeComponent(
11298
11299
 
11299
11300
  var component = normalizeComponent(
11300
11301
  src_chat_toolsvue_type_script_lang_js,
11301
- chat_toolsvue_type_template_id_769c4966_scoped_true_render,
11302
- chat_toolsvue_type_template_id_769c4966_scoped_true_staticRenderFns,
11302
+ chat_toolsvue_type_template_id_7e1b214b_scoped_true_render,
11303
+ chat_toolsvue_type_template_id_7e1b214b_scoped_true_staticRenderFns,
11303
11304
  false,
11304
11305
  null,
11305
- "769c4966",
11306
+ "7e1b214b",
11306
11307
  null
11307
11308
 
11308
11309
  )
11309
11310
 
11310
11311
  /* harmony default export */ var chat_tools = (component.exports);
11311
- ;// 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=2fd7df27&scoped=true
11312
- var error_chatvue_type_template_id_2fd7df27_scoped_true_render = function render() {
11312
+ ;// 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=081d2667&scoped=true
11313
+ var error_chatvue_type_template_id_081d2667_scoped_true_render = function render() {
11313
11314
  var _vm = this,
11314
11315
  _c = _vm._self._c;
11315
11316
  return _c('div', {
@@ -11319,8 +11320,11 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_render = function render
11319
11320
  }, [_c('div', {
11320
11321
  staticClass: "exercises-answer-bg"
11321
11322
  }), _c('p', {
11322
- staticClass: "question-stem"
11323
- }, [_vm._v(" " + _vm._s(_vm.questionStem.title) + " ")]), _vm.questionStem.type === 'single' || _vm.questionStem.type === 'multiple' ? _c('div', {
11323
+ staticClass: "question-stem",
11324
+ domProps: {
11325
+ "innerHTML": _vm._s(_vm.questionStem.title)
11326
+ }
11327
+ }), _vm.questionStem.type === 'single' || _vm.questionStem.type === 'multiple' ? _c('div', {
11324
11328
  staticClass: "answer-part"
11325
11329
  }, _vm._l(_vm.questionStem.options, function (item, index) {
11326
11330
  return _c('div', {
@@ -11340,8 +11344,11 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_render = function render
11340
11344
  "alt": ""
11341
11345
  }
11342
11346
  }) : _vm._e()]), _c('div', {
11343
- staticClass: "answer-list"
11344
- }, [_vm._v(_vm._s(item))])]);
11347
+ staticClass: "answer-list",
11348
+ domProps: {
11349
+ "innerHTML": _vm._s(item)
11350
+ }
11351
+ })]);
11345
11352
  }), 0) : _vm._e(), _vm.questionStem.type === 'judge' ? _c('div', {
11346
11353
  staticClass: "answer-part",
11347
11354
  staticStyle: {
@@ -11351,52 +11358,50 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_render = function render
11351
11358
  staticStyle: {
11352
11359
  "margin-left": "8px"
11353
11360
  }
11354
- }, [_vm._v(_vm._s(_vm.questionStem.answer.join(',')))])]) : _vm._e(), _vm.questionStem.type === 'gapfilling' ? _c('div', {
11361
+ }, [_vm._v(_vm._s(_vm.questionStem.answer.join(',')))])]) : _vm._e(), _vm.questionStem.type === 'shortanswer' || _vm.questionStem.type === 'gapfilling' ? _c('div', {
11355
11362
  staticClass: "answer-part",
11356
11363
  staticStyle: {
11357
11364
  "padding-bottom": "24px"
11358
11365
  }
11359
- }, [_vm._v(" 正确答案: "), _vm._l(_vm.questionStem.answer, function (item, index) {
11360
- return _c('span', {
11361
- key: index,
11362
- staticStyle: {
11363
- "margin-left": "8px"
11364
- }
11365
- }, [_vm._v(" " + _vm._s(item)), index !== _vm.questionStem.answer.length - 1 ? _c('span', [_vm._v(",")]) : _vm._e()]);
11366
- })], 2) : _vm._e(), _vm.questionStem.type === 'shortanswer' ? _c('div', {
11367
- staticClass: "answer-part",
11366
+ }, [_c('span', {
11368
11367
  staticStyle: {
11369
- "padding-bottom": "24px"
11368
+ "vertical-align": "inherit",
11369
+ "display": "inline-block"
11370
11370
  }
11371
- }, [_vm._v(" 正确答案: "), _c('span', {
11371
+ }, [_vm._v("正确答案:")]), _c('span', {
11372
11372
  staticStyle: {
11373
- "margin-left": "8px"
11373
+ "margin-left": "8px",
11374
+ "display": "inline-block",
11375
+ "width": "calc(100% - 82px)",
11376
+ "vertical-align": "top"
11377
+ },
11378
+ domProps: {
11379
+ "innerHTML": _vm._s(_vm.questionStem.answer.join(','))
11374
11380
  }
11375
- }, [_vm._v(_vm._s(_vm.questionStem.answer.join(',')))])]) : _vm._e(), _c('div', {
11381
+ })]) : _vm._e(), _c('div', {
11376
11382
  staticClass: "student-answer-part"
11377
11383
  }, [_vm._m(0), _vm.questionStem.type === 'single' || _vm.questionStem.type === 'multiple' ? _c('div', _vm._l(_vm.questionStem.studentAnswer, function (item, index) {
11378
- return _c('span', {
11384
+ return _c('div', {
11379
11385
  key: index,
11380
11386
  staticStyle: {
11381
11387
  "margin-right": "16px"
11388
+ },
11389
+ domProps: {
11390
+ "innerHTML": _vm._s(item)
11382
11391
  }
11383
- }, [_vm._v(" " + _vm._s(item) + " ")]);
11392
+ });
11384
11393
  }), 0) : _vm._e(), _vm.questionStem.type === 'judge' ? _c('div', [_c('span', {
11385
11394
  staticStyle: {
11386
11395
  "margin-left": "8px"
11387
11396
  }
11388
- }, [_vm._v(_vm._s(_vm.questionStem.studentAnswer.join(',')))])]) : _vm._e(), _vm._l(_vm.questionStem.studentAnswer, function (item, index) {
11389
- return _vm.questionStem.type === 'gapfilling' ? _c('span', {
11390
- key: index,
11391
- staticStyle: {
11392
- "margin-left": "8px"
11393
- }
11394
- }, [_vm._v(" " + _vm._s(item)), index !== _vm.questionStem.studentAnswer.length - 1 ? _c('span', [_vm._v(",")]) : _vm._e()]) : _vm._e();
11395
- }), _vm.questionStem.type === 'shortanswer' ? _c('div', [_c('span', {
11397
+ }, [_vm._v(_vm._s(_vm.questionStem.studentAnswer.join(',')))])]) : _vm._e(), _vm.questionStem.type === 'shortanswer' || _vm.questionStem.type === 'gapfilling' ? _c('div', [_c('span', {
11396
11398
  staticStyle: {
11397
11399
  "margin-left": "8px"
11400
+ },
11401
+ domProps: {
11402
+ "innerHTML": _vm._s(_vm.questionStem.studentAnswer.join(','))
11398
11403
  }
11399
- }, [_vm._v(_vm._s(_vm.questionStem.studentAnswer.join(',')))])]) : _vm._e()], 2)]), _c('div', {
11404
+ })]) : _vm._e()])]), _c('div', {
11400
11405
  directives: [{
11401
11406
  name: "loading",
11402
11407
  rawName: "v-loading",
@@ -11448,7 +11453,7 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_render = function render
11448
11453
  }
11449
11454
  })], 1)]);
11450
11455
  };
11451
- var error_chatvue_type_template_id_2fd7df27_scoped_true_staticRenderFns = [function () {
11456
+ var error_chatvue_type_template_id_081d2667_scoped_true_staticRenderFns = [function () {
11452
11457
  var _vm = this,
11453
11458
  _c = _vm._self._c;
11454
11459
  return _c('div', {
@@ -11467,7 +11472,7 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_staticRenderFns = [funct
11467
11472
  })]);
11468
11473
  }];
11469
11474
 
11470
- ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=template&id=2fd7df27&scoped=true
11475
+ ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=template&id=081d2667&scoped=true
11471
11476
 
11472
11477
  ;// 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
11473
11478
 
@@ -11582,10 +11587,10 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_staticRenderFns = [funct
11582
11587
  });
11583
11588
  ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=script&lang=js
11584
11589
  /* harmony default export */ var src_error_chatvue_type_script_lang_js = (error_chatvue_type_script_lang_js);
11585
- ;// 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=2fd7df27&prod&lang=scss&scoped=true
11590
+ ;// 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=081d2667&prod&lang=scss&scoped=true
11586
11591
  // extracted by mini-css-extract-plugin
11587
11592
 
11588
- ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=style&index=0&id=2fd7df27&prod&lang=scss&scoped=true
11593
+ ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=style&index=0&id=081d2667&prod&lang=scss&scoped=true
11589
11594
 
11590
11595
  ;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue
11591
11596
 
@@ -11598,11 +11603,11 @@ var error_chatvue_type_template_id_2fd7df27_scoped_true_staticRenderFns = [funct
11598
11603
 
11599
11604
  var error_chat_component = normalizeComponent(
11600
11605
  src_error_chatvue_type_script_lang_js,
11601
- error_chatvue_type_template_id_2fd7df27_scoped_true_render,
11602
- error_chatvue_type_template_id_2fd7df27_scoped_true_staticRenderFns,
11606
+ error_chatvue_type_template_id_081d2667_scoped_true_render,
11607
+ error_chatvue_type_template_id_081d2667_scoped_true_staticRenderFns,
11603
11608
  false,
11604
11609
  null,
11605
- "2fd7df27",
11610
+ "081d2667",
11606
11611
  null
11607
11612
 
11608
11613
  )