|
|
|
@ -2,7 +2,7 @@ |
|
|
|
<div class="wrap"> |
|
|
|
<!-- v-on:wheel="zoomSize" :style="'transform: scale(' + nowVal / 100 + ');'" --> |
|
|
|
<div class="content"> |
|
|
|
<div v-for="(item, index) in levelArr" :key="item" :class="[item === 'unit_chief' ? 'lastLevel' : '', item === 'public_welfare_post' ? 'lastLevel1' : '', `flowLevel-${index + 1}`]" :style="{ height: item === 'building_chief' ? '150px' : '', lineHeight: item === 'building_chief' ? '150px' : '' }"> |
|
|
|
<div v-for="(item, index) in levelArr" :key="item" :class="[item === 'unit_chief' ? 'lastLevel' : '', item === 'public_welfare_post' ? 'lastLevel1' : '', `flowLevel-${index + 1}`]" :style="{ height: item === 'building_chief' ? '180px' : '', lineHeight: item === 'building_chief' ? '180px' : '' }"> |
|
|
|
<div :class="[item === 'building_chief' ? 'otherTop' : '']">{{ getTitleNameMapFun(item) }}</div> |
|
|
|
</div> |
|
|
|
<el-row> |
|
|
|
@ -35,9 +35,9 @@ export default { |
|
|
|
watch: { |
|
|
|
"$store.state.chooseArea.chooseName"(n, v) { |
|
|
|
if (n.orgId) { |
|
|
|
this.levelArr = []; |
|
|
|
this.nodeConfig = {}; |
|
|
|
this.getTreeData(); |
|
|
|
// this.levelArr = []; |
|
|
|
// this.nodeConfig = {}; |
|
|
|
// this.getTreeData(); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -83,7 +83,7 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
const myArray = [...new Set(this.levelArr)]; |
|
|
|
this.treeHeight = myArray.length * 180 + 164; |
|
|
|
this.treeHeight = myArray.length * 180 + 220; |
|
|
|
this.levelArr = this.getLevelArrNum(myArray); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -185,12 +185,12 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
.lastLevel { |
|
|
|
height: 160px !important; |
|
|
|
margin-top: -45px !important; |
|
|
|
height: 180px !important; |
|
|
|
// margin-top: -45px !important; |
|
|
|
} |
|
|
|
.lastLevel1 { |
|
|
|
height: 145px !important; |
|
|
|
margin-top: -37px !important; |
|
|
|
height: 180px !important; |
|
|
|
// margin-top: -37px !important; |
|
|
|
} |
|
|
|
|
|
|
|
.flowLevel-1 { |
|
|
|
@ -243,14 +243,14 @@ export default { |
|
|
|
|
|
|
|
.flowLevel-3 { |
|
|
|
top: 379px; |
|
|
|
line-height: 185px; |
|
|
|
line-height: 180px; |
|
|
|
|
|
|
|
div { |
|
|
|
padding-left: 80px; |
|
|
|
|
|
|
|
&::after { |
|
|
|
@include flowLevelAfter; |
|
|
|
top: 62px; |
|
|
|
top: 60px; |
|
|
|
left: 15px; |
|
|
|
width: 180px; |
|
|
|
height: 60px; |
|
|
|
@ -261,14 +261,14 @@ export default { |
|
|
|
|
|
|
|
.flowLevel-4 { |
|
|
|
top: 577px; |
|
|
|
line-height: 175px; |
|
|
|
line-height: 180px; |
|
|
|
|
|
|
|
div { |
|
|
|
padding-left: 80px; |
|
|
|
|
|
|
|
&::after { |
|
|
|
@include flowLevelAfter; |
|
|
|
top: 58px; |
|
|
|
top: 60px; |
|
|
|
left: 15px; |
|
|
|
width: 180px; |
|
|
|
height: 60px; |
|
|
|
@ -287,7 +287,7 @@ export default { |
|
|
|
|
|
|
|
&::after { |
|
|
|
@include flowLevelAfter; |
|
|
|
top: 35px; |
|
|
|
top: 60px; |
|
|
|
left: 15px; |
|
|
|
width: 180px; |
|
|
|
height: 60px; |
|
|
|
@ -298,7 +298,7 @@ export default { |
|
|
|
|
|
|
|
.flowLevel-6 { |
|
|
|
top: 974px; |
|
|
|
line-height: 171px; |
|
|
|
line-height: 180px; |
|
|
|
height: 180px !important; |
|
|
|
|
|
|
|
div { |
|
|
|
@ -306,7 +306,7 @@ export default { |
|
|
|
|
|
|
|
&::after { |
|
|
|
@include flowLevelAfter; |
|
|
|
top: 55px; |
|
|
|
top: 60px; |
|
|
|
left: 15px; |
|
|
|
width: 180px; |
|
|
|
height: 60px; |
|
|
|
@ -317,15 +317,15 @@ export default { |
|
|
|
|
|
|
|
.flowLevel-7 { |
|
|
|
top: 1172px; |
|
|
|
line-height: 150px; |
|
|
|
height: 150px !important; |
|
|
|
line-height: 180px; |
|
|
|
height: 180px !important; |
|
|
|
|
|
|
|
div { |
|
|
|
padding-left: 80px; |
|
|
|
|
|
|
|
&::after { |
|
|
|
@include flowLevelAfter; |
|
|
|
top: 46px; |
|
|
|
top: 60px; |
|
|
|
left: 15px; |
|
|
|
width: 180px; |
|
|
|
height: 60px; |
|
|
|
@ -336,22 +336,22 @@ export default { |
|
|
|
|
|
|
|
.otherTop { |
|
|
|
&::after { |
|
|
|
top: 43px !important; |
|
|
|
top: 60px !important; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.flowLevel-8 { |
|
|
|
@include flowLevwlCommon; |
|
|
|
top: 1387px; |
|
|
|
top: 1371px; |
|
|
|
height: 90px; |
|
|
|
line-height: 90px; |
|
|
|
line-height: 180px; |
|
|
|
|
|
|
|
div { |
|
|
|
padding-left: 80px; |
|
|
|
|
|
|
|
&::after { |
|
|
|
@include flowLevelAfter; |
|
|
|
top: 14px; |
|
|
|
top: 60px; |
|
|
|
left: 15px; |
|
|
|
width: 180px; |
|
|
|
height: 60px; |
|
|
|
@ -362,16 +362,16 @@ export default { |
|
|
|
|
|
|
|
.flowLevel-9 { |
|
|
|
@include flowLevwlCommon; |
|
|
|
top: 1558px; |
|
|
|
top: 1568px; |
|
|
|
height: 135px; |
|
|
|
line-height: 135px; |
|
|
|
line-height: 180px; |
|
|
|
|
|
|
|
div { |
|
|
|
padding-left: 80px; |
|
|
|
|
|
|
|
&::after { |
|
|
|
@include flowLevelAfter; |
|
|
|
top: 35px; |
|
|
|
top: 60px; |
|
|
|
left: 15px; |
|
|
|
width: 180px; |
|
|
|
height: 60px; |
|
|
|
@ -384,14 +384,14 @@ export default { |
|
|
|
@include flowLevwlCommon; |
|
|
|
top: 1738px; |
|
|
|
height: 135px; |
|
|
|
line-height: 135px; |
|
|
|
line-height: 180px; |
|
|
|
|
|
|
|
div { |
|
|
|
padding-left: 80px; |
|
|
|
|
|
|
|
&::after { |
|
|
|
@include flowLevelAfter; |
|
|
|
top: 35px; |
|
|
|
top: 60px; |
|
|
|
left: 15px; |
|
|
|
width: 180px; |
|
|
|
height: 60px; |
|
|
|
|