Commit 82baf40a by 杨北旺

角色管理/获取登录账户等级参数

1 parent 0c53a5a8
...@@ -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: {
// 获取角色信息 // 获取角色信息
......
...@@ -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()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!