|
@@ -396,13 +396,17 @@ export default {
|
|
|
this.upload.open = false;
|
|
|
this.upload.isUploading = false;
|
|
|
this.$refs.upload.clearFiles();
|
|
|
- this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox' });
|
|
|
+ if(response.data){
|
|
|
+ this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox' });
|
|
|
+ }
|
|
|
this.close()
|
|
|
}).catch(response => {
|
|
|
this.upload.open = false;
|
|
|
this.upload.isUploading = false;
|
|
|
this.$refs.upload.clearFiles();
|
|
|
- this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox' });
|
|
|
+ if(response.data){
|
|
|
+ this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox' });
|
|
|
+ }
|
|
|
this.vloading.close();
|
|
|
//param.onError()
|
|
|
})
|