You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
196 lines
5.4 KiB
196 lines
5.4 KiB
<template>
|
|
<div>
|
|
<div class="node-wrap" v-if="nodeConfig.key === '1'">
|
|
<div class="node-wrap-box">
|
|
<div class="node-box-after">
|
|
<span>{{ nodeConfig.name }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="branch-wrap">
|
|
<div class="branch-box-wrap">
|
|
<div class="branch-box">
|
|
<div class="col-box" v-for="(item, index) in nodeConfig.children" :key="index">
|
|
<div class="condition-node">
|
|
<div class="condition-node-box">
|
|
<div class="auto-judge">
|
|
<div v-if="item.title === '网格党支部'">
|
|
<span class="wgdzb">
|
|
{{ item.name }}
|
|
</span>
|
|
</div>
|
|
<div v-if="item.title === '楼院党小组'">
|
|
<span class="lydxz">
|
|
{{ item.name }}
|
|
</span>
|
|
</div>
|
|
<div v-if="item.title === '党员中心户'">
|
|
<span class="dyzxh">
|
|
{{ item.name }}
|
|
</span>
|
|
</div>
|
|
<div class="lxjtWrap" v-if="item.title === '联系家庭'">
|
|
<el-popover popper-class="popperClass" placement="right" trigger="click">
|
|
<!-- <el-button>click 激活</el-button> -->
|
|
<div class="popperList">
|
|
<div style="margin-bottom: 13px">家庭类别</div>
|
|
<div class="listMsg">
|
|
<img src="@/assets/images/home/jr.png" alt="" />
|
|
<span>退役军人</span>
|
|
</div>
|
|
<div class="listMsg">
|
|
<img src="@/assets/images/home/cjr.png" alt="" />
|
|
<span>残疾人</span>
|
|
</div>
|
|
<div class="listMsg">
|
|
<img src="@/assets/images/home/kclr.png" alt="" />
|
|
<span>空巢老人</span>
|
|
</div>
|
|
</div>
|
|
<span slot="reference" class="lxjt">
|
|
{{ item.name }}
|
|
<img src="@/assets/images/home/cjr.png" alt="" />
|
|
</span>
|
|
</el-popover>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<nodeWrap v-if="item.children" :nodeConfig.sync="item"></nodeWrap>
|
|
<template v-if="index == 0">
|
|
<div class="top-left-cover-line"></div>
|
|
<!-- <div class="bottom-left-cover-line"></div> -->
|
|
</template>
|
|
<template v-if="index == nodeConfig.children.length - 1">
|
|
<div class="top-right-cover-line"></div>
|
|
<!-- <div class="bottom-right-cover-line"></div> -->
|
|
</template>
|
|
</div>
|
|
</div>
|
|
<!-- <addNode :childNodeP.sync="nodeConfig.childNode"></addNode> -->
|
|
</div>
|
|
</div>
|
|
<nodeWrap v-if="nodeConfig.childNode" :nodeConfig.sync="nodeConfig.childNode"></nodeWrap>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
// import { mapState, mapMutations } from "vuex";
|
|
export default {
|
|
props: ["nodeConfig"],
|
|
data() {
|
|
return {};
|
|
},
|
|
mounted() {},
|
|
computed: {},
|
|
watch: {},
|
|
methods: {
|
|
|
|
},
|
|
};
|
|
</script>
|
|
<style scoped lang="scss">
|
|
.node-box-after {
|
|
span {
|
|
font-size: 14px;
|
|
position: relative;
|
|
color: #fff;
|
|
display: inline-block;
|
|
width: 168px;
|
|
height: 164px;
|
|
&::after {
|
|
position: absolute;
|
|
content: "";
|
|
display: block;
|
|
top: -7px;
|
|
left: -16px;
|
|
width: 168px;
|
|
height: 164px;
|
|
background-image: url(~@/assets/images/home/firstLevel.png);
|
|
background-size: 100%;
|
|
}
|
|
}
|
|
}
|
|
.auto-judge {
|
|
.wgdzb {
|
|
font-size: 14px;
|
|
position: relative;
|
|
color: #fff;
|
|
display: inline-block;
|
|
width: 132px;
|
|
height: 96px;
|
|
&::after {
|
|
position: absolute;
|
|
content: "";
|
|
display: block;
|
|
top: -7px;
|
|
left: 0;
|
|
width: 132px;
|
|
height: 96px;
|
|
background-image: url(~@/assets/images/home/zbbg.png);
|
|
background-size: 100%;
|
|
}
|
|
}
|
|
.lydxz {
|
|
font-size: 14px;
|
|
position: relative;
|
|
color: #fff;
|
|
display: inline-block;
|
|
width: 132px;
|
|
height: 50px;
|
|
&::after {
|
|
position: absolute;
|
|
content: "";
|
|
display: block;
|
|
top: -2px;
|
|
left: -40px;
|
|
width: 216px;
|
|
height: 50px;
|
|
background-image: url(~@/assets/images/home/lydxzTree.png);
|
|
background-size: 100%;
|
|
}
|
|
}
|
|
.dyzxh {
|
|
font-size: 14px;
|
|
position: relative;
|
|
color: #fff;
|
|
display: inline-block;
|
|
height: 118px;
|
|
width: 5px;
|
|
&::after {
|
|
position: absolute;
|
|
content: "";
|
|
display: block;
|
|
top: -19px;
|
|
left: -8px;
|
|
width: 30px;
|
|
height: 118px;
|
|
background-image: url(~@/assets/images/home/dyzxhTree.png);
|
|
background-size: 100%;
|
|
}
|
|
}
|
|
.lxjt {
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
color: #fff;
|
|
display: inline-block;
|
|
height: 118px;
|
|
img {
|
|
position: absolute;
|
|
bottom: 26px;
|
|
left: -2px;
|
|
}
|
|
&::after {
|
|
position: absolute;
|
|
content: "";
|
|
display: block;
|
|
top: -19px;
|
|
left: -8px;
|
|
width: 30px;
|
|
height: 118px;
|
|
background-image: url(~@/assets/images/home/dyzxhTree.png);
|
|
background-size: 100%;
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
|