Commit 9e062e5e by ‘july-fu’

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

1 parent fa6211e5
Showing with 40 additions and 6 deletions
...@@ -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,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!