提交 2fc8bd46 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

疾病&分组展示

上级 4e58f14b
...@@ -98,13 +98,13 @@ ...@@ -98,13 +98,13 @@
min-width="150px"> min-width="150px">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="diseaseId" prop="showDiseaseNames"
label="基础疾病" label="基础疾病"
align="center" align="center"
:show-overflow-tooltip="true"> :show-overflow-tooltip="true">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="labelId" prop="showLabelName"
label="分组" label="分组"
align="center" align="center"
:show-overflow-tooltip="true"> :show-overflow-tooltip="true">
...@@ -269,8 +269,32 @@ ...@@ -269,8 +269,32 @@
this.paginationSet.total = res.data.totalRows this.paginationSet.total = res.data.totalRows
// 设置所请求的当页人员是否成为选中状态 // 设置所请求的当页人员是否成为选中状态
// console.log('传入的已选居民',this.patientIdList) // console.log('传入的已选居民',this.patientIdList)
this.patientsData.forEach((item)=>{ this.patientsData.forEach((item)=>{
item.disableNum = 1; item.disableNum = 1;
let diseaseNames = [];
let groupNames = []
//转化分组
if(item.labelModels) {
item.labelModels.forEach(item => {
groupNames.push(item.label)
});
item.showLabelName = groupNames.join('、');
} else {
item.showLabelName = '-';
}
//转化疾病
if(item.patientTypeModels) {
item.patientTypeModels.forEach(item => {
diseaseNames.push(item.name)
})
item.showDiseaseNames = diseaseNames.join('、');
}else {
item.showDiseaseNames = '-';
}
if(this.patientIdList.length > 0){ if(this.patientIdList.length > 0){
if(this.patientIdList.includes(item.patientId)){// 如果已经选过居民 if(this.patientIdList.includes(item.patientId)){// 如果已经选过居民
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册