|
@@ -104,8 +104,7 @@ import {
|
|
|
editSubAccount,
|
|
|
getAccountList,
|
|
|
getMenuList,
|
|
|
- getMenuRoleIds,
|
|
|
- setMenuRole
|
|
|
+ getMenuRoleIds
|
|
|
} from '@/api/setting'
|
|
|
|
|
|
export default {
|
|
@@ -155,7 +154,8 @@ export default {
|
|
|
computed: {
|
|
|
...mapGetters([
|
|
|
'userid',
|
|
|
- 'name'
|
|
|
+ 'name',
|
|
|
+ 'customerId'
|
|
|
])
|
|
|
},
|
|
|
created() {
|
|
@@ -177,7 +177,7 @@ export default {
|
|
|
const params = {
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
- customerId: ''
|
|
|
+ customerId: this.customerId
|
|
|
}
|
|
|
|
|
|
getAccountList(params).then(res => {
|
|
@@ -276,16 +276,16 @@ export default {
|
|
|
|
|
|
// 设置权限 - 提交数据
|
|
|
submitRoleForm(type) {
|
|
|
- if (type === 'role') {
|
|
|
- const params = {
|
|
|
- adminModuleIds: this.$refs.tree.getCheckedKeys().join(','),
|
|
|
- adminRoleId: this.editId
|
|
|
- }
|
|
|
- setMenuRole(params).then(res => {
|
|
|
- this.getList()
|
|
|
- this.$successMsg()
|
|
|
- })
|
|
|
- }
|
|
|
+ // if (type === 'role') {
|
|
|
+ // const params = {
|
|
|
+ // adminModuleIds: this.$refs.tree.getCheckedKeys().join(','),
|
|
|
+ // adminRoleId: this.editId
|
|
|
+ // }
|
|
|
+ // setMenuRole(params).then(res => {
|
|
|
+ // this.getList()
|
|
|
+ // this.$successMsg()
|
|
|
+ // })
|
|
|
+ // }
|
|
|
this.roleFormVisible = false
|
|
|
},
|
|
|
|