zhengnaiwen_citu 6 maanden geleden
bovenliggende
commit
64d1d15ff4
1 gewijzigde bestanden met toevoegingen van 6 en 2 verwijderingen
  1. 6 2
      src/views/humanResources/roster/rosterVersion.vue

+ 6 - 2
src/views/humanResources/roster/rosterVersion.vue

@@ -45,11 +45,12 @@ export default {
         size: 10,
         current: 1
       },
+      total: 0,
       searchValues: {
-        versionDate: dateFormat('YYYY-mm-dd HH:MM:SS', new Date()),
+        versionDate: null,
         employeeName: null
       },
-      exportTime: dateFormat('YYYY-mm-dd HH:MM:SS', new Date()),
+      exportTime: null,
       exportLoading: false
     }
   },
@@ -100,6 +101,9 @@ export default {
     async open (headers) {
       this.headers = headers
       this.show = true
+      const time = dateFormat('YYYY-mm-dd HH:MM:SS', new Date())
+      this.searchValues.versionDate = time
+      this.exportTime = time
       await this.init()
     },
     async init () {