Merge remote-tracking branch 'origin/master'

This commit is contained in:
wangzhijiang
2024-03-06 16:23:30 +08:00
2 changed files with 16 additions and 10 deletions
@@ -462,7 +462,7 @@ public class OnlyOfficeController {
response.setCharacterEncoding(StandardCharsets.UTF_8.name()); response.setCharacterEncoding(StandardCharsets.UTF_8.name());
response.setHeader("Content-Disposition", "attachment;filename=\"" + fileOldName + "\""); response.setHeader("Content-Disposition", "attachment;filename=\"" + fileOldName + "\"");
response.setContentType("application/octet-stream"); response.setContentType("application/octet-stream");
File file = new File(filePath + ossFile.getUrl() + ossFile.getFileName()); File file = new File(filePath + ossFile.getUrl());
is = new FileInputStream(file); is = new FileInputStream(file);
os = response.getOutputStream(); os = response.getOutputStream();
IOUtils.copy(is, os); IOUtils.copy(is, os);
+14 -8
View File
@@ -14,9 +14,7 @@ import { postAction, getAction } from '../../api/manage'
export default { export default {
name: 'index', name: 'index',
data () { data () {
return { return {}
}
}, },
methods: { methods: {
fileClick () { fileClick () {
@@ -28,11 +26,19 @@ export default {
const nowTime = new Date().getTime() const nowTime = new Date().getTime()
const standCode = 'x/xx xxxx-xxxx' const standCode = 'x/xx xxxx-xxxx'
const standName = '比亚迪企业标准' const standName = '比亚迪企业标准'
window.open('http://127.0.0.1:8080' + '/editor?fileId=' + val.id + '&pid=' + val.pid + const draftingDepartment = '起草部门'
const draftsman = '起草人'
const assessor = '评审人员'
const focalUnit = '归口单位'
// http://39.98.140.126:8999
// http://127.0.0.1:8080
window.open('http://39.98.140.126:8999' + '/editor?fileId=' + val.id + '&pid=' + val.pid +
'&taskIds=' + val.taskId + '&editType=' + val.editType + '&oldFileName=' + oldFileName + '&taskIds=' + val.taskId + '&editType=' + val.editType + '&oldFileName=' + oldFileName +
'&fileType=' + 'docx' + '&attId=' + val.id + '&fileUrl=' + val.downLoadUrl + '&fileType=docx' + '&attId=' + val.id + '&fileUrl=' + val.downLoadUrl +
'&key=' + val.id + nowTime + '&filePath=' + val.editFilePath + '&fileName=' + val.fileName + '&key=' + val.id + nowTime + '&filePath=' + val.editFilePath + '&fileName=' + val.fileName +
'&userId=' + val.userId + '&userName=' + 'admin' + '&isEdit=123' + '&standCode=' + standCode + '&standName=' + standName) '&userId=' + val.userId + '&userName=' + 'admin' + '&isEdit=123' + '&standCode=' + standCode +
'&standName=' + standName + '&draftingDepartment=' + draftingDepartment + '&draftsman=' + draftsman +
'&assessor=' + assessor + '&focalUnit=' + focalUnit)
} }
}) })
} else { } else {
@@ -45,7 +51,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
.onlyoffice-box{ .onlyoffice-box {
width: 100%; width: 100%;
} }
</style> </style>