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() }, }, }