askbot-dragon 1.7.21-beta → 1.7.23-beta

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 (32) hide show
  1. package/package.json +2 -1
  2. package/public/index.html +8 -10
  3. package/src/assets/js/AliyunlssUtil.js +50 -26
  4. package/src/assets/js/hammer.js +13 -2
  5. package/src/assets/less/converSationContainer/common.less +7 -0
  6. package/src/components/ActionAlertIframe.vue +24 -1
  7. package/src/components/AiGuide.vue +121 -154
  8. package/src/components/AnswerDocknowledge.vue +108 -100
  9. package/src/components/ConversationContainer.vue +12 -207
  10. package/src/components/MyEditor.vue +2 -1
  11. package/src/components/actionSatisfaction.vue +3 -3
  12. package/src/components/answerRadio.vue +3 -3
  13. package/src/components/askVideo.vue +23 -0
  14. package/src/components/associationIntention.vue +11 -7
  15. package/src/components/formTemplate.vue +54 -50
  16. package/src/components/intelligentSummary.vue +8 -4
  17. package/src/components/message/TextMessage.vue +15 -11
  18. package/src/components/message/swiper/ticketSwiper.vue +1 -1
  19. package/src/components/newPdfPosition.vue +878 -0
  20. package/src/components/pdfPosition.vue +217 -37
  21. package/src/components/popup.vue +2 -2
  22. package/src/components/previewDoc.vue +6 -2
  23. package/src/components/previewPdf.vue +159 -134
  24. package/src/components/senderMessagePlatform.vue +4 -4
  25. package/src/components/utils/ckeditor.js +1 -1
  26. package/src/components/welcomeKnowledgeFile.vue +6 -2
  27. package/src/components/welcomeLlmCard.vue +5 -1
  28. package/src/components/welcomeSuggest.vue +1 -1
  29. package/src/locales/cn.json +72 -0
  30. package/src/locales/en.json +73 -0
  31. package/src/locales/jp.json +73 -0
  32. package/src/main.js +18 -0
@@ -5,7 +5,7 @@
5
5
  <template>
6
6
  <div class="answer-docknowledge">
7
7
  <div :class="['answer-docknowledge-header', msg.content.isKnowledgeSummary ? 'bgc' : '']">
8
- <div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您总结生成了以下摘要</div>
8
+ <div v-if="msg.content.isKnowledgeSummary" class="tips">{{$t('answerDocKnowledge.title')}}</div>
9
9
  <!-- <div v-if="msg.content.type == 0" class="answer-text">
10
10
  <template v-if="msg.content.renderType == 1">
11
11
  <p v-html="msg.content.text"></p>
@@ -16,22 +16,26 @@
16
16
  <template v-if="msg.content.renderType == 1">
17
17
  <p v-html="msg.content.text"></p>
18
18
  </template>
19
+ <template v-if="msg.content.renderType == 2">
20
+ <markDownText :chainValues="msg.content.text" :isHistory="true"></markDownText>
21
+ </template>
19
22
  <template v-else>{{ msg.content.text }}</template>
20
23
  </div>
21
24
  <div v-if="msg.content.images && msg.content.images.length != 0" class="answer-kn-image-box">
22
25
  <img v-for="(imageItem, imageItemIndex) in msg.content.images"
23
- style="max-width: 230px;border-radius: 10px;margin-bottom: 15px" :src="imageItem.url"
26
+ style="max-width: 230px;border-radius: 25px;margin-bottom: 15px" :src="imageItem.url"
24
27
  :key="imageItemIndex" alt @click="lookAttach(imageItem.url, imageItem, $event)" />
25
28
  </div>
26
29
  </div>
27
30
  <template v-if="!isLiBang">
28
31
  <div class="ad-list" :class="msg.content.type == 0 ? 'ad-list-recognition' : ''">
29
32
  <template v-if="msg.content.type == 1">
