|
|
|
@ -187,14 +187,14 @@
|
|
|
|
|
<el-form-item label="菜单权限">
|
|
|
|
|
<el-checkbox v-model="menuExpand" @change="handleCheckedTreeExpand($event, 'menu')">展开/折叠</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="menuNodeAll" @change="handleCheckedTreeNodeAll($event, 'menu')">全选/全不选</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.menuCheckStrictly" @change="handleCheckedTreeConnect($event, 'menu')">父子联动</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.menuCheckStrictly == 1" @change="handleCheckedTreeConnect($event, 'menu')">父子联动</el-checkbox>
|
|
|
|
|
<el-tree
|
|
|
|
|
class="tree-border"
|
|
|
|
|
:data="menuOptions"
|
|
|
|
|
show-checkbox
|
|
|
|
|
ref="menu"
|
|
|
|
|
node-key="id"
|
|
|
|
|
:check-strictly="!form.menuCheckStrictly"
|
|
|
|
|
:check-strictly="!form.menuCheckStrictly == 1"
|
|
|
|
|
empty-text="加载中,请稍候"
|
|
|
|
|
:props="defaultProps"
|
|
|
|
|
></el-tree>
|
|
|
|
@ -231,7 +231,7 @@
|
|
|
|
|
<el-form-item label="数据权限" v-show="form.dataScope == 2">
|
|
|
|
|
<el-checkbox v-model="deptExpand" @change="handleCheckedTreeExpand($event, 'dept')">展开/折叠</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="deptNodeAll" @change="handleCheckedTreeNodeAll($event, 'dept')">全选/全不选</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.deptCheckStrictly" @change="handleCheckedTreeConnect($event, 'dept')">父子联动</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.deptCheckStrictly == 1" @change="handleCheckedTreeConnect($event, 'dept')">父子联动</el-checkbox>
|
|
|
|
|
<el-tree
|
|
|
|
|
class="tree-border"
|
|
|
|
|
:data="deptOptions"
|
|
|
|
@ -239,7 +239,7 @@
|
|
|
|
|
default-expand-all
|
|
|
|
|
ref="dept"
|
|
|
|
|
node-key="id"
|
|
|
|
|
:check-strictly="!form.deptCheckStrictly"
|
|
|
|
|
:check-strictly="!form.deptCheckStrictly == 1"
|
|
|
|
|
empty-text="加载中,请稍候"
|
|
|
|
|
:props="defaultProps"
|
|
|
|
|
></el-tree>
|
|
|
|
@ -440,8 +440,8 @@ export default {
|
|
|
|
|
status: "0",
|
|
|
|
|
menuIds: [],
|
|
|
|
|
deptIds: [],
|
|
|
|
|
menuCheckStrictly: true,
|
|
|
|
|
deptCheckStrictly: true,
|
|
|
|
|
menuCheckStrictly: 1,
|
|
|
|
|
deptCheckStrictly: 1,
|
|
|
|
|
remark: undefined
|
|
|
|
|
};
|
|
|
|
|
this.resetForm("form");
|
|
|
|
@ -501,9 +501,9 @@ export default {
|
|
|
|
|
// 树权限(父子联动)
|
|
|
|
|
handleCheckedTreeConnect(value, type) {
|
|
|
|
|
if (type == 'menu') {
|
|
|
|
|
this.form.menuCheckStrictly = value ? true: false;
|
|
|
|
|
this.form.menuCheckStrictly = value ? 1: 0;
|
|
|
|
|
} else if (type == 'dept') {
|
|
|
|
|
this.form.deptCheckStrictly = value ? true: false;
|
|
|
|
|
this.form.deptCheckStrictly = value ? 1: 0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|