|
|
|
|
@ -313,6 +313,15 @@ const validateCycleNode = (nodeData: any): string[] => {
|
|
|
|
|
const validateBasicParams = (nodeData: any): string[] => {
|
|
|
|
|
const errors: string[] = [];
|
|
|
|
|
|
|
|
|
|
// 检查BASIC节点是否有关联的组件实例
|
|
|
|
|
if (nodeData.type === 'BASIC') {
|
|
|
|
|
// 检查节点是否具有component属性和customDef属性
|
|
|
|
|
console.log('nodeData:', nodeData);
|
|
|
|
|
if (!nodeData.component || !nodeData.component.compIdentifier) {
|
|
|
|
|
errors.push('基础节点缺少组件实例配置');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查输入参数的完整性
|
|
|
|
|
if (nodeData.parameters?.dataIns) {
|
|
|
|
|
nodeData.parameters.dataIns.forEach((param: any, index: number) => {
|
|
|
|
|
|