|
@@ -858,7 +858,7 @@
|
|
:disabled="!statementProd.isOnline">加盖公章</el-button>
|
|
:disabled="!statementProd.isOnline">加盖公章</el-button>
|
|
<el-button type="text" class="button" @click="genProductionFile(1)" >系统生成</el-button>
|
|
<el-button type="text" class="button" @click="genProductionFile(1)" >系统生成</el-button>
|
|
</div>
|
|
</div>
|
|
- <a href="#" @click.prevent="open_pageoffice()">打开文件</a>
|
|
|
|
|
|
+ <!-- <a href="#" @click.prevent="openPageoffice()">打开文件</a> -->
|
|
</div>
|
|
</div>
|
|
<el-upload style="position: relative; top: -10px; padding: 10px;"
|
|
<el-upload style="position: relative; top: -10px; padding: 10px;"
|
|
:action="'/api/personalProduction/upload/' + target.id + '/1'" :file-list="statementProd.files" :limit="1"
|
|
:action="'/api/personalProduction/upload/' + target.id + '/1'" :file-list="statementProd.files" :limit="1"
|
|
@@ -2286,7 +2286,8 @@ export default {
|
|
},
|
|
},
|
|
handleAttachmentPreview(file) {
|
|
handleAttachmentPreview(file) {
|
|
// window.open(file.url)
|
|
// window.open(file.url)
|
|
- this.officeFileView(file.name, file.url);
|
|
|
|
|
|
+ // this.officeFileView(name,url);
|
|
|
|
+ this.openPageoffice(file.name,file.url);
|
|
},
|
|
},
|
|
handleRemoveFile(file, fileList) {
|
|
handleRemoveFile(file, fileList) {
|
|
this.$confirm('请确认是否移除已存在的报告?', '提示', {
|
|
this.$confirm('请确认是否移除已存在的报告?', '提示', {
|
|
@@ -2745,15 +2746,14 @@ export default {
|
|
this.decideProduction = false;
|
|
this.decideProduction = false;
|
|
this.checkStateFlag = false;
|
|
this.checkStateFlag = false;
|
|
},
|
|
},
|
|
- open_pageoffice() {
|
|
|
|
|
|
+ openPageoffice(fileName,fileUrl) {
|
|
let paramJson={};
|
|
let paramJson={};
|
|
paramJson.file_id=1;
|
|
paramJson.file_id=1;
|
|
- paramJson.file_name="/dfs/2024/09/29/2024090029结果报告.docx";
|
|
|
|
|
|
+ paramJson.file_name=fileUrl;
|
|
let paramString=JSON.stringify(paramJson);
|
|
let paramString=JSON.stringify(paramJson);
|
|
//openWindow()第三个参数用来向弹出的PageOffice浏览器(POBrowser)窗口传递参数(参数长度不限),支持json格式字符串。
|
|
//openWindow()第三个参数用来向弹出的PageOffice浏览器(POBrowser)窗口传递参数(参数长度不限),支持json格式字符串。
|
|
//此处为了方便演示,我们传递了file_id和file_name两个参数,具体以您实际开发为准。
|
|
//此处为了方便演示,我们传递了file_id和file_name两个参数,具体以您实际开发为准。
|
|
- POBrowser.openWindow('/showDoc', 'width=1150px;height=900px;',paramString);
|
|
|
|
-
|
|
|
|
|
|
+ POBrowser.openWindow('/admin/#/showDoc', 'width=1150px;height=900px;',paramString);
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|