askbot-dragon 1.7.83-beta → 1.7.84-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 +1 -3
- package/public/index.html +9 -6
- package/src/assets/js/AliyunlssUtil.js +25 -49
- package/src/assets/js/hammer.js +2 -13
- package/src/assets/less/converSationContainer/common.less +0 -7
- package/src/components/ActionAlertIframe.vue +1 -24
- package/src/components/AiGuide.vue +150 -113
- package/src/components/AnswerDocknowledge.vue +5 -5
- package/src/components/ConversationContainer.vue +206 -10
- package/src/components/MyEditor.vue +1 -2
- package/src/components/actionSatisfaction.vue +1 -1
- package/src/components/answerRadio.vue +1 -1
- package/src/components/askVideo.vue +0 -23
- package/src/components/associationIntention.vue +7 -11
- package/src/components/formTemplate.vue +50 -54
- package/src/components/intelligentSummary.vue +1 -5
- package/src/components/message/TextMessage.vue +1 -5
- package/src/components/message/swiper/ticketSwiper.vue +1 -1
- package/src/components/pdfPosition.vue +12 -190
- package/src/components/previewDoc.vue +0 -4
- package/src/components/previewPdf.vue +179 -179
- package/src/components/senderMessagePlatform.vue +1 -1
- package/src/components/utils/ckeditor.js +1 -1
- package/src/components/welcomeKnowledgeFile.vue +1 -5
- package/src/components/welcomeLlmCard.vue +1 -5
- package/src/main.js +1 -1
- package/src/components/newPdfPosition.vue +0 -878
- package/src/locales/jp.json +0 -73
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<!-- 消息记录容器 -->
|
|
2
2
|
<template>
|
|
3
3
|
<div id="conversation">
|
|
4
|
-
|
|
4
|
+
<qw-feedback :msg="qwFeedbackObj"></qw-feedback>
|
|
5
|
+
<div v-for="(item, index) in processAction" :key="index">
|
|
5
6
|
<association-intention :msg="item" :msgType="item.type" :isOpen="isOpen"></association-intention>
|
|
6
|
-
</div>
|
|
7
|
+
</div>
|
|
7
8
|
<!-- <answer-radio :msg="answerRadiosPri"></answer-radio> -->
|
|
8
9
|
<answer-radio :msg="answerRadiosPri"></answer-radio>
|
|
9
10
|
<!-- <msg-loading v-if="inLoading"></msg-loading>
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
</div>
|
|
18
19
|
</div> -->
|
|
19
20
|
<!-- <MyEditor></MyEditor> -->
|
|
20
|
-
<form-template
|
|
21
|
+
<!-- <form-template
|
|
21
22
|
:formList="formList2"
|
|
22
23
|
@submitClick="submitClick"
|
|
23
24
|
></form-template> -->
|
|
@@ -31,8 +32,8 @@
|
|
|
31
32
|
<form-template
|
|
32
33
|
:formList="formList4"
|
|
33
34
|
@submitClick="submitClick"
|
|
34
|
-
></form-template>
|
|
35
|
-
|
|
35
|
+
></form-template> -->
|
|
36
|
+
<!-- <div style="max-width: 450px;overflow-x: auto;">
|
|
36
37
|
<action-alert :actionAlertIframe="actionAlertIframeObj" :phoneWidth100="true"></action-alert>
|
|
37
38
|
</div> -->
|
|
38
39
|
|
|
@@ -46,10 +47,10 @@
|
|
|
46
47
|
</voice-component>-->
|
|
47
48
|
<!-- 点选 -->
|
|
48
49
|
<!-- <div v-html="htmlContainer"></div> -->
|
|
49
|
-
<answer-radio :msg="answerRadios"
|
|
50
|
-
<ticket-message :content="updateTicetmessageObj"></ticket-message>
|
|
51
|
-
<ticket-message :content="contents"></ticket-message>
|
|
52
|
-
<!--
|
|
50
|
+
<answer-radio :msg="answerRadios"></answer-radio>
|
|
51
|
+
<!-- <ticket-message :content="updateTicetmessageObj"></ticket-message> -->
|
|
52
|
+
<!-- <ticket-message :content="contents"></ticket-message> -->
|
|
53
|
+
<!--
|
|
53
54
|
<action-send-to-bot :msg="answerRadios"></action-send-to-bot>
|
|
54
55
|
<text-message :text="text" @submitClick="submitClick"></text-message>
|
|
55
56
|
<div v-for="(item,index) in processAction" :key="index">
|
|
@@ -500,6 +501,202 @@ export default {
|
|
|
500
501
|
]
|
|
501
502
|
}
|
|
502
503
|
},
|
|
504
|
+
{
|
|
505
|
+
version: 1,
|
|
506
|
+
content: {
|
|
507
|
+
htmlList: [
|
|
508
|
+
{
|
|
509
|
+
"src": null,
|
|
510
|
+
"dynamic": null,
|
|
511
|
+
"style": [
|
|
512
|
+
{
|
|
513
|
+
"col": 1,
|
|
514
|
+
"colums": 3
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"col": 2,
|
|
518
|
+
"colums": 3
|
|
519
|
+
}
|
|
520
|
+
],
|
|
521
|
+
"markdownList": null,
|
|
522
|
+
"list": [
|
|
523
|
+
"<p>1</p>",
|
|
524
|
+
"<p>2</p>"
|
|
525
|
+
],
|
|
526
|
+
"type": "DOUBLE"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"src": null,
|
|
530
|
+
"dynamic": null,
|
|
531
|
+
"style": [
|
|
532
|
+
{
|
|
533
|
+
"col": 1,
|
|
534
|
+
"colums": 4
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"col": 1,
|
|
538
|
+
"colums": 4
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"col": 1,
|
|
542
|
+
"colums": 4
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"col": 1,
|
|
546
|
+
"colums": 4
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
"markdownList": null,
|
|
550
|
+
"list": [
|
|
551
|
+
"<p>1</p>",
|
|
552
|
+
"<p>2</p>",
|
|
553
|
+
"<p>3</p>",
|
|
554
|
+
"<p>4</p>"
|
|
555
|
+
],
|
|
556
|
+
"type": "QUADRUPLE"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"src": null,
|
|
560
|
+
"dynamic": null,
|
|
561
|
+
"style": [
|
|
562
|
+
{
|
|
563
|
+
"col": 1,
|
|
564
|
+
"colums": 4
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"col": 3,
|
|
568
|
+
"colums": 4
|
|
569
|
+
}
|
|
570
|
+
],
|
|
571
|
+
"markdownList": null,
|
|
572
|
+
"list": [
|
|
573
|
+
"<p>1</p>",
|
|
574
|
+
"<p>3</p>"
|
|
575
|
+
],
|
|
576
|
+
"type": "DOUBLE"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"src": null,
|
|
580
|
+
"dynamic": null,
|
|
581
|
+
"style": [
|
|
582
|
+
{
|
|
583
|
+
"col": 2,
|
|
584
|
+
"colums": 3
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"col": 1,
|
|
588
|
+
"colums": 3
|
|
589
|
+
}
|
|
590
|
+
],
|
|
591
|
+
"markdownList": null,
|
|
592
|
+
"list": [
|
|
593
|
+
"<p>2</p>",
|
|
594
|
+
"<p>1</p>"
|
|
595
|
+
],
|
|
596
|
+
"type": "DOUBLE"
|
|
597
|
+
}
|
|
598
|
+
],
|
|
599
|
+
buttonList: [{ name: '我是标签1', scope: '', test: '' }]
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
version: 1,
|
|
604
|
+
content: {
|
|
605
|
+
htmlList: [
|
|
606
|
+
{
|
|
607
|
+
"src": null,
|
|
608
|
+
"dynamic": null,
|
|
609
|
+
"style": [
|
|
610
|
+
{
|
|
611
|
+
"col": 1,
|
|
612
|
+
"colums": 3
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"col": 2,
|
|
616
|
+
"colums": 3
|
|
617
|
+
}
|
|
618
|
+
],
|
|
619
|
+
"markdownList": null,
|
|
620
|
+
"list": [
|
|
621
|
+
"<p>1</p>",
|
|
622
|
+
"<p>2</p>"
|
|
623
|
+
],
|
|
624
|
+
"type": "DOUBLE"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"src": null,
|
|
628
|
+
"dynamic": null,
|
|
629
|
+
"style": [
|
|
630
|
+
{
|
|
631
|
+
"col": 1,
|
|
632
|
+
"colums": 4
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"col": 1,
|
|
636
|
+
"colums": 4
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"col": 1,
|
|
640
|
+
"colums": 4
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"col": 1,
|
|
644
|
+
"colums": 4
|
|
645
|
+
}
|
|
646
|
+
],
|
|
647
|
+
"markdownList": null,
|
|
648
|
+
"list": [
|
|
649
|
+
"<p>1</p>",
|
|
650
|
+
"<p>2</p>",
|
|
651
|
+
"<p>3</p>",
|
|
652
|
+
"<p>4</p>"
|
|
653
|
+
],
|
|
654
|
+
"type": "QUADRUPLE"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"src": null,
|
|
658
|
+
"dynamic": null,
|
|
659
|
+
"style": [
|
|
660
|
+
{
|
|
661
|
+
"col": 1,
|
|
662
|
+
"colums": 4
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"col": 3,
|
|
666
|
+
"colums": 4
|
|
667
|
+
}
|
|
668
|
+
],
|
|
669
|
+
"markdownList": null,
|
|
670
|
+
"list": [
|
|
671
|
+
"<p>1</p>",
|
|
672
|
+
"<p>3</p>"
|
|
673
|
+
],
|
|
674
|
+
"type": "DOUBLE"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"src": null,
|
|
678
|
+
"dynamic": null,
|
|
679
|
+
"style": [
|
|
680
|
+
{
|
|
681
|
+
"col": 2,
|
|
682
|
+
"colums": 3
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"col": 1,
|
|
686
|
+
"colums": 3
|
|
687
|
+
}
|
|
688
|
+
],
|
|
689
|
+
"markdownList": null,
|
|
690
|
+
"list": [
|
|
691
|
+
"<p>2</p>",
|
|
692
|
+
"<p>1</p>"
|
|
693
|
+
],
|
|
694
|
+
"type": "DOUBLE"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
buttonList: [{ name: '我是标签1' }]
|
|
698
|
+
}
|
|
699
|
+
}
|
|
503
700
|
],
|
|
504
701
|
apiKey: '123456789'
|
|
505
702
|
},
|
|
@@ -10292,7 +10489,6 @@ export default {
|
|
|
10292
10489
|
url:
|
|
10293
10490
|
'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2021/08/24/07/35/41221223-c180-4f3f-bdc8-94875b693965/WeChat_20210719215122.mp4',
|
|
10294
10491
|
videoFlag: false,
|
|
10295
|
-
nodownload: false,
|
|
10296
10492
|
videoUploadPercent: 0,
|
|
10297
10493
|
isShowUploadVideo: true,
|
|
10298
10494
|
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 "./utils/AliyunIssUtil";
|
|
40
40
|
|
|
41
41
|
export default {
|
|
42
42
|
props: ["value", "placeholder", "havToolbar"],
|
|
@@ -72,7 +72,6 @@ export default {
|
|
|
72
72
|
inputObj.setAttribute('id', '_ef');
|
|
73
73
|
inputObj.setAttribute('type', 'file');
|
|
74
74
|
inputObj.setAttribute('accept', '*')
|
|
75
|
-
inputObj.setAttribute('capture', 'camcorder')
|
|
76
75
|
inputObj.setAttribute('multiple', true)
|
|
77
76
|
inputObj.setAttribute("style", 'visibility:hidden');
|
|
78
77
|
document.body.appendChild(inputObj);
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
showOptions: [],
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
-
props: ['msg'
|
|
41
|
+
props: ['msg'],
|
|
42
42
|
mounted() {
|
|
43
43
|
console.log("askbot-dragon: systemLanguage", sessionStorage.getItem("systemLanguage"));
|
|
44
44
|
this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
|
|
@@ -22,9 +22,6 @@
|
|
|
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>
|
|
28
25
|
<div id="output"></div>
|
|
29
26
|
</div>
|
|
30
27
|
</template>
|
|
@@ -126,8 +123,6 @@
|
|
|
126
123
|
video::-webkit-media-controls-mute-button { display: none !important;}
|
|
127
124
|
#dragon-video{
|
|
128
125
|
position: relative;
|
|
129
|
-
width: calc(100vw - 109px);
|
|
130
|
-
max-width: 260px;
|
|
131
126
|
#outputVideo{
|
|
132
127
|
position: absolute;
|
|
133
128
|
top: 0px;
|
|
@@ -139,24 +134,6 @@ video::-webkit-media-controls-mute-button { display: none !important;}
|
|
|
139
134
|
}
|
|
140
135
|
|
|
141
136
|
}
|
|
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
|
-
}
|
|
160
137
|
}
|
|
161
138
|
|
|
162
139
|
</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"
|
|
71
|
+
<previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="previewShowPopup"></previewDoc>
|
|
72
72
|
</van-popup>
|
|
73
73
|
<el-drawer
|
|
74
|
-
|
|
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"
|
|
82
|
+
<previewDoc ref="previewDoc" :url="previewHref" @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'],
|
|
96
96
|
filters: {
|
|
97
97
|
imageStyle: function (html) {
|
|
98
98
|
//富文本内图片自适应高度宽度
|
|
@@ -115,6 +115,8 @@
|
|
|
115
115
|
drawer:false
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
|
+
mounted() {
|
|
119
|
+
},
|
|
118
120
|
methods:{
|
|
119
121
|
// 将匹配结果替换表情图片
|
|
120
122
|
emotion(res) {
|
|
@@ -235,7 +237,7 @@
|
|
|
235
237
|
this.$emit("onRadioClick", id, name, apikey,optionApiKey);
|
|
236
238
|
},
|
|
237
239
|
onImageClick(url){
|
|
238
|
-
this.$emit('onImageClick',
|
|
240
|
+
this.$emit('onImageClick',url)
|
|
239
241
|
},
|
|
240
242
|
msgContent(content){
|
|
241
243
|
console.debug('215',content)
|
|
@@ -366,12 +368,6 @@
|
|
|
366
368
|
display: block;
|
|
367
369
|
}
|
|
368
370
|
}
|
|
369
|
-
/deep/ img {
|
|
370
|
-
height: auto;
|
|
371
|
-
width: calc(100vw - 137px);
|
|
372
|
-
border-radius: 25px;
|
|
373
|
-
max-width: 230px;
|
|
374
|
-
}
|
|
375
371
|
}
|
|
376
372
|
/deep/.el-drawer__body{
|
|
377
373
|
height: 100%;
|