askbot-dragon 1.7.64-beta → 1.7.66-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
|
@@ -75,17 +75,32 @@ export default {
|
|
|
75
75
|
this.$http.get('/knowledge-api/knowledge/knowledge-part-location-info/list?ids=' + this.tagIds.join(',')).then(res => {
|
|
76
76
|
if (res.data.code == 0){
|
|
77
77
|
if (res.data.data && res.data.data.length){
|
|
78
|
+
let original_paragraph = []
|
|
78
79
|
for (let i=0;i<res.data.data.length;i++){
|
|
79
80
|
if (res.data.data[i].paragraphChunkInfo && res.data.data[i].paragraphChunkInfo.splitParagraph){
|
|
80
81
|
this.splitParagraph.push(res.data.data[i].paragraphChunkInfo.splitParagraph)
|
|
81
82
|
}
|
|
82
83
|
if (res.data.data[i].paragraphChunkInfo && res.data.data[i].paragraphChunkInfo.tableChunkData){
|
|
83
|
-
|
|
84
|
+
if (res.data.data[i].paragraphChunkInfo.tableChunkData.bbox && res.data.data[i].paragraphChunkInfo.tableChunkData.bbox.length > 0){
|
|
85
|
+
let obj = {
|
|
86
|
+
page:res.data.data[i].paragraphChunkInfo.tableChunkData.page,
|
|
87
|
+
position:res.data.data[i].paragraphChunkInfo.bbox
|
|
88
|
+
}
|
|
89
|
+
original_paragraph.push(obj)
|
|
90
|
+
} else {
|
|
91
|
+
this.tableChunkData.push(res.data.data[i].paragraphChunkInfo.tableChunkData)
|
|
92
|
+
}
|
|
84
93
|
}
|
|
85
94
|
}
|
|
95
|
+
if (original_paragraph.length > 0){
|
|
96
|
+
this.splitParagraph.push({
|
|
97
|
+
original_paragraph
|
|
98
|
+
})
|
|
99
|
+
}
|
|
86
100
|
}
|
|
87
101
|
}
|
|
88
102
|
this.splitParagraph = this.splitParagraph.concat(this.tableChunkData);
|
|
103
|
+
console.log('splitParagraph',this.splitParagraph,this.tableChunkData)
|
|
89
104
|
this.getParseInfo();
|
|
90
105
|
})
|
|
91
106
|
},
|
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
<el-drawer title="" :visible.sync="drawer" :with-header="false" :append-to-body="true" :destroy-on-close="true"
|
|
9
9
|
:modal="false" :direction="previewShowPopup ? 'btt' : 'rtl'" :size="previewShowPopup ? '90%' : '65%'"
|
|
10
10
|
custom-class="pdf-preview-drawer" v-if="drawer">
|
|
11
|
-
<div class="drawer-header" :class="(isDownload || isHasChat) && isLiBang ? 'has_btn_libang_head' : (isLiBang ? 'libang_head' : (isDownload || isHasChat ? 'has_btn_head' : ''))" v-if="!isPc">
|
|
11
|
+
<div class="drawer-header" :class="(isDownload || (isHasChat && fileType != 'IMAGE')) && isLiBang ? 'has_btn_libang_head' : (isLiBang ? 'libang_head' : (isDownload || (isHasChat && fileType != 'IMAGE') ? 'has_btn_head' : ''))" v-if="!isPc">
|
|
12
12
|
<div class="header_title">
|
|
13
|
-
<template v-if="isDownload || isHasChat">
|
|
13
|
+
<template v-if="isDownload || (isHasChat && fileType != 'IMAGE')">
|
|
14
14
|
<div class="top-header">
|
|
15
15
|
<div class="header-btn">
|
|
16
16
|
<div class="onload_btn" v-if="isDownload" @click="downLoad">
|
|
17
17
|
{{ $t('dragonCommon.download') }}
|
|
18
18
|
</div>
|
|
19
|
-
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun" v-if="isHasChat">
|
|
19
|
+
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun" v-if="isHasChat && fileType != 'IMAGE'">
|
|
20
20
|
<i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
|
|
21
21
|
<span>{{ $t('dragonCommon.smartSummary') }}</span>
|
|
22
22
|
</div>
|
|
23
|
-
<template v-if="isHasChat">
|
|
23
|
+
<template v-if="isHasChat && fileType != 'IMAGE'">
|
|
24
24
|
<div class="chat" @click="previewToDialog(true)" v-if="!previewKnowledgeId">
|
|
25
25
|
<i class="iconfont guoran-wendapingjia"></i>
|
|
26
26
|
{{ $t('dragonCommon.chat') }}
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
{{ $t('dragonCommon.download') }}
|
|
66
66
|
</div>
|
|
67
67
|
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun"
|
|
68
|
-
v-if="isHasChat
|
|
68
|
+
v-if="isHasChat && fileType != 'IMAGE'">
|
|
69
69
|
<i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
|
|
70
70
|
<span>{{ $t('dragonCommon.smartSummary') }}</span>
|
|
71
71
|
</div>
|
|
72
|
-
<template v-if="isHasChat">
|
|
72
|
+
<template v-if="isHasChat && fileType != 'IMAGE'">
|
|
73
73
|
<div class="chat" @click="previewToDialog(true)" v-if="!previewKnowledgeId">
|
|
74
74
|
<i class="iconfont guoran-wendapingjia"></i>
|
|
75
75
|
{{ $t('dragonCommon.chat') }}
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
</p>
|
|
92
92
|
</div>
|
|
93
93
|
</div>
|
|
94
|
-
<div id="drawer_content_pre" :class="(isDownload || isHasChat) && !isPc && isLiBang && folderName ? 'has_btn_libang_content_pre' : (isLiBang && folderName ? 'libang_content_pre' : '')">
|
|
95
|
-
<intelligent-summary v-show="showSummary && isHasChat" :tagIds="tagIds" :knowledgeId="knowledgeId"
|
|
94
|
+
<div id="drawer_content_pre" :class="(isDownload || (isHasChat && fileType != 'IMAGE')) && !isPc && isLiBang && folderName ? 'has_btn_libang_content_pre' : (isLiBang && folderName ? 'libang_content_pre' : '')">
|
|
95
|
+
<intelligent-summary v-show="showSummary && (isHasChat && fileType != 'IMAGE')" :tagIds="tagIds" :knowledgeId="knowledgeId"
|
|
96
96
|
@closeSummary="closeSummary" @recommendQues="recommendQues"
|
|
97
97
|
@getSummarySuccess="getSummarySuccess"></intelligent-summary>
|
|
98
98
|
<div class="pdf_positon" :style="pdfStyle" v-if="tagIds && tagIds.length != 0 && drawer && newVersion === false && newFileType !== 'PPT'">
|
|
@@ -435,10 +435,10 @@ export default {
|
|
|
435
435
|
})
|
|
436
436
|
},
|
|
437
437
|
downLoad() {
|
|
438
|
-
if (this.formKnowledgeManagement) {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
438
|
+
// if (this.formKnowledgeManagement) {
|
|
439
|
+
// this.$emit('downLoad', this.previewOssPath);
|
|
440
|
+
// return
|
|
441
|
+
// }
|
|
442
442
|
let url = this.previewOssPath
|
|
443
443
|
if (decodeURIComponent(url) != url) {
|
|
444
444
|
url = decodeURIComponent(url)
|