绘制流程图后拿到流程图数据渲染时报JS错误 #1343
Unanswered
GitHubSunSet
asked this question in
Q&A
Replies: 1 comment
-
已解决 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
错误信息如下:
第一次绘制:
数据如:
{
"nodes": [
{
"id": "EndNodeId",
"type": "end-node",
"x": 535,
"y": 680,
"properties": {
"output": {
"paramType": "df",
"timeGenerate": 1,
"timeRule": 1,
"timeKey": null,
"processJsonFieldList": []
},
"inParams": [
{
"label": "结束节点",
"code": "endNode",
"paramType": "all",
"value": null,
"describe": "结束节点"
}
]
},
"zIndex": 1001,
"text": {
"x": 535,
"y": 680,
"value": "结束节点"
}
},
{
"id": "31631972-770b-4995-913f-f33e9ea88710__DataSourceId",
"type": "data-source-node",
"x": 130,
"y": 100,
"properties": {
"name": "数据提取",
"inParams": [
{
"code": "satCode",
"label": "航天器",
"value": {
"sat_code": "mars001",
"sat_name": "mars001"
},
"paramType": "satCode"
},
{
"code": "satTime",
"label": "时间范围",
"value": null,
"paramType": "satTime"
},
{
"code": "satParam",
"label": "参数",
"value": null,
"paramType": "satParam"
}
],
"outParam": {
"label": "df 数据集",
"describe": "df 数据集",
"paramType": "df"
}
},
"zIndex": 1004,
"text": {
"x": 130,
"y": 100,
"value": "数据提取"
}
},
{
"id": "81cf4159-4b10-49a1-82e1-1fda890f8d96",
"type": "alg-node",
"x": 110,
"y": 265,
"properties": {
"id": 401,
"algorithmGroupId": 104,
"name": "数据基础计算",
"funcName": null,
"developLanguageName": null,
"returnType": null,
"describe": null,
"imgPath": "w-basic.png",
"builtIn": 1,
"inParams": [
{
"id": 401,
"type": 1,
"code": "data",
"paramType": "df",
"paramTypeId": 0,
"paramTypeName": "df 数据集(python中Pandas库的DataFrame对象,一个二维的表格数据。)",
"defaultValue": "",
"describe": "df数据集",
"label": "data",
"scopeConfig": [],
"scopeType": null,
"value": null
}
],
"outParam": {
"id": 402,
"type": 2,
"code": "",
"paramType": "json",
"paramTypeId": 10,
"paramTypeName": "对象(JSON结构的数据,JSON数据由键值对[key-value]组成)",
"defaultValue": null,
"describe": null,
"label": "",
"scopeConfig": [],
"scopeType": null,
"value": null
},
"classify": null,
"algorithmJsonFieldList": [
{
"id": 1,
"key": "max",
"label": "最大值",
"algorithmId": 401
},
{
"id": 2,
"key": "min",
"label": "最小值",
"algorithmId": 401
},
{
"id": 3,
"key": "mean",
"label": "平均值",
"algorithmId": 401
},
{
"id": 4,
"key": "mode",
"label": "众数",
"algorithmId": 401
},
{
"id": 5,
"key": "median",
"label": "中位值",
"algorithmId": 401
},
{
"id": 6,
"key": "diff",
"label": "极差",
"algorithmId": 401
},
{
"id": 7,
"key": "std",
"label": "方差",
"algorithmId": 401
},
{
"id": 8,
"key": "var",
"label": "标准差",
"algorithmId": 401
}
]
},
"zIndex": 1007,
"text": {
"x": 110,
"y": 265,
"value": "数据基础计算"
}
}
],
"edges": [
{
"id": "f5b751a5-664a-4952-8f55-3b3be4e0953d",
"type": "custom-edge",
"sourceNodeId": "31631972-770b-4995-913f-f33e9ea88710__DataSourceId",
"targetNodeId": "81cf4159-4b10-49a1-82e1-1fda890f8d96",
"startPoint": {
"x": 130,
"y": 140
},
"endPoint": {
"x": 110,
"y": 225
},
"properties": {},
"zIndex": 1008,
"sourceAnchorId": "31631972-770b-4995-913f-f33e9ea88710__DataSourceId__AnchorId",
"targetAnchorId": "81cf4159-4b10-49a1-82e1-1fda890f8d96__401"
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions