Browse Source

文件上传 - 每次打开附件对话框,清空文件上传记录

Wang Zi Wen 1 year ago
parent
commit
8c3ef4271a

+ 1 - 1
ruoyi-ui/src/views/branch/jlkp/assess/index.vue

@@ -375,9 +375,9 @@ export default {
     },
     },
     //附件上传成功处理
     //附件上传成功处理
     handleFileDocSuccess(response, file, fileList) {
     handleFileDocSuccess(response, file, fileList) {
-      console.log(response.data, '-----', this.file.id);
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList();
       this.getFileList();
+      this.$refs.doc.clearFiles();
     },
     },
     handleSee(url) {
     handleSee(url) {
       window.open(process.env.VUE_APP_BASE_API + url);
       window.open(process.env.VUE_APP_BASE_API + url);

+ 1 - 0
ruoyi-ui/src/views/branch/manage/index.vue

@@ -379,6 +379,7 @@ export default {
       updateManage({filesId: response.data, manageId: this.file.id}).then(response => {
       updateManage({filesId: response.data, manageId: this.file.id}).then(response => {
         this.$modal.msgSuccess("上传成功");
         this.$modal.msgSuccess("上传成功");
         this.getFileList();
         this.getFileList();
+        this.$refs.doc.clearFiles();
       });
       });
     },
     },
     openFileDialog(row) {
     openFileDialog(row) {

+ 1 - 1
ruoyi-ui/src/views/branch/xxyd/study/index.vue

@@ -420,9 +420,9 @@ export default {
     },
     },
     //附件上传成功处理
     //附件上传成功处理
     handleFileDocSuccess(response, file, fileList) {
     handleFileDocSuccess(response, file, fileList) {
-      console.log(response.data, '-----', this.file.id);
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList();
       this.getFileList();
+      this.$refs.doc.clearFiles();
     },
     },
     /** 查询用户列表 */
     /** 查询用户列表 */
     getUserList() {
     getUserList() {

+ 1 - 1
ruoyi-ui/src/views/branch/xxyd/template/index.vue

@@ -329,9 +329,9 @@ export default {
     },
     },
     //附件上传成功处理
     //附件上传成功处理
     handleFileDocSuccess(response, file, fileList) {
     handleFileDocSuccess(response, file, fileList) {
-      console.log(response.data, '-----', this.file.id);
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList();
       this.getFileList();
+      this.$refs.doc.clearFiles();
     },
     },
     handleSee(url) {
     handleSee(url) {
       window.open(process.env.VUE_APP_BASE_API + url);
       window.open(process.env.VUE_APP_BASE_API + url);

+ 1 - 1
ruoyi-ui/src/views/branch/zbfc/activity/index.vue

@@ -449,9 +449,9 @@ export default {
     },
     },
     //附件上传成功处理
     //附件上传成功处理
     handleFileDocSuccess(response, file, fileList) {
     handleFileDocSuccess(response, file, fileList) {
-      console.log(response.data, '-----', this.file.id);
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList();
       this.getFileList();
+      this.$refs.doc.clearFiles();
     },
     },
     handleSee(url) {
     handleSee(url) {
       window.open(process.env.VUE_APP_BASE_API + url);
       window.open(process.env.VUE_APP_BASE_API + url);

+ 1 - 1
ruoyi-ui/src/views/branch/zbfc/activitynotice/index.vue

@@ -448,9 +448,9 @@ export default {
     },
     },
     //附件上传成功处理
     //附件上传成功处理
     handleFileDocSuccess(response, file, fileList) {
     handleFileDocSuccess(response, file, fileList) {
-      console.log(response.data, '-----', this.file.id);
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList();
       this.getFileList();
+      this.$refs.doc.clearFiles();
     },
     },
     handleSee(url) {
     handleSee(url) {
       window.open(process.env.VUE_APP_BASE_API + url);
       window.open(process.env.VUE_APP_BASE_API + url);

+ 2 - 1
ruoyi-ui/src/views/branch/zbfc/demeanor/index.vue

@@ -472,6 +472,7 @@ export default {
     handleFileDocSuccess2(response, file, fileList) {
     handleFileDocSuccess2(response, file, fileList) {
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList2();
       this.getFileList2();
+      this.$refs.doc.clearFiles();
     },
     },
     openFileDialog2(row) {
     openFileDialog2(row) {
       this.file2.open = true;
       this.file2.open = true;
@@ -501,9 +502,9 @@ export default {
     },
     },
     //附件上传成功处理
     //附件上传成功处理
     handleFileDocSuccess(response, file, fileList) {
     handleFileDocSuccess(response, file, fileList) {
-      console.log(response.data, '-----', this.file.id);
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList();
       this.getFileList();
+      this.$refs.doc.clearFiles();
     },
     },
     handleSee(url) {
     handleSee(url) {
       window.open(process.env.VUE_APP_BASE_API + url);
       window.open(process.env.VUE_APP_BASE_API + url);

+ 2 - 1
ruoyi-ui/src/views/branch/zbfc/publicize/index.vue

@@ -472,6 +472,7 @@ export default {
     handleFileDocSuccess2(response, file, fileList) {
     handleFileDocSuccess2(response, file, fileList) {
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList2();
       this.getFileList2();
+      this.$refs.doc.clearFiles();
     },
     },
     openFileDialog2(row) {
     openFileDialog2(row) {
       this.file2.open = true;
       this.file2.open = true;
@@ -501,9 +502,9 @@ export default {
     },
     },
     //附件上传成功处理
     //附件上传成功处理
     handleFileDocSuccess(response, file, fileList) {
     handleFileDocSuccess(response, file, fileList) {
-      console.log(response.data, '-----', this.file.id);
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList();
       this.getFileList();
+      this.$refs.doc.clearFiles();
     },
     },
     handleSee(url) {
     handleSee(url) {
       window.open(process.env.VUE_APP_BASE_API + url);
       window.open(process.env.VUE_APP_BASE_API + url);

+ 1 - 1
ruoyi-ui/src/views/branch/zbjs/democratic/index.vue

@@ -432,9 +432,9 @@ export default {
     },
     },
     //附件上传成功处理
     //附件上传成功处理
     handleFileDocSuccess(response, file, fileList) {
     handleFileDocSuccess(response, file, fileList) {
-      console.log(response.data, '-----', this.file.id);
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList();
       this.getFileList();
+      this.$refs.doc.clearFiles();
     },
     },
     handleSee(url) {
     handleSee(url) {
       window.open(process.env.VUE_APP_BASE_API + url);
       window.open(process.env.VUE_APP_BASE_API + url);

+ 1 - 1
ruoyi-ui/src/views/branch/zbjs/zbdydh/index.vue

@@ -404,9 +404,9 @@ export default {
     },
     },
     //附件上传成功处理
     //附件上传成功处理
     handleFileDocSuccess(response, file, fileList) {
     handleFileDocSuccess(response, file, fileList) {
-      console.log(response.data, '-----', this.file.id);
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList();
       this.getFileList();
+      this.$refs.doc.clearFiles();
     },
     },
     handleSee(url) {
     handleSee(url) {
       window.open(process.env.VUE_APP_BASE_API + url);
       window.open(process.env.VUE_APP_BASE_API + url);

+ 1 - 1
ruoyi-ui/src/views/branch/zbjs/zbwyh/index.vue

@@ -404,9 +404,9 @@ export default {
     },
     },
     //附件上传成功处理
     //附件上传成功处理
     handleFileDocSuccess(response, file, fileList) {
     handleFileDocSuccess(response, file, fileList) {
-      console.log(response.data, '-----', this.file.id);
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList();
       this.getFileList();
+      this.$refs.doc.clearFiles();
     },
     },
     handleSee(url) {
     handleSee(url) {
       window.open(process.env.VUE_APP_BASE_API + url);
       window.open(process.env.VUE_APP_BASE_API + url);

+ 1 - 1
ruoyi-ui/src/views/system/notice/index.vue

@@ -434,9 +434,9 @@ export default {
     },
     },
     //附件上传成功处理
     //附件上传成功处理
     handleFileDocSuccess(response, file, fileList) {
     handleFileDocSuccess(response, file, fileList) {
-      console.log(response.data, '-----', this.file.id);
       this.$modal.msgSuccess("上传成功");
       this.$modal.msgSuccess("上传成功");
       this.getFileList();
       this.getFileList();
+      this.$refs.doc.clearFiles();
     },
     },
     handleSee(url) {
     handleSee(url) {
       window.open(process.env.VUE_APP_BASE_API + url);
       window.open(process.env.VUE_APP_BASE_API + url);