|
|
|
@ -42,6 +42,7 @@ public class FileLibrayFormPlugin extends ExecutePluginParent { |
|
|
|
if(fileName == null){ |
|
|
|
if(fileName == null){ |
|
|
|
this.setWidgetAttribute("fileType", AttributeEnum.VALUE_CHANGE,null); |
|
|
|
this.setWidgetAttribute("fileType", AttributeEnum.VALUE_CHANGE,null); |
|
|
|
this.setWidgetAttribute("fileSize", AttributeEnum.VALUE_CHANGE,null); |
|
|
|
this.setWidgetAttribute("fileSize", AttributeEnum.VALUE_CHANGE,null); |
|
|
|
|
|
|
|
this.setWidgetAttribute("fileName", AttributeEnum.DISABLED,false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -52,6 +53,9 @@ public class FileLibrayFormPlugin extends ExecutePluginParent { |
|
|
|
|
|
|
|
|
|
|
|
if(fileName != null){ |
|
|
|
if(fileName != null){ |
|
|
|
JSONArray fileJson = JSON.parseArray(fileName.toString()); |
|
|
|
JSONArray fileJson = JSON.parseArray(fileName.toString()); |
|
|
|
|
|
|
|
if(!fileJson.isEmpty()){ |
|
|
|
|
|
|
|
this.setWidgetAttribute("fileName", AttributeEnum.DISABLED,true); |
|
|
|
|
|
|
|
} |
|
|
|
JSONObject item = fileJson.getJSONObject(0); |
|
|
|
JSONObject item = fileJson.getJSONObject(0); |
|
|
|
String realName = item.getString("fileRealName"); |
|
|
|
String realName = item.getString("fileRealName"); |
|
|
|
String fullFilePath = item.getString("uploadPath")+"/"+item.getString("filename"); |
|
|
|
String fullFilePath = item.getString("uploadPath")+"/"+item.getString("filename"); |
|
|
|
|