askbot-dragon 1.1.2 → 1.1.4
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 -56
- package/public/index.html +43 -43
- 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/script.js +36 -36
- package/src/assets/less/common.css +6773 -6773
- package/src/assets/less/converSationContainer/common.less +191 -191
- package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
- package/src/assets/less/iconfont.css +37 -37
- package/src/assets/less/ticketMessage.less +211 -211
- package/src/components/ActionAlertIframe.vue +112 -112
- package/src/components/AiGuide.vue +467 -467
- package/src/components/AnswerDocknowledge.vue +213 -176
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +3996 -3996
- package/src/components/FileType.vue +86 -86
- package/src/components/Message.vue +27 -27
- 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 +76 -76
- 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 +138 -138
- package/src/components/assetDetails.vue +370 -370
- package/src/components/assetMessage.vue +228 -228
- package/src/components/associationIntention.vue +299 -299
- 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 +312 -312
- package/src/components/file/AliyunOssComponents.vue +108 -108
- package/src/components/formTemplate.vue +3361 -3361
- 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 +177 -177
- 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/popup.vue +227 -227
- package/src/components/previewDoc.vue +85 -85
- package/src/components/receiverMessagePlatform.vue +65 -65
- package/src/components/recommend.vue +89 -89
- 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 +72 -72
- package/src/components/utils/ckeditor.js +155 -155
- package/src/components/utils/ckeditorImageUpload/command.js +109 -109
- package/src/components/utils/ckeditorImageUpload/editing.js +11 -11
- package/src/components/utils/ckeditorImageUpload/plugin-image.js +11 -11
- package/src/components/utils/ckeditorImageUpload/toolbar-ui.js +40 -40
- package/src/components/utils/ckeditorfileUpload/common.js +111 -111
- package/src/components/utils/ckeditorfileUpload/editing.js +11 -11
- package/src/components/utils/ckeditorfileUpload/plugin_file.js +11 -11
- package/src/components/utils/ckeditorfileUpload/toolbar_ui.js +34 -34
- 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/main.js +60 -60
- package/vue.config.js +47 -47
|
@@ -1,177 +1,214 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="answer-docknowledge">
|
|
3
|
-
<div v-if="msg.content.type == 0" class="
|
|
4
|
-
@click="lookAttach(msg.content.list[0].url)" class="aci-view">查看原文 ></span></div>
|
|
5
|
-
<div v-if="msg.content.type == 1" class="
|
|
6
|
-
<div class="ad-list">
|
|
7
|
-
<div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell">
|
|
8
|
-
<div class="alc-title">
|
|
9
|
-
<div class="alc-box">
|
|
10
|
-
<img class="alc-title-icon" height="24px" width="24px" :src="item.src" alt="" srcset="">
|
|
11
|
-
<span class="alc-title-from">出自《{{ item.from }}》</span>
|
|
12
|
-
</div>
|
|
13
|
-
<span v-if="isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="alc-content">
|
|
16
|
-
<div v-if="msg.content.type == 1" class="alc-content-text">{{ item.introduction }} <span
|
|
17
|
-
@click="lookAttach(item.url)" class="aci-view">查看原文 ></span>
|
|
18
|
-
</div>
|
|
19
|
-
<span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
|
|
20
|
-
<div v-if="false" class="alc-content-info">
|
|
21
|
-
<div class="alcc-box">
|
|
22
|
-
<span class="aci-owner">所有者: {{ item.owner }}</span>
|
|
23
|
-
<span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
|
|
24
|
-
<span class="aci-source">文件来源: {{ item.source }}</span>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
<previewDoc ref="previewDoc" :url="previewHref"></previewDoc>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script>
|
|
35
|
-
import previewDoc from "./previewDoc";
|
|
36
|
-
export default {
|
|
37
|
-
name: "answerDocknowledge",
|
|
38
|
-
components: { previewDoc },
|
|
39
|
-
data() {
|
|
40
|
-
return {
|
|
41
|
-
isPC: true,
|
|
42
|
-
previewHref: "",
|
|
43
|
-
imageObj: {
|
|
44
|
-
PDF: 'pdf',
|
|
45
|
-
pdf: 'pdf',
|
|
46
|
-
TXT: 'txt',
|
|
47
|
-
txt: 'txt'
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="answer-docknowledge">
|
|
3
|
+
<div v-if="msg.content.type == 0" class="answer-text">{{ msg.content.text }}<span
|
|
4
|
+
@click="lookAttach(msg.content.list[0].url)" class="aci-view">查看原文 ></span></div>
|
|
5
|
+
<div v-if="msg.content.type == 1" class="answer-text">{{ msg.content.text }}</div>
|
|
6
|
+
<div class="ad-list">
|
|
7
|
+
<div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell">
|
|
8
|
+
<div class="alc-title">
|
|
9
|
+
<div class="alc-box">
|
|
10
|
+
<img class="alc-title-icon" height="24px" width="24px" :src="item.src" alt="" srcset="">
|
|
11
|
+
<span class="alc-title-from">出自《{{ item.from }}》</span>
|
|
12
|
+
</div>
|
|
13
|
+
<span v-if="isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="alc-content">
|
|
16
|
+
<div v-if="msg.content.type == 1" class="alc-content-text">{{ item.introduction }} <span
|
|
17
|
+
@click="lookAttach(item.url)" class="aci-view">查看原文 ></span>
|
|
18
|
+
</div>
|
|
19
|
+
<span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
|
|
20
|
+
<div v-if="false" class="alc-content-info">
|
|
21
|
+
<div class="alcc-box">
|
|
22
|
+
<span class="aci-owner">所有者: {{ item.owner }}</span>
|
|
23
|
+
<span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
|
|
24
|
+
<span class="aci-source">文件来源: {{ item.source }}</span>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<previewDoc ref="previewDoc" :url="previewHref"></previewDoc>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
import previewDoc from "./previewDoc";
|
|
36
|
+
export default {
|
|
37
|
+
name: "answerDocknowledge",
|
|
38
|
+
components: { previewDoc },
|
|
39
|
+
data() {
|
|
40
|
+
return {
|
|
41
|
+
isPC: true,
|
|
42
|
+
previewHref: "",
|
|
43
|
+
imageObj: {
|
|
44
|
+
PDF: 'pdf',
|
|
45
|
+
pdf: 'pdf',
|
|
46
|
+
TXT: 'txt',
|
|
47
|
+
txt: 'txt',
|
|
48
|
+
selfadd: 'selfadd',
|
|
49
|
+
md: "selfadd",
|
|
50
|
+
html: 'selfadd',
|
|
51
|
+
mode: "mode",
|
|
52
|
+
general: 'general',
|
|
53
|
+
word: "word",
|
|
54
|
+
Word: "word",
|
|
55
|
+
docx: "word",
|
|
56
|
+
doc: "word",
|
|
57
|
+
WORD: "word",
|
|
58
|
+
Excel: 'excel',
|
|
59
|
+
EXCEL: 'excel',
|
|
60
|
+
excel: 'excel',
|
|
61
|
+
PPT: 'ppt',
|
|
62
|
+
ppt: 'ppt',
|
|
63
|
+
img: "image",
|
|
64
|
+
image: "image",
|
|
65
|
+
video: "video",
|
|
66
|
+
audio: 'audio',
|
|
67
|
+
link: "link",
|
|
68
|
+
wechat: "wechat",
|
|
69
|
+
mp4: "video",
|
|
70
|
+
MP4: "video",
|
|
71
|
+
xlsx: "excel",
|
|
72
|
+
xls: "excel",
|
|
73
|
+
jpg: "image",
|
|
74
|
+
jpeg: "image",
|
|
75
|
+
png: "image",
|
|
76
|
+
webp: "image",
|
|
77
|
+
gif: "image",
|
|
78
|
+
svg: "image",
|
|
79
|
+
bmp: "image",
|
|
80
|
+
avi: "video",
|
|
81
|
+
mov: "video",
|
|
82
|
+
rmvb: "video",
|
|
83
|
+
wav: "audio",
|
|
84
|
+
mp3: "audio",
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
props: ['msg'],
|
|
89
|
+
beforeMounted() {
|
|
90
|
+
|
|
91
|
+
},
|
|
92
|
+
created() {
|
|
93
|
+
var system = {};
|
|
94
|
+
system.pingtai = /(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform);
|
|
95
|
+
if (system.pingtai) {
|
|
96
|
+
//电脑
|
|
97
|
+
this.isPC = true;
|
|
98
|
+
} else {
|
|
99
|
+
//手机
|
|
100
|
+
this.isPC = false;
|
|
101
|
+
}
|
|
102
|
+
this.msg.content.list.forEach(element => {
|
|
103
|
+
element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
|
|
104
|
+
});
|
|
105
|
+
},
|
|
106
|
+
mounted() {
|
|
107
|
+
|
|
108
|
+
},
|
|
109
|
+
methods: {
|
|
110
|
+
//预览图片
|
|
111
|
+
lookAttach(url) {
|
|
112
|
+
this.previewHref = url
|
|
113
|
+
this.$refs.previewDoc.previewShowPopup = true;
|
|
114
|
+
},
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
</script>
|
|
118
|
+
|
|
119
|
+
<style scoped lang="less">
|
|
120
|
+
.answer-docknowledge {
|
|
121
|
+
min-width: 100px;
|
|
122
|
+
|
|
123
|
+
.answer-text {
|
|
124
|
+
line-height: 18px;
|
|
125
|
+
padding: 0px 0px 12px 0px;
|
|
126
|
+
|
|
127
|
+
.aci-view {
|
|
128
|
+
font-size: 13px;
|
|
129
|
+
display: inline-block;
|
|
130
|
+
margin-left: 10px;
|
|
131
|
+
color: #366aff;
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.ad-list {
|
|
137
|
+
.ad-list-cell {
|
|
138
|
+
border-top: solid 1px #E0E6F7;
|
|
139
|
+
padding: 6px 0 6px;
|
|
140
|
+
|
|
141
|
+
.alc-title {
|
|
142
|
+
display: flex;
|
|
143
|
+
flex-wrap: wrap;
|
|
144
|
+
align-items: center;
|
|
145
|
+
justify-content: space-between;
|
|
146
|
+
line-height: 16px;
|
|
147
|
+
|
|
148
|
+
.alc-box {
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: flex-start;
|
|
152
|
+
|
|
153
|
+
.alc-title-from {
|
|
154
|
+
flex: auto;
|
|
155
|
+
display: flex;
|
|
156
|
+
justify-content: flex-start;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.alc-title-icon {
|
|
161
|
+
margin-right: 6px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.alc-title-updateTime {
|
|
165
|
+
text-align: right;
|
|
166
|
+
color: #999999;
|
|
167
|
+
font-size: 13px;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.alc-content {
|
|
172
|
+
.alc-title-updateTime {
|
|
173
|
+
margin-top: 6px;
|
|
174
|
+
display: block;
|
|
175
|
+
text-align: right;
|
|
176
|
+
color: #999999;
|
|
177
|
+
font-size: 13px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.alc-content-text {
|
|
181
|
+
margin-bottom: 6px;
|
|
182
|
+
|
|
183
|
+
.aci-view {
|
|
184
|
+
display: inline-block;
|
|
185
|
+
margin-left: 30px;
|
|
186
|
+
color: #366aff;
|
|
187
|
+
cursor: pointer;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.alc-content-info {
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-wrap: wrap;
|
|
194
|
+
justify-content: space-between;
|
|
195
|
+
|
|
196
|
+
.alcc-box {
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-wrap: wrap;
|
|
199
|
+
color: #999999;
|
|
200
|
+
|
|
201
|
+
.aci-owner {
|
|
202
|
+
margin-right: 20px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.aci-enterprise {
|
|
206
|
+
margin-right: 20px;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
177
214
|
</style>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
export default {
|
|
7
|
-
name: "AskIFrame",
|
|
8
|
-
props:{
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<style scoped>
|
|
15
|
-
|
|
1
|
+
<template>
|
|
2
|
+
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
export default {
|
|
7
|
+
name: "AskIFrame",
|
|
8
|
+
props:{
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<style scoped>
|
|
15
|
+
|
|
16
16
|
</style>
|