修改阅览文字显示/修改下载功能/pal打包

This commit is contained in:
zhal 2022-10-08 15:06:28 +08:00
parent d18abe4238
commit 5dc9b4c98c
5 changed files with 42 additions and 14 deletions

View File

@ -2540,8 +2540,8 @@ public class CoEPALController {
* by zhaolei * by zhaolei
*/ */
@Mapping("com.actionsoft.apps.coe.pal_outputreport_output_process_download") @Mapping("com.actionsoft.apps.coe.pal_outputreport_output_process_download")
public String COEPALOUTPUTREPORTOutputProcessDownload(UserContext me, String taskId) { public String COEPALOUTPUTREPORTOutputProcessDownload(UserContext me, String taskId,String ruuid) {
return PALRepositoryQueryAPIManager.getInstance().outputReportDownload(me, taskId); return PALRepositoryQueryAPIManager.getInstance().outputReportDownload(me, taskId,ruuid);
} }

View File

@ -3215,7 +3215,7 @@ public class PALRepositoryQueryAPIManager {
* @param taskId * @param taskId
* @return * @return
*/ */
public String outputReportDownload(UserContext _uc, String taskId) { public String outputReportDownload(UserContext _uc, String taskId,String ruuid) {
OutputTaskModel model = new OutputTask().getTaskReportById(taskId); OutputTaskModel model = new OutputTask().getTaskReportById(taskId);
ResponseObject result = ResponseObject.newOkResponse(); ResponseObject result = ResponseObject.newOkResponse();
if (model != null) { if (model != null) {
@ -3235,7 +3235,7 @@ public class PALRepositoryQueryAPIManager {
return ResponseObject.newErrResponse("没有找到文件").toString(); return ResponseObject.newErrResponse("没有找到文件").toString();
} }
String plId = DBSql.getString("SELECT PALREPOSITORYID FROM app_act_coe_pal_publish_list WHERE TASKID ='"+taskId+"'"); /*String plId = DBSql.getString("SELECT PALREPOSITORYID FROM app_act_coe_pal_publish_list WHERE TASKID ='"+taskId+"'");
if(UtilString.isNotEmpty(plId)) { if(UtilString.isNotEmpty(plId)) {
PALRepositoryModel plmodel = PALRepositoryCache.getCache().get(plId); PALRepositoryModel plmodel = PALRepositoryCache.getCache().get(plId);
if(plmodel!=null) { if(plmodel!=null) {
@ -3252,7 +3252,24 @@ public class PALRepositoryQueryAPIManager {
result.put("url",downUrl); result.put("url",downUrl);
} }
} }*/
PALRepositoryModel plmodel = PALRepositoryCache.getCache().get(ruuid);
if(plmodel!=null) {
String sourceAppId = "com.actionsoft.apps.coe.pal.output.pr";
String methodId = plmodel.getMethodId();
if(methodId.contains("control")) {
sourceAppId = "com.awspaas.user.apps.coe.pal.output.zd";
}else if(methodId.contains("data")) {
sourceAppId = "com.awspaas.user.apps.coe.pal.output.bd";
}
String filename = docFile.getName();
DCContext sourceDc = new DCContext(_uc, DCProfileManager.getDCProfile(sourceAppId, "output"), sourceAppId, model.getWsId(), taskId, filename);
String downUrl=SDK.getConfAPI().getPortalUrl() + "/r/" + sourceDc.getDownloadURL().replace("./", "");
result.put("url",downUrl);
}
} }
}else{ }else{

View File

@ -21,9 +21,13 @@ public class queryPost implements IJob {
List<RowMap> rowMaps=DBSql.getMaps("SELECT * FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE RELATIONFILEID=?",wsIdParams); List<RowMap> rowMaps=DBSql.getMaps("SELECT * FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE RELATIONFILEID=?",wsIdParams);
for(int i=0;i<rowMaps.size();i++){ if(rowMaps.size()>0){
//FILEID SHAPETEXT SHAPEID for(int i=0;i<rowMaps.size();i++){
System.out.println("存在关联关系有FILEID========"+rowMaps.get(i).getString("FILEID")+" "+"SHAPETEXT="+rowMaps.get(i).getString("SHAPETEXT")+" "+"SHAPEID="+rowMaps.get(i).getString("SHAPEID")); //FILEID SHAPETEXT SHAPEID
System.out.println(wsIdParams+"存在关联关系有FILEID========"+rowMaps.get(i).getString("FILEID")+" "+"SHAPETEXT="+rowMaps.get(i).getString("SHAPETEXT")+" "+"SHAPEID="+rowMaps.get(i).getString("SHAPEID"));
}
}else{
System.out.println(wsIdParams+"未查询到关联项");
} }
@ -31,5 +35,6 @@ public class queryPost implements IJob {
} }
} }

View File

@ -1618,9 +1618,9 @@ function changeArributeByShape() {
function ProcessManual(obj) { function ProcessManual(obj) {
var manualName; var manualName;
if(methodId=="data.form"){ if(methodId=="data.form"){
manualName="表单手册 :"; manualName="表单/模板封面 :";
}else if (methodId=="process.epc"){ }else if (methodId=="process.epc"){
manualName="EPC手册 :"; manualName="流程文件 :";
}else if (methodId=="process.bpmn2"){ }else if (methodId=="process.bpmn2"){
manualName="BPMN手册 :"; manualName="BPMN手册 :";
}else if (methodId=="process.flowchart"){ }else if (methodId=="process.flowchart"){
@ -1632,7 +1632,7 @@ function ProcessManual(obj) {
}else if (methodId=="itsystem.normal"){ }else if (methodId=="itsystem.normal"){
manualName="IT系统手册 :"; manualName="IT系统手册 :";
}else if (methodId=="control.policy"){ }else if (methodId=="control.policy"){
manualName="制度手册 :"; manualName="制度文件 :";
}else if (methodId=="control.risk"){ }else if (methodId=="control.risk"){
manualName="风险控制手册 :"; manualName="风险控制手册 :";
}else if(methodId=="control.kpi"){ }else if(methodId=="control.kpi"){
@ -1711,7 +1711,8 @@ function downloadProcessFile(taskId) {
url : "./jd?sid=" + sid url : "./jd?sid=" + sid
+ "&cmd=com.actionsoft.apps.coe.pal_outputreport_output_process_download", + "&cmd=com.actionsoft.apps.coe.pal_outputreport_output_process_download",
data : { data : {
taskId : taskId taskId : taskId,
ruuid:ruuid
}, },
success : function(msg) { success : function(msg) {
if (msg.result == "ok") { if (msg.result == "ok") {
@ -1800,9 +1801,14 @@ function initUpfileData(obj) {
} }
var processShape = upfileData[ele.id]; var processShape = upfileData[ele.id];
if(processShape != null && processShape.length > 0) { if(processShape != null && processShape.length > 0) {
var fileTile="";
if(ele.category=="data_form"){
fileTile="表单/模板:";
}else{
fileTile="节点附件:";
}
t += '<div>'; t += '<div>';
t +='<strong>'+'节点附件:'+'</strong>'+ele.text; t +='<strong>'+fileTile+'</strong>'+ele.text;
for(var i = 0; i < processShape.length; i++) { for(var i = 0; i < processShape.length; i++) {
t += '<table name="' + ele.id + '" class="awsui-table">'; t += '<table name="' + ele.id + '" class="awsui-table">';
t +='<tbody>'; t +='<tbody>';