Commit 9e062e5e by ‘july-fu’

fix: 画布左侧搜索栏和分页添加完成,解决属性丢失

1 parent fa6211e5
Showing with 40 additions and 6 deletions
......@@ -57,14 +57,48 @@
total = item.eleByAssetTotal || 0;
console.error("createEXSideBarItems===eleByAssetTotal======>", total);
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 = [
`${val.iconName};fillColor=${val.color};attr=${JSON.stringify(
_attrs
)};assetId=${val.assetId};archiBelongId=${
val.archiBelongId
};assetName=[${val.assetName}];eleName=${
item.eleName
};elementId=${item.elementId};eaLevel=${item.eaLevel};`,
)};info__=${JSON.stringify(info__)};assetId=${
val.assetId
};archiBelongId=${val.archiBelongId};assetName=[${
val.assetName
}];eleName=${item.eleName};elementId=${item.elementId};eaLevel=${
item.eaLevel
};`,
val.shapeWidth ? val.shapeWidth : 150,
val.shapeHeight ? val.shapeHeight : 75,
null,
......@@ -242,7 +276,7 @@
dataType: "json",
contentType: "application/json",
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({
archiAssetState: 2,
archiStage: 1,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!