Commit 39187397 authored by 邢磊's avatar 邢磊

*)修改附件

parent 811d8f59
......@@ -598,7 +598,7 @@ public class DPSubServiceImpl {
JSONObject yObj = (JSONObject) y;
String[] str = yObj.getString("url").split("\\.");
String icon = MatinfoEnum.getIconUrl(str[1]).getIcon();
yObj.put("icon", icon);
yObj.put("thumb", icon);
});
attachmentUploadDatasObj.put("value", value);
String accept = visualParams.getString("accept");
......@@ -607,6 +607,7 @@ public class DPSubServiceImpl {
label = label + "(" + displayName + ")";
}
attachmentUploadDatasObj.put("label", label);
attachmentUploadDatasObj.put("useThumb", true);
if (accept.equals(".*") || accept.contains("doc") || accept.contains("docx") || accept.contains("pdf") || accept.contains("xls") || accept.contains("xlsx")){
attachmentUploadDatasObj.put("type", "file");
} else if(accept.contains("png") || accept.contains("img")){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment