提交 6c2a1552 编写于 作者: hujun's avatar hujun

Merge branch 'dev-patients-20190513' into 'release-0612'

Dev patients 20190513



See merge request !30
......@@ -242,6 +242,23 @@
// this.patientIdList = data.data.patientIdList;
let list = data.data.patientListsByLabelModels;
if(list && list.length > 0){
list = list.map(item => {
if(!item.nickname){
item.nickname = '-';
};
if(!item.sexStr){
item.sexStr = '-';
};
if(item.patientAge || item.patientAge == 0){
// 直接显示
}else{
item.patientAge = '-';
};
if(!item.patientTypeGroup){
item.patientTypeGroup = '-';
}
return item;
})
this.searchData.tableData = list;
}else{
this.searchData.tableData = [];
......
......@@ -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"
......
......@@ -253,8 +253,27 @@
let data = res.data.importRecordsModelList;
if(data && data.length > 0){
data = data.map(item => {
if(!item.fileName){
item.fileName = '-';
}
if(!item.uploadTime) {
item.uploadTime = '-';
}
if(item.insertCount || item.insertCount == 0) {
// 直接显示
}else{
item.insertCount = '-';
}
if(item.updateCount || item.updateCount == 0) {
// 直接显示
}else{
item.updateCount = '-';
}
if(!item.status) {
item.status = '-';
}
if(!item.reason) {
item.reason = '-'
item.reason = '-';
}
return item;
});
......
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册