|
@@ -90,11 +90,11 @@
|
|
|
this.formState.yearWithMonth=moment(this.formState.yearWithMonth).format('YYYY-MM')
|
|
|
},
|
|
|
handleUploadChange({ file, fileList }){
|
|
|
- if (file.status === 'done') {
|
|
|
+ if (file.status === 'done'&&file.response.success) {
|
|
|
this.$message.success(file.response.message)
|
|
|
this.$emit('ok')
|
|
|
this.handleCancel()
|
|
|
- }else if(file.status === 'error'){
|
|
|
+ }else if(file.status === 'done'&&!file.response.success){
|
|
|
this.$message.error(file.response.message)
|
|
|
}
|
|
|
|