This commit is contained in:
haomingming
2023-05-05 11:44:37 +08:00
parent e7be139b04
commit 97a504c6d2
55 changed files with 1961 additions and 249 deletions
+14 -6
View File
@@ -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);