数据属性显示undefined
This commit is contained in:
parent
88562bd58e
commit
85342cee7d
@ -1441,6 +1441,7 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
|
||||
requiredSpan = '<span style="color: #f04134;float:right">*</span>'
|
||||
}
|
||||
|
||||
var isdesc=obj.desc==undefined?"":obj.desc;
|
||||
var constr = '<tr ' + mouseout + mouseover + ' objid="' + obj.id + '" class="tagContentTableTr">'
|
||||
+ ' <td>' + objName + requiredSpan + '</td>'
|
||||
+ ' <td>'
|
||||
@ -1451,13 +1452,13 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
|
||||
constr = '<tr ' + mouseout + mouseover + ' objid="' + obj.id + '" class="tagContentTableTr">'
|
||||
+ ' <td>' + objName + requiredSpan + '</td>'
|
||||
+ ' <td class="tagContentTableTrTd">'
|
||||
+ ' <input placeholder="' + obj.desc + '" objid="' + obj.id + '" class="attribute_input_css" name="attribute_name_input_' + obj.id + '" value="' + obj.value + '" onblur="saveInputContent(this,' + JSON.stringify(obj).replace(/\"/g,"'") +');" onclick="showEditButton(this);" data-shapeId="' + shape.id + '"/>'
|
||||
+ ' <input placeholder="' + isdesc + '" objid="' + obj.id + '" class="attribute_input_css" name="attribute_name_input_' + obj.id + '" value="' + obj.value + '" onblur="saveInputContent(this,' + JSON.stringify(obj).replace(/\"/g,"'") +');" onclick="showEditButton(this);" data-shapeId="' + shape.id + '"/>'
|
||||
+ ' </td></tr>';
|
||||
} else if (!objReadonly && objType == "number") {
|
||||
constr = '<tr ' + mouseout + mouseover + ' objid="' + obj.id + '" class="tagContentTableTr">'
|
||||
+ ' <td>' + objName + requiredSpan + '</td>'
|
||||
+ ' <td class="tagContentTableTrTd">'
|
||||
+ ' <input placeholder="' + obj.desc + '" inputType="number" objid="' + obj.id + '" class="attribute_input_css" name="attribute_name_input_' + obj.id + '" value="' + obj.value + '" onblur="saveInputContent(this,' + JSON.stringify(obj).replace(/\"/g,"'") +');" data-shapeId="' + shape.id + '"/>'
|
||||
+ ' <input placeholder="' + isdesc + '" inputType="number" objid="' + obj.id + '" class="attribute_input_css" name="attribute_name_input_' + obj.id + '" value="' + obj.value + '" onblur="saveInputContent(this,' + JSON.stringify(obj).replace(/\"/g,"'") +');" data-shapeId="' + shape.id + '"/>'
|
||||
//+ ' <div objid="' + obj.id + '" onclick="removeTrAttribute(this)" id= "ico_attribute_delete_"' + obj.id + ' class="ico_attribute_delete"></div>'
|
||||
+ '</td></tr>';
|
||||
} else if (!objReadonly && objType == "boolean") {
|
||||
@ -1481,7 +1482,7 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
|
||||
constr = '<tr ' + mouseout + mouseover + ' objid="' + obj.id + '" class="tagContentTableTr">'
|
||||
+ '<td>' + objName + requiredSpan + '</td>'
|
||||
+ '<td class="tagContentTableTrTd">'
|
||||
+ '<textarea placeholder="' + obj.desc + '" objid="' + obj.id + '" class="awsui-textarea" style="float:left; width: 95%;" rows="3" name="attribute_name_input_' + obj.id + ' " value="' + obj.value
|
||||
+ '<textarea placeholder="' + isdesc + '" objid="' + obj.id + '" class="awsui-textarea" style="float:left; width: 95%;" rows="3" name="attribute_name_input_' + obj.id + ' " value="' + obj.value
|
||||
+ '" onblur="saveInputContent(this);" onclick="showAttributedEditWindow(this);" data-shapeId="' + shape.id + '">' + obj.value + '</textarea>'
|
||||
//+ '<div objid="' + obj.id + '" onclick="removeTrAttribute(this)" id= "ico_attribute_delete_"' + obj.id + ' class="ico_attribute_delete"></div>'
|
||||
+ '</td>'
|
||||
@ -1490,11 +1491,12 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
|
||||
flag = true;
|
||||
// 形状的关联
|
||||
objIds.push(obj.id);
|
||||
|
||||
constr = '<tr ' + mouseout + mouseover + ' objid="' + obj.id + '" class="tagContentTableTr">'
|
||||
+ ' <td>' + objName + requiredSpan + '</td>'
|
||||
+ ' <td class="tagContentTableTrTd">'
|
||||
+ ' <input placeholder="' + obj.desc + '" objid="' + obj.id + '" class="attribute_input_css" name="attribute_name_input_' + obj.id + '" value="" scope="' + obj.groupPath + '" onclick="openRelationDig(this,' + JSON.stringify(obj).replace(/\"/g,"'") +');" />'
|
||||
+ ' <input placeholder="' + obj.desc + '" ref="" value="' + obj.value + '" style="border:1px solid #ccc;margin-left:-55px;width: 25px;height: 23px;display: none;" objid_shapeId="' + obj.id + '" />'
|
||||
+ ' <input placeholder="' + isdesc+ '" objid="' + obj.id + '" class="attribute_input_css" name="attribute_name_input_' + obj.id + '" value="" scope="' + obj.groupPath + '" onclick="openRelationDig(this,' + JSON.stringify(obj).replace(/\"/g,"'") +');" />'
|
||||
+ ' <input placeholder="' + isdesc+ '" ref="" value="' + obj.value + '" style="border:1px solid #ccc;margin-left:-55px;width: 25px;height: 23px;display: none;" objid_shapeId="' + obj.id + '" />'
|
||||
+ '</td></tr>';
|
||||
|
||||
} else if (objType == "select" || objType == "select_m") {
|
||||
@ -1520,14 +1522,14 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
|
||||
constr = '<tr ' + mouseout + mouseover + ' objid="' + obj.id + '" class="tagContentTableTr">'
|
||||
+ ' <td>' + objName + requiredSpan + '</td>'
|
||||
+ ' <td class="tagContentTableTrTd">'
|
||||
+ ' <input placeholder="' + obj.desc + '" objid="' + obj.id + '" class="attribute_input_css" name="attribute_name_input_' + obj.id + '" value="" scope="' + obj.groupPath + '" onclick="openOrganizationRelationDig(this,' + JSON.stringify(obj).replace(/\"/g,"'") +');" />'
|
||||
+ ' <input placeholder="' + obj.desc + '" ref="" value="' + obj.value + '" style="border:1px solid #ccc;margin-left:-55px;width: 25px;height: 23px;display: none;" objid_shapeId="' + obj.id + '" />'
|
||||
+ ' <input placeholder="' + isdesc + '" objid="' + obj.id + '" class="attribute_input_css" name="attribute_name_input_' + obj.id + '" value="" scope="' + obj.groupPath + '" onclick="openOrganizationRelationDig(this,' + JSON.stringify(obj).replace(/\"/g,"'") +');" />'
|
||||
+ ' <input placeholder="' + isdesc + '" ref="" value="' + obj.value + '" style="border:1px solid #ccc;margin-left:-55px;width: 25px;height: 23px;display: none;" objid_shapeId="' + obj.id + '" />'
|
||||
+ '</td></tr>';
|
||||
} else if (objReadonly && objType == "hidden") {
|
||||
constr = '<tr ' + mouseout + mouseover + ' objid="' + obj.id + '" class="tagContentTableTr" style="display:none;">'
|
||||
+ ' <td>' + objName + requiredSpan + '</td>'
|
||||
+ ' <td class="tagContentTableTrTd">'
|
||||
+ ' <input placeholder="' + obj.desc + '" objid="' + obj.id + '" class="attribute_input_css" name="attribute_name_input_' + obj.id + '" value="'+obj.value +'" scope="' + obj.groupPath + '" readonly="'+objReadonly+'" />'
|
||||
+ ' <input placeholder="' + isdesc + '" objid="' + obj.id + '" class="attribute_input_css" name="attribute_name_input_' + obj.id + '" value="'+obj.value +'" scope="' + obj.groupPath + '" readonly="'+objReadonly+'" />'
|
||||
//+ '<div objid="' + obj.id + '" onclick="removeTrAttribute(this)" id= "ico_attribute_delete_"' + obj.id + ' class="ico_attribute_delete"></div>'
|
||||
+ '</td></tr>';
|
||||
} else if (!objReadonly && objType == "DateTimePicker") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user