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

已选居民分组显示问题

上级 93f0eb4c
...@@ -26,12 +26,20 @@ ...@@ -26,12 +26,20 @@
label="年龄" label="年龄"
align="center" align="center"
min-width="70px"> min-width="70px">
<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="idNo" prop="idNo"
label="身份证号" label="身份证号"
align="center" align="center"
min-width="220"> min-width="220">
<template slot-scope="scope">
<span v-if="scope.row.idNo">{{scope.row.idNo}}</span>
<span v-else>-</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="mobilePhone" prop="mobilePhone"
...@@ -40,10 +48,11 @@ ...@@ -40,10 +48,11 @@
min-width="120"> min-width="120">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="showLabelName2" prop="labelId"
label="分组" label="分组"
align="center" align="center"
min-width="200"> min-width="200"
:show-overflow-tooltip="true">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-row type="flex" justify="end" class="margin-top20"> <el-row type="flex" justify="end" class="margin-top20">
...@@ -93,9 +102,12 @@ ...@@ -93,9 +102,12 @@
item.labelModels.forEach(item => { item.labelModels.forEach(item => {
groupNames.push(item.label) groupNames.push(item.label)
}); });
item.showLabelName2 = groupNames.join('、'); item.labelId = groupNames.join('、');
} else { } else if(item.labelId){
item.showLabelName2 = '-'; item.labelId = item.labelId;
// item.labelId = '-';
}else {
item.labelId = '-';
} }
}); });
} }
......
...@@ -184,6 +184,10 @@ ...@@ -184,6 +184,10 @@
align="center" align="center"
width="180" width="180"
:show-overflow-tooltip="true"> :show-overflow-tooltip="true">
<template slot-scope="scope">
<span v-if="scope.row.fuPlanName">{{scope.row.fuPlanName}}</span>
<span v-else>-</span>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-row type="flex" justify="space-between" align="middle" class="margin-top15"> <el-row type="flex" justify="space-between" align="middle" class="margin-top15">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册