commit
2b45cc0b3c
|
@ -259,10 +259,6 @@ Vue.prototype.commonEndColumns = function (param = {}) {
|
||||||
create_datetime: {
|
create_datetime: {
|
||||||
showForm: (param.create_datetime && param.create_datetime.showForm) !== undefined ? param.create_datetime.showForm : false,
|
showForm: (param.create_datetime && param.create_datetime.showForm) !== undefined ? param.create_datetime.showForm : false,
|
||||||
showTable: (param.create_datetime && param.create_datetime.showTable) !== undefined ? param.create_datetime.showTable : true
|
showTable: (param.create_datetime && param.create_datetime.showTable) !== undefined ? param.create_datetime.showTable : true
|
||||||
},
|
|
||||||
is_deleted: {
|
|
||||||
showForm: (param.is_deleted && param.is_deleted.showForm) !== undefined ? param.is_deleted.showForm : false,
|
|
||||||
showTable: (param.is_deleted && param.is_deleted.showTable) !== undefined ? param.is_deleted.showTable : false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
|
@ -381,23 +377,6 @@ Vue.prototype.commonEndColumns = function (param = {}) {
|
||||||
form: {
|
form: {
|
||||||
disabled: !showData.create_datetime.showForm
|
disabled: !showData.create_datetime.showForm
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '是否软删除',
|
|
||||||
key: 'is_deleted',
|
|
||||||
width: 160,
|
|
||||||
search: {
|
|
||||||
disabled: !showData.is_deleted.showForm
|
|
||||||
},
|
|
||||||
show: showData.is_deleted.showTable,
|
|
||||||
type: 'radio',
|
|
||||||
dict: {
|
|
||||||
data: [{ label: '是', value: true }, { label: '否', value: false }]
|
|
||||||
},
|
|
||||||
form: {
|
|
||||||
disabled: !showData.is_deleted.showForm
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
:default-checked-keys="menuCheckedKeys"
|
:default-checked-keys="menuCheckedKeys"
|
||||||
:check-on-click-node="false"
|
:check-on-click-node="false"
|
||||||
empty-text="请先选择角色"
|
empty-text="请先选择角色"
|
||||||
:check-strictly="false"
|
:check-strictly="menuCheckStrictly"
|
||||||
@check-change="handleCheckClick"
|
@check-change="handleCheckClick"
|
||||||
>
|
>
|
||||||
<span class="custom-tree-node" slot-scope="{ node, data }">
|
<span class="custom-tree-node" slot-scope="{ node, data }">
|
||||||
|
@ -142,6 +142,7 @@ export default {
|
||||||
menuOptions: [],
|
menuOptions: [],
|
||||||
permissionData: [],
|
permissionData: [],
|
||||||
menuCheckedKeys: [], // 菜单默认选中的节点
|
menuCheckedKeys: [], // 菜单默认选中的节点
|
||||||
|
menuCheckStrictly: false,
|
||||||
deptOptions: [],
|
deptOptions: [],
|
||||||
deptCheckedKeys: [],
|
deptCheckedKeys: [],
|
||||||
dataScopeOptions: [
|
dataScopeOptions: [
|
||||||
|
@ -199,6 +200,7 @@ export default {
|
||||||
this.getDeptData()
|
this.getDeptData()
|
||||||
this.getMenuData(this.roleObj)
|
this.getMenuData(this.roleObj)
|
||||||
this.menuCheckedKeys = this.roleObj.menu // 加载已勾选的菜单
|
this.menuCheckedKeys = this.roleObj.menu // 加载已勾选的菜单
|
||||||
|
this.menuCheckStrictly = true // 父子不相互关联
|
||||||
this.deptCheckedKeys = this.roleObj.dept
|
this.deptCheckedKeys = this.roleObj.dept
|
||||||
},
|
},
|
||||||
addRequest (row) {
|
addRequest (row) {
|
||||||
|
@ -292,6 +294,7 @@ export default {
|
||||||
children,
|
children,
|
||||||
parent
|
parent
|
||||||
} = data
|
} = data
|
||||||
|
this.menuCheckStrictly = false
|
||||||
for (const item of menuPermission) {
|
for (const item of menuPermission) {
|
||||||
this.$set(item, 'checked', checked)
|
this.$set(item, 'checked', checked)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue