Archived
forked from admin/userbase
This commit is contained in:
@@ -257,8 +257,9 @@ function showAddUser() {
|
||||
/* ================= 编辑 ================= */
|
||||
const editRef = ref();
|
||||
function handleEdit(row: any) {
|
||||
// 当前点击所在的组(SysUserVo 不含 groupId,故以左侧选中节点为准,供"所在组"只读展示并默认选中)
|
||||
const curGroupId = selectedNode.value?.id ?? null;
|
||||
// 当前点击所在的组:优先用选中节点 id,兜底用当前正在浏览的组(dataParams.groupId,
|
||||
// 由 onTreeChange 设置,比 selectedNode 更可靠),供"所在组"只读展示与兜底
|
||||
const curGroupId = selectedNode.value?.id ?? dataParams.value.groupId ?? null;
|
||||
editRef.value?.open(row, groupOptions.value, curGroupId, () => {
|
||||
tableRef.value?.reloadData(OperatorEnum.edit);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user