|
@ -102,9 +102,11 @@ const open = async (row: RoleApi.RoleVO) => { |
|
|
formData.name = row.name |
|
|
formData.name = row.name |
|
|
formData.code = row.code |
|
|
formData.code = row.code |
|
|
formData.dataScope = row.dataScope |
|
|
formData.dataScope = row.dataScope |
|
|
|
|
|
nextTick(() => { |
|
|
row.dataScopeDeptIds?.forEach((deptId: number) => { |
|
|
row.dataScopeDeptIds?.forEach((deptId: number) => { |
|
|
treeRef.value.setChecked(deptId, true, false) |
|
|
treeRef.value.setChecked(deptId, true, false) |
|
|
}) |
|
|
}) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗 |
|
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗 |
|
|
|
|
|
|
|
|