居民档案
This commit is contained in:
@@ -1,33 +1,16 @@
|
||||
<template>
|
||||
<div class="AppResidentDocument">
|
||||
<div class="areatop">
|
||||
<!-- <div>区域选择</div>
|
||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="seachObj"></AiAreaPicker>
|
||||
<u-icon name="photo"></u-icon> -->
|
||||
<!-- @select="areaSelect" -->
|
||||
<!-- <u-form label-width="auto">
|
||||
<u-form-item label="区域选择" right-icon="arrow-right" class="areaIds">
|
||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="seachObj" :name.sync="areaName"></AiAreaPicker>
|
||||
</u-form-item>
|
||||
</u-form> -->
|
||||
</div>
|
||||
|
||||
<!-- <div class="line"></div> -->
|
||||
|
||||
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" @change="change" :bar-width="196"></u-tabs>
|
||||
|
||||
<u-tabs class="tabs" :list="tabList" :is-scroll="false" :current="currentTabs" height="96" @change="change" :bar-width="196"></u-tabs>
|
||||
<div class="seachObjs">
|
||||
<u-search v-model="keyword" :clearabled="true" placeholder="姓名/联系方式/身份证后6位" :show-action="false" bg-color="#F5F5F5" search-icon-color="#E2E8F1"
|
||||
color="#666" height="58" @search="handerSearch" @clear="handerClear"></u-search>
|
||||
</div>
|
||||
|
||||
<div class="dataes" v-if="datas.length > 0">
|
||||
<div class="datass" v-for="(item, iindex) in datas" :key="iindex" @click="toDetailCard(item)">
|
||||
<div class="dataes" v-if="datas.length">
|
||||
<div class="datass" v-for="(item, index) in datas" :key="index" @click="toDetailCard(item)">
|
||||
<div class="left">
|
||||
<img :src="item.photo" alt="" v-if="item.photo"/>
|
||||
<img src="./components/img/4.png" alt="" v-else/>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<div class="rightTop">
|
||||
<span class="name">{{ item.name }}</span>
|
||||
@@ -38,14 +21,13 @@
|
||||
</div>
|
||||
<div class="rightBottom">
|
||||
<span>{{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') }}</span>
|
||||
|
||||
<span>{{ item.phone }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <AiEmpty class="emptyWrap" v-else :noPermit="true" description="暂无居民<br/>信息点击按钮新增居民信息,也可在管理系统批量导入"></AiEmpty> -->
|
||||
<div class="empty" v-else>
|
||||
<div class="empty" v-if="!datas.length && isMore">
|
||||
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="">
|
||||
<p>暂无居民信息<br/>点击<span @click="edit('')">新增按钮</span>新增居民信息,也可在管理系统批量导入</p>
|
||||
</div>
|
||||
@@ -80,7 +62,8 @@ export default {
|
||||
],
|
||||
currentTabs: 0,
|
||||
areaId: '',
|
||||
areaName: '',
|
||||
isMore: false,
|
||||
areaName: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -101,25 +84,31 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http
|
||||
.post('/app/appresident/list', null, {
|
||||
this.$loading()
|
||||
this.$http.post('/app/appresident/list', null, {
|
||||
params: {
|
||||
size: this.size,
|
||||
current: this.current,
|
||||
con: this.keyword,
|
||||
residentType: this.currentTabs == 0 ? '0' : '1',
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
}
|
||||
}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
||||
|
||||
this.pages = res.data.pages
|
||||
|
||||
if (this.current === 1 && !res.data.records.length) {
|
||||
this.isMore = true
|
||||
} else {
|
||||
this.isMore = false
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
change(index) {
|
||||
this.isMore = false
|
||||
this.currentTabs = index
|
||||
this.current = 1
|
||||
this.datas = []
|
||||
@@ -176,6 +165,15 @@ export default {
|
||||
<style scoped lang="scss">
|
||||
.AppResidentDocument {
|
||||
height: 100%;
|
||||
padding-top: 80rpx;
|
||||
|
||||
.tabs {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 11;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.areatop {
|
||||
display: flex;
|
||||
@@ -233,7 +231,9 @@ export default {
|
||||
|
||||
.datass {
|
||||
display: flex;
|
||||
padding: 24px 32px;
|
||||
align-items: center;
|
||||
height: 128rpx;
|
||||
padding: 0 0 0 32px;
|
||||
|
||||
.left {
|
||||
img {
|
||||
@@ -245,9 +245,13 @@ export default {
|
||||
|
||||
.right {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
margin-left: 32px;
|
||||
width: 100%;
|
||||
padding-right: 32px;
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
border-bottom: 1rpx solid #E4E5E6;
|
||||
|
||||
.rightTop {
|
||||
font-size: 32px;
|
||||
@@ -271,6 +275,12 @@ export default {
|
||||
margin-top: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
.right {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user