zzy 2 years ago
parent
commit
2de700f440
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/electricCard/ElectricCard.vue

+ 3 - 1
src/views/electricCard/ElectricCard.vue

@@ -303,12 +303,12 @@ export default {
       console.log('上传文件', response,file, fileList)
       if(response.msg[0].success =='true'){
         this.loading=false;
-        this.onSubmitSearch()
         MessageBox.alert('文件上传成功', '提示', {
           confirmButtonText: '确定'
         });
       }else{
         this.loading=false;
+        this.closeMonthTable();
         MessageBox.alert('文件上传失败', '提示', {
           confirmButtonText: '确定'
         });
@@ -339,6 +339,8 @@ export default {
       console.log('上传文件', response,file, fileList)
       if(response.msg[0].success =='true'){
         this.loading=false;
+        this.closeMonthTable();
+        this.onSubmitSearch()
         MessageBox.alert('文件上传成功', '提示', {
           confirmButtonText: '确定'
         });