|
|
@@ -99,24 +99,6 @@ Page({
|
|
|
content.pageNumber = 1
|
|
|
}
|
|
|
if (content.pageNumber > content.pageTotal) return;
|
|
|
- /* if (this.data.principal) {
|
|
|
- _Http.basic({
|
|
|
- "id": 20220930103501,
|
|
|
- content
|
|
|
- }).then(res => {
|
|
|
- console.log("团队成员列表", res)
|
|
|
- if (res.msg != '成功') return wx.showToast({
|
|
|
- title: res.data,
|
|
|
- icon: "none"
|
|
|
- })
|
|
|
- let data = res.data.find(v => v.ismyteam == 1);
|
|
|
- this.setData({
|
|
|
- list: data.team.filter(v => v.userid != data.teamleader[0].userid)
|
|
|
- })
|
|
|
- })
|
|
|
- } else {
|
|
|
-
|
|
|
- } */
|
|
|
_Http.basic({
|
|
|
"id": 20221018122201,
|
|
|
content
|
|
|
@@ -129,6 +111,26 @@ Page({
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ /* 开始搜索 */
|
|
|
+ startSearch({
|
|
|
+ detail
|
|
|
+ }) {
|
|
|
+ let condition = this.data.content ? this.data.content.where.condition : this.data.params.content.where.condition;
|
|
|
+ if (detail == condition) return;
|
|
|
+ this.setData({
|
|
|
+ 'content.where.condition': detail,
|
|
|
+ 'params.content.where.condition': detail
|
|
|
+ });
|
|
|
+ this.getList(true);
|
|
|
+ },
|
|
|
+ /* 取消搜索 */
|
|
|
+ onClear() {
|
|
|
+ this.setData({
|
|
|
+ 'content.where.condition': "",
|
|
|
+ 'params.content.where.condition': ""
|
|
|
+ });
|
|
|
+ this.getList(true);
|
|
|
+ },
|
|
|
onReachBottom() {
|
|
|
this.getList();
|
|
|
}
|