This commit is contained in:
花有清香月有阴
2021-12-31 11:44:34 +08:00
parent aa9cc87b52
commit b7261fd838
2 changed files with 11 additions and 4 deletions

View File

@@ -157,6 +157,7 @@ export default {
}, },
change(index) { change(index) {
this.data = []
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.keyword = '' this.keyword = ''
this.currentTabs = index this.currentTabs = index

View File

@@ -107,7 +107,12 @@ export default {
getUser(data) { getUser(data) {
this.applicationId = data.id this.applicationId = data.id
this.$http.post(`/app/appapplicationinfo/list?appId=${data.id}&current=${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}&current=${this.current}&size=${999}`, { searchParam: this.keyword }).then((res) => {
if (res.code == 0) { if (res.code == 0) {
res.data.records.map((item) => { res.data.records.map((item) => {
item.isChecked = false item.isChecked = false
@@ -139,17 +144,18 @@ export default {
}, },
handerSearch(e) { handerSearch(e) {
if (this.showType) { if (!this.showType) {
this.keyword = e this.keyword = e
this.current = 1 this.current = 1
this.getUser() // this.getUser()
this.getUsers()
} }
}, },
handerClear() { handerClear() {
this.keyword = '' this.keyword = ''
this.current = 1 this.current = 1
this.getUser() this.getUsers()
}, },
}, },
} }