From e2cef6c358e57c2bc63e67a05c88c52585bb96db Mon Sep 17 00:00:00 2001
From: wente <329538422@qq.com>
Date: 星期五, 29 十二月 2023 11:22:29 +0800
Subject: [PATCH] 项目表
---
web/src/views/pages/view.vue | 31 ++++++++++++++++++++++++++++---
1 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/web/src/views/pages/view.vue b/web/src/views/pages/view.vue
index bd6889c..db6e4e9 100644
--- a/web/src/views/pages/view.vue
+++ b/web/src/views/pages/view.vue
@@ -2,7 +2,7 @@
<div>
<div v-show="isOpenDocPreviewDialog" class="preview-dialog">
<button @click="closePreviewDialog('doc')" class="close-button">鍏抽棴</button>
- <div :id="pageMarkerfun+'-doc'" style="overflow: auto; width: 100%; height: 90%;"></div>
+ <div :id="pageMarkerfun+'-doc'" style="overflow: auto; width: 100% !important;; height: 90%;margin: 0px; padding: 0px!important"></div>
<div class="file-name">{{ docName }}</div>
</div>
<div v-show="isOpenPdfPreviewDialog" class="preview-dialog">
@@ -24,7 +24,9 @@
</template>
<script>
+ import {setAccessoryFormatComm} from '@/commonJS/commonFile'
import {setAccessoryFormatSingle} from '@/commonJS/commonFile'
+ import {setAccessoryFormatByForm} from '@/commonJS/commonFile'
export default {
name:'ViewAccessory',
props: {
@@ -59,10 +61,19 @@
})
},
methods: {
- setAccessory(row) {
+ openAccessoryFormatComm(row) {
+ console.log(row, 'setAccessoryFormatSingle(row)');
+ return setAccessoryFormatComm(row, this.pageMarkerfun, this)
+ },
+ openAccessoryFormatSingle(row) {
console.log(row, 'setAccessoryFormatSingle(row)');
return setAccessoryFormatSingle(row, this.pageMarkerfun, this)
},
+ openAccessoryFormatByForm(row) {
+ console.log(row, 'setAccessoryFormatSingle(row)');
+ return setAccessoryFormatByForm(row, this.pageMarkerfun, this)
+ },
+
closePreviewDialog(file) {
if (file == 'doc') {
this.docName = ''
@@ -98,12 +109,26 @@
position: fixed;
top: 120px;
right: 10px;
- background: gray;
+ background: #ccc;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
+ .preview-dialog .docx-wrapper{
+ padding: 10px 0 0 0 !important;
+ background: inherit !important;
+ }
+ .preview-dialog .docx-wrapper>section.docx{
+ width: 850.3pt !important;
+ padding: 0 !important;
+ }
+ .preview-dialog .docx-wrapper>section.docx>article{
+ margin: 0 auto;
+ }
+ .preview-dialog .docx-wrapper>section.docx>article>.docx_4{
+ width: 685.45pt !important;
+ }
.close-button {
position: absolute;
top: 10px;
--
Gitblit v1.9.1