Prechádzať zdrojové kódy

解决请假管理按小时请假报错的问题

Lijy 10 mesiacov pred
rodič
commit
e80fe24ba4

+ 4 - 0
fhKeeper/formulahousekeeper/timesheet_h5/src/views/exaLeave/applyLeave.vue

@@ -386,6 +386,10 @@ export default {
         submitLeave(){
             this.$refs.loginForm.validate().then(()=>{
                 console.log('success');
+                if(!this.editForm.endDate) {
+                    this.editForm.endDate = this.editForm.startDate
+                }
+                console.log(this.editForm, '<==== 将要提交的数据')
                 this.submitLoading = true
                 this.$axios.post("/leave-sheet/add", this.editForm)
                 .then(res => {