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