const depts = [
{
"id": "1175310929766055936",
"pid": "",
"companyId": "1",
"name": "总裁办",
"code": "ZCB",
"managerId": null,
"manager": "孙财",
"introduce": "总裁办公室",
"createTime": null
},
{
"id": "1175311213774962688",
"pid": "",
"companyId": "1",
"name": "行政部",
"code": "XZB",
"managerId": null,
"manager": "罗晓晓",
"introduce": "1111",
"createTime": null
},
{
"id": "1175311267684352000",
"pid": "",
"companyId": "1",
"name": "人事部",
"code": "RSB",
"managerId": "1071632760222810112",
"manager": "文吉星",
"introduce": null,
"createTime": null
},
{
"id": "1175311325720936448",
"pid": "",
"companyId": "1",
"name": "财务部",
"code": "",
"managerId": null,
"manager": null,
"introduce": null,
"createTime": null
},
{
"id": "1175311373083017216",
"pid": "",
"companyId": "1",
"name": "技术部",
"code": "JSB",
"managerId": null,
"manager": null,
"introduce": null,
"createTime": null
},
{
"id": "1175311418004013056",
"pid": "",
"companyId": "1",
"name": "运营部",
"code": "YYB",
"managerId": null,
"manager": null,
"introduce": null,
"createTime": null
},
{
"id": "1175311466846683136",
"pid": "",
"companyId": "1",
"name": "市场部",
"code": "SCB",
"managerId": "1063705989926227968",
"manager": "武高丽",
"introduce": n
简单实现扁平数据结构转树形数据结构
最新推荐文章于 2024-07-19 13:54:51 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)