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 9e062e5e
authored
Apr 24, 2024
by
‘july-fu’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 画布左侧搜索栏和分页添加完成,解决属性丢失
1 parent
fa6211e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
6 deletions
public/drawio/extention/js/exSideBar.js
public/drawio/extention/js/exSideBar.js
View file @
9e062e5
...
@@ -57,14 +57,48 @@
...
@@ -57,14 +57,48 @@
total
=
item
.
eleByAssetTotal
||
0
;
total
=
item
.
eleByAssetTotal
||
0
;
console
.
error
(
"createEXSideBarItems===eleByAssetTotal======>"
,
total
);
console
.
error
(
"createEXSideBarItems===eleByAssetTotal======>"
,
total
);
let
fns
=
item
.
assets
.
map
((
val
)
=>
{
let
fns
=
item
.
assets
.
map
((
val
)
=>
{
let
info__
=
[
{
name
:
"资产名称"
,
value
:
val
.
assetName
||
""
,
element
:
"input"
,
},
{
name
:
"资产编号"
,
value
:
val
.
assetNumber
||
""
,
element
:
"input"
,
},
{
name
:
"所属元素"
,
value
:
val
.
archiEleId
||
""
,
element
:
"select"
,
},
{
name
:
"上级元素"
,
value
:
(
val
.
parentElement
&&
val
.
parentElement
.
replace
(
/
\]
|
\[
|
\/?
]/g
,
""
)
.
replace
(
"null"
,
""
))
||
""
,
element
:
"select"
,
},
{
name
:
"上级资产"
,
value
:
val
.
parentAssetName
||
""
,
element
:
"tree"
,
},
];
let
params
=
[
let
params
=
[
`
${
val
.
iconName
}
;fillColor=
${
val
.
color
}
;attr=
${
JSON
.
stringify
(
`
${
val
.
iconName
}
;fillColor=
${
val
.
color
}
;attr=
${
JSON
.
stringify
(
_attrs
_attrs
)}
;assetId=
${
val
.
assetId
}
;archiBelongId=
${
)}
;info__=
${
JSON
.
stringify
(
info__
)}
;assetId=
${
val
.
archiBelongId
val
.
assetId
};
assetName
=
[
$
{
val
.
assetName
}
];eleName=
${
};
archiBelongId
=
$
{
val
.
archiBelongId
}
;assetName=[
${
item
.
eleName
val
.
assetName
};
elementId
=
$
{
item
.
elementId
}
;eaLevel=
${
item
.
eaLevel
}
;`
,
}];
eleName
=
$
{
item
.
eleName
}
;elementId=
${
item
.
elementId
}
;eaLevel=
${
item
.
eaLevel
};
`,
val.shapeWidth ? val.shapeWidth : 150,
val.shapeWidth ? val.shapeWidth : 150,
val.shapeHeight ? val.shapeHeight : 75,
val.shapeHeight ? val.shapeHeight : 75,
null,
null,
...
@@ -242,7 +276,7 @@
...
@@ -242,7 +276,7 @@
dataType: "json",
dataType: "json",
contentType: "application/json",
contentType: "application/json",
timeout: 3000, //设置超时时间为8s
timeout: 3000, //设置超时时间为8s
url
:
`
http://
${
ajaxUrl
}
/eadc-architecture/ma-ml/archi-asset-list`
,
url: `
$
{
ajaxUrl
}
/eadc-architecture/ma-ml/archi-asset-list`
,
data
:
JSON
.
stringify
({
data
:
JSON
.
stringify
({
archiAssetState
:
2
,
archiAssetState
:
2
,
archiStage
:
1
,
archiStage
:
1
,
...
...
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