Browse Source

角色数据权限返现问题修复

master
ljlong_2630 7 months ago
parent
commit
b8c465bb06
  1. 6
      src/views/system/role/RoleDataPermissionForm.vue

6
src/views/system/role/RoleDataPermissionForm.vue

@ -102,8 +102,10 @@ const open = async (row: RoleApi.RoleVO) => {
formData.name = row.name
formData.code = row.code
formData.dataScope = row.dataScope
row.dataScopeDeptIds?.forEach((deptId: number) => {
treeRef.value.setChecked(deptId, true, false)
nextTick(() => {
row.dataScopeDeptIds?.forEach((deptId: number) => {
treeRef.value.setChecked(deptId, true, false)
})
})
}
defineExpose({ open }) // open

Loading…
Cancel
Save