优化
This commit is contained in:
@@ -15,14 +15,22 @@ Page({
|
||||
per_page: 0,
|
||||
last_page: 0,
|
||||
dateVisible: false,
|
||||
select_date: '2023',
|
||||
years: [
|
||||
{ label: '2022年', value: '2022' },
|
||||
{ label: '2023年', value: '2023' },
|
||||
{ label: '2024年', value: '2024' },
|
||||
],
|
||||
select_date: '',
|
||||
years: [],
|
||||
},
|
||||
onLoad(){
|
||||
let now_year = (new Date()).Format("yyyy");
|
||||
let begin_year = 2022;
|
||||
let years = [];
|
||||
for(let i=begin_year;i<=now_year;i++){
|
||||
years.push({label: i+"年", value: i+""})
|
||||
}
|
||||
this.setData({
|
||||
years: years,
|
||||
select_date: now_year+""
|
||||
})
|
||||
},
|
||||
onShow(){
|
||||
let year = this.data.select_date;
|
||||
year = Number(year);
|
||||
this.getDoctorWithdrawalRecord(year);
|
||||
|
||||
Reference in New Issue
Block a user