askbot-dragon 1.7.61-beta → 1.7.62-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.
- package/package.json +5 -4
- package/public/index.html +8 -10
- package/src/assets/js/AliyunlssUtil.js +49 -25
- package/src/assets/js/hammer.js +13 -2
- package/src/assets/less/converSationContainer/common.less +7 -0
- package/src/components/ActionAlertIframe.vue +24 -1
- package/src/components/AiGuide.vue +114 -151
- package/src/components/AnswerDocknowledge.vue +23 -14
- package/src/components/ConversationContainer.vue +100 -209
- package/src/components/MyEditor.vue +2 -1
- package/src/components/actionSatisfaction.vue +1 -1
- package/src/components/answerRadio.vue +50 -4
- package/src/components/askVideo.vue +23 -0
- package/src/components/associationIntention.vue +11 -7
- package/src/components/formTemplate.vue +54 -50
- package/src/components/intelligentSummary.vue +5 -1
- package/src/components/markDownText.vue +21 -21
- package/src/components/message/TextMessage.vue +5 -1
- package/src/components/message/swiper/ticketSwiper.vue +1 -1
- package/src/components/newPdfPosition.vue +878 -0
- package/src/components/pagination.vue +129 -0
- package/src/components/pdfPosition.vue +213 -33
- package/src/components/preview/docView.vue +114 -0
- package/src/components/preview/excelView.vue +191 -0
- package/src/components/preview/newPositionPreview.vue +370 -0
- package/src/components/preview/pdfView.vue +824 -0
- package/src/components/previewDoc.vue +4 -0
- package/src/components/previewPdf.vue +626 -314
- package/src/components/senderMessagePlatform.vue +1 -1
- package/src/components/utils/ckeditor.js +1 -1
- package/src/components/welcomeKnowledgeFile.vue +5 -1
- package/src/components/welcomeLlmCard.vue +5 -1
- package/src/locales/cn.json +60 -60
- package/src/locales/en.json +60 -60
- package/src/locales/jp.json +73 -0
- package/src/main.js +1 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<!-- 消息记录容器 -->
|
|
2
2
|
<template>
|
|
3
3
|
<div id="conversation">
|
|
4
|
-
<
|
|
5
|
-
<div v-for="(item, index) in processAction" :key="index">
|
|
4
|
+
<!-- <div v-for="(item, index) in processAction" :key="index">
|
|
6
5
|
<association-intention :msg="item" :msgType="item.type" :isOpen="isOpen"></association-intention>
|
|
7
|
-
</div>
|
|
6
|
+
</div> -->
|
|
8
7
|
<!-- <answer-radio :msg="answerRadiosPri"></answer-radio> -->
|
|
9
8
|
<answer-radio :msg="answerRadiosPri"></answer-radio>
|
|
10
9
|
<!-- <msg-loading v-if="inLoading"></msg-loading>
|
|
@@ -18,7 +17,7 @@
|
|
|
18
17
|
</div>
|
|
19
18
|
</div> -->
|
|
20
19
|
<!-- <MyEditor></MyEditor> -->
|
|
21
|
-
|
|
20
|
+
<form-template
|
|
22
21
|
:formList="formList2"
|
|
23
22
|
@submitClick="submitClick"
|
|
24
23
|
></form-template> -->
|
|
@@ -32,8 +31,8 @@
|
|
|
32
31
|
<form-template
|
|
33
32
|
:formList="formList4"
|
|
34
33
|
@submitClick="submitClick"
|
|
35
|
-
></form-template>
|
|
36
|
-
|
|
34
|
+
></form-template>
|
|
35
|
+
<div style="max-width: 450px;overflow-x: auto;">
|
|
37
36
|
<action-alert :actionAlertIframe="actionAlertIframeObj" :phoneWidth100="true"></action-alert>
|
|
38
37
|
</div> -->
|
|
39
38
|
|
|
@@ -47,10 +46,10 @@
|
|
|
47
46
|
</voice-component>-->
|
|
48
47
|
<!-- 点选 -->
|
|
49
48
|
<!-- <div v-html="htmlContainer"></div> -->
|
|
50
|
-
<answer-radio :msg="answerRadios"></answer-radio>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<!--
|
|
49
|
+
<answer-radio :msg="answerRadios" :language="'cn'"></answer-radio>
|
|
50
|
+
<ticket-message :content="updateTicetmessageObj"></ticket-message>
|
|
51
|
+
<ticket-message :content="contents"></ticket-message>
|
|
52
|
+
<!--
|
|
54
53
|
<action-send-to-bot :msg="answerRadios"></action-send-to-bot>
|
|
55
54
|
<text-message :text="text" @submitClick="submitClick"></text-message>
|
|
56
55
|
<div v-for="(item,index) in processAction" :key="index">
|
|
@@ -64,7 +63,7 @@
|
|
|
64
63
|
<answer-dissatisfaction :msg="answerDiss"></answer-dissatisfaction>
|
|
65
64
|
<feed-back :feedBack="feedBack"></feed-back>
|
|
66
65
|
<voice-compontent></voice-compontent> -->
|
|
67
|
-
<ai-guide :aiGuide="ActionAiGuideObj"></ai-guide>
|
|
66
|
+
<!-- <ai-guide :aiGuide="ActionAiGuideObj"></ai-guide> -->
|
|
68
67
|
<!-- <answer-voice :msg="answerVoiceObj"></answer-voice> -->
|
|
69
68
|
<!-- <answer-voice :msg="answerVoiceObj"></answer-voice> -->
|
|
70
69
|
<!-- <div v-for="(item,index) in processAction" :key="index">
|
|
@@ -238,8 +237,95 @@ export default {
|
|
|
238
237
|
}]
|
|
239
238
|
}
|
|
240
239
|
},
|
|
241
|
-
answerDocknowledge:
|
|
242
|
-
|
|
240
|
+
answerDocknowledge:
|
|
241
|
+
{
|
|
242
|
+
"content": {
|
|
243
|
+
"images": [{ url: 'https://static.guoranbot.com/images/knowledge/e0f6898c6b0d47fa98e8f71ceab1bde8/安全标志--禁止标志.png' }],
|
|
244
|
+
"actionType": "answer_doc_knowledge",
|
|
245
|
+
"text": "中国的省份名称有湖北省、广西壮族自治区等。",
|
|
246
|
+
"list": [
|
|
247
|
+
{
|
|
248
|
+
"owner": null,
|
|
249
|
+
"tagId": "658b9c5e7cf604285f7cba46",
|
|
250
|
+
"enterprise": null,
|
|
251
|
+
"tagIds": [
|
|
252
|
+
"658b9c5e7cf604285f7cba46"
|
|
253
|
+
],
|
|
254
|
+
"format": "pptx",
|
|
255
|
+
"srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
|
|
256
|
+
"updateTime": "2023-12-27 11:39:10",
|
|
257
|
+
"source": "CORP_LOCAL_FILE",
|
|
258
|
+
"srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
259
|
+
"url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
|
|
260
|
+
"knowledgeId": "658a93de63d378228271913a",
|
|
261
|
+
"knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
|
|
262
|
+
"from": "ppt_preview",
|
|
263
|
+
"introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,。",
|
|
264
|
+
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"owner": null,
|
|
268
|
+
"tagId": "658b9c5e7cf604285f7cba46",
|
|
269
|
+
"enterprise": null,
|
|
270
|
+
"tagIds": [
|
|
271
|
+
"658b9c5e7cf604285f7cba46"
|
|
272
|
+
],
|
|
273
|
+
"format": "pptx",
|
|
274
|
+
"srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
|
|
275
|
+
"updateTime": "2023-12-27 11:39:10",
|
|
276
|
+
"source": "CORP_LOCAL_FILE",
|
|
277
|
+
"srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
278
|
+
"url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
|
|
279
|
+
"knowledgeId": "658a93de63d378228271913a",
|
|
280
|
+
"knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
|
|
281
|
+
"from": "ppt_preview",
|
|
282
|
+
"introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
283
|
+
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"owner": null,
|
|
287
|
+
"tagId": "658b9c5e7cf604285f7cba46",
|
|
288
|
+
"enterprise": null,
|
|
289
|
+
"tagIds": [
|
|
290
|
+
"658b9c5e7cf604285f7cba46"
|
|
291
|
+
],
|
|
292
|
+
"format": "pptx",
|
|
293
|
+
"srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
|
|
294
|
+
"updateTime": "2023-12-27 11:39:10",
|
|
295
|
+
"source": "CORP_LOCAL_FILE",
|
|
296
|
+
"srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
297
|
+
"url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
|
|
298
|
+
"knowledgeId": "658a93de63d378228271913a",
|
|
299
|
+
"knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
|
|
300
|
+
"from": "ppt_preview",
|
|
301
|
+
"introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
302
|
+
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"owner": null,
|
|
306
|
+
"tagId": "658b9c5e7cf604285f7cba46",
|
|
307
|
+
"enterprise": null,
|
|
308
|
+
"tagIds": [
|
|
309
|
+
"658b9c5e7cf604285f7cba46"
|
|
310
|
+
],
|
|
311
|
+
"format": "pptx",
|
|
312
|
+
"srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
|
|
313
|
+
"updateTime": "2023-12-27 11:39:10",
|
|
314
|
+
"source": "CORP_LOCAL_FILE",
|
|
315
|
+
"srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
316
|
+
"url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
|
|
317
|
+
"knowledgeId": "658a93de63d378228271913a",
|
|
318
|
+
"knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
|
|
319
|
+
"from": "ppt_preview",
|
|
320
|
+
"introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
321
|
+
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"renderType": 0,
|
|
325
|
+
"type": 1
|
|
326
|
+
},
|
|
327
|
+
"type": "answer_doc_knowledge"
|
|
328
|
+
},
|
|
243
329
|
ActionAiGuideObj: {
|
|
244
330
|
// 智能引导
|
|
245
331
|
type: "answer_intellect_guide",
|
|
@@ -494,202 +580,6 @@ export default {
|
|
|
494
580
|
]
|
|
495
581
|
}
|
|
496
582
|
},
|
|
497
|
-
{
|
|
498
|
-
version: 1,
|
|
499
|
-
content: {
|
|
500
|
-
htmlList: [
|
|
501
|
-
{
|
|
502
|
-
"src": null,
|
|
503
|
-
"dynamic": null,
|
|
504
|
-
"style": [
|
|
505
|
-
{
|
|
506
|
-
"col": 1,
|
|
507
|
-
"colums": 3
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
"col": 2,
|
|
511
|
-
"colums": 3
|
|
512
|
-
}
|
|
513
|
-
],
|
|
514
|
-
"markdownList": null,
|
|
515
|
-
"list": [
|
|
516
|
-
"<p>1</p>",
|
|
517
|
-
"<p>2</p>"
|
|
518
|
-
],
|
|
519
|
-
"type": "DOUBLE"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"src": null,
|
|
523
|
-
"dynamic": null,
|
|
524
|
-
"style": [
|
|
525
|
-
{
|
|
526
|
-
"col": 1,
|
|
527
|
-
"colums": 4
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
"col": 1,
|
|
531
|
-
"colums": 4
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
"col": 1,
|
|
535
|
-
"colums": 4
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
"col": 1,
|
|
539
|
-
"colums": 4
|
|
540
|
-
}
|
|
541
|
-
],
|
|
542
|
-
"markdownList": null,
|
|
543
|
-
"list": [
|
|
544
|
-
"<p>1</p>",
|
|
545
|
-
"<p>2</p>",
|
|
546
|
-
"<p>3</p>",
|
|
547
|
-
"<p>4</p>"
|
|
548
|
-
],
|
|
549
|
-
"type": "QUADRUPLE"
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
"src": null,
|
|
553
|
-
"dynamic": null,
|
|
554
|
-
"style": [
|
|
555
|
-
{
|
|
556
|
-
"col": 1,
|
|
557
|
-
"colums": 4
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"col": 3,
|
|
561
|
-
"colums": 4
|
|
562
|
-
}
|
|
563
|
-
],
|
|
564
|
-
"markdownList": null,
|
|
565
|
-
"list": [
|
|
566
|
-
"<p>1</p>",
|
|
567
|
-
"<p>3</p>"
|
|
568
|
-
],
|
|
569
|
-
"type": "DOUBLE"
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"src": null,
|
|
573
|
-
"dynamic": null,
|
|
574
|
-
"style": [
|
|
575
|
-
{
|
|
576
|
-
"col": 2,
|
|
577
|
-
"colums": 3
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
"col": 1,
|
|
581
|
-
"colums": 3
|
|
582
|
-
}
|
|
583
|
-
],
|
|
584
|
-
"markdownList": null,
|
|
585
|
-
"list": [
|
|
586
|
-
"<p>2</p>",
|
|
587
|
-
"<p>1</p>"
|
|
588
|
-
],
|
|
589
|
-
"type": "DOUBLE"
|
|
590
|
-
}
|
|
591
|
-
],
|
|
592
|
-
buttonList: [{ name: '我是标签1', scope: '', test: '' }]
|
|
593
|
-
}
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
version: 1,
|
|
597
|
-
content: {
|
|
598
|
-
htmlList: [
|
|
599
|
-
{
|
|
600
|
-
"src": null,
|
|
601
|
-
"dynamic": null,
|
|
602
|
-
"style": [
|
|
603
|
-
{
|
|
604
|
-
"col": 1,
|
|
605
|
-
"colums": 3
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
"col": 2,
|
|
609
|
-
"colums": 3
|
|
610
|
-
}
|
|
611
|
-
],
|
|
612
|
-
"markdownList": null,
|
|
613
|
-
"list": [
|
|
614
|
-
"<p>1</p>",
|
|
615
|
-
"<p>2</p>"
|
|
616
|
-
],
|
|
617
|
-
"type": "DOUBLE"
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
"src": null,
|
|
621
|
-
"dynamic": null,
|
|
622
|
-
"style": [
|
|
623
|
-
{
|
|
624
|
-
"col": 1,
|
|
625
|
-
"colums": 4
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
"col": 1,
|
|
629
|
-
"colums": 4
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
"col": 1,
|
|
633
|
-
"colums": 4
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
"col": 1,
|
|
637
|
-
"colums": 4
|
|
638
|
-
}
|
|
639
|
-
],
|
|
640
|
-
"markdownList": null,
|
|
641
|
-
"list": [
|
|
642
|
-
"<p>1</p>",
|
|
643
|
-
"<p>2</p>",
|
|
644
|
-
"<p>3</p>",
|
|
645
|
-
"<p>4</p>"
|
|
646
|
-
],
|
|
647
|
-
"type": "QUADRUPLE"
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
"src": null,
|
|
651
|
-
"dynamic": null,
|
|
652
|
-
"style": [
|
|
653
|
-
{
|
|
654
|
-
"col": 1,
|
|
655
|
-
"colums": 4
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"col": 3,
|
|
659
|
-
"colums": 4
|
|
660
|
-
}
|
|
661
|
-
],
|
|
662
|
-
"markdownList": null,
|
|
663
|
-
"list": [
|
|
664
|
-
"<p>1</p>",
|
|
665
|
-
"<p>3</p>"
|
|
666
|
-
],
|
|
667
|
-
"type": "DOUBLE"
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
"src": null,
|
|
671
|
-
"dynamic": null,
|
|
672
|
-
"style": [
|
|
673
|
-
{
|
|
674
|
-
"col": 2,
|
|
675
|
-
"colums": 3
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
"col": 1,
|
|
679
|
-
"colums": 3
|
|
680
|
-
}
|
|
681
|
-
],
|
|
682
|
-
"markdownList": null,
|
|
683
|
-
"list": [
|
|
684
|
-
"<p>2</p>",
|
|
685
|
-
"<p>1</p>"
|
|
686
|
-
],
|
|
687
|
-
"type": "DOUBLE"
|
|
688
|
-
}
|
|
689
|
-
],
|
|
690
|
-
buttonList: [{ name: '我是标签1' }]
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
583
|
],
|
|
694
584
|
apiKey: '123456789'
|
|
695
585
|
},
|
|
@@ -10482,6 +10372,7 @@ export default {
|
|
|
10482
10372
|
url:
|
|
10483
10373
|
'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/08/24/07/35/41221223-c180-4f3f-bdc8-94875b693965/WeChat_20210719215122.mp4',
|
|
10484
10374
|
videoFlag: false,
|
|
10375
|
+
nodownload: false,
|
|
10485
10376
|
videoUploadPercent: 0,
|
|
10486
10377
|
isShowUploadVideo: true,
|
|
10487
10378
|
recommend: {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
<script>
|
|
38
38
|
import { v4 as uuidv4 } from "uuid";
|
|
39
|
-
import { multipartUpload, ossFileUrl } from "
|
|
39
|
+
import { multipartUpload, ossFileUrl } from "../assets/js/AliyunlssUtil";
|
|
40
40
|
|
|
41
41
|
export default {
|
|
42
42
|
props: ["value", "placeholder", "havToolbar"],
|
|
@@ -72,6 +72,7 @@ export default {
|
|
|
72
72
|
inputObj.setAttribute('id', '_ef');
|
|
73
73
|
inputObj.setAttribute('type', 'file');
|
|
74
74
|
inputObj.setAttribute('accept', '*')
|
|
75
|
+
inputObj.setAttribute('capture', 'camcorder')
|
|
75
76
|
inputObj.setAttribute('multiple', true)
|
|
76
77
|
inputObj.setAttribute("style", 'visibility:hidden');
|
|
77
78
|
document.body.appendChild(inputObj);
|
|
@@ -8,9 +8,13 @@
|
|
|
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)">
|
|
11
|
-
<el-tooltip class="item" effect="dark" :content="$t('dragonCommon.clickme')" placement="top">
|
|
11
|
+
<!-- <el-tooltip :disabled="!isMobile" class="item" effect="dark" :content="$t('dragonCommon.clickme')" placement="top">
|
|
12
12
|
<span class="options-item-name"> {{ getFilteredName(option.name) }}</span>
|
|
13
|
-
</el-tooltip>
|
|
13
|
+
</el-tooltip> -->
|
|
14
|
+
<div class="tooltip-wrapper">
|
|
15
|
+
<span class="tooltip-text options-item-name"> {{ getFilteredName(option.name) }}</span>
|
|
16
|
+
<span v-if="!isMobile" class="tooltip-content">{{$t('dragonCommon.clickme')}}</span>
|
|
17
|
+
</div>
|
|
14
18
|
<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
15
19
|
</div>
|
|
16
20
|
</div>
|
|
@@ -34,7 +38,7 @@ export default {
|
|
|
34
38
|
showOptions: [],
|
|
35
39
|
}
|
|
36
40
|
},
|
|
37
|
-
props: ['msg'],
|
|
41
|
+
props: ['msg','language'],
|
|
38
42
|
mounted() {
|
|
39
43
|
console.log("askbot-dragon: systemLanguage", sessionStorage.getItem("systemLanguage"));
|
|
40
44
|
this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
|
|
@@ -104,7 +108,49 @@ export default {
|
|
|
104
108
|
|
|
105
109
|
}
|
|
106
110
|
</script>
|
|
107
|
-
|
|
111
|
+
<style lang="less">
|
|
112
|
+
/* 包裹元素,相对定位,用于定位提示框 */
|
|
113
|
+
.tooltip-wrapper {
|
|
114
|
+
position: relative;
|
|
115
|
+
display: inline-block;
|
|
116
|
+
}
|
|
117
|
+
/* 实际要显示的文本内容 */
|
|
118
|
+
/* 提示框样式 */
|
|
119
|
+
.tooltip-content {
|
|
120
|
+
visibility: hidden;
|
|
121
|
+
background-color: #333;
|
|
122
|
+
color: white;
|
|
123
|
+
text-align: center;
|
|
124
|
+
border-radius: 6px;
|
|
125
|
+
padding: 5px 10px;
|
|
126
|
+
position: absolute;
|
|
127
|
+
z-index: 1;
|
|
128
|
+
bottom: 100%;
|
|
129
|
+
left: 50%;
|
|
130
|
+
transform: translateX(-50%);
|
|
131
|
+
white-space: nowrap;
|
|
132
|
+
opacity: 0;
|
|
133
|
+
transition: opacity 0.3s;
|
|
134
|
+
}
|
|
135
|
+
/* 提示框下方的小三角样式(使用伪元素实现) */
|
|
136
|
+
.tooltip-content::after {
|
|
137
|
+
content: "";
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: 100%;
|
|
140
|
+
left: 50%;
|
|
141
|
+
margin-left: -5px;
|
|
142
|
+
border-width: 5px;
|
|
143
|
+
border-style: solid;
|
|
144
|
+
border-color: #333 transparent transparent transparent;
|
|
145
|
+
}
|
|
146
|
+
/* 鼠标悬浮在包裹元素上时,显示提示框 */
|
|
147
|
+
.tooltip-wrapper:hover{
|
|
148
|
+
.tooltip-content {
|
|
149
|
+
visibility: visible !important;
|
|
150
|
+
opacity: 0.8;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
</style>
|
|
108
154
|
<style scoped lang="less">
|
|
109
155
|
#answer-radio {
|
|
110
156
|
.switch-page {
|
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
:id="msg.id+'key'">
|
|
23
23
|
<source :src="videoSrc"/>
|
|
24
24
|
</video>
|
|
25
|
+
<div v-show="!nodownload" class="dragon-video-download">
|
|
26
|
+
<a :href="msg.content.url" download><span class="el-icon-download"></span></a>
|
|
27
|
+
</div>
|
|
25
28
|
<div id="output"></div>
|
|
26
29
|
</div>
|
|
27
30
|
</template>
|
|
@@ -123,6 +126,8 @@
|
|
|
123
126
|
video::-webkit-media-controls-mute-button { display: none !important;}
|
|
124
127
|
#dragon-video{
|
|
125
128
|
position: relative;
|
|
129
|
+
width: calc(100vw - 109px);
|
|
130
|
+
max-width: 260px;
|
|
126
131
|
#outputVideo{
|
|
127
132
|
position: absolute;
|
|
128
133
|
top: 0px;
|
|
@@ -134,6 +139,24 @@ video::-webkit-media-controls-mute-button { display: none !important;}
|
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
}
|
|
142
|
+
.dragon-video-download{
|
|
143
|
+
position: absolute;
|
|
144
|
+
width: 40px;
|
|
145
|
+
height: 26px;
|
|
146
|
+
background-color: rgba(54, 106, 255, 0.5);
|
|
147
|
+
border-radius: 13px;
|
|
148
|
+
text-align: center;
|
|
149
|
+
bottom: 2px;
|
|
150
|
+
right: 6px;
|
|
151
|
+
a {
|
|
152
|
+
span {
|
|
153
|
+
height: 26px;
|
|
154
|
+
line-height: 26px;
|
|
155
|
+
display: block;
|
|
156
|
+
color: white;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
137
160
|
}
|
|
138
161
|
|
|
139
162
|
</style>
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
<span class="model-switch-handle-name">{{msg.footerStyleValue}}</span>
|
|
69
69
|
</div>
|
|
70
70
|
<van-popup v-model="previewShowPopup" position="bottom" v-if="previewShowPopup" :style="{ height: '90%', background:'#FFFFFF'}">
|
|
71
|
-
<previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="previewShowPopup"></previewDoc>
|
|
71
|
+
<previewDoc ref="previewDoc" :url="previewHref" :language="language" @close="close" v-if="previewShowPopup"></previewDoc>
|
|
72
72
|
</van-popup>
|
|
73
73
|
<el-drawer
|
|
74
|
-
title="我是标题"
|
|
74
|
+
:title="'我是标题'"
|
|
75
75
|
:append-to-body="true"
|
|
76
76
|
:model="false"
|
|
77
77
|
:visible.sync="drawer"
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
size="65%"
|
|
80
80
|
v-if="drawer"
|
|
81
81
|
>
|
|
82
|
-
<previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="drawer"></previewDoc>
|
|
82
|
+
<previewDoc ref="previewDoc" :url="previewHref" :language="language" @close="close" v-if="drawer"></previewDoc>
|
|
83
83
|
</el-drawer>
|
|
84
84
|
</div>
|
|
85
85
|
</template>
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
export default {
|
|
93
93
|
name: "associationIntention",
|
|
94
94
|
components: {Recommend, askVideo, previewDoc},
|
|
95
|
-
props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc', 'nodownload', 'hiddenHeaderFooter'],
|
|
95
|
+
props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc', 'nodownload', 'hiddenHeaderFooter','language'],
|
|
96
96
|
filters: {
|
|
97
97
|
imageStyle: function (html) {
|
|
98
98
|
//富文本内图片自适应高度宽度
|
|
@@ -115,8 +115,6 @@
|
|
|
115
115
|
drawer:false
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
|
-
mounted() {
|
|
119
|
-
},
|
|
120
118
|
methods:{
|
|
121
119
|
// 将匹配结果替换表情图片
|
|
122
120
|
emotion(res) {
|
|
@@ -237,7 +235,7 @@
|
|
|
237
235
|
this.$emit("onRadioClick", id, name, apikey,optionApiKey);
|
|
238
236
|
},
|
|
239
237
|
onImageClick(url){
|
|
240
|
-
this.$emit('onImageClick',url)
|
|
238
|
+
this.$emit('onImageClick', encodeURI(url))
|
|
241
239
|
},
|
|
242
240
|
msgContent(content){
|
|
243
241
|
console.debug('215',content)
|
|
@@ -368,6 +366,12 @@
|
|
|
368
366
|
display: block;
|
|
369
367
|
}
|
|
370
368
|
}
|
|
369
|
+
/deep/ img {
|
|
370
|
+
height: auto;
|
|
371
|
+
width: calc(100vw - 137px);
|
|
372
|
+
border-radius: 25px;
|
|
373
|
+
max-width: 230px;
|
|
374
|
+
}
|
|
371
375
|
}
|
|
372
376
|
/deep/.el-drawer__body{
|
|
373
377
|
height: 100%;
|