|
发表于 2018-7-16 18:16:02
|
显示全部楼层
修改方案:
/src/main/java/org/jeecgframework/core/common/model/json/TreeGrid.java
assembleFieldsJson方法修改为:
private String assembleFieldsJson() {
String fieldsJson = ", 'fieldMap':" + JSON.toJSON(fieldMap);
if (fieldMap != null && fieldMap.size() > 0) {
Map<String, Object> resultMap = new HashMap<String, Object>();
for (Map.Entry<String, Object> entry : fieldMap.entrySet()) {
resultMap.put("fieldMap." + entry.getKey(), entry.getValue());
}
fieldsJson += ", " + JSON.toJSON(resultMap).toString().replace("{", "").replace("}", "");
}
return fieldsJson;
}
页面使用:
<t:dgFunOpt funname="queryInstByDepart(fieldMap.orgCode)" title="查看下e属机构" urlclass="ace_button" urlfont="fa-user"></t:dgFunOpt> |
|