PAL流程阅览
This commit is contained in:
parent
f73e1711b8
commit
f08360fc7e
@ -1452,22 +1452,25 @@ function isObjectRelationshipModel(linker, isAlert) {
|
||||
|
||||
// 文件属性的处理
|
||||
function initProcessDesc() {
|
||||
|
||||
console.log(processDesc)
|
||||
var length = Object.keys(processDesc).length;
|
||||
var t = '';
|
||||
var wid='74%';
|
||||
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='72%';
|
||||
}
|
||||
var value = obj.value;
|
||||
if (value == undefined) {
|
||||
value = '';
|
||||
t += '<div class="tableContent">'+ value + '</div>';
|
||||
t += '<div class="tableContent" style="width:'+wid+'" >'+ value + '</div>';
|
||||
t += '</td></tr>';
|
||||
} else if(obj.type == 'table') {
|
||||
if(value == '') {
|
||||
t += '<div class="tableContent">' + value + '</div>';
|
||||
t += '<div class="tableContent" style="width: '+wid+'">' + value + '</div>';
|
||||
t += '</td></tr>';
|
||||
} else {
|
||||
let tableValue = JSON.parse(value.replace(/"/g,'\"'))
|
||||
@ -1475,13 +1478,13 @@ function initProcessDesc() {
|
||||
if (tableValue.table.length > 1) {
|
||||
tableFlag = '请查看'
|
||||
}
|
||||
t += '<div class="tableContent" onclick="openDialog(' + JSON.stringify(tableValue).replace(/\"/g,"'") +')">' + tableFlag + '</div>';
|
||||
t += '<div class="tableContent" style="width: '+wid+'" onclick="openDialog(' + JSON.stringify(tableValue).replace(/\"/g,"'") +')">' + tableFlag + '</div>';
|
||||
t += '</td></tr>';
|
||||
}
|
||||
}
|
||||
else {
|
||||
value = value.replace(/\n/g,'<br>')
|
||||
t += '<div class="tableContent">' + value + '</div>';
|
||||
t += '<div class="tableContent" style="width: '+wid+'">' + value + '</div>';
|
||||
t += '</td></tr>';
|
||||
}
|
||||
// t += '<td colspan="2" class="tableContent">' + value + '</td>';
|
||||
@ -1662,6 +1665,7 @@ function readFile(uuid) {
|
||||
}
|
||||
|
||||
function sortModelByNumber() {
|
||||
debugger;
|
||||
// 序号升序,无序号在后面
|
||||
var recordId = [];
|
||||
var hasNumArr = [];
|
||||
@ -1763,6 +1767,7 @@ function sortModelByNumber() {
|
||||
|
||||
// 初始化流程步骤说明
|
||||
function initShapeAttribute(obj) {
|
||||
debugger;
|
||||
if (obj == undefined || obj == '0') {
|
||||
$('#portalAttrDock').empty();
|
||||
var elements = Model.define.elements;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user