Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
杨明
/
scrm-micro-config
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 82baf40a
authored
Nov 01, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
角色管理/获取登录账户等级参数
1 parent
0c53a5a8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
src/views/role/create.vue
src/views/role/index.vue
src/views/role/create.vue
View file @
82baf40
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<SelectProduct
ref=
"productFrom"
:roleType=
"true"
:parentId=
"41712"
:accountlevel=
"
2
"
:pId=
"41713"
></SelectProduct>
<SelectProduct
ref=
"productFrom"
:roleType=
"true"
:parentId=
"41712"
:accountlevel=
"
accountLevel
"
:pId=
"41713"
></SelectProduct>
</div>
</div>
<div
style=
"height: 84px"
></div>
<div
style=
"height: 84px"
></div>
<div
class=
"fixed_bottom"
>
<div
class=
"fixed_bottom"
>
...
@@ -72,7 +72,8 @@ export default {
...
@@ -72,7 +72,8 @@ export default {
//商户
//商户
list
:
[],
list
:
[],
// tree数据
// tree数据
treeDataList
:
[]
treeDataList
:
[],
accountLevel
:
1
}
}
},
},
created
()
{
created
()
{
...
@@ -87,6 +88,8 @@ export default {
...
@@ -87,6 +88,8 @@ export default {
this
.
getRoleData
(
id
)
this
.
getRoleData
(
id
)
this
.
editId
=
id
this
.
editId
=
id
}
}
const
{
session
}
=
this
.
$globalState
this
.
accountLevel
=
session
.
accountLevel
},
},
methods
:
{
methods
:
{
// 获取角色信息
// 获取角色信息
...
...
src/views/role/index.vue
View file @
82baf40
...
@@ -105,9 +105,8 @@ export default {
...
@@ -105,9 +105,8 @@ export default {
}
}
},
},
created
()
{
created
()
{
// const { session } = this.$globalState
const
{
session
}
=
this
.
$globalState
// let accountLevel = session.accountLevel
let
accountLevel
=
session
.
accountLevel
let
accountLevel
=
1
if
(
accountLevel
!=
4
)
{
if
(
accountLevel
!=
4
)
{
this
.
tableParams
.
tableColumns
.
splice
(
2
,
0
,
{
label
:
'所属商户名'
,
prop
:
'merchantName'
})
this
.
tableParams
.
tableColumns
.
splice
(
2
,
0
,
{
label
:
'所属商户名'
,
prop
:
'merchantName'
})
this
.
getMerchantName
()
this
.
getMerchantName
()
...
...
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