|
@@ -157,7 +157,7 @@ |
|
@@ -157,7 +157,7 @@ |
157
|
<el-dialog title="岗位的权限设置"
|
157
|
<el-dialog title="岗位的权限设置"
|
158
|
:visible.sync="PermFormVisible"
|
158
|
:visible.sync="PermFormVisible"
|
159
|
:close-on-click-modal="false"
|
159
|
:close-on-click-modal="false"
|
160
|
- top="5vh"
|
160
|
+ top="5vh" width="75%"
|
161
|
>
|
161
|
>
|
162
|
<el-row>
|
162
|
<el-row>
|
163
|
<el-col :span="4" >
|
163
|
<el-col :span="4" >
|
|
@@ -168,11 +168,11 @@ |
|
@@ -168,11 +168,11 @@ |
168
|
</el-col>
|
168
|
</el-col>
|
169
|
</el-row>
|
169
|
</el-row>
|
170
|
<el-divider></el-divider>
|
170
|
<el-divider></el-divider>
|
171
|
- <el-form :model="permForm" label-width="80px" ref="permForm">
|
171
|
+ <el-form :model="permForm" style="width: 95%" ref="permForm">
|
172
|
<el-tree :data="permissons" :props="treeDefaultProps"
|
172
|
<el-tree :data="permissons" :props="treeDefaultProps"
|
173
|
@check="clickDeal"
|
173
|
@check="clickDeal"
|
174
|
:default-expand-all = "treeExpand"
|
174
|
:default-expand-all = "treeExpand"
|
175
|
- show-checkbox highlight-current check-on-click-node check-strictly
|
175
|
+ show-checkbox highlight-current
|
176
|
node-key="permissionId" ref="tree">
|
176
|
node-key="permissionId" ref="tree">
|
177
|
</el-tree>
|
177
|
</el-tree>
|
178
|
</el-form>
|
178
|
</el-form>
|
|
@@ -224,7 +224,7 @@ |
|
@@ -224,7 +224,7 @@ |
224
|
children: 'children',
|
224
|
children: 'children',
|
225
|
label: 'name',
|
225
|
label: 'name',
|
226
|
},
|
226
|
},
|
227
|
- treeExpand: false,
|
227
|
+ treeExpand: true,
|
228
|
departmentNameList:[],
|
228
|
departmentNameList:[],
|
229
|
roles: [],
|
229
|
roles: [],
|
230
|
permissons: [],
|
230
|
permissons: [],
|
|
@@ -376,6 +376,7 @@ |
|
@@ -376,6 +376,7 @@ |
376
|
NProgress.start();
|
376
|
NProgress.start();
|
377
|
permList(para).then((res) => {
|
377
|
permList(para).then((res) => {
|
378
|
this.permissons = res.data.list;
|
378
|
this.permissons = res.data.list;
|
|
|
379
|
+ console.log(this.permissons);
|
379
|
NProgress.done();
|
380
|
NProgress.done();
|
380
|
}).catch((error) => {
|
381
|
}).catch((error) => {
|
381
|
if(null!= error.response && error.response!==undefined){
|
382
|
if(null!= error.response && error.response!==undefined){
|
|
@@ -623,7 +624,6 @@ |
|
@@ -623,7 +624,6 @@ |
623
|
return;
|
624
|
return;
|
624
|
}
|
625
|
}
|
625
|
},
|
626
|
},
|
626
|
-
|
|
|
627
|
// 统一处理子节点为相同的勾选状态
|
627
|
// 统一处理子节点为相同的勾选状态
|
628
|
uniteChildSame(treeList, isSelected){
|
628
|
uniteChildSame(treeList, isSelected){
|
629
|
this.$refs.tree.setChecked(treeList.permissionId, isSelected);
|
629
|
this.$refs.tree.setChecked(treeList.permissionId, isSelected);
|
|
@@ -684,7 +684,44 @@ |
|
@@ -684,7 +684,44 @@ |
684
|
|
684
|
|
685
|
</style>
|
685
|
</style>
|
686
|
|
686
|
|
|
|
687
|
+
|
687
|
<style lang="scss">
|
688
|
<style lang="scss">
|
|
|
689
|
+ /*//一级节点选择器*!*!*/
|
|
|
690
|
+ .el-tree-node>.el-tree-node__content {
|
|
|
691
|
+ font-weight: 900;
|
|
|
692
|
+ color: #000000;
|
|
|
693
|
+ }
|
|
|
694
|
+ /*//二级节点选择器*!*!*/
|
|
|
695
|
+ .el-tree-node>.el-tree-node__children>.el-tree-node>.el-tree-node__content>.el-tree-node__label {
|
|
|
696
|
+ font-size: 14px;
|
|
|
697
|
+ color: #000000;
|
|
|
698
|
+ font-weight: 500;
|
|
|
699
|
+ width: 800px;
|
|
|
700
|
+ }
|
|
|
701
|
+ .el-tree-node>.el-tree-node__children>.el-tree-node>.el-tree-node__children>.el-tree-node>.el-tree-node__content>.el-tree-node__label {
|
|
|
702
|
+ font-size: 13px;
|
|
|
703
|
+ color: #777777;
|
|
|
704
|
+ width: 100px;
|
|
|
705
|
+ /*flex-direction: column;*/
|
|
|
706
|
+ }
|
|
|
707
|
+ .el-tree-node>.el-tree-node__children>.el-tree-node>.el-tree-node__children>.el-tree-node>.el-tree-node__children>.el-tree-node>.el-tree-node__content>.el-tree-node__label {
|
|
|
708
|
+ font-size: 14px;
|
|
|
709
|
+ color: #777777;
|
|
|
710
|
+ width: 300px;
|
|
|
711
|
+ /*flex-direction: column;*/
|
|
|
712
|
+ }
|
|
|
713
|
+ /* 控制树形节点横向显示 */
|
|
|
714
|
+ .el-tree-node.is-expanded>.el-tree-node__children{
|
|
|
715
|
+ display:flex;
|
|
|
716
|
+ flex-wrap: wrap; /* flex横向布局换行显示 */
|
|
|
717
|
+ }
|
|
|
718
|
+
|
|
|
719
|
+ /* 去除点击收缩图标时:横向显示的数据会先晃动成纵向显示的再收缩的现象*/
|
|
|
720
|
+ .collapse-transition{
|
|
|
721
|
+ transition:none !important;
|
|
|
722
|
+ }
|
|
|
723
|
+
|
|
|
724
|
+
|
688
|
.grid-content {
|
725
|
.grid-content {
|
689
|
height: 36px;
|
726
|
height: 36px;
|
690
|
line-height: 36px;
|
727
|
line-height: 36px;
|