Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f9075db6
authored
Jun 29, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
员工查看功能权限样式优化
1 parent
1fd0cce2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
src/views/employee/detail/config.vue
src/views/employee/detail/config.vue
View file @
f9075db
...
...
@@ -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
:
#f
4f6fc
;
background-color
:
#f
afafa
;
height
:
40px
;
width
:
180px
;
font-size
:
14px
;
line-height
:
40px
;
text-align
:
center
;
border-bottom
:
none
;
border-radius
:
2px
;
}
.acitveSubTitle
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment