提交 d9a387f1 编写于 作者: chengxiang.li's avatar chengxiang.li

update

上级 c0b9c6ec
...@@ -242,6 +242,23 @@ ...@@ -242,6 +242,23 @@
// this.patientIdList = data.data.patientIdList; // this.patientIdList = data.data.patientIdList;
let list = data.data.patientListsByLabelModels; let list = data.data.patientListsByLabelModels;
if(list && list.length > 0){ 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; this.searchData.tableData = list;
}else{ }else{
this.searchData.tableData = []; this.searchData.tableData = [];
......
...@@ -253,8 +253,27 @@ ...@@ -253,8 +253,27 @@
let data = res.data.importRecordsModelList; let data = res.data.importRecordsModelList;
if(data && data.length > 0){ if(data && data.length > 0){
data = data.map(item => { 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) { if(!item.reason) {
item.reason = '-' item.reason = '-';
} }
return item; return item;
}); });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册