Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 90d303d7
authored
Apr 08, 2024
by
史敦盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
元模型画布显示架构元素关系
1 parent
bcaba05f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
public/drawio/extention/js/exGraph.js
public/drawio/extention/js/exGraph.js
View file @
90d303d
...
...
@@ -42,10 +42,30 @@
const
joinGraph_
=
JSON
.
parse
(
localStorage
.
getItem
(
'joinGraph'
));
const
joinGraph
=
joinGraph_
.
graph
;
this
.
sidebarTitles
=
true
;
//勾选标签
if
(
joinGraph_
.
state
==
1
)
{
joinGraph
.
forEach
(
item
=>
{
if
(
item
.
arciBelongName
==
'架构元素关系'
)
{
let
fns
=
[];
item
.
eleDtos
.
forEach
(
item2
=>
{
fns
.
push
(
this
.
createEdgeTemplateEntry
(
item2
.
iconName
+
'attr=[];assetName=['
+
item2
.
rsName
+
'];'
,
item2
.
shapeWidth
?
item2
.
shapeWidth
:
150
,
item2
.
shapeHeight
?
item2
.
shapeHeight
:
75
,
''
,
item2
.
rsName
,
null
,
'非封闭图形2'
)
)
});
this
.
addPaletteFunctions
(
item
.
arciBelongId
,
item
.
arciBelongName
,
true
,
fns
);
}
})
}
if
(
joinGraph_
.
state
==
2
)
{
const
joinGraph
=
joinGraph_
.
graph
;
this
.
sidebarTitles
=
true
;
//勾选标签
// console.log(joinGraph)
joinGraph
.
forEach
(
item
=>
{
if
(
item
.
arciBelongName
==
'架构元素关系'
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment