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