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 404b2295
authored
Apr 24, 2024
by
‘july-fu’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 画布左侧搜索栏和分页添加完成,解决属性丢失
1 parent
e2e0a480
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletions
public/drawio/extention/js/exSideBar.js
public/drawio/extention/js/exSideBar.js
View file @
404b229
...
@@ -315,10 +315,44 @@
...
@@ -315,10 +315,44 @@
//分页
//分页
dataL = item.eleByAssetTotal || 0;
dataL = item.eleByAssetTotal || 0;
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
.
iconName
};
fillColor
=
$
{
val
.
color
val
.
color
};
attr
=
$
{
JSON
.
stringify
(
_attrs
)};
assetId
=
$
{
};
attr
=
$
{
JSON
.
stringify
(
_attrs
)};
info__
=
$
{
JSON
.
stringify
(
info__
)};
assetId
=
$
{
val
.
assetId
val
.
assetId
};
archiBelongId
=
$
{
val
.
archiBelongId
};
assetName
=
[
$
{
};
archiBelongId
=
$
{
val
.
archiBelongId
};
assetName
=
[
$
{
val
.
assetName
val
.
assetName
...
...
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