askbot-dragon 1.0.16 → 1.0.18
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
CHANGED
|
@@ -45,6 +45,9 @@
|
|
|
45
45
|
<!-- <FileType :urls="urls" :color="black"></FileType>-->
|
|
46
46
|
<FileType :urls="urls" :color="black"></FileType>
|
|
47
47
|
<chat-content :messageList="messageList"></chat-content>
|
|
48
|
+
<div v-for="(item,index) in processAction" :key="index">
|
|
49
|
+
<association-intention :msg="item" :msgType="item.type" :isOpen="isOpen"></association-intention>
|
|
50
|
+
</div>
|
|
48
51
|
</div>
|
|
49
52
|
</template>
|
|
50
53
|
<script>
|
|
@@ -57,7 +60,7 @@ import TextMessage from "@/components/message/TextMessage";*/
|
|
|
57
60
|
// import AnswerRadio from './answerRadio'
|
|
58
61
|
// import TicketMessage from './message/TicketMessage'
|
|
59
62
|
/*import VoiceComponent from "./voiceComponent";*/
|
|
60
|
-
|
|
63
|
+
import AssociationIntention from './associationIntention'
|
|
61
64
|
// import ActionSatisfaction from './actionSatisfaction'
|
|
62
65
|
// import MsgLoading from './msgLoading'
|
|
63
66
|
// import LoadingProcess from './loadingProcess'
|
|
@@ -86,7 +89,7 @@ export default {
|
|
|
86
89
|
// LoadingProcess,
|
|
87
90
|
// MsgLoading,
|
|
88
91
|
// ActionSatisfaction,
|
|
89
|
-
|
|
92
|
+
AssociationIntention,
|
|
90
93
|
/* VoiceComponent,*/
|
|
91
94
|
// TicketMessage,
|
|
92
95
|
// AsserDeatils,
|
|
@@ -4473,6 +4476,12 @@ export default {
|
|
|
4473
4476
|
],
|
|
4474
4477
|
status: true
|
|
4475
4478
|
}
|
|
4479
|
+
},
|
|
4480
|
+
{
|
|
4481
|
+
content:"尊敬的各位:<br/><br/>大家好!<br/><br/>很高兴地通知大家,我们的项目已经成功上线!<br/><br/>这是一个重要的里程碑,我们的团队在过去几个月中付出了艰苦的努力,最终实现了这一目标。我们应该感谢所有参与这个项目的人,他们的努力和投入使我们能够取得这一成就。<br/><br/>我们的项目上线后,将为我们的客户提供更好的服务,更多的功能,更快的响应时间,更高的可用性。<br/><br/>我们将继续努力,不断改进和完善我们的项目,以满足客户的需求。<br/><br/>再次感谢大家的支持!<br/><br/>谢谢!<br/><br/>此致<br/><br/>敬礼(--来源于ChatGPT)",
|
|
4482
|
+
type: 'answer_text',
|
|
4483
|
+
id: '60df03aeeea6014311dc4285',
|
|
4484
|
+
intentId: 6064,
|
|
4476
4485
|
}
|
|
4477
4486
|
],
|
|
4478
4487
|
actionSatisfactions: [
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<!-- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>-->
|
|
5
5
|
<template v-if="msgContent(msg.content)">
|
|
6
6
|
<p style="white-space: pre-wrap;">
|
|
7
|
-
{{
|
|
7
|
+
{{msg.content | msgHtmlContent}}
|
|
8
8
|
</p>
|
|
9
9
|
</template>
|
|
10
10
|
<template v-else>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
|
|
15
15
|
<template v-if="msgContent(msg.content)">
|
|
16
16
|
<p style="white-space: pre-wrap;">
|
|
17
|
-
{{
|
|
17
|
+
{{msg.content | msgHtmlContent}}
|
|
18
18
|
</p>
|
|
19
19
|
</template>
|
|
20
20
|
<template v-else>
|
|
@@ -82,6 +82,11 @@
|
|
|
82
82
|
"<img style='max-width: 230px;border-radius: 25px;' onclick='imageOnClick(this)'"
|
|
83
83
|
);
|
|
84
84
|
},
|
|
85
|
+
msgHtmlContent:function (content){
|
|
86
|
+
var reg = /<br\/>/g;
|
|
87
|
+
let msg = content.replace(reg,'\n');
|
|
88
|
+
return msg
|
|
89
|
+
},
|
|
85
90
|
},
|
|
86
91
|
mounted() {
|
|
87
92
|
},
|
|
@@ -208,15 +213,13 @@
|
|
|
208
213
|
this.$emit('onImageClick',url)
|
|
209
214
|
},
|
|
210
215
|
msgContent(content){
|
|
211
|
-
|
|
216
|
+
console.debug('215',content)
|
|
217
|
+
var regBr = /<br\/>/g;
|
|
218
|
+
let msg = content.replace(regBr,"\n");
|
|
212
219
|
var reg = /<[^>]+>/g;
|
|
213
220
|
return reg.test(msg);
|
|
214
221
|
|
|
215
222
|
},
|
|
216
|
-
msgHtmlContent(content){
|
|
217
|
-
let msg = content.replaceAll('<br/>','\n');
|
|
218
|
-
return msg
|
|
219
|
-
},
|
|
220
223
|
},
|
|
221
224
|
watch:{
|
|
222
225
|
isOpen:{
|