askbot-dragon 1.1.28 → 1.2.0

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.
Files changed (82) hide show
  1. package/README.md +27 -27
  2. package/babel.config.js +6 -6
  3. package/dragon.iml +7 -7
  4. package/package.json +56 -56
  5. package/public/index.html +43 -43
  6. package/src/App.vue +31 -31
  7. package/src/api/index.js +1 -1
  8. package/src/api/mock.http +2 -2
  9. package/src/api/requestUrl.js +185 -185
  10. package/src/assets/js/AliyunlssUtil.js +92 -92
  11. package/src/assets/js/Base64Util.js +22 -22
  12. package/src/assets/js/common.js +12 -0
  13. package/src/assets/js/script.js +36 -36
  14. package/src/assets/less/common.css +6773 -6773
  15. package/src/assets/less/converSationContainer/common.less +191 -191
  16. package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
  17. package/src/assets/less/iconfont.css +37 -37
  18. package/src/assets/less/ticketMessage.less +211 -211
  19. package/src/components/ActionAlertIframe.vue +112 -112
  20. package/src/components/AiGuide.vue +467 -467
  21. package/src/components/AnswerDocknowledge.vue +362 -351
  22. package/src/components/AskIFrame.vue +15 -15
  23. package/src/components/ConversationContainer.vue +4011 -4011
  24. package/src/components/FileType.vue +86 -86
  25. package/src/components/Message.vue +27 -27
  26. package/src/components/actionSatisfaction.vue +107 -107
  27. package/src/components/actionSendToBot.vue +62 -62
  28. package/src/components/answerDissatisfaction.vue +62 -62
  29. package/src/components/answerRadio.vue +76 -76
  30. package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
  31. package/src/components/ask-components/Msgloading.vue +37 -37
  32. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  33. package/src/components/askVideo.vue +138 -138
  34. package/src/components/assetDetails.vue +370 -370
  35. package/src/components/assetMessage.vue +228 -228
  36. package/src/components/associationIntention.vue +300 -300
  37. package/src/components/attachmentPreview.vue +90 -90
  38. package/src/components/botActionSatisfactor.vue +68 -68
  39. package/src/components/chatContent.vue +513 -513
  40. package/src/components/feedBack.vue +136 -136
  41. package/src/components/fielListView.vue +326 -326
  42. package/src/components/file/AliyunOssComponents.vue +108 -108
  43. package/src/components/formTemplate.vue +3359 -3361
  44. package/src/components/loadingProcess.vue +164 -164
  45. package/src/components/message/ActionAlertIframe.vue +112 -112
  46. package/src/components/message/ShopMessage.vue +164 -164
  47. package/src/components/message/TextMessage.vue +924 -924
  48. package/src/components/message/TicketMessage.vue +177 -177
  49. package/src/components/message/swiper/index.js +4 -4
  50. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  51. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  52. package/src/components/msgLoading.vue +231 -231
  53. package/src/components/myPopup.vue +70 -70
  54. package/src/components/popup.vue +227 -227
  55. package/src/components/previewDoc.vue +108 -108
  56. package/src/components/previewPdf.vue +195 -127
  57. package/src/components/receiverMessagePlatform.vue +65 -65
  58. package/src/components/recommend.vue +89 -89
  59. package/src/components/selector/hOption.vue +20 -20
  60. package/src/components/selector/hSelector.vue +199 -199
  61. package/src/components/selector/hWrapper.vue +216 -216
  62. package/src/components/senderMessagePlatform.vue +50 -50
  63. package/src/components/source/BotMessage.vue +24 -24
  64. package/src/components/source/CustomMessage.vue +24 -24
  65. package/src/components/test.vue +260 -260
  66. package/src/components/tree.vue +294 -294
  67. package/src/components/utils/AliyunIssUtil.js +72 -72
  68. package/src/components/utils/ckeditor.js +155 -155
  69. package/src/components/utils/ckeditorImageUpload/command.js +109 -109
  70. package/src/components/utils/ckeditorImageUpload/editing.js +11 -11
  71. package/src/components/utils/ckeditorImageUpload/plugin-image.js +11 -11
  72. package/src/components/utils/ckeditorImageUpload/toolbar-ui.js +40 -40
  73. package/src/components/utils/ckeditorfileUpload/common.js +111 -111
  74. package/src/components/utils/ckeditorfileUpload/editing.js +11 -11
  75. package/src/components/utils/ckeditorfileUpload/plugin_file.js +11 -11
  76. package/src/components/utils/ckeditorfileUpload/toolbar_ui.js +34 -34
  77. package/src/components/utils/format_date.js +25 -25
  78. package/src/components/utils/index.js +6 -6
  79. package/src/components/utils/math_utils.js +29 -29
  80. package/src/components/voiceComponent.vue +119 -119
  81. package/src/main.js +60 -60
  82. package/vue.config.js +55 -55
