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