askbot-dragon 1.8.17-beta → 1.8.18-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/README.md +27 -27
- package/babel.config.js +6 -6
- package/dragon.iml +7 -7
- package/package.json +60 -60
- package/public/index.html +73 -73
- 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 +141 -141
- package/src/assets/js/Base64Util.js +22 -22
- package/src/assets/js/common.js +265 -261
- package/src/assets/js/hammer.js +100 -100
- package/src/assets/js/script.js +36 -36
- package/src/assets/less/common.css +6773 -6773
- package/src/assets/less/converSationContainer/common.less +199 -199
- package/src/assets/less/converSationContainer/converSatonContainer.less +486 -486
- package/src/assets/less/iconfont.css +37 -37
- package/src/assets/less/ticketMessage.less +294 -294
- package/src/assets/less/variables.less +122 -122
- package/src/components/ActionAlertIframe.vue +178 -178
- package/src/components/AiGuide.vue +435 -435
- package/src/components/AnswerDocknowledge.vue +1205 -1205
- package/src/components/AnswerVoice.vue +286 -286
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +10684 -10684
- package/src/components/FileType.vue +86 -86
- package/src/components/Message.vue +27 -27
- package/src/components/MyEditor.vue +344 -344
- package/src/components/QwFeedback.vue +303 -303
- package/src/components/actionSatisfaction.vue +109 -109
- package/src/components/actionSendToBot.vue +64 -64
- package/src/components/answerDissatisfaction.vue +64 -64
- package/src/components/answerRadio.vue +261 -261
- package/src/components/ask-components/DissatisfactionOptions.vue +58 -58
- package/src/components/ask-components/Msgloading.vue +38 -38
- package/src/components/ask-components/SatisfactionV2.vue +15 -15
- package/src/components/askVideo.vue +264 -264
- package/src/components/assetDetails.vue +379 -379
- package/src/components/assetMessage.vue +231 -231
- package/src/components/associationIntention.vue +418 -418
- package/src/components/attachmentPreview.vue +92 -92
- package/src/components/botActionSatisfactor.vue +70 -70
- package/src/components/chatContent.vue +514 -514
- package/src/components/feedBack.vue +138 -138
- package/src/components/fielListView.vue +352 -352
- package/src/components/file/AliyunOssComponents.vue +108 -108
- package/src/components/formTemplate.vue +3522 -3522
- package/src/components/imgView.vue +31 -31
- package/src/components/intelligentSummary.vue +236 -236
- package/src/components/interruptComponents/imageSelectionAnswer.vue +202 -202
- package/src/components/interruptComponents/multipleChoiceAnswer.vue +133 -133
- package/src/components/interruptComponents/singleChoiceAnswer.vue +81 -81
- package/src/components/kkview.vue +1130 -1130
- package/src/components/loadingProcess.vue +164 -164
- package/src/components/markDownText.vue +961 -961
- package/src/components/message/ActionAlertIframe.vue +112 -112
- package/src/components/message/ShopMessage.vue +164 -164
- package/src/components/message/TextMessage.vue +930 -930
- 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 +75 -75
- package/src/components/newPdfPosition.vue +877 -877
- package/src/components/outputComponents/outputCom.vue +148 -148
- package/src/components/pagination.vue +129 -129
- package/src/components/pdfPosition.vue +1514 -1514
- package/src/components/popup.vue +230 -230
- package/src/components/preview/docView.vue +132 -132
- package/src/components/preview/excelView.vue +213 -213
- package/src/components/preview/newPositionPreview.vue +392 -392
- package/src/components/preview/pdfView.vue +833 -833
- package/src/components/previewDoc.vue +257 -257
- package/src/components/previewPdf.vue +1123 -1123
- package/src/components/previewWisdom.vue +251 -251
- package/src/components/receiverMessagePlatform.vue +71 -71
- package/src/components/recommend.vue +82 -82
- 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 +60 -60
- 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 +309 -309
- package/src/components/utils/AliyunIssUtil.js +103 -103
- package/src/components/utils/ckeditor.js +185 -185
- 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 +122 -122
- package/src/components/welcomeKnowledgeFile.vue +350 -350
- package/src/components/welcomeLlmCard.vue +146 -146
- package/src/components/welcomeSuggest.vue +99 -99
- package/src/locales/cn.json +99 -99
- package/src/locales/en.json +98 -98
- package/src/locales/jp.json +72 -72
- package/src/main.js +76 -76
- package/vue.config.js +54 -54
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="docView" id="docView">
|
|
3
|
-
<div class="docHtml"
|
|
4
|
-
ref="docHtml"
|
|
5
|
-
id="docHtml"
|
|
6
|
-
v-html="html"
|
|
7
|
-
@click="selectDiv"
|
|
8
|
-
>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
import { newInitWaterMark } from "../../assets/js/common";
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
name: "docView",
|
|
18
|
-
data(){
|
|
19
|
-
return{
|
|
20
|
-
colors: ['#E3EBFF', '#FFF5DC', '#FFE8D8','#D6F3EA','#FFF1C3'],
|
|
21
|
-
html:"",
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
props:{
|
|
25
|
-
html_result:{
|
|
26
|
-
type:String,
|
|
27
|
-
default:""
|
|
28
|
-
},
|
|
29
|
-
split_paragraphs:{
|
|
30
|
-
type:Array,
|
|
31
|
-
default(){
|
|
32
|
-
return []
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
fileSuffix:{
|
|
36
|
-
type:String,
|
|
37
|
-
default:""
|
|
38
|
-
},
|
|
39
|
-
textWatermarkStr:{
|
|
40
|
-
type:String,
|
|
41
|
-
default:""
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
methods:{
|
|
45
|
-
selectDiv(e){
|
|
46
|
-
this.$emit('selectDiv',e)
|
|
47
|
-
},
|
|
48
|
-
getHtml(){
|
|
49
|
-
// let url = 'https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/123/2024/12/09/14/18/17/123/%E5%85%AC%E5%8F%B8%E5%91%98%E5%B7%A5%E6%89%8B%E5%86%8C_1733725097.html'
|
|
50
|
-
let url = this.html_result
|
|
51
|
-
this.$http.post('/knowledge-api/temporary-certificate/or-origin?expired=10', url, {
|
|
52
|
-
headers: {
|
|
53
|
-
"Content-Type": "application/json",
|
|
54
|
-
}
|
|
55
|
-
}).then(res => {
|
|
56
|
-
if(res.data) {
|
|
57
|
-
this.$http.get(res.data).then(res => {
|
|
58
|
-
this.html = res.data;
|
|
59
|
-
let drawer = document.getElementById('drawer_content_pre')
|
|
60
|
-
if (drawer){
|
|
61
|
-
drawer.style.backgroundImage = 'none';
|
|
62
|
-
drawer.style.overflowX = 'hidden';
|
|
63
|
-
}
|
|
64
|
-
this.$nextTick(() => {
|
|
65
|
-
this.setColor();
|
|
66
|
-
if (this.textWatermarkStr){
|
|
67
|
-
newInitWaterMark('docHtml',this.textWatermarkStr)
|
|
68
|
-
}
|
|
69
|
-
})})
|
|
70
|
-
}
|
|
71
|
-
})
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
setColor(){
|
|
75
|
-
this.split_paragraphs.forEach((item,index) => {
|
|
76
|
-
const colorIndex = index % this.colors.length;
|
|
77
|
-
if (item.original_paragraph){
|
|
78
|
-
item.original_paragraph.forEach(items => {
|
|
79
|
-
let dom = document.getElementById(items.paragraph_id);
|
|
80
|
-
if (this.fileSuffix === 'TXT'){
|
|
81
|
-
const paragraphs = this.$el.querySelectorAll(`[paragraph-id="${items.paragraph_id}"]`);
|
|
82
|
-
paragraphs.forEach(paragraph => {
|
|
83
|
-
paragraph.style.background = this.colors[colorIndex]
|
|
84
|
-
})
|
|
85
|
-
} else if (dom){
|
|
86
|
-
dom.style.background = this.colors[colorIndex];
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
let newOriginal = item.original_paragraph.filter(items => !items.type)
|
|
90
|
-
let dom = document.getElementById(newOriginal[newOriginal.length - 1].paragraph_id);
|
|
91
|
-
if (dom){
|
|
92
|
-
dom.style.marginBottom = '8px';
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
if (item.tableId){
|
|
96
|
-
let dom = document.getElementById(item.tableId);
|
|
97
|
-
if (dom){
|
|
98
|
-
dom.style.backgroundColor = this.colors[colorIndex]
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
})
|
|
102
|
-
setTimeout(() => {
|
|
103
|
-
this.$parent.scrollToParagraph('first')
|
|
104
|
-
},500)
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
watch:{
|
|
108
|
-
html_result:{
|
|
109
|
-
handler(){
|
|
110
|
-
if (this.html_result){
|
|
111
|
-
this.getHtml();
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
immediate:true
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
</script>
|
|
119
|
-
|
|
120
|
-
<style scoped lang="less">
|
|
121
|
-
.docView{
|
|
122
|
-
width: 100%;
|
|
123
|
-
flex: none;
|
|
124
|
-
box-sizing: border-box;
|
|
125
|
-
div{
|
|
126
|
-
position: relative;
|
|
127
|
-
}
|
|
128
|
-
/deep/img{
|
|
129
|
-
max-width: 100%;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="docView" id="docView">
|
|
3
|
+
<div class="docHtml"
|
|
4
|
+
ref="docHtml"
|
|
5
|
+
id="docHtml"
|
|
6
|
+
v-html="html"
|
|
7
|
+
@click="selectDiv"
|
|
8
|
+
>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import { newInitWaterMark } from "../../assets/js/common";
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: "docView",
|
|
18
|
+
data(){
|
|
19
|
+
return{
|
|
20
|
+
colors: ['#E3EBFF', '#FFF5DC', '#FFE8D8','#D6F3EA','#FFF1C3'],
|
|
21
|
+
html:"",
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
props:{
|
|
25
|
+
html_result:{
|
|
26
|
+
type:String,
|
|
27
|
+
default:""
|
|
28
|
+
},
|
|
29
|
+
split_paragraphs:{
|
|
30
|
+
type:Array,
|
|
31
|
+
default(){
|
|
32
|
+
return []
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
fileSuffix:{
|
|
36
|
+
type:String,
|
|
37
|
+
default:""
|
|
38
|
+
},
|
|
39
|
+
textWatermarkStr:{
|
|
40
|
+
type:String,
|
|
41
|
+
default:""
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
methods:{
|
|
45
|
+
selectDiv(e){
|
|
46
|
+
this.$emit('selectDiv',e)
|
|
47
|
+
},
|
|
48
|
+
getHtml(){
|
|
49
|
+
// let url = 'https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/123/2024/12/09/14/18/17/123/%E5%85%AC%E5%8F%B8%E5%91%98%E5%B7%A5%E6%89%8B%E5%86%8C_1733725097.html'
|
|
50
|
+
let url = this.html_result
|
|
51
|
+
this.$http.post('/knowledge-api/temporary-certificate/or-origin?expired=10', url, {
|
|
52
|
+
headers: {
|
|
53
|
+
"Content-Type": "application/json",
|
|
54
|
+
}
|
|
55
|
+
}).then(res => {
|
|
56
|
+
if(res.data) {
|
|
57
|
+
this.$http.get(res.data).then(res => {
|
|
58
|
+
this.html = res.data;
|
|
59
|
+
let drawer = document.getElementById('drawer_content_pre')
|
|
60
|
+
if (drawer){
|
|
61
|
+
drawer.style.backgroundImage = 'none';
|
|
62
|
+
drawer.style.overflowX = 'hidden';
|
|
63
|
+
}
|
|
64
|
+
this.$nextTick(() => {
|
|
65
|
+
this.setColor();
|
|
66
|
+
if (this.textWatermarkStr){
|
|
67
|
+
newInitWaterMark('docHtml',this.textWatermarkStr)
|
|
68
|
+
}
|
|
69
|
+
})})
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
},
|
|
74
|
+
setColor(){
|
|
75
|
+
this.split_paragraphs.forEach((item,index) => {
|
|
76
|
+
const colorIndex = index % this.colors.length;
|
|
77
|
+
if (item.original_paragraph){
|
|
78
|
+
item.original_paragraph.forEach(items => {
|
|
79
|
+
let dom = document.getElementById(items.paragraph_id);
|
|
80
|
+
if (this.fileSuffix === 'TXT'){
|
|
81
|
+
const paragraphs = this.$el.querySelectorAll(`[paragraph-id="${items.paragraph_id}"]`);
|
|
82
|
+
paragraphs.forEach(paragraph => {
|
|
83
|
+
paragraph.style.background = this.colors[colorIndex]
|
|
84
|
+
})
|
|
85
|
+
} else if (dom){
|
|
86
|
+
dom.style.background = this.colors[colorIndex];
|
|
87
|
+
}
|
|
88
|
+
})
|
|
89
|
+
let newOriginal = item.original_paragraph.filter(items => !items.type)
|
|
90
|
+
let dom = document.getElementById(newOriginal[newOriginal.length - 1].paragraph_id);
|
|
91
|
+
if (dom){
|
|
92
|
+
dom.style.marginBottom = '8px';
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (item.tableId){
|
|
96
|
+
let dom = document.getElementById(item.tableId);
|
|
97
|
+
if (dom){
|
|
98
|
+
dom.style.backgroundColor = this.colors[colorIndex]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
})
|
|
102
|
+
setTimeout(() => {
|
|
103
|
+
this.$parent.scrollToParagraph('first')
|
|
104
|
+
},500)
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
watch:{
|
|
108
|
+
html_result:{
|
|
109
|
+
handler(){
|
|
110
|
+
if (this.html_result){
|
|
111
|
+
this.getHtml();
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
immediate:true
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
</script>
|
|
119
|
+
|
|
120
|
+
<style scoped lang="less">
|
|
121
|
+
.docView{
|
|
122
|
+
width: 100%;
|
|
123
|
+
flex: none;
|
|
124
|
+
box-sizing: border-box;
|
|
125
|
+
div{
|
|
126
|
+
position: relative;
|
|
127
|
+
}
|
|
128
|
+
/deep/img{
|
|
129
|
+
max-width: 100%;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
</style>
|