@@ -1,301 +1,301 @@
1
- <template>
2
- <div class="association-intention">
3
- <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && !(msg.recommend&& msg.recommend.status)">
4
- <!-- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>-->
5
- <template v-if="msg.dispatchServiceType === 'CHATGPT'">
6
- <p style="white-space: pre-wrap;">
7
- {{msg.content | msgHtmlContent}}
8
- </p>
9
- </template>
10
- <template v-else>
11
- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
12
- </template>
13
- </div>
14
- <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
15
- <template v-if="msg.dispatchServiceType === 'CHATGPT'">
16
- <p style="white-space: pre-wrap;">
17
- {{msg.content | msgHtmlContent}}
18
- </p>
19
- </template>
20
- <template v-else>
21
- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
22
- </template>
23
- <Recommend :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
24
- </div>
25
- <div v-if="msg.type === 'answer_rich_text' && !(msg.content.recommend && msg.content.recommend.status)">
26
- <p v-html="$options.filters.imageStyle(msg.content.html)" @click="lookAttach($event)"></p>
27
- </div>
28
- <div v-else-if="msg.type == 'answer_rich_text' && (msg.content.recommend && msg.content.recommend.status)">
29
- <p v-html="$options.filters.imageStyle(msg.content.html)" class="answer-rich-text" @click="lookAttach($event)"></p>
30
- <Recommend :msg="msg.content" @onRadioClickReco="onRadioClickReco"></Recommend>
31
- </div>
32
- <div v-else-if="msgType === 'answer_image'" >
33
- <div
34
- class="association-img"
35
- v-if="msg.content.url"
36
- >
37
- <!-- LPY 原生宽度适配有bug,弃用 -->
38
- <template v-if="sourceOhm === 'ohm' && !isOhmPc">
39
- <viewer :images="[msg.content.url]">
40
- <img
41
- v-for="(src,index) in [msg.content.url]"
42
- :src="src"
43
- :key="index"
44
- style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
45
- class="img-class"
46
- />
47
- </viewer>
48
- </template>
49
- <img
50
- v-else
51
- :src="msg.content.url"
52
- style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
53
- @click="onImageClick(msg.content.url)"
54
- class="img-class"
55
- />
56
- </div>
57
- <Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
58
- </div>
59
- <div v-else-if="msgType === 'answer_video' || msgType === 'user_video' || msgType === 'VIDEO'">
60
- <div class="association-img" v-if="msg.content.url">
61
- <ask-video :msg="msg" :url="msg.content.url" :local-url="msg.content.localUrl"
62
- :progress="msg.content.progress"></ask-video>
63
- </div>
64
- <Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
65
- </div>
66
- <previewDoc ref="previewDoc" :url="previewHref"></previewDoc>
67
- </div>
68
- </template>
69
-
70
- <script>
71
- import askVideo from "./askVideo";
72
- import Recommend from "./recommend";
73
- import previewDoc from "./previewDoc";
74
- export default {
75
- name: "associationIntention",
76
- components: {Recommend, askVideo, previewDoc},
77
- props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc'],
78
- filters: {
79
- imageStyle: function (html) {
80
- //富文本内图片自适应高度宽度
81
- const regex = new RegExp("<img", "gi");
82
- return html.replace(
83
- regex,
84
- "<img style='max-width: 230px;border-radius: 25px;' onclick='imageOnClick(this)'"
85
- );
86
- },
87
- msgHtmlContent:function (content){
88
- var reg = /<br\/>/g;
89
- let msg = content.replace(reg,'\n');
90
- return msg
91
- },
92
- },
93
- data() {
94
- return {
95
- previewHref: ""
96
- }
97
- },
98
- mounted() {
99
- },
100
- methods:{
101
- // 将匹配结果替换表情图片
102
- emotion(res) {
103
- let word = res.replace(/#|;/gi, "");
104
- const list = [
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
- "刀",
177
- "足球",
178
- "瓢虫",
179
- "便便",
180
- "月亮",
181
- "太阳",
182
- "礼物",
183
- "拥抱",
184
- "强",
185
- "弱",
186
- "握手",
187
- "胜利",
188
- "抱拳",
189
- "勾引",
190
- "拳头",
191
- "差劲",
192
- "爱你",
193
- "不",
194
- "可以",
195
- "爱情",
196
- "飞吻",
197
- "跳跳",
198
- "发抖",
199
- "怄火",
200
- "转圈",
201
- "磕头",
202
- "回头",
203
- "跳绳",
204
- "挥手",
205
- "激动",
206
- "街舞",
207
- "献吻",
208
- "左太极",
209
- "右太极",
210
- ];
211
- let index = list.indexOf(word);
212
- return `<img height="20px" src="https://guoranim.oss-cn-beijing.aliyuncs.com/emoji/${
213
- index + 1
214
- }.png" align="middle">`;
215
- },
216
- onRadioClickReco(id, name, apikey) {
217
- this.$emit("onRadioClick", id, name, apikey);
218
- },
219
- onImageClick(url){
220
- this.$emit('onImageClick',url)
221
- },
222
- msgContent(content){
223
- console.debug('215',content)
224
- var regBr = /<br\/>/g;
225
- let msg = content.replace(regBr,"\n");
226
- var reg = /<[^>]+>/g;
227
- return reg.test(msg);
228
-
229
- },
230
- //预览图片
231
- lookAttach(){
232
- return
233
- // if (e.target.localName == 'a'){
234
- // console.debug('lookImage',e.target.href)
235
- // this.previewHref = e.target.href
236
- // this.$refs.previewDoc.previewShowPopup = true
237
- // // let url = ''
238
- // // try {
239
- // // url = btoa(e.target.href)
240
- // // }
241
- // // catch {
242
- // // url = encodeURIComponent(btoa(e.target.href))
243
- // // }
244
- // // window.open('https://test.open.askbot.cn/kkfileview/onlinePreview?url=' + url)
245
- // // e.stopPropagation()
246
- // // e.preventDefault()
247
- // e.returnValue = false
248
- // }
249
- },
250
- },
251
- watch:{
252
- isOpen:{
253
- handler(value){
254
- if (value){
255
- let reg = this.msg.content.html
256
- if (reg){
257
- reg = reg.replace('<a',"<span class='isReplace'")
258
- reg = reg.replace('</a>','</span>')
259
- console.debug('reg',reg)
260
- this.msg.content.html = reg
261
- }
262
-
263
- }
264
- else {
265
- let reg = this.msg.content.html
266
- console.debug('reg',reg)
267
- if (reg){
268
- reg = reg.replace("<span class='isReplace'","<a download")
269
- let reg2 = reg
270
- reg2 = reg2.replace('</span>','</a>')
271
- this.msg.content.html = reg2
272
- console.debug('reg',reg2)
273
- }
274
- }
275
- }
276
- }
277
- }
278
- }
279
- </script>
280
-
281
-
282
- <style scoped lang="less">
283
- @import "../assets/less/converSationContainer/common";
284
- .association-intention{
285
- .association-img{
286
- /*display: flex;
287
- align-items: center;
288
- justify-content: center;*/
289
-
290
- }
291
- .answer-rich-text{
292
- /*padding-bottom: 10px;
293
- border-bottom: 1px solid #EEEEEE;*/
294
- }
295
- ///deep/a{
296
- // disabled:true
297
- // //pointer-events: none;
298
- //}
299
- }
300
-
1
+ <template>
2
+ <div class="association-intention">
3
+ <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && !(msg.recommend&& msg.recommend.status)">
4
+ <!-- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>-->
5
+ <template v-if="msg.dispatchServiceType === 'CHATGPT'">
6
+ <p style="white-space: pre-wrap;">
7
+ {{msg.content | msgHtmlContent}}
8
+ </p>
9
+ </template>
10
+ <template v-else>
11
+ <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
12
+ </template>
13
+ </div>
14
+ <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
15
+ <template v-if="msg.dispatchServiceType === 'CHATGPT'">
16
+ <p style="white-space: pre-wrap;">
17
+ {{msg.content | msgHtmlContent}}
18
+ </p>
19
+ </template>
20
+ <template v-else>
21
+ <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
22
+ </template>
23
+ <Recommend :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
24
+ </div>
25
+ <div v-if="msg.type === 'answer_rich_text' && !(msg.content.recommend && msg.content.recommend.status)">
26
+ <p v-html="$options.filters.imageStyle(msg.content.html)" @click="lookAttach($event)"></p>
27
+ </div>
28
+ <div v-else-if="msg.type == 'answer_rich_text' && (msg.content.recommend && msg.content.recommend.status)">
29
+ <p v-html="$options.filters.imageStyle(msg.content.html)" class="answer-rich-text" @click="lookAttach($event)"></p>
30
+ <Recommend :msg="msg.content" @onRadioClickReco="onRadioClickReco"></Recommend>
31
+ </div>
32
+ <div v-else-if="msgType === 'answer_image'" >
33
+ <div
34
+ class="association-img"
35
+ v-if="msg.content.url"
36
+ >
37
+ <!-- LPY 原生宽度适配有bug,弃用 -->
38
+ <template v-if="sourceOhm === 'ohm' && !isOhmPc">
39
+ <viewer :images="[msg.content.url]">
40
+ <img
41
+ v-for="(src,index) in [msg.content.url]"
42
+ :src="src"
43
+ :key="index"
44
+ style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
45
+ class="img-class"
46
+ />
47
+ </viewer>
48
+ </template>
49
+ <img
50
+ v-else
51
+ :src="msg.content.url"
52
+ style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
53
+ @click="onImageClick(msg.content.url)"
54
+ class="img-class"
55
+ />
56
+ </div>
57
+ <Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
58
+ </div>
59
+ <div v-else-if="msgType === 'answer_video' || msgType === 'user_video' || msgType === 'VIDEO'">
60
+ <div class="association-img" v-if="msg.content.url">
61
+ <ask-video :msg="msg" :url="msg.content.url" :local-url="msg.content.localUrl"
62
+ :progress="msg.content.progress"></ask-video>
63
+ </div>
64
+ <Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
65
+ </div>
66
+ <previewDoc ref="previewDoc" :url="previewHref"></previewDoc>
67
+ </div>
68
+ </template>
69
+
70
+ <script>
71
+ import askVideo from "./askVideo";
72
+ import Recommend from "./recommend";
73
+ import previewDoc from "./previewDoc";
74
+ export default {
75
+ name: "associationIntention",
76
+ components: {Recommend, askVideo, previewDoc},
77
+ props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc'],
78
+ filters: {
79
+ imageStyle: function (html) {
80
+ //富文本内图片自适应高度宽度
81
+ const regex = new RegExp("<img", "gi");
82
+ return html.replace(
83
+ regex,
84
+ "<img style='max-width: 230px;border-radius: 25px;' onclick='imageOnClick(this)'"
85
+ );
86
+ },
87
+ msgHtmlContent:function (content){
88
+ var reg = /<br\/>/g;
89
+ let msg = content.replace(reg,'\n');
90
+ return msg
91
+ },
92
+ },
93
+ data() {
94
+ return {
95
+ previewHref: ""
96
+ }
97
+ },
98
+ mounted() {
99
+ },
100
+ methods:{
101
+ // 将匹配结果替换表情图片
102
+ emotion(res) {
103
+ let word = res.replace(/#|;/gi, "");
104
+ const list = [
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
+ "刀",
177
+ "足球",
178
+ "瓢虫",
179
+ "便便",
180
+ "月亮",
181
+ "太阳",
182
+ "礼物",
183
+ "拥抱",
184
+ "强",
185
+ "弱",
186
+ "握手",
187
+ "胜利",
188
+ "抱拳",
189
+ "勾引",
190
+ "拳头",
191
+ "差劲",
192
+ "爱你",
193
+ "不",
194
+ "可以",
195
+ "爱情",
196
+ "飞吻",
197
+ "跳跳",
198
+ "发抖",
199
+ "怄火",
200
+ "转圈",
201
+ "磕头",
202
+ "回头",
203
+ "跳绳",
204
+ "挥手",
205
+ "激动",
206
+ "街舞",
207
+ "献吻",
208
+ "左太极",
209
+ "右太极",
210
+ ];
211
+ let index = list.indexOf(word);
212
+ return `<img height="20px" src="https://guoranim.oss-cn-beijing.aliyuncs.com/emoji/${
213
+ index + 1
214
+ }.png" align="middle">`;
215
+ },
216
+ onRadioClickReco(id, name, apikey) {
217
+ this.$emit("onRadioClick", id, name, apikey);
218
+ },
219
+ onImageClick(url){
220
+ this.$emit('onImageClick',url)
221
+ },
222
+ msgContent(content){
223
+ console.debug('215',content)
224
+ var regBr = /<br\/>/g;
225
+ let msg = content.replace(regBr,"\n");
226
+ var reg = /<[^>]+>/g;
227
+ return reg.test(msg);
228
+
229
+ },
230
+ //预览图片
231
+ lookAttach(){
232
+ return
233
+ // if (e.target.localName == 'a'){
234
+ // console.debug('lookImage',e.target.href)
235
+ // this.previewHref = e.target.href
236
+ // this.$refs.previewDoc.previewShowPopup = true
237
+ // // let url = ''
238
+ // // try {
239
+ // // url = btoa(e.target.href)
240
+ // // }
241
+ // // catch {
242
+ // // url = encodeURIComponent(btoa(e.target.href))
243
+ // // }
244
+ // // window.open('https://test.open.askbot.cn/kkfileview/onlinePreview?url=' + url)
245
+ // // e.stopPropagation()
246
+ // // e.preventDefault()
247
+ // e.returnValue = false
248
+ // }
249
+ },
250
+ },
251
+ watch:{
252
+ isOpen:{
253
+ handler(value){
254
+ if (value){
255
+ let reg = this.msg.content.html
256
+ if (reg){
257
+ reg = reg.replace('<a',"<span class='isReplace'")
258
+ reg = reg.replace('</a>','</span>')
259
+ console.debug('reg',reg)
260
+ this.msg.content.html = reg
261
+ }
262
+
263
+ }
264
+ else {
265
+ let reg = this.msg.content.html
266
+ console.debug('reg',reg)
267
+ if (reg){
268
+ reg = reg.replace("<span class='isReplace'","<a download")
269
+ let reg2 = reg
270
+ reg2 = reg2.replace('</span>','</a>')
271
+ this.msg.content.html = reg2
272
+ console.debug('reg',reg2)
273
+ }
274
+ }
275
+ }
276
+ }
277
+ }
278
+ }
279
+ </script>
280
+
281
+
282
+ <style scoped lang="less">
283
+ @import "../assets/less/converSationContainer/common";
284
+ .association-intention{
285
+ .association-img{
286
+ /*display: flex;
287
+ align-items: center;
288
+ justify-content: center;*/
289
+
290
+ }
291
+ .answer-rich-text{
292
+ /*padding-bottom: 10px;
293
+ border-bottom: 1px solid #EEEEEE;*/
294
+ }
295
+ ///deep/a{
296
+ // disabled:true
297
+ // //pointer-events: none;
298
+ //}
299
+ }
300
+
301
301
  </style>