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

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

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