|
|
@@ -5,6 +5,9 @@ Page({
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
"pageTotal": 1,
|
|
|
+ "where": {
|
|
|
+ "condition": ""
|
|
|
+ }
|
|
|
},
|
|
|
result: [],
|
|
|
list: []
|
|
|
@@ -44,7 +47,8 @@ Page({
|
|
|
let {
|
|
|
pageNumber,
|
|
|
pageTotal,
|
|
|
- pageSize
|
|
|
+ pageSize,
|
|
|
+ where
|
|
|
} = this.data.paging;
|
|
|
if (init) {
|
|
|
pageNumber = 1;
|
|
|
@@ -60,7 +64,8 @@ Page({
|
|
|
"typename": this.data.item.optionNmae,
|
|
|
"parameter": {
|
|
|
"siteid": wx.getStorageSync('siteP').siteid
|
|
|
- }
|
|
|
+ },
|
|
|
+ where
|
|
|
}
|
|
|
}).then(res => {
|
|
|
console.log("可选项查询", res)
|
|
|
@@ -95,4 +100,15 @@ Page({
|
|
|
onReachBottom() {
|
|
|
this.getList();
|
|
|
},
|
|
|
+ onSearch({
|
|
|
+ detail
|
|
|
+ }) {
|
|
|
+ this.data.paging.where.condition = detail;
|
|
|
+ this.getList(true);
|
|
|
+ },
|
|
|
+ onClear() {
|
|
|
+ this.onSearch({
|
|
|
+ detail: ""
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|