Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

根据josn能生成图形吗? #32

Closed
lanvendar opened this issue Nov 23, 2020 · 1 comment
Closed

根据josn能生成图形吗? #32

lanvendar opened this issue Nov 23, 2020 · 1 comment

Comments

@lanvendar
Copy link

直接把json赋值给this.$refs.superFlow.graph并不能展示

"origin": [
0,
0
],
"nodeList": [
{
"id": "node43bEDxs4QYLxYqA8",
"width": 120,
"height": 40,
"coordinate": [
293.11109924316406,
115.24305725097656
],
"meta": {
"nodeSn": "20201117155528475709",
"nodeType": 12,
"name": "swooptask222",
"retryTimes": "2"
}
},
{
"id": "nodex3J2Ah7U3lf3ohnK",
"width": 120,
"height": 40,
"coordinate": [
214.11109924316406,
212.24305725097656
],
"meta": {
"nodeType": 1,
"processInfoSn": "20201118144643126323",
"name": "qwe",
"flag": 1,
"isSubProcess": 1,
"releaseState": 1,
"processLevel": 1,
"runStrategy": 2,
"projectSn": "20201111151301378332",
"hasEvent": 1
}
}
],
"linkList": [
{
"id": "linkqUDpYBsyXW857ojR",
"startId": "node43bEDxs4QYLxYqA8",
"endId": "nodex3J2Ah7U3lf3ohnK",
"startAt": [
60,
40
],
"endAt": [
120,
20
],
"meta": null
}
]
}

@lanvendar
Copy link
Author

已解决有init方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant