PAL流程阅览
This commit is contained in:
parent
d68356f581
commit
1ba1ae4846
Binary file not shown.
@ -759,6 +759,7 @@ public class DesignerRelationShapeWeb extends ActionWeb {
|
||||
//JSONObject jsonObject = JSONObject.parseObject(json);
|
||||
JSONArray jsonArr_new= new JSONArray();
|
||||
JSONArray objects=JSONArray.parseArray(treeJson);
|
||||
System.out.println("objects================="+objects);
|
||||
//角色图属性代码是role/绩效图属性代码为Process_performance_metrics进行判断
|
||||
if (attrId.equals("role") || attrId.equals("Process_performance_metrics")) {
|
||||
if (objects != null) {
|
||||
@ -767,14 +768,14 @@ public class DesignerRelationShapeWeb extends ActionWeb {
|
||||
String url = jsonObject.getString("url");
|
||||
String id = jsonObject.getString("id");
|
||||
|
||||
System.out.println("Jsonobject=========="+jsonObject);
|
||||
System.out.println("url======================"+url);
|
||||
if (UtilString.isNotEmpty(url)) {
|
||||
List data=new ArrayList();
|
||||
data.add(0,jsonObject.getString("plMethodId"));
|
||||
data.add(1,ruuid);
|
||||
System.out.println("data=================="+data);
|
||||
System.out.println("id===================="+id);
|
||||
RowMap rowMap = DBSql.getMap("SELECT EXT2 FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID=? AND EXT2=?", id, data.toString());
|
||||
System.out.println("rowmap============"+rowMap);
|
||||
if (rowMap != null) {
|
||||
jsonArr_new.add(objects.getJSONObject(i));
|
||||
}
|
||||
|
||||
@ -419,6 +419,7 @@ public class UpfileWeb extends ActionWeb {
|
||||
|
||||
String downUrl=SDK.getConfAPI().getPortalUrl() + "/r/" + dcContext.getDownloadURL().replace("./", "");
|
||||
ro.put("url",downUrl);
|
||||
|
||||
return ro.toString();
|
||||
}
|
||||
|
||||
|
||||
@ -811,8 +811,10 @@
|
||||
border-bottom: 2px solid #4e7ff9; color:#4e7ff9
|
||||
}
|
||||
#designer_layout{background: none!important;margin:10px!important;}
|
||||
.awsui-table-bordered td{border:0!important; padding: 5px 0!important;}
|
||||
.awsui-table-bordered,.tableContent{border:0!important;line-height: 20px; float:left;}
|
||||
.awsui-table-bordered td{border:0!important;}
|
||||
.awsui-table-bordered{border:0!important;line-height: 20px;}
|
||||
.tableContent{float:left; width:38%;padding:5px 0!important; }
|
||||
.tableright{width:59%;padding-left:2%!important;}
|
||||
#designer_canvas{background: none!important;}
|
||||
.task-box {
|
||||
border: 1px solid #f1f5f7;border-top:2px solid #f1f5f7; padding: 10px;
|
||||
@ -840,7 +842,30 @@
|
||||
#pinglun{clear: both;overflow: hidden;height: auto;}
|
||||
.suofang{height:40px;background-color:white;border-top:1px solid #efefef;vertical-align:middle;position: relative;border-bottom-left-radius: 10px;border-bottom-right-radius: 10px;}
|
||||
.processfiledown li{line-height: 20px;}
|
||||
.awsui-table td{border:0!important; padding: 2px 0!important;}
|
||||
.awsui-table td{border:0!important;}
|
||||
.borderbottom{border-bottom:1px dashed #999b9f!important;
|
||||
display: -webkit-box;
|
||||
|
||||
display: -moz-box;
|
||||
|
||||
display: -ms-flexbox;
|
||||
|
||||
display: -webkit-flex;
|
||||
|
||||
display: flex;
|
||||
|
||||
/*垂直居中*/
|
||||
|
||||
-webkit-box-align: center;/*旧版本*/
|
||||
|
||||
-moz-box-align: center;/*旧版本*/
|
||||
|
||||
-ms-flex-align: center;/*混合版本*/
|
||||
|
||||
-webkit-align-items: center;/*新版本*/
|
||||
|
||||
align-items: center;/*新版本*/
|
||||
}
|
||||
.iconTabClass{
|
||||
float: left;display: block; width: 18px; height: 18px; background:url("iconnew.png") no-repeat; background-size: 100%;}
|
||||
#ProcessManual{
|
||||
@ -987,9 +1012,10 @@
|
||||
</div>
|
||||
<div class="newadd_nav" id="newaddfile">
|
||||
<div class="newadd_wen">
|
||||
<div id="processFile" class="fileheaderTab">相关/支持文件</div>
|
||||
<div id="relevantDocument" class="fileheaderTab">相关/支持文件</div>
|
||||
<!-- 制度/操作指导 -->
|
||||
<!--<div class="dock_view_portalFileShow" id="portalFileDock"></div>-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
@ -1452,48 +1452,61 @@ function isObjectRelationshipModel(linker, isAlert) {
|
||||
|
||||
// 文件属性的处理
|
||||
function initProcessDesc() {
|
||||
console.log(processDesc)
|
||||
var length = Object.keys(processDesc).length;
|
||||
var t = '';
|
||||
var wid='60%';
|
||||
var b='';
|
||||
for(var i = 1; i <= length; i++) {
|
||||
var obj = processDesc[i];
|
||||
t += '<tr><td>';
|
||||
t += '<div class="tableContent">' + "【"+obj.name +"】"+ '</div>';
|
||||
if(obj.name.length >=5){
|
||||
wid='60%';
|
||||
}
|
||||
//判断如果为相关文件/支持文件显示在右侧区域
|
||||
if(obj.name=="相关文件" || obj.name=="支持文件"){
|
||||
b += '<table class="awsui-table">';
|
||||
b += '<tr class="borderbottom">';
|
||||
b += '<td class="tableContent">' + "【"+obj.name +"】"+ '</td>';
|
||||
b += '<td>' + obj.value + '</td>';
|
||||
b += '</tr>';
|
||||
b += '</table>';
|
||||
}else{
|
||||
t += '<tr class="borderbottom">';
|
||||
t += '<td class="tableContent">' + "【"+obj.name +"】"+ '</td>';
|
||||
|
||||
var value = obj.value;
|
||||
if (value == undefined) {
|
||||
value = '';
|
||||
t += '<div class="tableContent" style="width:'+wid+'" >'+ value + '</div>';
|
||||
t += '</td></tr>';
|
||||
t += '<td class="tableContent tableright" >'+ value + '</td>';
|
||||
t += '</tr>';
|
||||
} else if(obj.type == 'table') {
|
||||
if(value == '') {
|
||||
t += '<div class="tableContent" style="width: '+wid+'">' + value + '</div>';
|
||||
t += '</td></tr>';
|
||||
t += '<td class="tableContent tableright">' + value + '</td>';
|
||||
t += '</tr>';
|
||||
} else {
|
||||
let tableValue = JSON.parse(value.replace(/"/g,'\"'))
|
||||
let tableFlag = '请输入'
|
||||
if (tableValue.table.length > 1) {
|
||||
tableFlag = '请查看'
|
||||
}
|
||||
t += '<div class="tableContent" style="width: '+wid+'" onclick="openDialog(' + JSON.stringify(tableValue).replace(/\"/g,"'") +')">' +'<span style="color:blue">'+tableFlag+'</span>'+'</div>';
|
||||
t += '</td></tr>';
|
||||
t += '<td class="tableContent tableright" onclick="openDialog(' + JSON.stringify(tableValue).replace(/\"/g,"'") +')">' +'<span style="color:blue">'+tableFlag+'</span>'+'</td>';
|
||||
t += '</tr>';
|
||||
}
|
||||
}
|
||||
else {
|
||||
value = value.replace(/\n/g,'<br>')
|
||||
t += '<div class="tableContent" style="width: '+wid+'">' + value + '</div>';
|
||||
t += '</td></tr>';
|
||||
t += '<td class="tableContent tableright" >' + value + '</td>';
|
||||
t += '</tr>';
|
||||
}
|
||||
// t += '<td colspan="2" class="tableContent">' + value + '</td>';
|
||||
// t += '</tr>';
|
||||
}
|
||||
|
||||
}
|
||||
if(b.length>0){
|
||||
$('#relevantDocument').append(b);
|
||||
}
|
||||
$('#portalDescDock').find('table').append(t);
|
||||
|
||||
// $('#portalDescDock').append('<table class="awsui-table"><tr><td> </td></tr></table>');
|
||||
}
|
||||
|
||||
|
||||
function autoClickAttr() {
|
||||
// 属性自动切换
|
||||
if ($('#openTab').is(':hidden')) {
|
||||
@ -1633,6 +1646,28 @@ function downloadProcessFile(taskId) {
|
||||
});
|
||||
}
|
||||
|
||||
function downloadReport(uuid, taskId) {
|
||||
awsui.ajax.request({
|
||||
type: "POST",
|
||||
url: "./jd",
|
||||
async: false,
|
||||
data: {
|
||||
sid: sid,
|
||||
cmd: "com.actionsoft.apps.coe.pal.publisher_output_download",
|
||||
taskId: taskId,
|
||||
uuid: uuid
|
||||
},
|
||||
success : function(r) {
|
||||
debugger;
|
||||
if (r.result == "ok") {
|
||||
debugger;
|
||||
window.open (r.data.url);
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 相关文件/制度文件下载
|
||||
|
||||
Loading…
Reference in New Issue
Block a user