This commit is contained in:
liuye
2022-02-11 10:05:02 +08:00
parent c9d6f266dc
commit d0e517cfcc
9 changed files with 57 additions and 27 deletions

View File

@@ -115,6 +115,11 @@ export default {
},
mounted() {},
methods: {
getListInit() {
this.data = []
this.current = 1
this.getList()
},
getList() {
this.$http
.post('/app/appvisitvondolence/list', null, {
@@ -140,17 +145,14 @@ export default {
areaSelect(e) {
this.data = []
this.areaId = e
this.current = 1
this.getList()
this.getListInit()
},
change(index) {
this.data = []
this.areaId = this.user.areaId
this.keyword = ''
this.currentTabs = index
this.current = 1
this.getList()
this.getListInit()
},
goDetail(item, hint) {
@@ -183,21 +185,19 @@ export default {
this.$http.post(`/app/appvisitvondolence/delete?ids=${this.deletId}`).then((res) => {
if (res.code == 0) {
this.$u.toast('删除成功!')
this.getList()
this.getListInit()
}
})
},
handerSearch(e) {
this.keyword = e
this.current = 1
this.getList()
this.getListInit()
},
handerClear() {
this.keyword = ''
this.current = 1
this.getList()
this.getListInit()
},
previewImage(images, img) {