zzy 2 years ago
parent
commit
1e3925046f

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

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

+ 5 - 1
src/views/evaluate/c-cpns/EventHandleFileModel.vue

@@ -258,7 +258,11 @@ export default {
       this.$emit('update:dialogVisible',false)
     },
       submitUpload() {
+      if(this.$refs.upload.uploadFiles==undefined||this.$refs.upload.uploadFiles.length ==0){
+        this.submitCommit('');
+      }else{
         this.$refs.upload.submit();
+      }
       },
       uploadSuccess (response, file, fileList) {
         console.log('上传文件', response,file, fileList)
@@ -419,7 +423,7 @@ export default {
               commitCount:dataArr[i].EVALUATE_ALL_NUM, //评价总数
               badCommitCount:dataArr[i].EVALUATE_CP_NUM,   //差评数
               badCommitInterest:dataArr[i].EVALUATE_CPL,  //差评率
-              appendix:dataArr[i].ENCLOSURE.substr(dataArr[i].ENCLOSURE.lastIndexOf('/')),   //附件
+              appendix: dataArr[i].ENCLOSURE!==undefined?dataArr[i].ENCLOSURE.substr(dataArr[i].ENCLOSURE.lastIndexOf('/')):'',   //附件
               changeContent:dataArr[i].RECTIFICATION_PLAN,  //整改内容
               reasonList:this.setReasonList(dataArr[i].REASON)
             }

+ 1 - 1
src/views/matters_guidance/mian_body/MainBody.vue

@@ -1019,7 +1019,7 @@ export default {
       console.log('上传文件', response,file, fileList)
       if(response.msg[0].success =='true'){
         this.loading=false;
-        MessageBox.alert('上传整改计划成功', '提示', {
+        MessageBox.alert('上传文件成功', '提示', {
           confirmButtonText: '确定'
         });
       }else{