Browse Source

考勤管理-上传考勤表提示

jingbb 1 year ago
parent
commit
75e672582d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/oa/salary_management/Attendance/modules/uploadModal.vue

+ 2 - 2
src/views/oa/salary_management/Attendance/modules/uploadModal.vue

@@ -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)
                 }