ysh 3 years ago
parent
commit
73038d3c58
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/system/schedulingInformation/BdAnnualLeaveModal.vue

+ 4 - 0
src/views/system/schedulingInformation/BdAnnualLeaveModal.vue

@@ -47,6 +47,7 @@
 </template>
 
 <script>
+  import moment from "moment"
   import pick from 'lodash.pick'
   import { httpAction } from '@/api/manage'
   import { duplicateCheck } from '@/api/api'
@@ -140,7 +141,10 @@ import { queryIdTree } from '@/api/api'
             'endDate',
             'demo'
           ))
+          this.form.setFieldsValue({beginDate:this.model.beginDate?moment(this.model.beginDate):null})
+          this.form.setFieldsValue({endDate:this.model.endDate?moment(this.model.endDate):null})
         })
+       
       },
       close() {
         this.$emit('close')