|
@@ -390,9 +390,9 @@ export default {
|
|
|
commonfileList: null,
|
|
|
queryParams: {
|
|
|
pId: null,
|
|
|
- pType: 'notice'
|
|
|
+ pType: 'Notice'
|
|
|
},
|
|
|
- pType: 'notice',
|
|
|
+ pType: 'Notice',
|
|
|
pId: null
|
|
|
},
|
|
|
pdf : {
|
|
@@ -598,11 +598,11 @@ export default {
|
|
|
|
|
|
/** 报告附件按钮操作 */
|
|
|
handleDoc(row) {
|
|
|
- this.doc.id = row.id;
|
|
|
+ this.doc.id = row.noticeId;
|
|
|
this.doc.title = row.filename;
|
|
|
this.doc.open = true;
|
|
|
- this.doc.queryParams.pId = row.id
|
|
|
- this.doc.pId = row.id
|
|
|
+ this.doc.queryParams.pId = row.noticeId
|
|
|
+ this.doc.pId = row.noticeId
|
|
|
this.getFileList()
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.doc.clearFiles()
|
|
@@ -631,6 +631,11 @@ export default {
|
|
|
this.pdf.pdfUrl = process.env.VUE_APP_BASE_API +'/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.fileUrl
|
|
|
},
|
|
|
|
|
|
+ // 提交上传文件
|
|
|
+ submitFileForm() {
|
|
|
+ this.$refs.upload.submit();
|
|
|
+ },
|
|
|
+
|
|
|
getFileList (){
|
|
|
allFileList(this.doc.queryParams).then(response => {
|
|
|
this.doc.commonfileList = response;
|