|
|
@@ -136,31 +136,12 @@ Page({
|
|
|
filtratelist
|
|
|
})
|
|
|
},
|
|
|
- /* 筛选状态选择 */
|
|
|
- selectStatus(e) {
|
|
|
- const {
|
|
|
- item
|
|
|
- } = e.currentTarget.dataset;
|
|
|
- this.setData({
|
|
|
- "filter.statusActive": this.data.filter.statusActive == item ? "" : item
|
|
|
- })
|
|
|
- },
|
|
|
- /* 筛选日期范围 */
|
|
|
- changeDate(e) {
|
|
|
- const name = e.currentTarget.dataset.name,
|
|
|
- value = e.detail.value;
|
|
|
- this.setData({
|
|
|
- [`filter.${name}`]: value
|
|
|
- })
|
|
|
- },
|
|
|
/* 处理筛选 */
|
|
|
handleFilter({
|
|
|
detail
|
|
|
}) {
|
|
|
detail.condition = this.data.content.where.condition;
|
|
|
- this.setData({
|
|
|
- "content.where": detail
|
|
|
- });
|
|
|
+ this.data.content.where = detail;
|
|
|
this.getList(true);
|
|
|
},
|
|
|
getList(init = false) {
|