|
@@ -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 => {
|