askbot-dragon 1.5.49 → 1.5.50
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/README.md +27 -27
- package/babel.config.js +6 -6
- package/dragon.iml +7 -7
- package/package.json +56 -55
- package/public/index.html +73 -72
- package/src/App.vue +31 -31
- package/src/api/index.js +1 -1
- package/src/api/mock.http +2 -2
- package/src/api/requestUrl.js +185 -185
- package/src/assets/js/AliyunlssUtil.js +92 -92
- package/src/assets/js/Base64Util.js +22 -22
- package/src/assets/js/common.js +75 -75
- package/src/assets/js/hammer.js +89 -89
- package/src/assets/js/obsBrowser.js +63 -0
- package/src/assets/js/script.js +36 -36
- package/src/assets/less/common.css +6773 -6773
- package/src/assets/less/converSationContainer/common.less +192 -192
- package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
- package/src/assets/less/iconfont.css +37 -37
- package/src/assets/less/ticketMessage.less +294 -294
- package/src/components/ActionAlertIframe.vue +154 -154
- package/src/components/AiGuide.vue +468 -468
- package/src/components/AnswerDocknowledge.vue +581 -556
- package/src/components/AnswerVoice.vue +285 -285
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +4969 -5038
- package/src/components/FileType.vue +86 -86
- package/src/components/Message.vue +27 -27
- package/src/components/MyEditor.vue +348 -346
- package/src/components/actionSatisfaction.vue +107 -107
- package/src/components/actionSendToBot.vue +62 -62
- package/src/components/answerDissatisfaction.vue +62 -62
- package/src/components/answerRadio.vue +132 -186
- package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
- package/src/components/ask-components/Msgloading.vue +37 -37
- package/src/components/ask-components/SatisfactionV2.vue +15 -15
- package/src/components/askVideo.vue +142 -139
- package/src/components/assetDetails.vue +370 -370
- package/src/components/assetMessage.vue +228 -228
- package/src/components/associationIntention.vue +349 -349
- package/src/components/attachmentPreview.vue +90 -90
- package/src/components/botActionSatisfactor.vue +68 -68
- package/src/components/chatContent.vue +513 -513
- package/src/components/feedBack.vue +136 -136
- package/src/components/fielListView.vue +351 -351
- package/src/components/file/AliyunOssComponents.vue +108 -108
- package/src/components/formTemplate.vue +3577 -3572
- package/src/components/kkview.vue +1138 -1138
- package/src/components/loadingProcess.vue +164 -164
- package/src/components/message/ActionAlertIframe.vue +112 -112
- package/src/components/message/ShopMessage.vue +164 -164
- package/src/components/message/TextMessage.vue +924 -924
- package/src/components/message/TicketMessage.vue +201 -201
- package/src/components/message/swiper/index.js +4 -4
- package/src/components/message/swiper/ticketSwiper.vue +503 -503
- package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
- package/src/components/msgLoading.vue +231 -231
- package/src/components/myPopup.vue +70 -70
- package/src/components/pdfPosition.vue +1328 -1322
- package/src/components/popup.vue +227 -227
- package/src/components/previewDoc.vue +242 -242
- package/src/components/previewPdf.vue +353 -306
- package/src/components/receiverMessagePlatform.vue +65 -65
- package/src/components/recommend.vue +80 -80
- package/src/components/selector/hOption.vue +20 -20
- package/src/components/selector/hSelector.vue +199 -199
- package/src/components/selector/hWrapper.vue +216 -216
- package/src/components/senderMessagePlatform.vue +50 -50
- package/src/components/source/BotMessage.vue +24 -24
- package/src/components/source/CustomMessage.vue +24 -24
- package/src/components/test.vue +260 -260
- package/src/components/tree.vue +294 -294
- package/src/components/utils/AliyunIssUtil.js +81 -81
- package/src/components/utils/ckeditor.js +177 -174
- package/src/components/utils/format_date.js +25 -25
- package/src/components/utils/index.js +6 -6
- package/src/components/utils/math_utils.js +29 -29
- package/src/components/voiceComponent.vue +119 -119
- package/src/components/welcomeKnowledgeFile.vue +307 -270
- package/src/components/welcomeLlmCard.vue +134 -134
- package/src/main.js +57 -57
- package/vue.config.js +54 -54
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div v-for="(file,_index) in urls" :key="_index" class="fileType">
|
|
4
|
-
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/excel.png" v-if="fileType[_index]==='xls'||fileType[_index]==='xlsx'">
|
|
5
|
-
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/pdf.png" v-if="fileType[_index]==='pdf'">
|
|
6
|
-
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/ppt.png" v-if="fileType[_index]==='ppt'||fileType[_index] === 'pptx'">
|
|
7
|
-
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/word.png" v-if="fileType[_index]==='doc'||fileType[_index]==='docx'">
|
|
8
|
-
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/zip.jpg" v-if="fileType[_index] === 'zip'||fileType[_index]==='rar'">
|
|
9
|
-
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/file.png"
|
|
10
|
-
v-if="fileType[_index] !== 'zip'&& fileType[_index]!=='rar'&&fileType[_index]!=='doc'&&fileType[_index]!=='docx'&&fileType[_index]!=='xls'&&fileType[_index]!=='xlsx'
|
|
11
|
-
&&fileType[_index]!=='ppt'&&fileType[_index]!=='pptx'&&fileType[_index]!=='pdf'"
|
|
12
|
-
>
|
|
13
|
-
<div style="line-height: 30px;word-wrap:break-word;">
|
|
14
|
-
<a :href="file.response" target="_blank" :style="{color:color}">{{file.name}}</a>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
let that
|
|
22
|
-
export default {
|
|
23
|
-
name: "FileType",
|
|
24
|
-
data(){
|
|
25
|
-
return{
|
|
26
|
-
fileType:[]
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
props:{
|
|
30
|
-
urls:Array,
|
|
31
|
-
color:String
|
|
32
|
-
},
|
|
33
|
-
methods:{
|
|
34
|
-
typeClick(){
|
|
35
|
-
for (let i=0;i<this.urls.length;i++)
|
|
36
|
-
{
|
|
37
|
-
let type=this.urls[i].name
|
|
38
|
-
let nameType=type.split('.')
|
|
39
|
-
let suffix=nameType[nameType.length - 1]
|
|
40
|
-
/* let fileType=['pdf','ppt','doc','docx','xls','zip','txt','xlsx','pptx']*/
|
|
41
|
-
this.fileType[i]=suffix
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
matchType(){
|
|
46
|
-
|
|
47
|
-
/* let result='';
|
|
48
|
-
let fileType=['pdf','ppt','doc','docx','xls','zip']
|
|
49
|
-
result=fileType.some(function (){
|
|
50
|
-
|
|
51
|
-
})
|
|
52
|
-
console.log(result)*/
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
beforeCreate() {
|
|
56
|
-
that=this
|
|
57
|
-
},
|
|
58
|
-
beforeMount() {
|
|
59
|
-
that.typeClick()
|
|
60
|
-
},
|
|
61
|
-
mounted() {
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
</script>
|
|
66
|
-
|
|
67
|
-
<style lang="less">
|
|
68
|
-
.fileType{
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
img{
|
|
72
|
-
width: 25px;
|
|
73
|
-
height: 25px;
|
|
74
|
-
margin-right: 10px;
|
|
75
|
-
align-items: center;
|
|
76
|
-
text-align: center;
|
|
77
|
-
}
|
|
78
|
-
a{
|
|
79
|
-
align-items: center;
|
|
80
|
-
color: black;
|
|
81
|
-
}
|
|
82
|
-
.el-link--inner{
|
|
83
|
-
display: flex!important;
|
|
84
|
-
align-items: center!important;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div v-for="(file,_index) in urls" :key="_index" class="fileType">
|
|
4
|
+
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/excel.png" v-if="fileType[_index]==='xls'||fileType[_index]==='xlsx'">
|
|
5
|
+
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/pdf.png" v-if="fileType[_index]==='pdf'">
|
|
6
|
+
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/ppt.png" v-if="fileType[_index]==='ppt'||fileType[_index] === 'pptx'">
|
|
7
|
+
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/word.png" v-if="fileType[_index]==='doc'||fileType[_index]==='docx'">
|
|
8
|
+
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/zip.jpg" v-if="fileType[_index] === 'zip'||fileType[_index]==='rar'">
|
|
9
|
+
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/file.png"
|
|
10
|
+
v-if="fileType[_index] !== 'zip'&& fileType[_index]!=='rar'&&fileType[_index]!=='doc'&&fileType[_index]!=='docx'&&fileType[_index]!=='xls'&&fileType[_index]!=='xlsx'
|
|
11
|
+
&&fileType[_index]!=='ppt'&&fileType[_index]!=='pptx'&&fileType[_index]!=='pdf'"
|
|
12
|
+
>
|
|
13
|
+
<div style="line-height: 30px;word-wrap:break-word;">
|
|
14
|
+
<a :href="file.response" target="_blank" :style="{color:color}">{{file.name}}</a>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
let that
|
|
22
|
+
export default {
|
|
23
|
+
name: "FileType",
|
|
24
|
+
data(){
|
|
25
|
+
return{
|
|
26
|
+
fileType:[]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
props:{
|
|
30
|
+
urls:Array,
|
|
31
|
+
color:String
|
|
32
|
+
},
|
|
33
|
+
methods:{
|
|
34
|
+
typeClick(){
|
|
35
|
+
for (let i=0;i<this.urls.length;i++)
|
|
36
|
+
{
|
|
37
|
+
let type=this.urls[i].name
|
|
38
|
+
let nameType=type.split('.')
|
|
39
|
+
let suffix=nameType[nameType.length - 1]
|
|
40
|
+
/* let fileType=['pdf','ppt','doc','docx','xls','zip','txt','xlsx','pptx']*/
|
|
41
|
+
this.fileType[i]=suffix
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
matchType(){
|
|
46
|
+
|
|
47
|
+
/* let result='';
|
|
48
|
+
let fileType=['pdf','ppt','doc','docx','xls','zip']
|
|
49
|
+
result=fileType.some(function (){
|
|
50
|
+
|
|
51
|
+
})
|
|
52
|
+
console.log(result)*/
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
beforeCreate() {
|
|
56
|
+
that=this
|
|
57
|
+
},
|
|
58
|
+
beforeMount() {
|
|
59
|
+
that.typeClick()
|
|
60
|
+
},
|
|
61
|
+
mounted() {
|
|
62
|
+
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
</script>
|
|
66
|
+
|
|
67
|
+
<style lang="less">
|
|
68
|
+
.fileType{
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
img{
|
|
72
|
+
width: 25px;
|
|
73
|
+
height: 25px;
|
|
74
|
+
margin-right: 10px;
|
|
75
|
+
align-items: center;
|
|
76
|
+
text-align: center;
|
|
77
|
+
}
|
|
78
|
+
a{
|
|
79
|
+
align-items: center;
|
|
80
|
+
color: black;
|
|
81
|
+
}
|
|
82
|
+
.el-link--inner{
|
|
83
|
+
display: flex!important;
|
|
84
|
+
align-items: center!important;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
87
|
</style>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<!-- 消息记录容器 -->
|
|
2
|
-
<template>
|
|
3
|
-
<div class="conversation-container">
|
|
4
|
-
|
|
5
|
-
<div :class="message.source">
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
</div>
|
|
9
|
-
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
import TextMessage from "./message/TextMessage";
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
name: 'Message',
|
|
18
|
-
props: {
|
|
19
|
-
message: Object
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
25
|
-
<style scoped>
|
|
26
|
-
|
|
27
|
-
</style>
|
|
1
|
+
<!-- 消息记录容器 -->
|
|
2
|
+
<template>
|
|
3
|
+
<div class="conversation-container">
|
|
4
|
+
|
|
5
|
+
<div :class="message.source">
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import TextMessage from "./message/TextMessage";
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: 'Message',
|
|
18
|
+
props: {
|
|
19
|
+
message: Object
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
25
|
+
<style scoped>
|
|
26
|
+
|
|
27
|
+
</style>
|