卡口登记

This commit is contained in:
liuye
2022-09-23 17:55:35 +08:00
parent 16940be175
commit 6ff0095553
15 changed files with 1429 additions and 448 deletions

View File

@@ -5,8 +5,8 @@
inactive-color="#A1C1E8" :bar-style="barStyle" :active-item-style="activeStyle" active-color="#ffffff " @change="change">
</u-tabs>
<div class="top-search">
<u-search v-model="keyword" :clearabled="true" placeholder="请输入名称、类型或电话" :show-action="false" bg-color="#F5F5F5"
search-icon-color="#999" color="#999" height="58" @search="handerSearch" @clear="handerClear">
<u-search v-model="keyword" :clearabled="true" placeholder="请输入名" :show-action="false" bg-color="#F5F5F5"
search-icon-color="#999" color="#999" height="58" @search="getListInit" @clear="getListInit">
</u-search>
</div>
<div class="top-select">
@@ -54,6 +54,7 @@ export default {
appName: '社区管理',
data() {
return {
current: 1,
keyword: '',
currentTabs: 0,
tabList: [
@@ -90,17 +91,20 @@ export default {
document.title = '社区管理'
},
methods: {
getListInit() {
this.current = 1
this.data = []
this.getList()
},
getList() {
this.$http.post('/app/appepidemicreportmember/list', null, {
params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword },
this.$http.post('/app/appepidemicpreventioncommunitymanagement/list', null, {
params: { size: 10, current: this.current, status: this.currentTabs, areaId: this.areaId, name: this.keyword },
}).then((res) => {
if (res.code == 0) {
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
}
})
},
toAdd() {
uni.navigateTo({url: './Add'})
},
@@ -110,19 +114,7 @@ export default {
},
areaSelect(e) {
this.areaId = e
this.getList()
},
handerSearch(e) {
this.keyword = e
this.current = 1
this.getList()
},
handerClear() {
this.keyword = ''
this.current = 1
this.getList()
this.getListInit()
},
},
onReachBottom() {