pal 文件属性表格类型返回数据调整

This commit is contained in:
anhc 2022-06-28 14:59:38 +08:00
parent fdd7c21cde
commit 4760eba7ef
2 changed files with 7 additions and 3 deletions

View File

@ -2656,11 +2656,15 @@ public class CoeProcessLevelWeb extends ActionWeb {
JSONObject table = JSON.parseObject(jsonValue);
int subTableSize = 0;
JSONArray subTable = table.getJSONArray("table");
if (null != subTable){
subTableSize = subTable.size();
if (null != table){
JSONArray subTable = table.getJSONArray("table");
if (null != subTable){
subTableSize = subTable.size();
}
}
String tableInput = subTableSize > 1 ? "请查看" : "请输入";
String attrRef = attributeModel.getRef();
JSONObject refValue = JSON.parseObject(attrRef);
input = "<span class=\"awsui-input-wrapper\" onclick=\"showTableDialog($(this),"+ ( StringUtils.isEmpty(jsonValue) ? new JSONObject() : jsonValue.replace("\"","'") )+",'" + id + "')\">"