askbot-dragon 1.7.86-beta → 1.7.87-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
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<div class="docView" id="docView">
|
|
3
3
|
<div class="docHtml"
|
|
4
4
|
ref="docHtml"
|
|
5
|
+
id="docHtml"
|
|
5
6
|
v-html="html"
|
|
6
7
|
@click="selectDiv"
|
|
7
8
|
>
|
|
@@ -53,12 +54,11 @@ export default {
|
|
|
53
54
|
if (drawer){
|
|
54
55
|
drawer.style.backgroundImage = 'none';
|
|
55
56
|
drawer.style.overflowX = 'hidden';
|
|
56
|
-
drawer.style.position ='relative'
|
|
57
57
|
}
|
|
58
58
|
this.$nextTick(() => {
|
|
59
59
|
this.setColor();
|
|
60
60
|
if (this.textWatermarkStr){
|
|
61
|
-
newInitWaterMark('
|
|
61
|
+
newInitWaterMark('docHtml',this.textWatermarkStr)
|
|
62
62
|
}
|
|
63
63
|
})
|
|
64
64
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="excelView"
|
|
2
|
+
<div class="excelView">
|
|
3
3
|
<table border="1" v-if="false">
|
|
4
4
|
<thead>
|
|
5
5
|
<tr>
|
|
@@ -14,25 +14,27 @@
|
|
|
14
14
|
</tr>
|
|
15
15
|
</tbody>
|
|
16
16
|
</table>
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
<div id="excelTable">
|
|
18
|
+
<el-table
|
|
19
|
+
:data="pagedData"
|
|
20
|
+
border
|
|
21
|
+
ref="table"
|
|
22
|
+
:row-key="getRowKey"
|
|
23
|
+
:row-class-name="tableRowClassName"
|
|
24
|
+
height="100%"
|
|
25
|
+
style="width: 100%">
|
|
26
|
+
<template v-for="(item,index) in headerArray">
|
|
27
|
+
<el-table-column
|
|
28
|
+
:label="item"
|
|
29
|
+
:key="index"
|
|
30
|
+
min-width="100">
|
|
31
|
+
<template slot-scope="scope">
|
|
32
|
+
{{scope.row[item]}}
|
|
33
|
+
</template>
|
|
34
|
+
</el-table-column>
|
|
35
|
+
</template>
|
|
36
|
+
</el-table>
|
|
37
|
+
</div>
|
|
36
38
|
<pagination-page :pageSize="pageSize" :currentPage="currentPage" :total="rowDataList.length" @currentChange="handleCurrentChange"></pagination-page>
|
|
37
39
|
</div>
|
|
38
40
|
</template>
|
|
@@ -144,12 +146,8 @@ export default {
|
|
|
144
146
|
this.$nextTick(() => {
|
|
145
147
|
if (this.tableChunkData.length > 0 && type === 'first'){
|
|
146
148
|
this.scrollToRow(this.tableChunkData[0].tableChunkId)
|
|
147
|
-
let drawer = document.getElementById('drawer_content_pre')
|
|
148
|
-
if (drawer){
|
|
149
|
-
drawer.style.position ='relative'
|
|
150
|
-
}
|
|
151
149
|
if (this.textWatermarkStr){
|
|
152
|
-
newInitWaterMark('
|
|
150
|
+
newInitWaterMark('excelTable',this.textWatermarkStr)
|
|
153
151
|
}
|
|
154
152
|
}
|
|
155
153
|
})
|
|
@@ -204,6 +202,10 @@ export default {
|
|
|
204
202
|
<style scoped lang="less">
|
|
205
203
|
.excelView{
|
|
206
204
|
height: 100%;
|
|
205
|
+
#excelTable{
|
|
206
|
+
position: relative;
|
|
207
|
+
height: 100%;
|
|
208
|
+
}
|
|
207
209
|
/deep/.setBgClass{
|
|
208
210
|
background-color: #E3EBFF!important;
|
|
209
211
|
}
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
<new-position-preview ref="newPositionPreview"
|
|
107
107
|
v-else-if="tagIds && tagIds.length != 0 && newVersion && newFileType !== 'PPT'"
|
|
108
108
|
:textWatermarkStr="textWatermarkStr"
|
|
109
|
-
:knowledgeId="knowledgeId" :tagIds="tagIds" :url="previewHref"
|
|
109
|
+
:knowledgeId="knowledgeId" :tagIds="tagIds" :url="previewHref"></new-position-preview>
|
|
110
110
|
<template v-else>
|
|
111
111
|
<div v-if="fileType == 'VIDEO'" style="width: 100%;height: 100%">
|
|
112
112
|
<video :src="url" controls width="100%;" height="98%"></video>
|