Commit f9075db6 by 匡雅琴

员工查看功能权限样式优化

1 parent 1fd0cce2
......@@ -5,19 +5,20 @@
<div class="MsgWrap powerlimt">
<span class="content-title">产品功能权限</span>
<div class="powerTreeWrap">
<div class="mainTitleWrap">
<div class="powerTreeWrap role-border">
<div class="mainTitleWrap role-border-b">
<div class="mainTitle" :class="{ activeMainTitle: currentIndex == index }" v-for="(item, index) in powerDataArray" :key="index" @click="powerTabClick(index)">
{{ item.accounttypeName || 'null' }}
<div class="tab_line" v-show="currentIndex == index"></div>
</div>
</div>
<div class="content">
<div class="subTitleWrap" v-if="products.length > 0">
<div class="subTitle" :class="{ acitveSubTitle: subCurrentIndex == sindex }" v-for="(ele, sindex) in products" :key="sindex" @click="powerSubTabClick(sindex)">
<div class="subTitle role-border" :class="{ acitveSubTitle: subCurrentIndex == sindex }" v-for="(ele, sindex) in products" :key="sindex" @click="powerSubTabClick(sindex)">
{{ ele.productName }}
</div>
</div>
<div class="contentTree">
<div class="contentTree role-border">
<template v-if="merchantProTreeResponses.length > 0">
<el-tree default-expand-all :data="merchantProTreeResponses" :render-content="renderContent" :props="defaultProps"></el-tree>
</template>
......@@ -141,6 +142,16 @@ export default {
}
</script>
<style lang="scss">
.tab_line {
width: 100%;
height: 2px;
background: #5850ff;
border-radius: 4px;
position: absolute;
left: 50%;
top: 48px;
transform: translate(-50%, 0);
}
.config-employee {
margin-bottom: 64px;
}
......@@ -163,8 +174,6 @@ export default {
.powerlimt {
padding-bottom: 30px;
.powerTreeWrap {
background-color: #f4f6fc;
// margin: 0 20px;
border-radius: 4px;
min-height: 300px;
padding-top: 2px;
......@@ -176,12 +185,12 @@ export default {
flex-wrap: wrap;
.mainTitle {
background-color: #f4f6fc;
height: 32px;
width: 180px;
line-height: 32px;
height: 48px;
line-height: 48px;
text-align: center;
border-radius: 2px;
position: relative;
margin: 0 20px;
cursor: pointer;
}
.activeMainTitle {
......@@ -197,14 +206,14 @@ export default {
// height: 40px;
display: flex;
flex-wrap: wrap;
background-color: #f4f6fc;
.subTitle {
background-color: #f4f6fc;
background-color: #fafafa;
height: 40px;
width: 180px;
font-size: 14px;
line-height: 40px;
text-align: center;
border-bottom: none;
border-radius: 2px;
}
.acitveSubTitle {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!