This commit is contained in:
hanjian
2024-09-02 20:53:58 +08:00
parent fc1603c786
commit 014341b671
6 changed files with 40 additions and 7 deletions

View File

@@ -324,7 +324,6 @@ export default {
fileNewName: res.data.newFileName,
suffixType: res.data.suffixType
}
console.info("data===========", data)
self.$emit("handleSuccess", data)
},
/** 清空文件 **/

View File

@@ -453,7 +453,10 @@ export default {
},
handlePreview(row){
this.viewDialogOpen = true;
this.previewUrl = process.env.VUE_APP_TOOL_TECH_FILE_VIEW_API + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(process.env.VUE_APP_BASE_API + row.docUrl));
let protocol = window.location.protocol
let hostname = window.location.hostname;
let getDocUrl = protocol + '//' + hostname + ':8080' + process.env.VUE_APP_BASE_API
this.previewUrl = process.env.VUE_APP_TOOL_TECH_FILE_VIEW_API + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(getDocUrl + row.docUrl));
this.viewDialogTitle = '文档在线预览'
},
// 多选框选中数据