|
@@ -197,9 +197,7 @@ export default {
|
|
|
methods: {
|
|
|
//获取tree数据
|
|
|
async setTreeData () {
|
|
|
- const { code, returnData } = await this.getQueryList(SERVICE_ID.sysAuthId, [{
|
|
|
- user_id: getToken('userid')
|
|
|
- }])
|
|
|
+ const { code, returnData } = await this.getQueryList(SERVICE_ID.sysAuthId)
|
|
|
if (code == 0) {
|
|
|
const treeMenu = listToTree(returnData, 'up_auth_id', 'auth_id')
|
|
|
this.treeData[0].children = treeMenu
|
|
@@ -272,6 +270,7 @@ export default {
|
|
|
},
|
|
|
//获取角色已有权限
|
|
|
async getRoleQuth (item) {
|
|
|
+ console.log(item)
|
|
|
this.$refs.tree.setCheckedKeys([])
|
|
|
const newItem = _.cloneDeep(item)
|
|
|
const newObj = {}
|