30
- <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell">
33
+ <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
34
+ :style="{ paddingBottom: itemIndex === msg.content.list.length - 1 ? 0 : '10px' }" class="ad-list-cell">
31
35
  <div class="alc-title">
32
36
  <div class="alc-box">
33
37
  <div class="alc-source-left">
34
- <span class="source-form">出自</span>
38
+ <span class="source-form">{{$t('answerDocKnowledge.sourceFrom')}}</span>
35
39
  <img class="alc-title-icon" height="24px" width="24px" :src="getIconSrc(item)" alt=""
36
40
  srcset="">
37
41
  <span class="alc-title-from">{{ item.from }}</span>
@@ -51,7 +55,7 @@
51
55
  {{ docSource[item.source] }}
52
56
  </div>
53
57
  <div v-show="item.url" class="alc-content-text">
54
- <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
58
+ <span @click="lookAttach(item.url, item, $event)" class="aci-view">{{$t('answerDocKnowledge.view')}} ></span>
55
59
  </div>
56
60
  </div>
57
61
  </div>
@@ -83,7 +87,7 @@
83
87
  </div>
84
88
  </div>
85
89
  </template>
86
- <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
90
+ <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">{{$t('common.loadMore')}}</div>
87
91
  </div>
88
92
  </template>
89
93
  <template v-if="isLiBang">
@@ -93,7 +97,7 @@
93
97
  <div class="libang_title">
94
98
  <div class="libang_box">
95
99
  <div class="libang_source_left">
96
- <span class="source-form">出自</span>
100
+ <span class="source-form">{{$t('answerDocKnowledge.sourceFrom')}}</span>
97
101
  <img class="libang_title_icon" height="24px" width="24px" :src="getIconSrc(item)" alt=""
98
102
  srcset="">
99
103
  <span class="libang_title_from">{{ item.from }}</span>
@@ -119,7 +123,7 @@
119
123
  </div>
120
124
  </div>
121
125
  <div v-show="item.url" class="libang_content_text">
122
- <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
126
+ <span @click="lookAttach(item.url, item, $event)" class="aci-view">{{$t('answerDocKnowledge.view')}} ></span>
123
127
  </div>
124
128
  </div>
125
129
  </div>
@@ -158,7 +162,7 @@
158
162
  <i class="iconfont guoran-right" @click="lookAttach(item.url, item, $event)"></i>
159
163
  </div>
160
164
  </template>
161
- <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
165
+ <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">{{$t('common.loadMore')}}</div>
162
166
  </div>
163
167
  </template>
164
168
 
@@ -174,9 +178,10 @@
174
178
  /* eslint-disable */
175
179
  import previewPdf from "./previewPdf";
176
180
  import { isMobile } from "../assets/js/common";
