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:
zyy 2020-04-10 16:43:40 +08:00
commit 74942486fd
3 changed files with 40 additions and 37 deletions

View File

@ -443,6 +443,9 @@ export default {
background: #409eff; background: #409eff;
color: #fff; color: #fff;
} }
.card .el-tabs__nav .el-tabs__item{
padding: 0 20px!important;
}
.mapEdit .el-tabs__nav-prev { .mapEdit .el-tabs__nav-prev {
width: 20px; width: 20px;

View File

@ -485,7 +485,7 @@ export default {
if (section.parentCode === model.code) { if (section.parentCode === model.code) {
const copySection = deepAssign({}, section); const copySection = deepAssign({}, section);
copySection.logicSectionShow = model.logicSectionShow; 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; // copySection.stationCode = model.stationCode; //
models.push(copySection); models.push(copySection);
} else if (model.code !== section.code && (section.type === '01' || section.type === '03')) { } else if (model.code !== section.code && (section.type === '01' || section.type === '03')) {

View File

@ -81,7 +81,7 @@ export default {
this.tableData.forEach((ele, index) => { this.tableData.forEach((ele, index) => {
totalNum += Number(ele.num); totalNum += Number(ele.num);
}); });
let lineLength = 0; // 0 let lineLength = 0; // NaN 0/0
if (totalNum) { if (totalNum) {
lineLength = lengthFact / totalNum; // lineLength = lengthFact / totalNum; //
} }