askbot-dragon 1.6.77-beta → 1.6.79-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/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<div class="summaryContent">
|
|
27
27
|
<span>{{ typedContent }}</span>
|
|
28
28
|
</div>
|
|
29
|
-
<div class="intelligentBottom" v-if="recommendQuestions.length > 0">
|
|
29
|
+
<div class="intelligentBottom" v-if="recommendQuestions.length > 0 && !formKnowledgeManagement">
|
|
30
30
|
<div class="intelligentQues"
|
|
31
31
|
v-for="(item,index) in recommendQuestions"
|
|
32
32
|
:key="index"
|
|
@@ -59,6 +59,10 @@ export default {
|
|
|
59
59
|
default() {
|
|
60
60
|
return []
|
|
61
61
|
}
|
|
62
|
+
},
|
|
63
|
+
formKnowledgeManagement:{
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: false
|
|
62
66
|
}
|
|
63
67
|
},
|
|
64
68
|
methods:{
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
-->
|
|
7
7
|
<template>
|
|
8
8
|
<el-drawer title="我是标题" :visible.sync="drawer" :with-header="false" :append-to-body="true" :destroy-on-close="true"
|
|
9
|
-
:modal="false" :direction="previewShowPopup ? 'btt' : 'rtl'" :size="previewShowPopup ? '90%' : '65%'"
|
|
9
|
+
:modal="formKnowledgeManagement ? true : false" :direction="previewShowPopup ? 'btt' : 'rtl'" :size="previewShowPopup ? '90%' : '65%'"
|
|
10
10
|
custom-class="pdf-preview-drawer" v-if="drawer">
|
|
11
11
|
<!-- v-else-if="drawer" -->
|
|
12
12
|
<div class="drawer-header" :class="isLiBang ? 'libang_head' : ''" v-if="!isPc">
|
|
@@ -14,12 +14,11 @@
|
|
|
14
14
|
<div class="onload_btn" v-if="isDownload || true" @click="downLoad">
|
|
15
15
|
下载
|
|
16
16
|
</div>
|
|
17
|
-
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun"
|
|
18
|
-
v-if="isHasChat || true">
|
|
17
|
+
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun" v-if="isHasChat || formKnowledgeManagement">
|
|
19
18
|
<i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
|
|
20
19
|
<span>智能摘要</span>
|
|
21
20
|
</div>
|
|
22
|
-
<template v-if="isHasChat
|
|
21
|
+
<template v-if="isHasChat">
|
|
23
22
|
<div class="chat" @click="previewToDialog(true)" v-if="!previewKnowledgeId">
|
|
24
23
|
<i class="iconfont guoran-wendapingjia"></i>
|
|
25
24
|
聊一聊
|
|
@@ -57,11 +56,11 @@
|
|
|
57
56
|
下载
|
|
58
57
|
</div>
|
|
59
58
|
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun"
|
|
60
|
-
v-if="isHasChat ||
|
|
59
|
+
v-if="isHasChat || formKnowledgeManagement">
|
|
61
60
|
<i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
|
|
62
61
|
<span>智能摘要</span>
|
|
63
62
|
</div>
|
|
64
|
-
<template v-if="isHasChat
|
|
63
|
+
<template v-if="isHasChat">
|
|
65
64
|
<div class="chat" @click="previewToDialog(true)" v-if="!previewKnowledgeId">
|
|
66
65
|
<i class="iconfont guoran-wendapingjia"></i>
|
|
67
66
|
聊一聊
|
|
@@ -85,7 +84,11 @@
|
|
|
85
84
|
</div>
|
|
86
85
|
<div id="drawer_content_pre" :class="isLiBang && folderName ? 'libang_content_pre' : ''">
|
|
87
86
|
<!-- :style="{marginTop:tagIds && tagIds.length != 0 && isPc ? '50px' : ''}" -->
|
|
88
|
-
<intelligent-summary
|
|
87
|
+
<intelligent-summary
|
|
88
|
+
v-show="showSummary && (isHasChat || formKnowledgeManagement)"
|
|
89
|
+
:tagIds="tagIds"
|
|
90
|
+
:knowledgeId="knowledgeId"
|
|
91
|
+
:formKnowledgeManagement="formKnowledgeManagement"
|
|
89
92
|
@closeSummary="closeSummary" @recommendQues="recommendQues"
|
|
90
93
|
@getSummarySuccess="getSummarySuccess"></intelligent-summary>
|
|
91
94
|
<div class="pdf_positon" :style="pdfStyle" v-if="tagIds && tagIds.length != 0 && drawer">
|
|
@@ -194,6 +197,10 @@ export default {
|
|
|
194
197
|
isLiBang: {
|
|
195
198
|
type: Boolean,
|
|
196
199
|
default: false
|
|
200
|
+
},
|
|
201
|
+
formKnowledgeManagement:{
|
|
202
|
+
type: Boolean,
|
|
203
|
+
default: false
|
|
197
204
|
}
|
|
198
205
|
},
|
|
199
206
|
components: {
|
|
@@ -388,6 +395,10 @@ export default {
|
|
|
388
395
|
})
|
|
389
396
|
},
|
|
390
397
|
downLoad () {
|
|
398
|
+
if (this.formKnowledgeManagement){
|
|
399
|
+
this.$emit('downLoad',this.previewOssPath);
|
|
400
|
+
return
|
|
401
|
+
}
|
|
391
402
|
let url = this.previewOssPath
|
|
392
403
|
if (decodeURIComponent(url) != url) {
|
|
393
404
|
url = decodeURIComponent(url)
|