流程发布模型阅览调整

This commit is contained in:
lihongyu 2022-11-16 17:15:00 +08:00
parent f37662f0e9
commit 9d2c27142f

View File

@ -1831,18 +1831,21 @@ public class ProcessPublishWeb extends ActionWeb {
JSONObject jb = new JSONObject();
String upfileId = upfileModel.getUuid();
String upFileName = upfileModel.getFileName();
jb.put("upfileId", upfileId);
jb.put("upFileName", upFileName);
String openUrl = "";
ResponseObject ros = getUrl("f",jb,upfileModel);
JSONObject parseObject = JSON.parseObject(JSON.toJSONString(ros.getData()));
String url = parseObject.get("url").toString();
if(url.contains(".xls"))
openUrl= url;
else
openUrl = SDK.getConfAPI().getPortalUrl() + "/r/" + url.replace("./", "");
jb.put("openUrl",openUrl);
js.add(jb.toJSONString());
if(!upFileName.contains(".xml")) {
jb.put("upfileId", upfileId);
jb.put("upFileName", upFileName);
String openUrl = "";
ResponseObject ros = getUrl("f",jb,upfileModel);
JSONObject parseObject = JSON.parseObject(JSON.toJSONString(ros.getData()));
String url = parseObject.get("url").toString();
if(url.contains(".xls"))
openUrl= url;
else
openUrl = SDK.getConfAPI().getPortalUrl() + "/r/" + url.replace("./", "");
jb.put("openUrl",openUrl);
js.add(jb.toJSONString());
}
}
changeObj.put("upfileId", js);
} else {
@ -1940,6 +1943,7 @@ public class ProcessPublishWeb extends ActionWeb {
if (fileList != null && fileList.size() > 0)
for (UpfileModel upfileModel : fileList)
if ("f".equals(upfileModel.getType())) {
JSONObject jb = new JSONObject();
String upfileId = upfileModel.getUuid();
String upFileName = upfileModel.getFileName();