protable里面树形结构的子级数,对应的关键为children,自己改成别的则树形结构的下级不会显示
request={(params) =>
getInstrumentCategoryList({ ...params } as API.InstrumentManagement.InstrumentCategoryListParams).then((res) => {
console.log(res);
/**
*
* protable里面树形结构的子级数,对应的关键为children,自己改成别的则树形结构的下级不会显示
*/
const result = {
data: buildTreeData(res.rows, 'instrumentCategoryId', 'instrumentCategoryName', 'instrumentParentId', 'instrumentParentName', 'children'),
total: res.rows.length,
success: true,
};
console.log("result");
console.log(result);
console.log("result");
return result;
})
}