Merge branch 'master' into test
# Conflicts: # src/views/newMap/newMapdraft/mapoperate/section/index.vue # src/views/newMap/newMapdraft/mapoperate/section/logicBlock.vue
This commit is contained in:
commit
74942486fd
@ -443,6 +443,9 @@ export default {
|
||||
background: #409eff;
|
||||
color: #fff;
|
||||
}
|
||||
.card .el-tabs__nav .el-tabs__item{
|
||||
padding: 0 20px!important;
|
||||
}
|
||||
|
||||
.mapEdit .el-tabs__nav-prev {
|
||||
width: 20px;
|
||||
|
@ -485,7 +485,7 @@ export default {
|
||||
if (section.parentCode === model.code) {
|
||||
const copySection = deepAssign({}, section);
|
||||
copySection.logicSectionShow = model.logicSectionShow;
|
||||
// copySection.lengthFact = (Number(model.lengthFact) / model.logicSectionCodeList.length).toFixed(3); // 容易变成正无穷 或者 NaN
|
||||
// copySection.lengthFact = (Number(model.lengthFact) / model.logicSectionCodeList.length).toFixed(3); // 容易处理成无限大
|
||||
copySection.stationCode = model.stationCode; // 给元素 子逻辑区段设置 设备集中站
|
||||
models.push(copySection);
|
||||
} else if (model.code !== section.code && (section.type === '01' || section.type === '03')) {
|
||||
|
@ -81,7 +81,7 @@ export default {
|
||||
this.tableData.forEach((ele, index) => {
|
||||
totalNum += Number(ele.num);
|
||||
});
|
||||
let lineLength = 0; // 默认实际长度为0
|
||||
let lineLength = 0; // NaN 由于 0/0 造成的
|
||||
if (totalNum) {
|
||||
lineLength = lengthFact / totalNum; // 均分逻辑区段偏移量
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user