Commit 0f0b5ee9 authored by xinzhedeai's avatar xinzhedeai

电子档案馆

parent 4371b3cf
......@@ -69,7 +69,7 @@
>
上传文件
<input
:ref="`addhdpic`"
ref="addhdpic"
class="helloworld"
type="file"
accept1=".pdf"
......@@ -149,7 +149,7 @@
v-show="selectedFolderInfo.uploadWhether"
type="primary"
size="mini"
@click="fileUploadModal = true"
@click="showFileUploadModal"
>上传文件</el-button
>
<el-input
......@@ -282,6 +282,16 @@ export default {
},
created() {},
methods: {
showFileUploadModal(){
this.fileUploadModal = true;
this.uploadedFiles = []
this.$nextTick(() => {
if (this.$refs.addhdpic) {
this.$refs.addhdpic.value = '';
}
});
},
viewFile(row){
this.pdfSrc = process.env.VUE_APP_LOCAL_API+'/file'+row.filePath;
const link = document.createElement('a');
......@@ -498,7 +508,11 @@ export default {
edocApi.addFileByFolderId(formData).then((res) => {
this.$message.success("操作成功");
this.getfileByFolderId();
this.$refs.addhdpic.value = '';
this.fileType = ''
this.fileUploadModal = false;
});
this.modalBtnLoad = false;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment