Commit 0f0b5ee9 authored by xinzhedeai's avatar xinzhedeai

电子档案馆

parent 4371b3cf
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
> >
上传文件 上传文件
<input <input
:ref="`addhdpic`" ref="addhdpic"
class="helloworld" class="helloworld"
type="file" type="file"
accept1=".pdf" accept1=".pdf"
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
v-show="selectedFolderInfo.uploadWhether" v-show="selectedFolderInfo.uploadWhether"
type="primary" type="primary"
size="mini" size="mini"
@click="fileUploadModal = true" @click="showFileUploadModal"
>上传文件</el-button >上传文件</el-button
> >
<el-input <el-input
...@@ -282,6 +282,16 @@ export default { ...@@ -282,6 +282,16 @@ export default {
}, },
created() {}, created() {},
methods: { methods: {
showFileUploadModal(){
this.fileUploadModal = true;
this.uploadedFiles = []
this.$nextTick(() => {
if (this.$refs.addhdpic) {
this.$refs.addhdpic.value = '';
}
});
},
viewFile(row){ viewFile(row){
this.pdfSrc = process.env.VUE_APP_LOCAL_API+'/file'+row.filePath; this.pdfSrc = process.env.VUE_APP_LOCAL_API+'/file'+row.filePath;
const link = document.createElement('a'); const link = document.createElement('a');
...@@ -498,7 +508,11 @@ export default { ...@@ -498,7 +508,11 @@ export default {
edocApi.addFileByFolderId(formData).then((res) => { edocApi.addFileByFolderId(formData).then((res) => {
this.$message.success("操作成功"); this.$message.success("操作成功");
this.getfileByFolderId(); this.getfileByFolderId();
this.$refs.addhdpic.value = '';
this.fileType = ''
this.fileUploadModal = false; this.fileUploadModal = false;
}); });
this.modalBtnLoad = 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