修改表格滚动条宽度

解决风险历史数据格式不正确无法显示的问题
main
liukewei 9 months ago
parent 72816f87c6
commit 5c06856617

@ -36,12 +36,22 @@ public class EhsRiskServiceImpl extends ServiceImpl<EhsRiskMapper, EhsRisk> impl
EhsRisk ehsRisk = ehsRiskMapper.selectEhsRiskByRiskId(riskId); EhsRisk ehsRisk = ehsRiskMapper.selectEhsRiskByRiskId(riskId);
// 风险点位置 // 风险点位置
String[] riskLocationArr = ehsRisk.getRiskLocation().split(";"); String[] riskLocationArr = ehsRisk.getRiskLocation().split(";");
ehsRisk.setRiskLocation1(riskLocationArr[0]);// 村 (社区) if(riskLocationArr.length==2) {
ehsRisk.setRiskLocation2(riskLocationArr[1]);// 位置 ehsRisk.setRiskLocation1(riskLocationArr[0]);// 村 (社区)
ehsRisk.setRiskLocation2(riskLocationArr[1]);// 位置
}else {
ehsRisk.setRiskLocation1(riskLocationArr[0]);// 村 (社区)
ehsRisk.setRiskLocation2("");// 位置
}
// 涉及群众数量 // 涉及群众数量
String[] peopleNumArr = ehsRisk.getPeopleQuantity().split(";"); String[] peopleNumArr = ehsRisk.getPeopleQuantity().split(";");
ehsRisk.setPeopleQuantity1(peopleNumArr[0]);// 户 if(peopleNumArr.length==2) {
ehsRisk.setPeopleQuantity2(peopleNumArr[1]);// 人 ehsRisk.setPeopleQuantity1(peopleNumArr[0]);// 户
ehsRisk.setPeopleQuantity2(peopleNumArr[1]);// 人
}else {
ehsRisk.setPeopleQuantity1(peopleNumArr[0]);// 户
ehsRisk.setPeopleQuantity2("");// 人
}
return ehsRisk; return ehsRisk;
} }

@ -60,8 +60,8 @@ export default {
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 6px; width: 10px;
height: 6px; height: 12px;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {

@ -227,7 +227,7 @@
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="ehsRiskList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="ehsRiskList" @selection-change="handleSelectionChange" max-height="550" style="width: 100%">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="" align="center" prop="riskId" />--> <!-- <el-table-column label="" align="center" prop="riskId" />-->
<el-table-column label="风险点等级" align="center" prop="riskGrade"> <el-table-column label="风险点等级" align="center" prop="riskGrade">

Loading…
Cancel
Save