Commit bb5c1e3e by 史敦盼

修改

1 parent 1c4be59f
......@@ -97,8 +97,8 @@ const initAttributePanel = function(that) {
propertyList.forEach((item) => {
fieldsValue.push({
id: item.propertyId,
cnName: item.cnName,
value_: item.value_,
cnName: item.cnName || item.name,
value_: item.value_ || item.value,
controlType: item.controlType,
dictKey: item.dictKey ? item.dictKey : null,
})
......@@ -258,6 +258,7 @@ const initAttributePanel = function(that) {
const baseEleStyle = 'width: 100%;background: #ffffff;';
// 上级元素
const valueSelect2 = document.createElement('select');
valueSelect2.id="parentElement"
switch (name) {
case '资产名称':
const valueInput = document.createElement('input');
......@@ -467,6 +468,7 @@ const addListPanel = function(that, originAttr, attrName_, attrValue_, controlTy
case 2:
const item_right_select = document.createElement('select');
item_right_select.value = attrValue_;
// item_right_select.text =
item_right_select.style.cssText = 'width: 100%;background: #ffffff;';
$.ajax({
......@@ -487,6 +489,9 @@ const addListPanel = function(that, originAttr, attrName_, attrValue_, controlTy
item_right_select['options'][i].selected = true
}
})
if(!attrValue_) {
item_right_select.selectedIndex = -1
}
}
// console.log('result', res)
},
......
......@@ -46,14 +46,14 @@
) {
eleDtos.forEach((item) => {
if (item.assets && item.assets.length) {
let _attrs = (item.dicys || []).map((val) => {
return {
name: val.cnName,
value: val.propertyValue,
id: val.propertyId,
controlType: val.controlType,
};
});
// let _attrs = (item.dicys || []).map((val) => {
// return {
// name: val.cnName,
// value: val.propertyValue,
// id: val.propertyId,
// controlType: val.controlType,
// };
// });
total = item.eleByAssetTotal || 0;
console.error("createEXSideBarItems===eleByAssetTotal======>", total);
let fns = item.assets.map((val) => {
......@@ -99,9 +99,7 @@
state: val.state
}
let params = [
`${val.iconName};${val.color ? `fillColor=${val.color}` : ''};attr=${JSON.stringify(
_attrs
)};info__=${JSON.stringify(info__)};assetId=${
`${val.iconName};${val.color ? `fillColor=${val.color}` : ''};attr=${(val.fieldsValue && val.fieldsValue != 'null' ? val.fieldsValue : '[]')};info__=${JSON.stringify(info__)};assetId=${
val.assetId
};archiBelongId=${val.archiBelongId};assetName=[${
val.assetName
......@@ -313,14 +311,15 @@
let item = i.eleDtos.find((val) => val.eleName == title);
console.log("real item===>", item);
if (item && item.assets && item.assets.length) {
let _attrs = (item.dicys || []).map((val) => {
return {
name: val.cnName,
value: val.propertyValue,
id: val.propertyId,
controlType: val.controlType,
};
});
// let _attrs = (item.dicys || []).map((val) => {
// return {
// name: val.cnName,
// value: val.propertyValue,
// id: val.propertyId,
// controlType: val.controlType,
// cnName: res.cnName,
// };
// });
//分页
dataL = item.eleByAssetTotal || 0;
let fns = item.assets.map((val) => {
......@@ -366,9 +365,7 @@
state: val.state
}
let params = [
`${val.iconName};${val.color ? `fillColor=${val.color}` : ''};attr=${JSON.stringify(
_attrs
)};info__=${JSON.stringify(info__)};assetId=${
`${val.iconName};${val.color ? `fillColor=${val.color}` : ''};attr=${(val.fieldsValue && val.fieldsValue != 'null' ? val.fieldsValue : '[]')};info__=${JSON.stringify(info__)};assetId=${
val.assetId
};archiBelongId=${val.archiBelongId};assetName=[${
val.assetName
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!