Merge branch 'apps_dev' of https://e.coding.net/yilidev/yilipalkaifa/apps into apps_dev

This commit is contained in:
yujh 2024-09-02 21:06:48 +08:00
commit a30632d6dd
2 changed files with 3 additions and 3 deletions

View File

@ -2910,7 +2910,7 @@ public class CoeProcessLevelWeb extends ActionWeb {
if (isRequired) {
requiredSpan = "<span class='required'></span>";
}
if ("textarea".equals(type)) {
if (!readonly && "textarea".equals(type)) {
input = "<textarea class=\"awsui-textbox\" title=" + inputValue + " style=\"height:60px;\" 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) {
@ -2934,7 +2934,7 @@ public class CoeProcessLevelWeb extends ActionWeb {
.map(jsonObject -> jsonObject.getString("name")) // 将每个JSONObject映射为其name字段的值
.collect(Collectors.joining(","));
input = "<input type='text' title=\"" + inputValue + "\" class='awsui-textbox' name=\"" + id + "\" id=\"" + id + "\" value=\"" + result + "\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" isRequired='" + isRequired + "' placeholder='" + desc + "' data-originvalue='" + inputValue + "' " + event + "/>";
} else if ("DateTimePicker".equals(type)) {
} else if (!readonly && "DateTimePicker".equals(type)) {
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)) {