榆山数据端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

45 lines
1.1 KiB

Component({
data: {
selectTab: 'basic-situation',
streetId: '',
timeId: '',
condition: {
streetId: '',
timeId: ''
},
typeList: [
{ type: 'basic-situation', name: '党员基本情况', select: true },
{ type: 'enter-situation', name: '党员参与情况', select: false },
// { type: 'bring-into-play-situation', name: '党员作用发挥情况', select: false }
]
},
methods: {
// 选择街道
chooseStreetId: function (e) {
this.setData({
streetId: e.detail,
"condition.streetId": e.detail
})
},
/**
* 选择时间
* 1:最近1个月,2:最近3个月,3:最近半年,4:最近一年 ,""不填默认全部
*/
chooseTimeId: function (e) {
console.log('时间id:' + e.detail)
this.setData({
timeId: e.detail,
"condition.timeId": e.detail
})
},
/**
* 子页面传值
*/
chooseType: function (e) {
console.log(e.detail)
this.setData({
selectTab: e.detail
})
},
}
})