askbot-dragon 1.7.85-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
|
>
|
|
@@ -52,12 +53,12 @@ export default {
|
|
|
52
53
|
let drawer = document.getElementById('drawer_content_pre')
|
|
53
54
|
if (drawer){
|
|
54
55
|
drawer.style.backgroundImage = 'none';
|
|
55
|
-
drawer.style.overflowX = 'hidden'
|
|
56
|
+
drawer.style.overflowX = 'hidden';
|
|
56
57
|
}
|
|
57
58
|
this.$nextTick(() => {
|
|
58
59
|
this.setColor();
|
|
59
60
|
if (this.textWatermarkStr){
|
|
60
|
-
newInitWaterMark('
|
|
61
|
+
newInitWaterMark('docHtml',this.textWatermarkStr)
|
|
61
62
|
}
|
|
62
63
|
})
|
|
63
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>
|
|
@@ -145,7 +147,7 @@ export default {
|
|
|
145
147
|
if (this.tableChunkData.length > 0 && type === 'first'){
|
|
146
148
|
this.scrollToRow(this.tableChunkData[0].tableChunkId)
|
|
147
149
|
if (this.textWatermarkStr){
|
|
148
|
-
newInitWaterMark('
|
|
150
|
+
newInitWaterMark('excelTable',this.textWatermarkStr)
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
})
|
|
@@ -200,6 +202,10 @@ export default {
|
|
|
200
202
|
<style scoped lang="less">
|
|
201
203
|
.excelView{
|
|
202
204
|
height: 100%;
|
|
205
|
+
#excelTable{
|
|
206
|
+
position: relative;
|
|
207
|
+
height: 100%;
|
|
208
|
+
}
|
|
203
209
|
/deep/.setBgClass{
|
|
204
210
|
background-color: #E3EBFF!important;
|
|
205
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>
|