181
+ import markDownText from "./markDownText.vue";
177
182
  export default {
178
183
  name: "answerDocknowledge",
179
- components: { previewPdf },
184
+ components: { previewPdf, markDownText },
180
185
  data () {
181
186
  return {
182
187
  isPC: true,
@@ -263,14 +268,14 @@ export default {
263
268
  allKnowledgeList: [],
264
269
  loadMoreFlag: false,
265
270
  title: '',
266
- folderName:'',
267
- folderUrl:'',
271
+ folderName: '',
272
+ folderUrl: '',
268
273
  previewKnowledgeId: "",
269
274
  previewKnowledge: {},
270
275
  previewOssPath: ""
271
276
  }
272
277
  },
273
- props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang"],
278
+ props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","language"],
274
279
  beforeMounted () {
275
280
  },
276
281
  watch: {
@@ -332,78 +337,78 @@ export default {
332
337
  //预览图片
333
338
  lookAttach (url, item, event) {
334
339
  // console.log(item.knowledgeId);
335
- // this.$http.get("/knowledge-api/internal/knowledgeBaseStructure/" + "642ffbccde420e2772f7787b")
336
- // debugger
337
- event.preventDefault();
338
- if (this.isAskLightning == 1 && !this.isApp){
339
- window.parent.postMessage({
340
- data: "bot_preview",
341
- item: JSON.stringify(item),
342
- url: url
343
- },"*");
344
- } else {
345
- // if (isMobile()) {
346
- // this.$refs.previewPdf.drawer = true;
347
- // this.$refs.previewPdf.previewShowPopup = false;
348
- // } else {
349
- // this.$refs.previewPdf.drawer = false;
350
- // }
351
- this.title = item.from || item.name
352
- this.folderName = item.folderName
340
+ // this.$http.get("/knowledge-api/internal/knowledgeBaseStructure/" + "642ffbccde420e2772f7787b")
341
+ // debugger
342
+ event.preventDefault();
343
+ if (this.isAskLightning == 1 && !this.isApp) {
344
+ window.parent.postMessage({
345
+ data: "bot_preview",
346
+ item: JSON.stringify(item),
347
+ url: url
348
+ }, "*");
349
+ } else {
350
+ // if (isMobile()) {
351
+ // this.$refs.previewPdf.drawer = true;
352
+ // this.$refs.previewPdf.previewShowPopup = false;
353
+ // } else {
354
+ // this.$refs.previewPdf.drawer = false;
355
+ // }
356
+ this.title = item.from || item.name
357
+ this.folderName = item.folderName
353
358
  this.folderUrl = item.folderUrl
354
359
  this.previewKnowledge = item;
355
- this.previewKnowledgeId = item.knowledgeId
356
- this.$refs.previewPdf.previewShowPopup = false;
357
- this.$refs.previewPdf.drawer = false;
358
- this.previewOssPath = url;
359
- let index = url.lastIndexOf('?')
360
- let type = ''
361
- let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
362
- if (index !== -1) {
363
- url = url.substring(0, index)
364
- type = this.fileType(url)
365
- } else {
366
- type = this.fileType(url)
367
- }
368
- if (type === '' || type === 'OTHER') {
369
- httpUrl = httpUrl += '?needEncrypt=true'
370
- } else {
371
- httpUrl = httpUrl += '?needEncrypt=false'
372
- }
373
- this.$http.post(httpUrl, {
374
- "fileInOssPath":url
375
- }).then(res =>{
376
- if(res.data.code == '0') {
377
- this.previewHref = res.data.data;
378
- this.sourceFileType = url.substring(url.lastIndexOf('.'))
379
- let isOhmPc = sessionStorage.getItem('isOhmPc')
380
- if (isMobile() || isOhmPc == 'true'){
381
- this.$refs.previewPdf.drawer = true;
382
- this.$refs.previewPdf.previewShowPopup = true;
383
- } else {
384
- this.$refs.previewPdf.previewShowPopup = false;
385
- this.$refs.previewPdf.drawer = true;
386
- }
387
- //聊一聊按钮的选中状态
388
- if (this.activeKnowledgeId == item.knowledgeId){
389
- this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
360
+ this.previewKnowledgeId = item.knowledgeId
361
+ this.$refs.previewPdf.previewShowPopup = false;
362
+ this.$refs.previewPdf.drawer = false;
363
+ this.previewOssPath = url;
364
+ let index = url.lastIndexOf('?')
365
+ let type = ''
366
+ let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
367
+ if (index !== -1) {
368
+ url = url.substring(0, index)
369
+ type = this.fileType(url)
390
370
  } else {
391
- this.$refs.previewPdf.previewKnowledgeId = ""
371
+ type = this.fileType(url)
392
372
  }
393
- this.$refs.previewPdf.fileType = type
394
- this.$refs.previewPdf.tagIds = item.tagIds
395
- this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false ;
396
- let index = url.indexOf("?");
397
- let newFileInOssPath = url;
398
- if (index !== -1){
399
- newFileInOssPath = url.substring(0, url.indexOf("?"))
400
- }
401
- let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
402
- if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt'|| fileName === '.html'){
403
- this.$refs.previewPdf.fileName = fileName;
373
+ if (type === '' || type === 'OTHER' || type == 'IMAGE') {
374
+ httpUrl = httpUrl += '?needEncrypt=true'
404
375
  } else {
405
- this.$refs.previewPdf.fileName = '';
376
+ httpUrl = httpUrl += '?needEncrypt=false'
406
377
  }
378
+ this.$http.post(httpUrl, {
379
+ "fileInOssPath": url
380
+ }).then(res => {
381
+ if (res.data.code == '0') {
382
+ this.previewHref = res.data.data;
383
+ this.sourceFileType = url.substring(url.lastIndexOf('.'))
384
+ let isOhmPc = sessionStorage.getItem('isOhmPc')
385
+ if (isMobile() || isOhmPc == 'true') {
386
+ this.$refs.previewPdf.drawer = true;
387
+ this.$refs.previewPdf.previewShowPopup = true;
388
+ } else {
389
+ this.$refs.previewPdf.previewShowPopup = false;
390
+ this.$refs.previewPdf.drawer = true;
391
+ }
392
+ //聊一聊按钮的选中状态
393
+ if (this.activeKnowledgeId == item.knowledgeId) {
394
+ this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
395
+ } else {
396
+ this.$refs.previewPdf.previewKnowledgeId = ""
397
+ }
398
+ this.$refs.previewPdf.fileType = type
399
+ this.$refs.previewPdf.tagIds = item.tagIds
400
+ this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false;
401
+ let index = url.indexOf("?");
402
+ let newFileInOssPath = url;
403
+ if (index !== -1) {
404
+ newFileInOssPath = url.substring(0, url.indexOf("?"))
405
+ }
406
+ let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
407
+ if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt' || fileName === '.html') {
408
+ this.$refs.previewPdf.fileName = fileName;
409
+ } else {
410
+ this.$refs.previewPdf.fileName = '';
411
+ }
407
412
  if (item.tagIds && item.tagIds.length != 0) {
408
413
  this.$refs.previewPdf.loading = false
409
414
  return
@@ -431,6 +436,8 @@ export default {
431
436
  return 'VIDEO'
432
437
  } else if (fileType === '.html') {
433
438
  return 'HTML'
439
+ } else if (fileType === '.png' || fileType === '.jpg' || fileType === '.jpeg') {
440
+ return 'IMAGE'
434
441
  } else {
435
442
  return 'OTHER'
436
443
  }
@@ -491,13 +498,13 @@ export default {
491
498
  recommendQues (item, knowledgeId) {
492
499
  this.$emit('recommendQues', item, knowledgeId)
493
500
  },
494
- clickFloder(item) {
501
+ clickFloder (item) {
495
502
  this.$emit('clickFloder', item)
496
503
  },
497
- previewClickFloder() {
504
+ previewClickFloder () {
498
505
  let item = null
499
506
  this.msg.content.list.forEach(element => {
500
- if(element.knowledgeId == this.previewKnowledgeId) {
507
+ if (element.knowledgeId == this.previewKnowledgeId) {
501
508
  item = element
502
509
  }
503
510
  });
@@ -641,24 +648,25 @@ export default {
641
648
 
642
649
  .alc-box-introduction-previewImage {
643
650
  width: 100%;
644
- display: block;
645
- overflow: hidden;
646
- text-overflow: ellipsis;
647
- display: -webkit-box;
648
- -webkit-line-clamp:3;
649
- -webkit-box-orient:vertical;
650
- margin-top: 10px;
651
- color: #616161;
652
- // font-size: 12px;
653
- line-height: 24px;
654
- text-align: left;
655
- img {
656
- max-width: 300px;
657
- width: 100%;
658
- max-height: 150px;
659
- margin: 10px;
660
- cursor: pointer;
661
- }
651
+ display: block;
652
+ overflow: hidden;
653
+ text-overflow: ellipsis;
654
+ display: -webkit-box;
655
+ -webkit-line-clamp: 3;
656
+ -webkit-box-orient: vertical;
657
+ margin-top: 10px;
658
+ color: #616161;
659
+ // font-size: 12px;
660
+ line-height: 24px;
661
+ text-align: left;
662
+
663
+ img {
664
+ max-width: 300px;
665
+ width: 100%;
666
+ max-height: 150px;
667
+ margin: 10px;
668
+ cursor: pointer;
669
+ }
662
670
  }
663
671
 
664
672
  .alc-updateTime {
@@ -1,9 +1,9 @@
1
1
  <!-- 消息记录容器 -->
2
2
  <template>
3
3
  <div id="conversation">
4
- <div v-for="(item, index) in processAction" :key="index">
4
+ <!-- <div v-for="(item, index) in processAction" :key="index">
5
5
  <association-intention :msg="item" :msgType="item.type" :isOpen="isOpen"></association-intention>
6
- </div>
6
+ </div> -->
7
7
  <!-- <answer-radio :msg="answerRadiosPri"></answer-radio> -->
8
8
  <answer-radio :msg="answerRadiosPri"></answer-radio>
9
9
  <!-- <msg-loading v-if="inLoading"></msg-loading>
@@ -17,7 +17,7 @@
17
17
  </div>
18
18
  </div> -->
19
19
  <!-- <MyEditor></MyEditor> -->
20
- <!-- <form-template
20
+ <form-template
21
21
  :formList="formList2"
22
22
  @submitClick="submitClick"
23
23
  ></form-template> -->
@@ -31,14 +31,14 @@
31
31
  <form-template
32
32
  :formList="formList4"
33
33
  @submitClick="submitClick"
34
- ></form-template> -->
34
+ ></form-template>
35
35
  <!-- <div style="max-width: 450px;overflow-x: auto;">
36
36
  <action-alert :actionAlertIframe="actionAlertIframeObj" :phoneWidth100="true"></action-alert>
37
37
  </div> -->
38
38
 
39
39
  <!-- <text-message :text="text" @submitClick="submitClick"></text-message> -->
40
- <answer-docknowledge :isAskLightning="2" :msg="answerDocknowledge" :isLiBang="false"></answer-docknowledge>
41
- <welcomeSuggest :msg="welcomeSuggest"></welcomeSuggest>
40
+ <answer-docknowledge :isAskLightning="2" :msg="answerDocknowledge" :language="'cn'" :isLiBang="false"></answer-docknowledge>
41
+ <welcomeSuggest :msg="welcomeSuggest" :language="'cn'"></welcomeSuggest>
42
42
  <!-- <voice-component @closeVoice="closeVoice">
43
43
  <div slot="voiceTip">
44
44
  松开发送
@@ -46,10 +46,10 @@
46
46
  </voice-component>-->
47
47
  <!-- 点选 -->
48
48
  <!-- <div v-html="htmlContainer"></div> -->
49
- <answer-radio :msg="answerRadios"></answer-radio>
50
- <!-- <ticket-message :content="updateTicetmessageObj"></ticket-message> -->
51
- <!-- <ticket-message :content="contents"></ticket-message> -->
52
- <!--
49
+ <answer-radio :msg="answerRadios" :language="'cn'"></answer-radio>
50
+ <ticket-message :content="updateTicetmessageObj"></ticket-message>
51
+ <ticket-message :content="contents"></ticket-message>
52
+ <!--
53
53
  <action-send-to-bot :msg="answerRadios"></action-send-to-bot>
54
54
  <text-message :text="text" @submitClick="submitClick"></text-message>
55
55
  <div v-for="(item,index) in processAction" :key="index">
@@ -258,7 +258,7 @@ export default {
258
258
  "knowledgeId": "658a93de63d378228271913a",
259
259
  "knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
260
260
  "from": "ppt_preview",
261
- "introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
261
+ "introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,。",
262
262
  "previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
263
263
  },
264
264
  {
@@ -578,202 +578,6 @@ export default {
578
578
  ]
579
579
  }
580
580
  },
581
- {
582
- version: 1,
583
- content: {
584
- htmlList: [
585
- {
586
- "src": null,
587
- "dynamic": null,
588
- "style": [
589
- {
590
- "col": 1,
591
- "colums": 3
592
- },
593
- {
594
- "col": 2,
595
- "colums": 3
596
- }
597
- ],
598
- "markdownList": null,
599
- "list": [
600
- "<p>1</p>",
601
- "<p>2</p>"
602
- ],
603
- "type": "DOUBLE"
604
- },
605
- {
606
- "src": null,
607
- "dynamic": null,
608
- "style": [
609
- {
610
- "col": 1,
611
- "colums": 4
612
- },
613
- {
614
- "col": 1,
615
- "colums": 4
616
- },
617
- {
618
- "col": 1,
619
- "colums": 4
620
- },
621
- {
622
- "col": 1,
623
- "colums": 4
624
- }
625
- ],
626
- "markdownList": null,
627
- "list": [
628
- "<p>1</p>",
629
- "<p>2</p>",
630
- "<p>3</p>",
631
- "<p>4</p>"
632
- ],
633
- "type": "QUADRUPLE"
634
- },
635
- {
636
- "src": null,
637
- "dynamic": null,
638
- "style": [
639
- {
640
- "col": 1,
641
- "colums": 4
642
- },
643
- {
644
- "col": 3,
645
- "colums": 4
646
- }
647
- ],
648
- "markdownList": null,
649
- "list": [
650
- "<p>1</p>",
651
- "<p>3</p>"
652
- ],
653
- "type": "DOUBLE"
654
- },
655
- {
656
- "src": null,
657
- "dynamic": null,
658
- "style": [
659
- {
660
- "col": 2,
661
- "colums": 3
662
- },
663
- {
664
- "col": 1,
665
- "colums": 3
666
- }
667
- ],
668
- "markdownList": null,
669
- "list": [
670
- "<p>2</p>",
671
- "<p>1</p>"
672
- ],
673
- "type": "DOUBLE"
674
- }
675
- ],
676
- buttonList: [{ name: '我是标签1', scope: '', test: '' }]
677
- }
678
- },
679
- {
680
- version: 1,
681
- content: {
682
- htmlList: [
683
- {
684
- "src": null,
685
- "dynamic": null,
686
- "style": [
687
- {
688
- "col": 1,
689
- "colums": 3
690
- },
691
- {
692
- "col": 2,
693
- "colums": 3
694
- }
695
- ],
696
- "markdownList": null,
697
- "list": [
698
- "<p>1</p>",
699
- "<p>2</p>"
700
- ],
701
- "type": "DOUBLE"
702
- },
703
- {
704
- "src": null,
705
- "dynamic": null,
706
- "style": [
707
- {
708
- "col": 1,
709
- "colums": 4
710
- },
711
- {
712
- "col": 1,
713
- "colums": 4
714
- },
715
- {
716
- "col": 1,
717
- "colums": 4
718
- },
719
- {
720
- "col": 1,
721
- "colums": 4
722
- }
723
- ],
724
- "markdownList": null,
725
- "list": [
726
- "<p>1</p>",
727
- "<p>2</p>",
728
- "<p>3</p>",
729
- "<p>4</p>"
730
- ],
731
- "type": "QUADRUPLE"
732
- },
733
- {
734
- "src": null,
735
- "dynamic": null,
736
- "style": [
737
- {
738
- "col": 1,
739
- "colums": 4
740
- },
741
- {
742
- "col": 3,
743
- "colums": 4
744
- }
745
- ],
746
- "markdownList": null,
747
- "list": [
748
- "<p>1</p>",
749
- "<p>3</p>"
750
- ],
751
- "type": "DOUBLE"
752
- },
753
- {
754
- "src": null,
755
- "dynamic": null,
756
- "style": [
757
- {
758
- "col": 2,
759
- "colums": 3
760
- },
761
- {
762
- "col": 1,
763
- "colums": 3
764
- }
765
- ],
766
- "markdownList": null,
767
- "list": [
768
- "<p>2</p>",
769
- "<p>1</p>"
770
- ],
771
- "type": "DOUBLE"
772
- }
773
- ],
774
- buttonList: [{ name: '我是标签1' }]
775
- }
776
- }
777
581
  ],
778
582
  apiKey: '123456789'
779
583
  },
@@ -10566,6 +10370,7 @@ export default {
10566
10370
  url:
10567
10371
  'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/08/24/07/35/41221223-c180-4f3f-bdc8-94875b693965/WeChat_20210719215122.mp4',
10568
10372
  videoFlag: false,
10373
+ nodownload: false,
10569
10374
  videoUploadPercent: 0,
10570
10375
  isShowUploadVideo: true,
10571
10376
  recommend: {
@@ -36,7 +36,7 @@
36
36
 
37
37
  <script>
38
38
  import { v4 as uuidv4 } from "uuid";
39
- import { multipartUpload, ossFileUrl } from "./utils/AliyunIssUtil";
39
+ import { multipartUpload, ossFileUrl } from "../assets/js/AliyunlssUtil";
40
40
 
41
41
  export default {
42
42
  props: ["value", "placeholder", "havToolbar"],
@@ -80,6 +80,7 @@ export default {
80
80
  inputObj.setAttribute('id', '_ef');
81
81
  inputObj.setAttribute('type', 'file');
82
82
  inputObj.setAttribute('accept', '*')
83
+ inputObj.setAttribute('capture', 'camcorder')
83
84
  inputObj.setAttribute('multiple', true)
84
85
  inputObj.setAttribute("style", 'visibility:hidden');
85
86
  document.body.appendChild(inputObj);
@@ -17,7 +17,7 @@
17
17
  )
18
18
  "
19
19
  >
20
- 满意
20
+ {{$t('actionSatisfaction.satisfaction')}}
21
21
  </div>
22
22
  <div
23
23
  class="statisfaction-item"
@@ -32,7 +32,7 @@
32
32
  )
33
33
  "
34
34
  >
35
- 不满意
35
+ {{$t('actionSatisfaction.notSatisfied')}}
36
36
  </div>
37
37
  </div>
38
38
 
@@ -42,7 +42,7 @@
42
42
  <script>
43
43
  export default {
44
44
  name: "actionSatisfaction",
45
- props:['msg'],
45
+ props:['msg',"language"],
46
46
  data(){
47
47
  return{
48
48
  isCheckSatis:false,
@@ -4,7 +4,7 @@
4
4
  v-if="msg.content.description && !msg.content.isKnowledgeSummary"></p>
5
5
  <div class="bottom-link" v-if="msg.content.description && !msg.content.isKnowledgeSummary"></div>
6
6
  <div :class="['options-list', msg.content.isKnowledgeSummary ? 'isKnowledgeSummary' : '']">
7
- <div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您推荐了以下内容</div>
7
+ <div v-if="msg.content.isKnowledgeSummary" class="tips">{{$t('answerRadio.tip')}}</div>
8
8
  <div v-for="(option, index) in showOptions" class="options-item"
9
9
  :class="index !== msg.content.options.length - 1 ? 'recommend-item' : 'last-item'" :key="msg.nodeId + '_' + index"
10
10
  @click="radioClick(msg, option, index)">
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  </div>
15
15
  <div v-if="showPage" class="switch-page">
16
- <span @click="changeActivePage" class="switch-page-btn">换一批</span>
16
+ <span @click="changeActivePage" class="switch-page-btn">{{$t('answerRadio.loadMore')}}</span>
17
17
  <!-- <span @click="showMore" class="switch-page-btn">查看更多</span> -->
18
18
  </div>
19
19
  </div>
@@ -32,7 +32,7 @@ export default {
32
32
  showOptions: [],
33
33
  }
34
34
  },
35
- props: ['msg'],
35
+ props: ['msg','language'],
36
36
  mounted() {
37
37
  console.log(this.msg, 'msg');
38
38
  // 关键词推荐 前端分页