From b7261fd83861253023711f4d0545bcc58bceebf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Fri, 31 Dec 2021 11:44:34 +0800 Subject: [PATCH] 26262 --- src/apps/AppWalkask/AppWalkask.vue | 1 + src/apps/AppWalkask/selectType.vue | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/apps/AppWalkask/AppWalkask.vue b/src/apps/AppWalkask/AppWalkask.vue index e1f007bf..9a9e1558 100644 --- a/src/apps/AppWalkask/AppWalkask.vue +++ b/src/apps/AppWalkask/AppWalkask.vue @@ -157,6 +157,7 @@ export default { }, change(index) { + this.data = [] this.areaId = this.user.areaId this.keyword = '' this.currentTabs = index diff --git a/src/apps/AppWalkask/selectType.vue b/src/apps/AppWalkask/selectType.vue index bb58c2fa..e984b8b1 100644 --- a/src/apps/AppWalkask/selectType.vue +++ b/src/apps/AppWalkask/selectType.vue @@ -107,7 +107,12 @@ export default { getUser(data) { this.applicationId = data.id - this.$http.post(`/app/appapplicationinfo/list?appId=${data.id}¤t=${this.current}&size=${999}`, { searchParam: this.keyword }).then((res) => { + this.appId = data.id + this.getUsers() + }, + + getUsers() { + this.$http.post(`/app/appapplicationinfo/list?appId=${this.appId}¤t=${this.current}&size=${999}`, { searchParam: this.keyword }).then((res) => { if (res.code == 0) { res.data.records.map((item) => { item.isChecked = false @@ -139,17 +144,18 @@ export default { }, handerSearch(e) { - if (this.showType) { + if (!this.showType) { this.keyword = e this.current = 1 - this.getUser() + // this.getUser() + this.getUsers() } }, handerClear() { this.keyword = '' this.current = 1 - this.getUser() + this.getUsers() }, }, }