Browse Source

参数变更

zhengnaiwen_citu 6 months ago
parent
commit
3f53967ea4
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/views/humanResources/roster/rosterVersion.vue

+ 5 - 5
src/views/humanResources/roster/rosterVersion.vue

@@ -47,7 +47,7 @@ export default {
       },
       total: 0,
       searchValues: {
-        versionDate: null,
+        versionMonth: null,
         employeeName: null
       },
       exportTime: null,
@@ -61,7 +61,7 @@ export default {
         {
           label: '时间',
           type: 'datePicker',
-          prop: 'versionDate',
+          prop: 'versionMonth',
           options: {
             placeholder: '请选择时间',
             type: 'month',
@@ -102,7 +102,7 @@ export default {
       this.headers = headers
       this.show = true
       const time = dateFormat('YYYY-mm', new Date())
-      this.searchValues.versionDate = time
+      this.searchValues.versionMonth = time
       this.exportTime = time
       await this.init()
     },
@@ -137,7 +137,7 @@ export default {
       this.exportLoading = true
       try {
         const { data, name } = await exportRosterVersion({
-          versionDate: this.exportTime
+          versionMonth: this.exportTime
         })
         downloadFile(data, name)
       } catch (error) {
@@ -148,7 +148,7 @@ export default {
     },
     onSearch () {
       this.pageInfo.current = 1
-      this.exportTime = this.searchValues.versionDate
+      this.exportTime = this.searchValues.versionMonth
       this.init()
     },
     onPageChange (index) {