|
@@ -9,7 +9,7 @@
|
|
|
</div>
|
|
|
<div class="permissionList_tree_body">
|
|
|
<el-scrollbar style="height: 100%" :horizontal="false">
|
|
|
- <el-tree :data="data" show-checkbox :node-key="nodeKey" default-expand-all :expand-on-click-node="false">
|
|
|
+ <el-tree :data="data" show-checkbox node-key="tid" default-expand-all :expand-on-click-node="false">
|
|
|
<template slot-scope="{node,data}">
|
|
|
<div class="custom-tree-node flex">
|
|
|
<div class="custom-tree-node-list">{{data.pagename}}</div>
|
|
@@ -29,7 +29,7 @@
|
|
|
<div class="permissionList_dialog">
|
|
|
<!--高级查询-->
|
|
|
<PublicPageDialog dialog-title="行权限" dialogSize="600px" :dialog-drawer="advancedDrawer" @handleClose="advancedDrawer = false" @handleSubmit="advancedTable('advancedDialogForm')">
|
|
|
- <AdvancedQuery ref="advancedDialogForm" :ad-list="false" @getAdvancedQueryData="getAdvancedQueryData" />
|
|
|
+ <AdvancedQuery ref="advancedDialogForm" :ad-list="false" :ad-dep="adDep" @getAdvancedQueryData="getAdvancedQueryData" />
|
|
|
</PublicPageDialog>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -54,6 +54,7 @@ export default {
|
|
|
},
|
|
|
defaultKeys: [],
|
|
|
nodeKey: 'pageconfigurationid',
|
|
|
+ adDep: 1
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -61,14 +62,14 @@ export default {
|
|
|
},
|
|
|
mounted () {
|
|
|
this.data = []
|
|
|
- setTimeout(() => {
|
|
|
- this.authsTree()
|
|
|
- }, 100);
|
|
|
+ this.authsTree()
|
|
|
},
|
|
|
methods: {
|
|
|
//用户权限树
|
|
|
authsTree () {
|
|
|
- const treeMenu = listToTree(this.authArrs, 'superiorid', 'pageconfigurationid')
|
|
|
+ const ndata = _.cloneDeep(this.authArrs)
|
|
|
+ ndata.map((item, index) => { item.tid = index })
|
|
|
+ const treeMenu = listToTree(ndata, 'superiorid', 'pageconfigurationid')
|
|
|
this.data = treeMenu
|
|
|
},
|
|
|
//高级查询-提交
|
|
@@ -80,6 +81,8 @@ export default {
|
|
|
},
|
|
|
details (node, data) {
|
|
|
const ndata = _.cloneDeep(data)
|
|
|
+ this.adDep = Math.random()
|
|
|
+ sessionStorage.setItem('tableColumns', JSON.stringify(ndata.children))
|
|
|
this.$store.dispatch('auth/changeAuthMsg', ndata.children)
|
|
|
this.advancedDrawer = true
|
|
|
},
|