文件属性表格类型

This commit is contained in:
mrs_12345@163.com 2022-06-28 13:55:00 +08:00
parent 1526e3e245
commit fdd7c21cde

View File

@ -2655,12 +2655,17 @@ public class CoeProcessLevelWeb extends ActionWeb {
}else if ("table".equals(type)){
JSONObject table = JSON.parseObject(jsonValue);
String tableName = table != null ? (String)table.get("name") : "";
int subTableSize = 0;
JSONArray subTable = table.getJSONArray("table");
if (null != subTable){
subTableSize = subTable.size();
}
String tableInput = subTableSize > 1 ? "请查看" : "请输入";
input = "<span class=\"awsui-input-wrapper\">"
+ "<input type='text' placeholder=\"请输入表单名\" id='" + id + "' value='" + tableName + "' class=\"awsui-textbox\" />"
+ "<span class=\"awsui-input-suffix\" sid='" + sid + "' uuid='" + uuid + "' onclick=\"showTableDialog($(this),"+ ( StringUtils.isEmpty(jsonValue) ? new JSONObject() : jsonValue.replace("\"","'") )+",'" + id + "')\">"
input = "<span class=\"awsui-input-wrapper\" onclick=\"showTableDialog($(this),"+ ( StringUtils.isEmpty(jsonValue) ? new JSONObject() : jsonValue.replace("\"","'") )+",'" + id + "')\">"
+ "<input type='text' id='" + id + "' value='" + tableInput + "' class=\"awsui-textbox\" />"
+ "<span class=\"awsui-input-suffix\" sid='" + sid + "' uuid='" + uuid + "' >"
+ " <i class=\"awsui-iconfont\" >&#xe7ff;</i>"
+ "</span>"
+ "</span>";