修改比对

This commit is contained in:
范强强
2024-03-06 16:06:35 +08:00
parent a904f73a0a
commit e02898b06f
2 changed files with 16 additions and 10 deletions
@@ -462,7 +462,7 @@ public class OnlyOfficeController {
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
response.setHeader("Content-Disposition", "attachment;filename=\"" + fileOldName + "\"");
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);
os = response.getOutputStream();
IOUtils.copy(is, os);
+15 -9
View File
@@ -14,9 +14,7 @@ import { postAction, getAction } from '../../api/manage'
export default {
name: 'index',
data () {
return {
}
return {}
},
methods: {
fileClick () {
@@ -28,11 +26,19 @@ export default {
const nowTime = new Date().getTime()
const standCode = 'x/xx xxxx-xxxx'
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 +
'&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 +
'&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 {
@@ -45,7 +51,7 @@ export default {
</script>
<style scoped>
.onlyoffice-box{
width: 100%;
}
.onlyoffice-box {
width: 100%;
}
</style>