设计器文件属性input框placeholder
This commit is contained in:
parent
cf06f6d1e4
commit
7bd41d025a
@ -2624,9 +2624,9 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
inputValue = inputValue.replaceAll("'", "'");
|
||||
inputValue = inputValue.replaceAll("\"", """);
|
||||
boolean isRequired = attributeModel.getIsRequired();
|
||||
String desc = attributeModel.getDesc();
|
||||
|
||||
|
||||
String input = "<input type='text' class='awsui-textbox' name=\"" + id + "\" id=\"" + id + "\" value=\"" + inputValue + "\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" data-originvalue='"+ inputValue +"' " + event + "/>";
|
||||
String input = "<input type='text' class='awsui-textbox' name=\"" + id + "\" id=\"" + id + "\" value=\"" + inputValue + "\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" placeholder='" + desc + "' data-originvalue='"+ inputValue +"' " + event + "/>";
|
||||
|
||||
|
||||
String type = attributeModel.getType();
|
||||
@ -2636,12 +2636,12 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
requiredSpan = "<span class='required'></span>";
|
||||
}
|
||||
if ("textarea".equals(type)) {
|
||||
input = "<textarea class=\"awsui-textbox\" style=\"height:30px;\" name=\"" + id + "\" id=\"" + id + "\" isRequired='" + isRequired + "' data-originvalue='" + inputValue + "' onclick=\"openTextareaDialog($(this), '" + attributeModel.getNewTitle() + "', " + readonly + ");\" >" + inputValue + "</textarea>";
|
||||
input = "<textarea class=\"awsui-textbox\" style=\"height:30px;\" name=\"" + id + "\" id=\"" + id + "\" isRequired='" + isRequired + "' placeholder='" + desc + "' data-originvalue='" + inputValue + "' onclick=\"openTextareaDialog($(this), '" + attributeModel.getNewTitle() + "', " + readonly + ");\" >" + inputValue + "</textarea>";
|
||||
} else if ("select".equals(type) || "select_m".equals(type)) {
|
||||
if (readonly) {
|
||||
input = "<input type='text' inputType='" + type + "' objid='" + id + "' name='attribute_name_input_" + id + "' readonly=true " + " id='" + id + "' data-originvalue='" + inputValue + "' class='awsui-combobox' value='" + inputValue + "'></input>";
|
||||
input = "<input type='text' inputType='" + type + "' objid='" + id + "' name='attribute_name_input_" + id + "' readonly=true " + " id='" + id + "' placeholder='" + desc + "' data-originvalue='" + inputValue + "' class='awsui-combobox' value='" + inputValue + "'></input>";
|
||||
} else {
|
||||
input = "<input type='text' inputType='" + type + "' objid='" + id + "' name='attribute_name_input_" + id + "' onblur='saveContent($(this));' " + " id='" + id + "' data-originvalue='" + inputValue + "' class='awsui-combobox' isRequired='" + isRequired + "' value='" + inputValue + "'></input>";
|
||||
input = "<input type='text' inputType='" + type + "' objid='" + id + "' name='attribute_name_input_" + id + "' onblur='saveContent($(this));' " + " id='" + id + "' placeholder='" + desc + "' data-originvalue='" + inputValue + "' class='awsui-combobox' isRequired='" + isRequired + "' value='" + inputValue + "'></input>";
|
||||
}
|
||||
String ref = attributeModel.getRef();
|
||||
if (!UtilString.isEmpty(ref)) {
|
||||
@ -2650,13 +2650,13 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
} else if ("relation".equals(type)) {// 关联pal模型文件、形状
|
||||
JSONObject refObj = JSONObject.parseObject(attributeModel.getRef());
|
||||
event = "readonly='readonly' relationFileId=\"" + fileId + "\" relationShapeId=\"" + shapeId + "\" groupPath=\"" + attributeModel.getGroupPath() + "\" ref="+ refObj + " onclick=\"openRelationDialog($(this), 'saveContent')\"";
|
||||
input = "<input type='text' class='awsui-textbox' name=\"" + id + "\" id=\"" + id + "\" value=\"" + inputValue + "\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" isRequired='" + isRequired + "' data-originvalue='" + inputValue + "' " + event + "/>";
|
||||
input = "<input type='text' class='awsui-textbox' name=\"" + id + "\" id=\"" + id + "\" value=\"" + inputValue + "\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" isRequired='" + isRequired + "' placeholder='" + desc + "' data-originvalue='" + inputValue + "' " + event + "/>";
|
||||
} else if ("awsorg".equals(type)) {// 关联bpm组织架构
|
||||
JSONObject refObj = JSONObject.parseObject(attributeModel.getRef());
|
||||
event = "readonly='readonly' data-value="+ dataArr +" groupPath=\"" + attributeModel.getGroupPath() + "\" ref="+ refObj +" onclick=\"openRelationAwsorgDialog($(this))\"";
|
||||
input = "<input type='text' class='awsui-textbox' name=\"" + id + "\" id=\"" + id + "\" value=\"" + inputValue + "\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" isRequired='" + isRequired + "' data-originvalue='" + inputValue + "' " + event + "/>";
|
||||
input = "<input type='text' class='awsui-textbox' name=\"" + id + "\" id=\"" + id + "\" value=\"" + inputValue + "\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" isRequired='" + isRequired + "' placeholder='" + desc + "' data-originvalue='" + inputValue + "' " + event + "/>";
|
||||
} else if("DateTimePicker".equals(type)) {
|
||||
input = "<input class=\"awsui-textbox\" autocomplete='off' id=\"" + id + "\" name=\"dateTimePicker\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" data-originvalue='" + inputValue + "' value='" + inputValue + "' isRequired='" + isRequired + "' onblur='saveContent($(this));'>" + "</input>";
|
||||
input = "<input class=\"awsui-textbox\" autocomplete='off' id=\"" + id + "\" name=\"dateTimePicker\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" placeholder='" + desc + "' data-originvalue='" + inputValue + "' value='" + inputValue + "' isRequired='" + isRequired + "' onblur='saveContent($(this));'>" + "</input>";
|
||||
}else if ("table".equals(type)){
|
||||
|
||||
JSONObject table = JSON.parseObject(jsonValue);
|
||||
@ -2681,7 +2681,7 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
}
|
||||
else {
|
||||
if (readonly) {
|
||||
input = "<input type='text' class='awsui-textbox' name=\"" + id + "\" id=\"" + id + "\" value=\"" + inputValue + "\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" data-originvalue='" + inputValue + "' readonly=true/>";
|
||||
input = "<input type='text' class='awsui-textbox' name=\"" + id + "\" id=\"" + id + "\" value=\"" + inputValue + "\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" placeholder='" + desc + "' data-originvalue='" + inputValue + "' readonly=true/>";
|
||||
}
|
||||
}
|
||||
content.append("<tr class='tagContentTableTr' id='tr_" + id + "' > <td>" + attributeModel.getNewTitle() + "</td> <td class='tagContentTableTrTd'>" + requiredSpan + input + "</td> </tr>");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user