Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gojs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴斌
vue-gojs
Commits
02c8c765
Commit
02c8c765
authored
Oct 09, 2023
by
吴斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
85ba568f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
App.vue
src/App.vue
+15
-16
No files found.
src/App.vue
View file @
02c8c765
...
...
@@ -273,33 +273,32 @@ function importData() {
myDiagram
.
model
=
go
.
Model
.
fromJson
(
{
"class"
:
"GraphLinksModel"
,
"nodeDataArray"
:
[
{
"name"
:
"压缩机"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/压缩机.svg"
,
"key"
:
-
7
,
"loc"
:
"-460 120"
,
"angle"
:
90
,
"img_size"
:
"50 50"
,
"press"
:
39
,
"thick"
:
"0.86"
,
"temperature"
:
9
},
{
"name"
:
"冷却器-2"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/冷却器-2.svg"
,
"key"
:
-
6
,
"loc"
:
"-310 120"
,
"img_size"
:
"70 70"
,
"angle"
:
180
,
"press"
:
41
,
"thick"
:
"0.46"
,
"temperature"
:
5
},
{
"name"
:
"换热器"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/换热器.svg"
,
"key"
:
-
3
,
"loc"
:
"-170 130"
,
"img_size"
:
"60 60"
,
"press"
:
91
,
"thick"
:
"0.85"
,
"temperature"
:
2
},
{
"name"
:
"换热器"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/换热器.svg"
,
"key"
:
-
4
,
"loc"
:
"-170 250"
,
"img_size"
:
"60 60"
,
"thick"
:
"0.
48"
,
"press"
:
91
,
"temperature"
:
7
,
"thing"
:
""
},
{
"name"
:
"氨分离罐"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/氨分离罐.svg"
,
"key"
:
-
1
,
"loc"
:
"-170 370"
,
"angle"
:
180
,
"img_size"
:
"70 70"
,
"thick"
:
"0.9
1"
,
"press"
:
14
,
"temperature"
:
9
,
"thing"
:
""
},
{
"name"
:
"冷却器-2"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/冷却器-2.svg"
,
"key"
:
-
8
,
"loc"
:
"-170 0"
,
"img_size"
:
"50 50"
,
"angle"
:
270
,
"press"
:
15
,
"thick"
:
"0.35"
,
"temperature"
:
0
},
{
"name"
:
"冷却器"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/冷却器.svg"
,
"key"
:
-
5
,
"loc"
:
"-300 -50"
,
"img_size"
:
"60 72"
,
"press"
:
27
,
"thick"
:
"0.1
0"
,
"temperature"
:
9
},
{
"name"
:
"氨分离罐"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/氨分离罐.svg"
,
"key"
:
-
9
,
"loc"
:
"-460 -50"
,
"angle"
:
270
,
"img_size"
:
"90 90"
,
"press"
:
89
,
"thick"
:
"0.93"
,
"temperature"
:
2
},
{
"name"
:
"合成塔"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/合成塔.svg"
,
"key"
:
-
2
,
"loc"
:
"
-20 20"
,
"img_size"
:
"240 240"
,
"press"
:
6
,
"thick"
:
"0.62"
,
"temperature"
:
0
},
{
"name"
:
"开工炉"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/开工炉.svg"
,
"key"
:
-
10
,
"loc"
:
"
200 20"
,
"thick"
:
"0.70"
,
"press"
:
61
,
"temperature"
:
0
,
"thing"
:
""
}
{
"name"
:
"压缩机"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/压缩机.svg"
,
"key"
:
-
7
,
"loc"
:
"-460 120"
,
"angle"
:
90
,
"img_size"
:
"50 50"
,
"press"
:
25
,
"thick"
:
"0.91"
,
"temperature"
:
4
},
{
"name"
:
"冷却器-2"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/冷却器-2.svg"
,
"key"
:
-
6
,
"loc"
:
"-310 120"
,
"img_size"
:
"70 70"
,
"angle"
:
180
,
"press"
:
83
,
"thick"
:
"0.73"
,
"temperature"
:
6
},
{
"name"
:
"换热器"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/换热器.svg"
,
"key"
:
-
3
,
"loc"
:
"-170 130"
,
"img_size"
:
"60 60"
,
"press"
:
0
,
"thick"
:
"0.82"
,
"temperature"
:
6
},
{
"name"
:
"换热器"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/换热器.svg"
,
"key"
:
-
4
,
"loc"
:
"-170 250"
,
"img_size"
:
"60 60"
,
"thick"
:
"0.
80"
,
"press"
:
57
,
"temperature"
:
1
,
"thing"
:
""
},
{
"name"
:
"氨分离罐"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/氨分离罐.svg"
,
"key"
:
-
1
,
"loc"
:
"-170 370"
,
"angle"
:
180
,
"img_size"
:
"70 70"
,
"thick"
:
"0.9
9"
,
"press"
:
97
,
"temperature"
:
1
,
"thing"
:
""
},
{
"name"
:
"冷却器-2"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/冷却器-2.svg"
,
"key"
:
-
8
,
"loc"
:
"-170 0"
,
"img_size"
:
"50 50"
,
"angle"
:
270
,
"press"
:
61
,
"thick"
:
"0.69"
,
"temperature"
:
2
},
{
"name"
:
"冷却器"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/冷却器.svg"
,
"key"
:
-
5
,
"loc"
:
"-300 -50"
,
"img_size"
:
"60 72"
,
"press"
:
33
,
"thick"
:
"1.0
0"
,
"temperature"
:
9
},
{
"name"
:
"氨分离罐"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/氨分离罐.svg"
,
"key"
:
-
9
,
"loc"
:
"-460 -50"
,
"angle"
:
270
,
"img_size"
:
"90 90"
,
"press"
:
4
,
"thick"
:
"0.06"
,
"temperature"
:
7
},
{
"name"
:
"合成塔"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/合成塔.svg"
,
"key"
:
-
2
,
"loc"
:
"
40 0"
,
"img_size"
:
"240 240"
,
"press"
:
87
,
"thick"
:
"0.96"
,
"temperature"
:
6
},
{
"name"
:
"开工炉"
,
"picture_category"
:
"ammonia"
,
"img"
:
"src/assets/models/ammonia/开工炉.svg"
,
"key"
:
-
10
,
"loc"
:
"
300 110"
,
"thick"
:
"0.08"
,
"press"
:
18
,
"temperature"
:
4
,
"thing"
:
""
}
],
"linkDataArray"
:
[
{
"from"
:
-
7
,
"to"
:
-
6
,
"points"
:[
-
435
,
120
,
-
425
,
120
,
-
390
,
120
,
-
390
,
120
,
-
355
,
120
,
-
345
,
120
],
"from_text"
:
""
,
"to_text"
:
""
,
"middle_text"
:
""
,
"category"
:
"Arrow"
},
{
"to"
:
-
7
,
"points"
:[
-
581
,
120
,
-
571
,
120
,
-
533
,
120
,
-
533
,
120
,
-
495
,
120
,
-
485
,
120
],
"from_text"
:
"原料气"
,
"middle_text"
:
""
,
"to_text"
:
""
,
"category"
:
"Arrow"
},
{
"from"
:
-
1
,
"to"
:
-
4
,
"points"
:[
-
170
,
335
,
-
170
,
325
,
-
170
,
307.5
,
-
170
,
307.5
,
-
170
,
290
,
-
170
,
280
],
"category"
:
"Arrow"
},
{
"from"
:
-
6
,
"to"
:
-
1
,
"points"
:[
-
310
,
155
,
-
310
,
165
,
-
310
,
370
,
-
262.5
,
370
,
-
215
,
370
,
-
205
,
370
],
"category"
:
"Arrow"
},
{
"from"
:
-
3
,
"to"
:
-
7
,
"points"
:[
-
170
,
160
,
-
170
,
170
,
-
460
,
170
,
-
460
,
162.5
,
-
460
,
155
,
-
460
,
145
],
"category"
:
"Arrow"
},
{
"from"
:
-
8
,
"to"
:
-
3
,
"points"
:[
-
170
,
25
,
-
170
,
35
,
-
170
,
62.5
,
-
170
,
62.5
,
-
170
,
90
,
-
170
,
100
],
"category"
:
"Arrow"
},
{
"from"
:
-
3
,
"to"
:
-
5
,
"points"
:[
-
200
,
130
,
-
210
,
130
,
-
235
,
130
,
-
235
,
-
50
,
-
260
,
-
50
,
-
270
,
-
50
],
"category"
:
"Arrow"
},
{
"from"
:
-
5
,
"to"
:
-
9
,
"points"
:[
-
330
,
-
50
,
-
340
,
-
50
,
-
372.5
,
-
50
,
-
372.5
,
-
50
,
-
405
,
-
50
,
-
415
,
-
50
],
"category"
:
"Arrow"
},
{
"from"
:
-
9
,
"points"
:[
-
460
,
-
95
,
-
460
,
-
105
,
-
460
,
-
117
,
-
508
,
-
117
,
-
556
,
-
117
,
-
566
,
-
117
],
"from_text"
:
""
,
"middle_text"
:
""
,
"to_text"
:
"燃料气"
,
"category"
:
"Arrow"
},
{
"from"
:
-
9
,
"points"
:[
-
460
,
-
5
,
-
460
,
5
,
-
460
,
19
,
-
513
,
19
,
-
566
,
19
,
-
576
,
19
],
"from_text"
:
""
,
"middle_text"
:
""
,
"to_text"
:
"氨产品"
,
"category"
:
"Arrow"
},
{
"from"
:
-
4
,
"to"
:
-
10
,
"points"
:[
-
140
,
250
,
-
130
,
250
,
200
,
250
,
200
,
165
,
200
,
80
,
200
,
7
0
],
"category"
:
"Arrow"
},
{
"from"
:
-
4
,
"to"
:
-
2
,
"points"
:[
-
170
,
220
,
-
170
,
210
,
-
170
,
1
97
,
-
20
,
197
,
-
20
,
150
,
-
20
,
14
0
],
"category"
:
"Arrow"
},
{
"from"
:
-
10
,
"to"
:
-
2
,
"points"
:[
150
,
20
,
140
,
20
,
125
,
20
,
125
,
20
,
110
,
20
,
100
,
2
0
],
"category"
:
"Arrow"
},
{
"from"
:
-
8
,
"to"
:
-
2
,
"points"
:[
-
170
,
-
25
,
-
170
,
-
35
,
-
170
,
-
166
,
-
20
,
-
166
,
-
20
,
-
110
,
-
20
,
-
10
0
],
"category"
:
"Arrow"
},
{
"from"
:
-
1
,
"points"
:[
-
135
,
370
,
-
125
,
370
,
-
97.3671875
,
370
,
-
97.3671875
,
370
,
-
69.734375
,
370
,
-
59.734375
,
370
],
"category"
:
"Arrow"
}
{
"from"
:
-
4
,
"to"
:
-
10
,
"points"
:[
-
140
,
250
,
-
130
,
250
,
300
,
250
,
300
,
210
,
300
,
170
,
300
,
16
0
],
"category"
:
"Arrow"
},
{
"from"
:
-
4
,
"to"
:
-
2
,
"points"
:[
-
170
,
220
,
-
170
,
210
,
-
170
,
1
86.5126932185735
,
40
,
186.5126932185735
,
40
,
130
,
40
,
12
0
],
"category"
:
"Arrow"
},
{
"from"
:
-
10
,
"to"
:
-
2
,
"points"
:[
250
,
110
,
240
,
110
,
205
,
110
,
205
,
0
,
170
,
0
,
160
,
0
],
"category"
:
"Arrow"
},
{
"from"
:
-
1
,
"points"
:[
-
135
,
370
,
-
125
,
370
,
-
97.3671875
,
370
,
-
97.3671875
,
370
,
-
69.734375
,
370
,
-
59.734375
,
37
0
],
"category"
:
"Arrow"
},
{
"from"
:
-
2
,
"to"
:
-
8
,
"category"
:
"Arrow"
}
]}
);
nodeMap
.
value
=
getMapData
(
myDiagram
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment