Commit 82baf40a by 杨北旺

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

1 parent 0c53a5a8
......@@ -29,7 +29,7 @@
</div>
</el-form-item>
</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 style="height: 84px"></div>
<div class="fixed_bottom">
......@@ -72,7 +72,8 @@ export default {
//商户
list: [],
// tree数据
treeDataList: []
treeDataList: [],
accountLevel:1
}
},
created() {
......@@ -87,6 +88,8 @@ export default {
this.getRoleData(id)
this.editId = id
}
const { session } = this.$globalState
this.accountLevel = session.accountLevel
},
methods: {
// 获取角色信息
......
......@@ -105,9 +105,8 @@ export default {
}
},
created() {
// const { session } = this.$globalState
// let accountLevel = session.accountLevel
let accountLevel = 1
const { session } = this.$globalState
let accountLevel = session.accountLevel
if (accountLevel != 4) {
this.tableParams.tableColumns.splice(2, 0, { label: '所属商户名', prop: 'merchantName' })
this.getMerchantName()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!