jinlin
2024-02-23 1772fc5e211f9e9e0ab4cdc6c29b436aac178c2a
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,8 +24,11 @@
</template>
<script>
  import {setAccessoryFormatComm} from '@/commonJS/commonFile'
  import {setAccessoryFormatSingle} from '@/commonJS/commonFile'
  import {setAccessoryFormatByForm} from '@/commonJS/commonFile'
  export default {
    name:'ViewAccessory',
    props: {
      pageMarkerfun: {
        default: ''
@@ -58,10 +61,19 @@
      })
    },
    methods: {
      setAccessoryFormatSingle(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 = ''
@@ -97,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;