节点管理修改

This commit is contained in:
qiuyuan 2025-10-13 13:27:16 +08:00
parent ed2c45bc80
commit 565e2b9d4f

View File

@ -10,7 +10,7 @@
:columns="columns"
:data-source="dataSource"
:pagination="false"
row-key="orgId"
row-key="id"
:expand-icon-as-cell="false"
>
<template #bodyCell="{ column, record }">
@ -106,10 +106,7 @@ const convertData = (data) => {
if (!data || data.length === 0) return [];
return data.map(item => {
const converted = {
...item,
key: item.id, // 使 id key id orgId
};
const converted = { ...item }; // key
if (item.subOrgList && item.subOrgList.length > 0) {
converted.children = convertData(item.subOrgList);