Procházet zdrojové kódy

打印INTRANET_URL测试

cyy před 3 měsíci
rodič
revize
31df37345e

+ 3 - 0
src/business/platform/file/attachment/editFile/editor.vue

@@ -38,6 +38,7 @@ export default {
         }
     },
     created(){
+        console.log(INTRANET_URL(),'INTRANET_URL()INTRANET_URL()INTRANET_URL()编辑')
         this.option.url = INTRANET_URL() + SYSTEM_URL() + '/file/download?attachmentId=' + this.option.url.split('/file/download?attachmentId=')[1]
         this.option.editUrl = INTRANET_URL() + SYSTEM_URL() + '/file/editCallback?fileName=' + this.option.editUrl.split('/file/editCallback?fileName=')[1]
     },
@@ -76,6 +77,7 @@ export default {
         },
         setEditor (option) {
             this.doctype = handleDocType(option.fileType)
+
             const config = {
                 document: {
                     fileType: option.fileType,
@@ -139,6 +141,7 @@ export default {
                 token: getToken(),
                 height: document.body.clientHeight + 'px'
             }
+            console.log(config,'configconfigconfigconfigconfig编辑')
             const docEditor = new DocsAPI.DocEditor('editorDiv', config)
             this.configKey = config.document.key
         },

+ 2 - 0
src/views/platform/file/attachment/list.vue

@@ -284,6 +284,8 @@ export default {
                             newTab.document.write(`<iframe src="${this.$baseUrl}lib/pdfjs-dist/web/viewer.html?file=${encodeURIComponent(url)}&hasRole=${hasRole}" style="width:100%; height:100%;" frameborder="0";>`)
                         })
                     } else {
+                        console.log(INTRANET_URL(),'INTRANET_URL()INTRANET_URL()INTRANET_URL()预览')
+
                         this.file.url = INTRANET_URL() + SYSTEM_URL() + `/file/download?attachmentId=${data.id}`
                         this.file.editUrl = INTRANET_URL() + SYSTEM_URL() + `/file/editCallback?fileName=${data.fileName}&fileType=${data.ext}&id=${data.id}`
                         this.file.title = data.fileName // 文件名称