提交 d8b61c6a 编写于 作者: yi.li's avatar yi.li

我的居民列表,资料不全列表的空数据做处理

上级 a8b7b7d3
......@@ -80,7 +80,7 @@
</div>
</el-tab-pane>
<el-tab-pane label="健康记录" name="second">
<div class="health-record-wrap">
<div class="health-record-wrap" v-show="recordList.length">
<div class="health-record-list"
v-show="recordList.length"
v-infinite-scroll="loadMore"
......@@ -114,7 +114,7 @@
</div>
</div>
<div class="no-record-content" v-if="!recordList.length">
<div>
<div class="no-record-info">
<img src="../../../assets/image/no-content1.png"/>
<p>暂无随访记录或您没有权限访问</p>
</div>
......@@ -535,6 +535,12 @@
}
text-align: center;
padding: 50px 0 60px;
.no-record-info{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -60%);
}
img{
width: 120px;
}
......
......@@ -78,7 +78,8 @@
align="center">
<template slot-scope="scope">
<span v-if="scope.row.sex==1"></span>
<span v-if="scope.row.sex==2"></span>
<span v-else-if="scope.row.sex==2"></span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column
......@@ -86,6 +87,10 @@
label="年龄"
width="80"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.age || (scope.row.age==0)">{{scope.row.age}}</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column
prop="showLabelName"
......
......@@ -26,7 +26,8 @@
width="100"
lign="center">
<template slot-scope="scope">
<img class="user-photo" :src="scope.row.headimgurl"/>
<img v-if="scope.row.headimgurl" class="user-photo" :src="scope.row.headimgurl"/>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column
......@@ -34,16 +35,28 @@
width="200"
label="微信昵称"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.wechatUsername">{{scope.row.wechatUsername}}</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column
prop="country"
label="地区"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.country">{{scope.row.country}}</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column
prop="wechatCreatedTime"
label="添加时间"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.wechatCreatedTime">{{scope.row.wechatCreatedTime}}</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column
label="操作"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册