askbot-dragon 1.5.55 → 1.5.56
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
|
@@ -1,63 +1,79 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="answer-docknowledge">
|
|
3
3
|
<div :class="['answer-docknowledge-header',msg.content.isKnowledgeSummary ? 'bgc' : '']">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
</
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
<div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您总结生成了以下摘要</div>
|
|
5
|
+
<div v-if="msg.content.type == 0" class="answer-text">
|
|
6
|
+
<template v-if="msg.content.renderType == 1">
|
|
7
|
+
<p v-html="msg.content.text"></p>
|
|
8
|
+
</template>
|
|
9
|
+
<template v-else>{{ msg.content.text }}</template>
|
|
10
|
+
</div>
|
|
11
|
+
<div v-if="msg.content.type == 1" class="answer-text">
|
|
12
|
+
<template v-if="msg.content.renderType == 1">
|
|
13
|
+
<p v-html="msg.content.text"></p>
|
|
14
|
+
</template>
|
|
15
|
+
<template v-else>{{ msg.content.text }}</template>
|
|
16
|
+
</div>
|
|
17
|
+
<div v-if="msg.content.images && msg.content.images.length != 0" class="answer-kn-image-box">
|
|
18
|
+
<img
|
|
19
|
+
v-for="(imageItem, imageItemIndex) in msg.content.images"
|
|
20
|
+
style="max-width: 230px;border-radius: 25px;margin-bottom: 15px"
|
|
21
|
+
:src="imageItem.url"
|
|
22
|
+
:key="imageItemIndex"
|
|
23
|
+
alt
|
|
24
|
+
@click="lookAttach(imageItem.url, imageItem, $event)"
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
24
27
|
</div>
|
|
25
28
|
<div class="ad-list">
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
<!-- :style="{paddingBottom: itemIndex === msg.content.list.length - 1?0:'10px'}" -->
|
|
30
|
+
|
|
31
|
+
<div
|
|
32
|
+
v-for="(item, itemIndex) in msg.content.list"
|
|
33
|
+
:key="itemIndex"
|
|
34
|
+
class="ad-list-cell"
|
|
35
|
+
>
|
|
36
|
+
<!-- <div class="alc-title">
|
|
37
|
+
<!~~ <div class="alc-box">
|
|
29
38
|
<div class="alc-source-left">
|
|
30
39
|
<span class="source-form">出自</span>
|
|
31
40
|
<img class="alc-title-icon" height="24px" width="24px" :src="item.src" alt="" srcset="">
|
|
32
41
|
<span class="alc-title-from">{{ item.from }}</span>
|
|
33
42
|
</div>
|
|
34
43
|
|
|
35
|
-
</div
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
44
|
+
</div>~~>
|
|
45
|
+
<!~~ <div v-html="item.introduction" v-if="!srcContentTypeIMG(item)" class="alc-box-introduction">
|
|
46
|
+
</div>~~>
|
|
47
|
+
<!~~ <div v-else class="alc-box-introduction">
|
|
39
48
|
<img :src="item.expiredUrl" alt="" @click="lookAttach(item.url, item, $event)">
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
</div>~~>
|
|
50
|
+
<!~~ <div v-if="item.previewImage" class="alc-box-introduction-previewImage">
|
|
42
51
|
<img :src="item.previewImage" alt="" @click="lookAttach(item.previewImage, {url: item.previewImage}, $event)">
|
|
43
|
-
|
|
44
|
-
|
|
52
|
+
</div>~~>
|
|
53
|
+
<!~~ <div class="alc-updateTime">
|
|
45
54
|
<div v-show="docSource[item.source]" class="upload-source">
|
|
46
55
|
{{docSource[item.source]}}
|
|
47
56
|
</div>
|
|
48
57
|
<div v-show="item.url" class="alc-content-text">
|
|
49
58
|
<span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
|
|
50
59
|
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
</div>~~>
|
|
61
|
+
</div>-->
|
|
62
|
+
<div class="alc-source-name" @click="lookAttach(item.url, item, $event)">
|
|
63
|
+
<img class="alc-title-icon" height="18px" width="18px" :src="item.src" alt srcset />
|
|
64
|
+
<span class="alc-title-from">{{ item.from }}</span> -
|
|
65
|
+
<div v-show="docSource[item.source]" class="upload-source">
|
|
66
|
+
{{docSource[item.source]}}
|
|
67
|
+
</div>
|
|
68
|
+
<i class="iconfont guoran-right"></i>
|
|
57
69
|
</div>
|
|
58
70
|
<div class="alc-content" v-if="false">
|
|
59
|
-
<div v-if="msg.content.type == 1" class="alc-content-text">
|
|
60
|
-
|
|
71
|
+
<div v-if="msg.content.type == 1" class="alc-content-text">
|
|
72
|
+
{{ item.introduction }}
|
|
73
|
+
<span
|
|
74
|
+
@click="lookAttach(item.url, item, $event)"
|
|
75
|
+
class="aci-view"
|
|
76
|
+
>查看原文 ></span>
|
|
61
77
|
</div>
|
|
62
78
|
<span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
|
|
63
79
|
<div v-if="false" class="alc-content-info">
|
|
@@ -69,11 +85,9 @@
|
|
|
69
85
|
</div>
|
|
70
86
|
</div>
|
|
71
87
|
</div>
|
|
72
|
-
<div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">
|
|
73
|
-
查看更多
|
|
74
|
-
</div>
|
|
88
|
+
<div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
|
|
75
89
|
</div>
|
|
76
|
-
<previewPdf ref="previewPdf" :url="previewHref" :sourceFileType="sourceFileType" officePreviewType="pdf"></previewPdf>
|
|
90
|
+
<previewPdf ref="previewPdf" :url="previewHref" :title="title" :sourceFileType="sourceFileType" officePreviewType="pdf"></previewPdf>
|
|
77
91
|
</div>
|
|
78
92
|
</template>
|
|
79
93
|
|
|
@@ -84,104 +98,114 @@ import { isMobile } from "../assets/js/common";
|
|
|
84
98
|
export default {
|
|
85
99
|
name: "answerDocknowledge",
|
|
86
100
|
components: { previewPdf },
|
|
87
|
-
data() {
|
|
101
|
+
data () {
|
|
88
102
|
return {
|
|
89
103
|
isPC: true,
|
|
90
104
|
previewHref: "",
|
|
91
|
-
sourceFileType:'',
|
|
105
|
+
sourceFileType: '',
|
|
106
|
+
// docSource: {
|
|
107
|
+
// LOCAL_FILE: "来源于本地文件",
|
|
108
|
+
// CREATED_BY_ONESELF: "来源于自建知识",
|
|
109
|
+
// WECHAT: "来源于微信",
|
|
110
|
+
// AUTO_SYN_FROM_LOCAL_FILE: "自动同步于本地",
|
|
111
|
+
// YUQUE: "来源于语雀",
|
|
112
|
+
// CORP_LOCAL_FILE: '来源于企业知识库',
|
|
113
|
+
// FEISHU: '来源于飞书-云文档'
|
|
114
|
+
// },
|
|
92
115
|
docSource: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
116
|
+
LOCAL_FILE: "个人知识",
|
|
117
|
+
CREATED_BY_ONESELF: "个人知识",
|
|
118
|
+
WECHAT: "个人知识",
|
|
119
|
+
AUTO_SYN_FROM_LOCAL_FILE: "个人知识",
|
|
120
|
+
YUQUE: "企业知识",
|
|
121
|
+
CORP_LOCAL_FILE: '企业知识',
|
|
122
|
+
FEISHU: '企业知识'
|
|
100
123
|
},
|
|
101
124
|
imageObj: {
|
|
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
|
-
|
|
125
|
+
PDF: 'pdf1',
|
|
126
|
+
pdf: 'pdf1',
|
|
127
|
+
TXT: 'txt1',
|
|
128
|
+
txt: 'txt1',
|
|
129
|
+
selfadd: 'selfadd1',
|
|
130
|
+
md: "md2",
|
|
131
|
+
html: 'selfadd1',
|
|
132
|
+
mode: "mode",
|
|
133
|
+
general: 'general',
|
|
134
|
+
word: "word1",
|
|
135
|
+
Word: "word1",
|
|
136
|
+
docx: "word1",
|
|
137
|
+
doc: "word1",
|
|
138
|
+
WORD: "word1",
|
|
139
|
+
Excel: 'excel1',
|
|
140
|
+
EXCEL: 'excel1',
|
|
141
|
+
excel: 'excel1',
|
|
142
|
+
PPT: 'ppt1',
|
|
143
|
+
ppt: 'ppt1',
|
|
144
|
+
pptx: 'ppt1',
|
|
145
|
+
img: "image1",
|
|
146
|
+
image: "image1",
|
|
147
|
+
video: "video",
|
|
148
|
+
audio: 'audio',
|
|
149
|
+
link: "link",
|
|
150
|
+
wechat: "wechat",
|
|
151
|
+
mp4: "video",
|
|
152
|
+
MP4: "video",
|
|
153
|
+
xlsx: "excel1",
|
|
154
|
+
SLSX: "excel1",
|
|
155
|
+
xls: "excel1",
|
|
156
|
+
XLS: "excel1",
|
|
157
|
+
jpg: "image1",
|
|
158
|
+
JPG: "image1",
|
|
159
|
+
jpeg: "image1",
|
|
160
|
+
JPEG: "image1",
|
|
161
|
+
png: "image1",
|
|
162
|
+
PNG: "image1",
|
|
163
|
+
webp: "image1",
|
|
164
|
+
WEBP: "image1",
|
|
165
|
+
gif: "image1",
|
|
166
|
+
GIF: "image1",
|
|
167
|
+
svg: "image1",
|
|
168
|
+
SVG: "image1",
|
|
169
|
+
bmp: "image1",
|
|
170
|
+
BMP: "image1",
|
|
171
|
+
avi: "video",
|
|
172
|
+
AVI: "video",
|
|
173
|
+
mov: "video",
|
|
174
|
+
MOV: "video",
|
|
175
|
+
rmvb: "video",
|
|
176
|
+
RMVB: "video",
|
|
177
|
+
wav: "audio",
|
|
178
|
+
WAV: "audio",
|
|
179
|
+
mp3: "audio",
|
|
180
|
+
MP3: "audio",
|
|
181
|
+
yqhtml: "yqhtml",
|
|
182
|
+
feishuhtml: "feishuhtml"
|
|
160
183
|
},
|
|
161
|
-
allKnowledgeList:[],
|
|
162
|
-
loadMoreFlag:false
|
|
184
|
+
allKnowledgeList: [],
|
|
185
|
+
loadMoreFlag: false,
|
|
186
|
+
title:''
|
|
163
187
|
}
|
|
164
188
|
},
|
|
165
|
-
props: ['msg','isAskLightning', 'isMessageRecord',"isApp"],
|
|
166
|
-
beforeMounted() {
|
|
189
|
+
props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp"],
|
|
190
|
+
beforeMounted () {
|
|
167
191
|
},
|
|
168
|
-
watch:{
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
192
|
+
watch: {
|
|
193
|
+
msg: {
|
|
194
|
+
handler (n) {
|
|
195
|
+
console.log(n, 'answerDocknowledge');
|
|
196
|
+
n.content.list.forEach(element => {
|
|
197
|
+
console.log(this.imageObj[element.format], 1111);
|
|
198
|
+
element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
|
|
199
|
+
if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
|
|
200
|
+
element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png';
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
},
|
|
204
|
+
deep: true,
|
|
205
|
+
immediate: true
|
|
206
|
+
}
|
|
183
207
|
},
|
|
184
|
-
created() {
|
|
208
|
+
created () {
|
|
185
209
|
var system = {};
|
|
186
210
|
system.pingtai = /(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform);
|
|
187
211
|
if (system.pingtai) {
|
|
@@ -199,82 +223,83 @@ export default {
|
|
|
199
223
|
// }
|
|
200
224
|
// });
|
|
201
225
|
},
|
|
202
|
-
mounted() {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
226
|
+
mounted () {
|
|
227
|
+
console.log(this.msg.content, 'this.msg.content');
|
|
228
|
+
// if(this.msg.content.type == 1) {
|
|
229
|
+
|
|
230
|
+
// }
|
|
231
|
+
if (this.msg.content.list && this.msg.content.list.length > 0) {
|
|
232
|
+
this.loadMoreFlag = true
|
|
233
|
+
this.allKnowledgeList = JSON.parse(JSON.stringify(this.msg.content.list))
|
|
234
|
+
// console.log(this.allKnowledgeList.length, 'this.allKnowledgeList');
|
|
235
|
+
this.msg.content.list = []
|
|
236
|
+
this.lazyLoadKnowledegList()
|
|
237
|
+
}
|
|
214
238
|
},
|
|
215
239
|
methods: {
|
|
216
240
|
//预览图片
|
|
217
|
-
lookAttach(url, item, event) {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
} else {
|
|
226
|
-
// if (isMobile()) {
|
|
227
|
-
// this.$refs.previewPdf.drawer = true;
|
|
228
|
-
// this.$refs.previewPdf.previewShowPopup = false;
|
|
229
|
-
// } else {
|
|
230
|
-
// this.$refs.previewPdf.drawer = false;
|
|
231
|
-
// }
|
|
232
|
-
this.$refs.previewPdf.previewShowPopup = false;
|
|
233
|
-
this.$refs.previewPdf.drawer = false;
|
|
234
|
-
let index = url.lastIndexOf('?')
|
|
235
|
-
let type = ''
|
|
236
|
-
let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
|
|
237
|
-
if (index !== -1) {
|
|
238
|
-
url = url.substring(0, index)
|
|
239
|
-
type = this.fileType(url)
|
|
240
|
-
} else {
|
|
241
|
-
type = this.fileType(url)
|
|
242
|
-
}
|
|
243
|
-
if (type === '' || type === 'OTHER') {
|
|
244
|
-
httpUrl = httpUrl += '?needEncrypt=true'
|
|
241
|
+
lookAttach (url, item, event) {
|
|
242
|
+
event.preventDefault();
|
|
243
|
+
if (this.isAskLightning == 1 && !this.isApp) {
|
|
244
|
+
window.parent.postMessage({
|
|
245
|
+
data: "bot_preview",
|
|
246
|
+
item: JSON.stringify(item),
|
|
247
|
+
url: url
|
|
248
|
+
}, "*");
|
|
245
249
|
} else {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
this.
|
|
253
|
-
this.
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
250
|
+
// if (isMobile()) {
|
|
251
|
+
// this.$refs.previewPdf.drawer = true;
|
|
252
|
+
// this.$refs.previewPdf.previewShowPopup = false;
|
|
253
|
+
// } else {
|
|
254
|
+
// this.$refs.previewPdf.drawer = false;
|
|
255
|
+
// }
|
|
256
|
+
this.title = item.from || item.name
|
|
257
|
+
this.$refs.previewPdf.previewShowPopup = false;
|
|
258
|
+
this.$refs.previewPdf.drawer = false;
|
|
259
|
+
let index = url.lastIndexOf('?')
|
|
260
|
+
let type = ''
|
|
261
|
+
let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
|
|
262
|
+
if (index !== -1) {
|
|
263
|
+
url = url.substring(0, index)
|
|
264
|
+
type = this.fileType(url)
|
|
258
265
|
} else {
|
|
259
|
-
|
|
260
|
-
this.$refs.previewPdf.drawer = true;
|
|
266
|
+
type = this.fileType(url)
|
|
261
267
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
this.$refs.previewPdf.loading = false
|
|
267
|
-
return
|
|
268
|
+
if (type === '' || type === 'OTHER') {
|
|
269
|
+
httpUrl = httpUrl += '?needEncrypt=true'
|
|
270
|
+
} else {
|
|
271
|
+
httpUrl = httpUrl += '?needEncrypt=false'
|
|
268
272
|
}
|
|
269
|
-
this.$
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
273
|
+
this.$http.post(httpUrl, {
|
|
274
|
+
"fileInOssPath": url
|
|
275
|
+
}).then(res => {
|
|
276
|
+
if (res.data.code == '0') {
|
|
277
|
+
this.previewHref = res.data.data;
|
|
278
|
+
this.sourceFileType = url.substring(url.lastIndexOf('.'))
|
|
279
|
+
let isOhmPc = sessionStorage.getItem('isOhmPc')
|
|
280
|
+
if (isMobile() || isOhmPc == 'true') {
|
|
281
|
+
this.$refs.previewPdf.drawer = true;
|
|
282
|
+
this.$refs.previewPdf.previewShowPopup = true;
|
|
283
|
+
} else {
|
|
284
|
+
this.$refs.previewPdf.previewShowPopup = false;
|
|
285
|
+
this.$refs.previewPdf.drawer = true;
|
|
286
|
+
}
|
|
287
|
+
this.$refs.previewPdf.fileType = type
|
|
288
|
+
this.$refs.previewPdf.tagIds = item.tagIds
|
|
289
|
+
this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false
|
|
290
|
+
if (item.tagIds && item.tagIds.length != 0) {
|
|
291
|
+
this.$refs.previewPdf.loading = false
|
|
292
|
+
return
|
|
293
|
+
}
|
|
294
|
+
this.$nextTick(() => {
|
|
295
|
+
if (item.source == 'CREATED_BY_ONESELF' || type === 'HTML') {
|
|
296
|
+
this.$refs.previewPdf.getBolb(item)
|
|
297
|
+
}
|
|
298
|
+
this.$refs.previewPdf.loadIframe(item)
|
|
299
|
+
})
|
|
300
|
+
}
|
|
274
301
|
})
|
|
275
|
-
|
|
276
|
-
})
|
|
277
|
-
}
|
|
302
|
+
}
|
|
278
303
|
},
|
|
279
304
|
fileType (url) {
|
|
280
305
|
const fileType = url.substring(url.lastIndexOf('.'));
|
|
@@ -286,47 +311,47 @@ export default {
|
|
|
286
311
|
return 'OTHER'
|
|
287
312
|
}
|
|
288
313
|
},
|
|
289
|
-
srcContentTypeIMG(item) {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
314
|
+
srcContentTypeIMG (item) {
|
|
315
|
+
let url = item.url || '';
|
|
316
|
+
const type = url.substring(url.lastIndexOf('.'));
|
|
317
|
+
if (type === '.jpg' || type === '.jpeg' || type === '.png' || type === '.gif') {
|
|
318
|
+
this.getSrc(item)
|
|
319
|
+
return true
|
|
320
|
+
} else {
|
|
321
|
+
return false
|
|
322
|
+
}
|
|
298
323
|
},
|
|
299
324
|
getSrc (item) {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
325
|
+
// let imgurl = ''
|
|
326
|
+
this.$http.post(
|
|
327
|
+
'/knowledge-api/temporary-certificate/or-origin?expired=30',
|
|
328
|
+
item.url,
|
|
329
|
+
{
|
|
330
|
+
headers: {
|
|
331
|
+
"Content-Type": "application/json",
|
|
332
|
+
},
|
|
333
|
+
}).then(res => {
|
|
334
|
+
console.log(res, '=====');
|
|
335
|
+
// imgurl = await res.bodyText
|
|
336
|
+
this.$set(item, 'expiredUrl', res.data ? res.data : res.bodyText)
|
|
337
|
+
// return res.data
|
|
338
|
+
})
|
|
339
|
+
// return imgurl
|
|
315
340
|
},
|
|
316
|
-
lazyLoadKnowledegList() {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
341
|
+
lazyLoadKnowledegList () {
|
|
342
|
+
if (this.allKnowledgeList.length !== 0) {
|
|
343
|
+
let arr = this.allKnowledgeList.splice(0, 5)
|
|
344
|
+
if (arr.length < 5) {
|
|
345
|
+
this.loadMoreFlag = false
|
|
346
|
+
this.msg.content.list = [...this.msg.content.list, ...arr]
|
|
347
|
+
return
|
|
348
|
+
}
|
|
349
|
+
if (this.allKnowledgeList.length == 0) {
|
|
350
|
+
this.loadMoreFlag = false
|
|
351
|
+
}
|
|
352
|
+
this.msg.content.list = [...this.msg.content.list, ...arr]
|
|
353
|
+
return
|
|
326
354
|
}
|
|
327
|
-
this.msg.content.list = [...this.msg.content.list, ...arr]
|
|
328
|
-
return
|
|
329
|
-
}
|
|
330
355
|
}
|
|
331
356
|
}
|
|
332
357
|
}
|
|
@@ -335,48 +360,53 @@ export default {
|
|
|
335
360
|
<style scoped lang="less">
|
|
336
361
|
.answer-docknowledge {
|
|
337
362
|
min-width: 100px;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
margin-bottom: 7px;
|
|
351
|
-
}
|
|
352
|
-
.answer-text {
|
|
353
|
-
// font-size: 13px;
|
|
354
|
-
text-align: left;
|
|
355
|
-
line-height: 25px;
|
|
356
|
-
padding: 0px 0px 12px 0px;
|
|
357
|
-
|
|
358
|
-
.aci-view {
|
|
359
|
-
// font-size: 13px;
|
|
360
|
-
display: inline-block;
|
|
361
|
-
// margin-left: 5px;
|
|
362
|
-
color: #366aff;
|
|
363
|
-
cursor: pointer;
|
|
363
|
+
background: #ffffff;
|
|
364
|
+
.answer-docknowledge-header {
|
|
365
|
+
.tips {
|
|
366
|
+
width: 154px;
|
|
367
|
+
height: 22px;
|
|
368
|
+
background: #366aff;
|
|
369
|
+
border-radius: 5px;
|
|
370
|
+
text-align: center;
|
|
371
|
+
line-height: 22px;
|
|
372
|
+
color: #fff;
|
|
373
|
+
font-size: 12px;
|
|
374
|
+
margin-bottom: 7px;
|
|
364
375
|
}
|
|
365
|
-
}
|
|
366
|
-
&.bgc{
|
|
367
|
-
padding: 10px;
|
|
368
|
-
background: #EEF1FF;
|
|
369
|
-
border-radius: 10px;
|
|
370
|
-
margin-bottom: 16px;
|
|
371
376
|
.answer-text {
|
|
372
|
-
|
|
377
|
+
// font-size: 13px;
|
|
378
|
+
text-align: left;
|
|
379
|
+
line-height: 25px;
|
|
380
|
+
padding: 0px 0px 12px 0px;
|
|
381
|
+
|
|
382
|
+
.aci-view {
|
|
383
|
+
// font-size: 13px;
|
|
384
|
+
display: inline-block;
|
|
385
|
+
// margin-left: 5px;
|
|
386
|
+
color: #366aff;
|
|
387
|
+
cursor: pointer;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
&.bgc {
|
|
391
|
+
padding: 10px;
|
|
392
|
+
background: #eef1ff;
|
|
393
|
+
border-radius: 10px;
|
|
394
|
+
margin-bottom: 16px;
|
|
395
|
+
.answer-text {
|
|
396
|
+
padding: 0;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
.answer-kn-image-box {
|
|
400
|
+
margin-bottom: 10px;
|
|
373
401
|
}
|
|
374
|
-
}
|
|
375
402
|
}
|
|
376
403
|
|
|
377
404
|
.ad-list {
|
|
378
|
-
|
|
379
|
-
|
|
405
|
+
display: flex;
|
|
406
|
+
align-items: center;
|
|
407
|
+
flex-wrap: wrap;
|
|
408
|
+
/* .ad-list-cell {
|
|
409
|
+
border-top: solid 1px #eeeeee;
|
|
380
410
|
padding: 10px 0 10px;
|
|
381
411
|
|
|
382
412
|
.alc-title {
|
|
@@ -387,28 +417,28 @@ export default {
|
|
|
387
417
|
line-height: 16px;
|
|
388
418
|
|
|
389
419
|
.alc-box {
|
|
390
|
-
display: flex;
|
|
391
|
-
align-items: center;
|
|
392
|
-
justify-content: space-between;
|
|
393
|
-
// font-size: 12px;
|
|
394
|
-
width: 100%;
|
|
395
|
-
.alc-source-left{
|
|
396
420
|
display: flex;
|
|
397
421
|
align-items: center;
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
422
|
+
justify-content: space-between;
|
|
423
|
+
// font-size: 12px;
|
|
424
|
+
width: 100%;
|
|
425
|
+
.alc-source-left {
|
|
426
|
+
display: flex;
|
|
427
|
+
align-items: center;
|
|
428
|
+
.source-form {
|
|
429
|
+
width: 34px;
|
|
430
|
+
flex: none;
|
|
431
|
+
color: #a9b3c6;
|
|
432
|
+
}
|
|
402
433
|
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
434
|
+
.alc-content-text {
|
|
435
|
+
width: 55px;
|
|
436
|
+
flex: none;
|
|
437
|
+
.aci-view {
|
|
438
|
+
color: #366aff;
|
|
439
|
+
cursor: pointer;
|
|
440
|
+
}
|
|
410
441
|
}
|
|
411
|
-
}
|
|
412
442
|
.alc-title-from {
|
|
413
443
|
line-height: 22px;
|
|
414
444
|
word-break: break-all !important;
|
|
@@ -418,77 +448,77 @@ export default {
|
|
|
418
448
|
justify-content: flex-start;
|
|
419
449
|
}
|
|
420
450
|
}
|
|
421
|
-
.alc-box-introduction{
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
451
|
+
.alc-box-introduction {
|
|
452
|
+
overflow: hidden;
|
|
453
|
+
text-overflow: ellipsis;
|
|
454
|
+
display: -webkit-box;
|
|
455
|
+
-webkit-line-clamp: 3;
|
|
456
|
+
-webkit-box-orient: vertical;
|
|
457
|
+
margin-top: 10px;
|
|
458
|
+
color: #616161;
|
|
459
|
+
// font-size: 12px;
|
|
460
|
+
line-height: 24px;
|
|
461
|
+
text-align: left;
|
|
462
|
+
img {
|
|
463
|
+
width: 50px;
|
|
464
|
+
height: 50px;
|
|
465
|
+
margin: 10px;
|
|
466
|
+
cursor: pointer;
|
|
467
|
+
}
|
|
438
468
|
}
|
|
439
469
|
.alc-box-introduction-previewImage {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
470
|
+
overflow: hidden;
|
|
471
|
+
text-overflow: ellipsis;
|
|
472
|
+
display: -webkit-box;
|
|
473
|
+
-webkit-line-clamp: 3;
|
|
474
|
+
-webkit-box-orient: vertical;
|
|
475
|
+
margin-top: 10px;
|
|
476
|
+
color: #616161;
|
|
477
|
+
// font-size: 12px;
|
|
478
|
+
line-height: 24px;
|
|
479
|
+
text-align: left;
|
|
480
|
+
img {
|
|
481
|
+
max-width: 300px;
|
|
482
|
+
width: 100%;
|
|
483
|
+
max-height: 150px;
|
|
484
|
+
margin: 10px;
|
|
485
|
+
cursor: pointer;
|
|
486
|
+
}
|
|
457
487
|
}
|
|
458
|
-
.alc-updateTime{
|
|
459
|
-
display: flex;
|
|
460
|
-
align-items: center;
|
|
461
|
-
justify-content: space-between;
|
|
462
|
-
font-size: 13px;
|
|
463
|
-
width: 100%;
|
|
464
|
-
margin-top: 10px;
|
|
465
|
-
.upload-source{
|
|
466
|
-
flex: none;
|
|
467
|
-
height: 18px;
|
|
468
|
-
line-height: 18px;
|
|
469
|
-
background: #E9F9F8;
|
|
470
|
-
border: 1px solid #AFF2CD;
|
|
471
|
-
border-radius: 2px;
|
|
488
|
+
.alc-updateTime {
|
|
472
489
|
display: flex;
|
|
473
490
|
align-items: center;
|
|
474
|
-
justify-content:
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
491
|
+
justify-content: space-between;
|
|
492
|
+
font-size: 13px;
|
|
493
|
+
width: 100%;
|
|
494
|
+
margin-top: 10px;
|
|
495
|
+
.upload-source {
|
|
496
|
+
flex: none;
|
|
497
|
+
height: 18px;
|
|
498
|
+
line-height: 18px;
|
|
499
|
+
background: #e9f9f8;
|
|
500
|
+
border: 1px solid #aff2cd;
|
|
501
|
+
border-radius: 2px;
|
|
502
|
+
display: flex;
|
|
503
|
+
align-items: center;
|
|
504
|
+
justify-content: center;
|
|
505
|
+
padding: 0 8px;
|
|
506
|
+
color: #00c2bb;
|
|
507
|
+
}
|
|
508
|
+
.time {
|
|
509
|
+
color: #999999;
|
|
510
|
+
margin-left: 10px;
|
|
511
|
+
}
|
|
512
|
+
.alc-content-text {
|
|
513
|
+
color: #366aff;
|
|
514
|
+
cursor: pointer;
|
|
515
|
+
}
|
|
486
516
|
}
|
|
487
517
|
.alc-title-icon {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
518
|
+
margin: 0 2px;
|
|
519
|
+
width: 18px;
|
|
520
|
+
height: 18px;
|
|
521
|
+
flex: none;
|
|
492
522
|
}
|
|
493
523
|
|
|
494
524
|
.alc-title-updateTime {
|
|
@@ -539,18 +569,53 @@ export default {
|
|
|
539
569
|
}
|
|
540
570
|
}
|
|
541
571
|
}
|
|
572
|
+
}*/
|
|
573
|
+
.ad-list-cell {
|
|
574
|
+
.alc-source-name {
|
|
575
|
+
flex: none;
|
|
576
|
+
padding: 3px;
|
|
577
|
+
margin-right: 5px;
|
|
578
|
+
margin-bottom: 5px;
|
|
579
|
+
background: #f2f6ff;
|
|
580
|
+
border-radius: 5px;
|
|
581
|
+
display: flex;
|
|
582
|
+
align-items: center;
|
|
583
|
+
justify-content: space-between;
|
|
584
|
+
color: #a9b3c6;
|
|
585
|
+
cursor: pointer;
|
|
586
|
+
img {
|
|
587
|
+
vertical-align: middle;
|
|
588
|
+
// width: 16px;
|
|
589
|
+
// height: 16px;
|
|
590
|
+
margin: 0 3px 0 5px;
|
|
591
|
+
}
|
|
592
|
+
.alc-title-from {
|
|
593
|
+
// margin-right: 5px;
|
|
594
|
+
max-width: 240px;
|
|
595
|
+
overflow: hidden;
|
|
596
|
+
text-overflow: ellipsis;
|
|
597
|
+
white-space: nowrap;
|
|
598
|
+
}
|
|
599
|
+
.upload-source {
|
|
600
|
+
margin-right: 5px;
|
|
601
|
+
}
|
|
602
|
+
i {
|
|
603
|
+
font-size: 12px;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
542
606
|
}
|
|
607
|
+
|
|
543
608
|
.ad-loadmore {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
609
|
+
width: 100%;
|
|
610
|
+
height: 40px;
|
|
611
|
+
display: flex;
|
|
612
|
+
align-items: center;
|
|
613
|
+
justify-content: center;
|
|
614
|
+
// background: #FFFFFF;
|
|
615
|
+
color: #366aff;
|
|
616
|
+
font-size: 14px;
|
|
617
|
+
margin-top: 8px;
|
|
618
|
+
cursor: pointer;
|
|
554
619
|
}
|
|
555
620
|
}
|
|
556
621
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- 消息记录容器 -->
|
|
2
2
|
<template>
|
|
3
3
|
<div id="conversation">
|
|
4
|
-
<answer-radio :msg="answerRadiosPri"></answer-radio>
|
|
4
|
+
<!-- <answer-radio :msg="answerRadiosPri"></answer-radio> -->
|
|
5
5
|
<!-- <asser-deatils></asser-deatils> -->
|
|
6
6
|
<!-- <msg-loading v-if="inLoading"></msg-loading>
|
|
7
7
|
<div style="position: relative" class="img_div">
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
<loading-process :dataNote="dataNote" :finished="finished"></loading-process>
|
|
14
14
|
</div>
|
|
15
15
|
</div> -->
|
|
16
|
-
<MyEditor></MyEditor>
|
|
16
|
+
<!-- <MyEditor></MyEditor> -->
|
|
17
17
|
<!-- <form-template
|
|
18
18
|
:formList="formList2"
|
|
19
19
|
@submitClick="submitClick"
|
|
20
20
|
></form-template> -->
|
|
21
|
-
<form-template
|
|
21
|
+
<!-- <form-template
|
|
22
22
|
:formList="formList"
|
|
23
23
|
@submitClick="submitClick"
|
|
24
|
-
></form-template>
|
|
24
|
+
></form-template> -->
|
|
25
25
|
<!-- <form-template
|
|
26
26
|
:formList="formList3"
|
|
27
27
|
@submitClick="submitClick"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<action-alert :actionAlertIframe="actionAlertIframeObj" :phoneWidth100="true"></action-alert>
|
|
35
35
|
</div> -->
|
|
36
36
|
|
|
37
|
-
<text-message :text="text" @submitClick="submitClick"></text-message>
|
|
37
|
+
<!-- <text-message :text="text" @submitClick="submitClick"></text-message> -->
|
|
38
38
|
<answer-docknowledge :isAskLightning="2" :msg="answerDocknowledge"></answer-docknowledge>
|
|
39
39
|
<!-- <voice-component @closeVoice="closeVoice">
|
|
40
40
|
<div slot="voiceTip">
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
</voice-component>-->
|
|
44
44
|
<!-- 点选 -->
|
|
45
45
|
<!-- <div v-html="htmlContainer"></div> -->
|
|
46
|
-
<answer-radio :msg="answerRadios"></answer-radio>
|
|
47
|
-
<ticket-message :content="updateTicetmessageObj"></ticket-message>
|
|
46
|
+
<!-- <answer-radio :msg="answerRadios"></answer-radio> -->
|
|
47
|
+
<!-- <ticket-message :content="updateTicetmessageObj"></ticket-message> -->
|
|
48
48
|
<!-- <ticket-message :content="contents"></ticket-message> -->
|
|
49
49
|
<!--
|
|
50
50
|
<action-send-to-bot :msg="answerRadios"></action-send-to-bot>
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
<answer-dissatisfaction :msg="answerDiss"></answer-dissatisfaction>
|
|
61
61
|
<feed-back :feedBack="feedBack"></feed-back>
|
|
62
62
|
<voice-compontent></voice-compontent> -->
|
|
63
|
-
<ai-guide :aiGuide="ActionAiGuideObj"></ai-guide>
|
|
64
|
-
<answer-voice :msg="answerVoiceObj"></answer-voice>
|
|
65
|
-
<answer-voice :msg="answerVoiceObj"></answer-voice>
|
|
66
|
-
<div v-for="(item,index) in processAction" :key="index">
|
|
63
|
+
<!-- <ai-guide :aiGuide="ActionAiGuideObj"></ai-guide> -->
|
|
64
|
+
<!-- <answer-voice :msg="answerVoiceObj"></answer-voice> -->
|
|
65
|
+
<!-- <answer-voice :msg="answerVoiceObj"></answer-voice> -->
|
|
66
|
+
<!-- <div v-for="(item,index) in processAction" :key="index">
|
|
67
67
|
<association-intention :msg="item" :nodownload="true" :msgType="item.type" :isOpen="isOpen"></association-intention>
|
|
68
|
-
</div>
|
|
69
|
-
<div class="" v-for="item in chatMessageList" :key="item.id">
|
|
68
|
+
</div> -->
|
|
69
|
+
<!-- <div class="" v-for="item in chatMessageList" :key="item.id">
|
|
70
70
|
<welcome-knowledge-file v-if="item.type === 'welcome_knowledge_file'" :msgContent="item.content"></welcome-knowledge-file>
|
|
71
71
|
<welcome-llm-card v-else-if="item.type === 'welcome_llm_card'" :msgContent="item.content"></welcome-llm-card>
|
|
72
|
-
</div>
|
|
72
|
+
</div> -->
|
|
73
73
|
<!-- <answer-voice @stopOtherAudio="stopOtherAudio" ref="audioTagCell" :msg="answerVoiceObj1"></answer-voice> -->
|
|
74
74
|
|
|
75
75
|
<!-- <FileType :urls="urls" :color="black"></FileType>-->
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
</div>
|
|
82
82
|
</template>
|
|
83
83
|
<script>
|
|
84
|
+
/* eslint-disable*/
|
|
84
85
|
import TextMessage from '@/components/message/TextMessage'
|
|
85
86
|
import FormTemplate from "@/components/formTemplate";
|
|
86
87
|
|
|
@@ -205,6 +206,63 @@ export default {
|
|
|
205
206
|
"actionType": "answer_doc_knowledge",
|
|
206
207
|
"text": "中国的省份名称有湖北省、广西壮族自治区等。",
|
|
207
208
|
"list": [
|
|
209
|
+
{
|
|
210
|
+
"owner": null,
|
|
211
|
+
"tagId": "658b9c5e7cf604285f7cba46",
|
|
212
|
+
"enterprise": null,
|
|
213
|
+
"tagIds": [
|
|
214
|
+
"658b9c5e7cf604285f7cba46"
|
|
215
|
+
],
|
|
216
|
+
"format": "pptx",
|
|
217
|
+
"srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
|
|
218
|
+
"updateTime": "2023-12-27 11:39:10",
|
|
219
|
+
"source": "CORP_LOCAL_FILE",
|
|
220
|
+
"srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
221
|
+
"url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
|
|
222
|
+
"knowledgeId": "658a93de63d378228271913a",
|
|
223
|
+
"knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
|
|
224
|
+
"from": "ppt_preview",
|
|
225
|
+
"introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
226
|
+
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"owner": null,
|
|
230
|
+
"tagId": "658b9c5e7cf604285f7cba46",
|
|
231
|
+
"enterprise": null,
|
|
232
|
+
"tagIds": [
|
|
233
|
+
"658b9c5e7cf604285f7cba46"
|
|
234
|
+
],
|
|
235
|
+
"format": "pptx",
|
|
236
|
+
"srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
|
|
237
|
+
"updateTime": "2023-12-27 11:39:10",
|
|
238
|
+
"source": "CORP_LOCAL_FILE",
|
|
239
|
+
"srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
240
|
+
"url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
|
|
241
|
+
"knowledgeId": "658a93de63d378228271913a",
|
|
242
|
+
"knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
|
|
243
|
+
"from": "ppt_preview",
|
|
244
|
+
"introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
245
|
+
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"owner": null,
|
|
249
|
+
"tagId": "658b9c5e7cf604285f7cba46",
|
|
250
|
+
"enterprise": null,
|
|
251
|
+
"tagIds": [
|
|
252
|
+
"658b9c5e7cf604285f7cba46"
|
|
253
|
+
],
|
|
254
|
+
"format": "pptx",
|
|
255
|
+
"srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
|
|
256
|
+
"updateTime": "2023-12-27 11:39:10",
|
|
257
|
+
"source": "CORP_LOCAL_FILE",
|
|
258
|
+
"srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
259
|
+
"url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
|
|
260
|
+
"knowledgeId": "658a93de63d378228271913a",
|
|
261
|
+
"knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
|
|
262
|
+
"from": "ppt_preview",
|
|
263
|
+
"introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
264
|
+
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
265
|
+
},
|
|
208
266
|
{
|
|
209
267
|
"owner": null,
|
|
210
268
|
"tagId": "658b9c5e7cf604285f7cba46",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
>
|
|
48
48
|
<!-- v-else-if="drawer" -->
|
|
49
49
|
<div class="drawer-footer">
|
|
50
|
-
<span
|
|
50
|
+
<span>{{title ? title : "查看详情"}}</span>
|
|
51
51
|
<section @click="close">
|
|
52
52
|
<i class="iconfont guoran-shanchu"></i>
|
|
53
53
|
</section>
|
|
@@ -117,6 +117,10 @@ export default {
|
|
|
117
117
|
sourceFileType:{
|
|
118
118
|
type: String,
|
|
119
119
|
default: '',
|
|
120
|
+
},
|
|
121
|
+
title: {
|
|
122
|
+
type: String,
|
|
123
|
+
default: ''
|
|
120
124
|
}
|
|
121
125
|
},
|
|
122
126
|
components:{
|