update:
1. 组织机构权限配置界面权限配置更新为 取消子节点不会同时取消父节点
正在显示
1 个修改的文件
包含
12 行增加
和
12 行删除
@@ -178,7 +178,10 @@ | @@ -178,7 +178,10 @@ | ||
178 | <el-tree :data="permissons" :props="treeDefaultProps" | 178 | <el-tree :data="permissons" :props="treeDefaultProps" |
179 | @check="clickDeal" | 179 | @check="clickDeal" |
180 | :default-expand-all = "treeExpand" | 180 | :default-expand-all = "treeExpand" |
181 | - show-checkbox highlight-current | 181 | + show-checkbox |
182 | + highlight-current | ||
183 | + check-on-click-node | ||
184 | + check-strictly | ||
182 | node-key="permissionId" ref="tree"> | 185 | node-key="permissionId" ref="tree"> |
183 | </el-tree> | 186 | </el-tree> |
184 | </el-form> | 187 | </el-form> |
@@ -191,10 +194,10 @@ | @@ -191,10 +194,10 @@ | ||
191 | <el-divider></el-divider> | 194 | <el-divider></el-divider> |
192 | <el-form :model="permForms" style="width: 95%" ref="permForm"> | 195 | <el-form :model="permForms" style="width: 95%" ref="permForm"> |
193 | <el-tree :data="departmentList" :props="treeDefaultPropss" | 196 | <el-tree :data="departmentList" :props="treeDefaultPropss" |
194 | - @check="dataPermTreeClickDeal" | ||
195 | - :default-expand-all = "treeExpands" | ||
196 | - show-checkbox highlight-current | ||
197 | - node-key="data_perm_id" ref="trees"> | 197 | + @check="dataPermTreeClickDeal" |
198 | + :default-expand-all = "treeExpands" | ||
199 | + show-checkbox highlight-current | ||
200 | + node-key="data_perm_id" ref="trees"> | ||
198 | </el-tree> | 201 | </el-tree> |
199 | </el-form> | 202 | </el-form> |
200 | <div align="center" class="dialog-footer" style="margin-bottom: 20px"> | 203 | <div align="center" class="dialog-footer" style="margin-bottom: 20px"> |
@@ -217,12 +220,9 @@ | @@ -217,12 +220,9 @@ | ||
217 | import { getList as getDepartmentList } from '@/api/user/data_perm_api.js' | 220 | import { getList as getDepartmentList } from '@/api/user/data_perm_api.js' |
218 | 221 | ||
219 | // import { getList as getDepartmentList} from '../../api/department'; | 222 | // import { getList as getDepartmentList} from '../../api/department'; |
220 | - import { getList as permList } from '../../api/perm_api'; | ||
221 | - import moment from 'moment' | ||
222 | - import {selectList} from "../../api/consigner/vehicle"; | ||
223 | - import {addTrans} from "../../api/trn"; | 223 | + import { getList as permList } from '../../api/perm_api'; |
224 | export default { | 224 | export default { |
225 | - name:'Role', | 225 | + name: 'Role', |
226 | data() { | 226 | data() { |
227 | return { | 227 | return { |
228 | activeName: 'first', | 228 | activeName: 'first', |
@@ -773,9 +773,9 @@ | @@ -773,9 +773,9 @@ | ||
773 | this.uniteChildSame(currentObj, false) | 773 | this.uniteChildSame(currentObj, false) |
774 | } | 774 | } |
775 | //放开时为当子节点全为未选中时父节点也变为未选中状态 注释后就是父节点不和子节点强制绑定 | 775 | //放开时为当子节点全为未选中时父节点也变为未选中状态 注释后就是父节点不和子节点强制绑定 |
776 | - // this.uniteParentSame(currentObj.id,treeStatus)//当子节点全为未选中时父节点也变为未选中状态 | 776 | + // this.uniteParentSame(currentObj.permissionId,treeStatus)//当子节点全为未选中时父节点也变为未选中状态 |
777 | } | 777 | } |
778 | - // else { | 778 | + // else { |
779 | // this.uniteParentSame(currentObj.id,treeStatus) | 779 | // this.uniteParentSame(currentObj.id,treeStatus) |
780 | // } | 780 | // } |
781 | } | 781 | } |
-
请 注册 或 登录 后发表评论