askbot-dragon 1.7.17-beta → 1.7.19-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 +2 -2
- package/public/index.html +9 -8
- package/src/assets/js/AliyunlssUtil.js +53 -27
- 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 +121 -154
- package/src/components/AnswerDocknowledge.vue +10 -8
- package/src/components/ConversationContainer.vue +952 -1794
- package/src/components/MyEditor.vue +6 -5
- package/src/components/actionSatisfaction.vue +3 -3
- package/src/components/answerRadio.vue +3 -3
- package/src/components/askVideo.vue +24 -1
- package/src/components/associationIntention.vue +11 -7
- package/src/components/file/AliyunOssComponents.vue +1 -1
- package/src/components/formTemplate.vue +1592 -1658
- package/src/components/intelligentSummary.vue +8 -4
- package/src/components/message/TextMessage.vue +15 -11
- package/src/components/message/swiper/ticketSwiper.vue +1 -1
- package/src/components/newPdfPosition.vue +878 -0
- package/src/components/pdfPosition.vue +209 -35
- package/src/components/popup.vue +2 -2
- package/src/components/previewDoc.vue +6 -2
- package/src/components/previewPdf.vue +159 -134
- package/src/components/senderMessagePlatform.vue +4 -4
- package/src/components/tree.vue +114 -101
- package/src/components/utils/AliyunIssUtil.js +2 -1
- package/src/components/utils/ckeditor.js +1 -1
- package/src/components/welcomeKnowledgeFile.vue +6 -2
- package/src/components/welcomeLlmCard.vue +5 -1
- package/src/components/welcomeSuggest.vue +1 -1
- package/src/locales/cn.json +72 -0
- package/src/locales/en.json +73 -0
- package/src/locales/jp.json +73 -0
- package/src/main.js +18 -0
|
@@ -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"],
|
|
@@ -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);
|
|
@@ -290,10 +291,10 @@ export default {
|
|
|
290
291
|
-webkit-animation: rotate 1.5s linear infinite;
|
|
291
292
|
animation: rotate 1.5s linear infinite;
|
|
292
293
|
}
|
|
293
|
-
.wrap {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
294
|
+
// .wrap {
|
|
295
|
+
// height: 1px;
|
|
296
|
+
// width: 100%;
|
|
297
|
+
// }
|
|
297
298
|
}
|
|
298
299
|
.editor_content:focus {
|
|
299
300
|
box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1) inset, 0, 0;
|
|
@@ -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">
|
|
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"
|
|
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
|
// 关键词推荐 前端分页
|
|
@@ -15,13 +15,16 @@
|
|
|
15
15
|
:controlslist="nodownload&&'nodownload'"
|
|
16
16
|
:raw-controls="true"
|
|
17
17
|
x5-video-player-type="h5-page"
|
|
18
|
-
style="object-fit: contain;width: calc(100vw -
|
|
18
|
+
style="object-fit: contain;width: calc(100vw - 169px);height: 160px;background-color: black;border-radius: 25px;max-width: 200px;padding-left: 10px"
|
|
19
19
|
preload
|
|
20
20
|
:poster="videoSrc+'?spm=qipa250&x-oss-process=video/snapshot,t_1000,f_jpg,w_0,h_0,m_fast'"
|
|
21
21
|
class="video-player vjs-custom-skin"
|
|
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="$t('common.drawerTitle')"
|
|
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%;
|