askbot-dragon 1.6.78-beta → 1.6.80-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">
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
下载
|
|
57
57
|
</div>
|
|
58
58
|
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun"
|
|
59
|
-
v-if="isHasChat ||
|
|
59
|
+
v-if="isHasChat || formKnowledgeManagement">
|
|
60
60
|
<i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
|
|
61
61
|
<span>智能摘要</span>
|
|
62
62
|
</div>
|
|
63
|
-
<template v-if="isHasChat
|
|
63
|
+
<template v-if="isHasChat">
|
|
64
64
|
<div class="chat" @click="previewToDialog(true)" v-if="!previewKnowledgeId">
|
|
65
65
|
<i class="iconfont guoran-wendapingjia"></i>
|
|
66
66
|
聊一聊
|
|
@@ -84,7 +84,11 @@
|
|
|
84
84
|
</div>
|
|
85
85
|
<div id="drawer_content_pre" :class="isLiBang && folderName ? 'libang_content_pre' : ''">
|
|
86
86
|
<!-- :style="{marginTop:tagIds && tagIds.length != 0 && isPc ? '50px' : ''}" -->
|
|
87
|
-
<intelligent-summary
|
|
87
|
+
<intelligent-summary
|
|
88
|
+
v-show="showSummary && (isHasChat || formKnowledgeManagement) && fileType !== 'VIDEO' && fileType !== 'IMAGE'"
|
|
89
|
+
:tagIds="tagIds"
|
|
90
|
+
:knowledgeId="knowledgeId"
|
|
91
|
+
:formKnowledgeManagement="formKnowledgeManagement"
|
|
88
92
|
@closeSummary="closeSummary" @recommendQues="recommendQues"
|
|
89
93
|
@getSummarySuccess="getSummarySuccess"></intelligent-summary>
|
|
90
94
|
<div class="pdf_positon" :style="pdfStyle" v-if="tagIds && tagIds.length != 0 && drawer">
|
|
@@ -92,7 +96,7 @@
|
|
|
92
96
|
</pdfPosition>
|
|
93
97
|
</div>
|
|
94
98
|
<template v-else>
|
|
95
|
-
<div v-if="fileType == 'VIDEO'" style="width: 100%;">
|
|
99
|
+
<div v-if="fileType == 'VIDEO'" style="width: 100%;height: 100%">
|
|
96
100
|
<video :src="url" controls width="100%;" height="98%"></video>
|
|
97
101
|
</div>
|
|
98
102
|
<div v-else-if="fileType == 'HTML'" style="width: 100%;">
|
|
@@ -391,6 +395,10 @@ export default {
|
|
|
391
395
|
})
|
|
392
396
|
},
|
|
393
397
|
downLoad () {
|
|
398
|
+
if (this.formKnowledgeManagement){
|
|
399
|
+
this.$emit('downLoad',this.previewOssPath);
|
|
400
|
+
return
|
|
401
|
+
}
|
|
394
402
|
let url = this.previewOssPath
|
|
395
403
|
if (decodeURIComponent(url) != url) {
|
|
396
404
|
url = decodeURIComponent(url)
|