fix: 仿真策划导入
This commit is contained in:
@@ -1497,7 +1497,9 @@ const importSimulationExternalFormFun = async (file: any) => {
|
|||||||
};
|
};
|
||||||
const res: any = await importSimulationExternalFormApi(req);
|
const res: any = await importSimulationExternalFormApi(req);
|
||||||
if (res?.code === 200) {
|
if (res?.code === 200) {
|
||||||
const importedNodes = Array.isArray(res.data?.nodes) ? res.data.nodes : [];
|
const importedNodes = transformPoolNodesToTree(
|
||||||
|
Array.isArray(res.data?.nodes) ? res.data.nodes : []
|
||||||
|
);
|
||||||
await applyImportDiffToRightTableFun(importedNodes);
|
await applyImportDiffToRightTableFun(importedNodes);
|
||||||
ElMessage.success(res.message);
|
ElMessage.success(res.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user