流程阅览文件相关样式调整
This commit is contained in:
parent
bffae6ae2a
commit
06275e2f4e
@ -792,6 +792,7 @@
|
||||
background-clip: border-box;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 4px rgb(0, 0, 0, 0.2);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.toolbar_info2{margin-bottom:10px;}
|
||||
@ -819,9 +820,15 @@
|
||||
white-space:nowrap;
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
width:200px;
|
||||
}
|
||||
|
||||
.tablefileContent a{
|
||||
float: left;
|
||||
width: 78%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.tableleft{float:left; width:38%;}
|
||||
.tableright{width:59%;padding-left:2%!important; float: left}
|
||||
@ -883,6 +890,24 @@
|
||||
#ProcessManual{
|
||||
float: right;
|
||||
}
|
||||
|
||||
.awsui-table > thead > tr > th, .awsui-table > tbody > tr > td{
|
||||
padding: 8px 0 8px 15px!important;
|
||||
}
|
||||
.awsui-btn-blue{ border: 1px solid #ffffff!important;
|
||||
color: #999999!important;
|
||||
background-color: #ffffff!important;}
|
||||
.awsui-btn:focus, .awsui-btn:hover{
|
||||
border: 1px solid #ffffff!important;
|
||||
color: #999999!important;
|
||||
background-color: #ffffff!important;
|
||||
}
|
||||
.awsui-btn-blue:focus, .awsui-btn-blue:hover{
|
||||
border: 1px solid #ffffff!important;
|
||||
color: #999999!important;
|
||||
background-color: #ffffff!important;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
||||
@ -1612,7 +1612,7 @@ function ProcessManual(obj) {
|
||||
}
|
||||
$('#processFileDock').empty();
|
||||
var t = '';
|
||||
t += '<table class="awsui-table">';
|
||||
/*t += '<table class="awsui-table">';
|
||||
t += '<tr><td>';
|
||||
t += '<div class="filetableHeader"><i class="awsui-iconfont" style="color: #999999;margin-top: 2px;"></i>'+manualName+'</div>';
|
||||
t += '<div class="tablefileContent"><a href="javascript:void(0);" onclick="openOutputFile(\''+ taskId +'\')">'+ fileName +'</a>';
|
||||
@ -1621,7 +1621,27 @@ function ProcessManual(obj) {
|
||||
t +='</button>';
|
||||
t +='</div>';
|
||||
t += '</td></tr>';
|
||||
t += '</table>';*/
|
||||
|
||||
|
||||
t += '<div>';
|
||||
t +='<strong>'+manualName+'</strong>';
|
||||
t += '<table class="awsui-table">';
|
||||
t +='<tbody>';
|
||||
t += '<tr>';
|
||||
t += '<td>';
|
||||
t += '<div class="tablefileContent"><a href="javascript:void(0);" title="'+fileName+'" onclick="openOutputFile(\''+ taskId +'\')">'+ fileName +'</a>';
|
||||
t +='<button id="ProcessManual" type="button" class="awsui-btn awsui-btn-blue awsui-btn-sm">';
|
||||
t += '<i class="awsui-iconfont" onclick="downloadProcessFile(\''+taskId+'\')"></i>';
|
||||
t +='</button>';
|
||||
|
||||
t +='</div>';
|
||||
|
||||
t += '</td>';
|
||||
t += '</tr>';
|
||||
t +='</tbody>';
|
||||
t += '</table>';
|
||||
t +='</div>';
|
||||
|
||||
$('#processFileDock').append(t);
|
||||
|
||||
@ -1703,6 +1723,7 @@ function downloadZipFile(splitId,toolbarname) {
|
||||
|
||||
// 初始化上传附件
|
||||
function initUpfileData(obj) {
|
||||
debugger;
|
||||
$('#alertMessage').remove();
|
||||
if (obj == undefined || obj == '0') {
|
||||
/*$('#portalFileDock').empty();*/
|
||||
@ -1710,20 +1731,38 @@ function initUpfileData(obj) {
|
||||
var splitId='';
|
||||
var processFile = upfileData['file'];
|
||||
if(processFile.length > 0) {
|
||||
t += '<table name="file" class="awsui-table">';
|
||||
/*t += '<table name="file" class="awsui-table">';
|
||||
t += '<tr><td>';
|
||||
t += '<div class="filetableHeader"><i class="awsui-iconfont" style="color: #999999;margin-top: 2px;"></i> 文件附件:</div>';
|
||||
for(var i = 0; i < processFile.length; i++) {
|
||||
var obj = processFile[i];
|
||||
t += '<div class="tablefileContent"><a href="javascript:void(0);" title="'+obj.name+'" onclick="readFile(\''+ obj.id +'\')">'+ obj.name +'</a>';
|
||||
/*t +='<button id="ProcessManual" type="button" class="awsui-btn awsui-btn-blue awsui-btn-sm">';
|
||||
/!*t +='<button id="ProcessManual" type="button" class="awsui-btn awsui-btn-blue awsui-btn-sm">';
|
||||
t += '<i class="awsui-iconfont" onclick="downloadZipFile(\''+obj.id+'\')"></i>';
|
||||
t +='</button>';*/
|
||||
t +='</button>';*!/
|
||||
t +='</div>';
|
||||
splitId+=obj.id+',';
|
||||
|
||||
}*/
|
||||
|
||||
t += '<div>';
|
||||
t +='<strong>文件附件:</strong>';
|
||||
for(var i = 0; i < processFile.length; i++) {
|
||||
var obj = processFile[i];
|
||||
t += '<table class="awsui-table">';
|
||||
t +='<tbody>';
|
||||
t += '<tr>';
|
||||
t += '<td>';
|
||||
t += '<div class="tablefileContent"><a href="javascript:void(0);" title="'+obj.name+'" onclick="readFile(\''+ obj.id +'\')">'+ obj.name +'</a>';
|
||||
t +='</div>';
|
||||
|
||||
t += '</td>';
|
||||
t += '</tr>';
|
||||
t +='</tbody>';
|
||||
t += '</table>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
t += '</td></tr></table>';
|
||||
}
|
||||
|
||||
@ -1735,33 +1774,49 @@ function initUpfileData(obj) {
|
||||
}
|
||||
var processShape = upfileData[ele.id];
|
||||
if(processShape != null && processShape.length > 0) {
|
||||
t += '<table name="' + ele.id + '" class="awsui-table">';
|
||||
t += '<tr><td>';
|
||||
t += '<div class="filetableHeader"><i class="awsui-iconfont" style="color: #999999;margin-top: 2px;"></i>' +"节点附件"+"("+ele.text +")"+ ':</div>';
|
||||
for(var i = 0; i < processShape.length; i++) {
|
||||
var obj = processShape[i];
|
||||
t += '<div class="tablefileContent"><a href="javascript:void(0);" title="'+obj.name+'" onclick="readFile(\''+ obj.id +'\')">'+ obj.name +'</a></div>';
|
||||
/*t +='<button id="ProcessManual" type="button" class="awsui-btn awsui-btn-blue awsui-btn-sm">';
|
||||
t += '<i class="awsui-iconfont" onclick="downloadFile(\''+obj.id+'\')"></i>';
|
||||
t +='</button>';*/
|
||||
t += '</td></tr>';
|
||||
|
||||
splitId+=obj.id+',';
|
||||
t += '<div>';
|
||||
t +='<strong>'+'节点附件:'+'</strong>'+ele.text;
|
||||
for(var i = 0; i < processShape.length; i++) {
|
||||
t += '<table name="' + ele.id + '" class="awsui-table">';
|
||||
t +='<tbody>';
|
||||
t += '<tr>';
|
||||
t += '<td>';
|
||||
var obj = processShape[i];
|
||||
t += '<div class="tablefileContent"><a href="javascript:void(0);" title="'+obj.name+'" onclick="readFile(\''+ obj.id +'\')">'+ obj.name +'</a>';
|
||||
t +='</div>';
|
||||
|
||||
t += '</td>';
|
||||
t += '</tr>';
|
||||
t +='</tbody>';
|
||||
t += '</table>';
|
||||
splitId+=obj.id+',';
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
t += '</div>';
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
t += '</table>';
|
||||
var toolbarname=$("#toolbarname").text();
|
||||
if(splitId.length>0){
|
||||
splitId=splitId.substring(0,splitId.length-1);
|
||||
t +='<button id="ProcessManual" type="button" onclick="downloadZipFile(\''+splitId+'\',\''+toolbarname+'\',\''+taskId+'\')" class="awsui-btn awsui-btn-blue">';
|
||||
t +='打包下载';
|
||||
t +='</button>';
|
||||
}
|
||||
t += '<div id="dabao" style=" margin-top: -25px;"></div>';
|
||||
|
||||
|
||||
$('#processFileDock').append(t);
|
||||
|
||||
|
||||
var toolbarname=$("#toolbarname").text();
|
||||
if(splitId.length>0){
|
||||
var str='';
|
||||
splitId=splitId.substring(0,splitId.length-1);
|
||||
str +='<button id="ProcessManual" type="button" class="awsui-btn awsui-btn-blue awsui-btn-sm">';
|
||||
str += '<i class="awsui-iconfont" onclick="downloadZipFile(\''+splitId+'\',\''+toolbarname+'\',\''+taskId+'\')" title="打包下载"></i>';
|
||||
str +='</button>';
|
||||
$('#dabao').html(str);
|
||||
}
|
||||
|
||||
} else {
|
||||
$('#processFileDock table').show();
|
||||
$('#portalFileDock table[name=' + obj + ']').show();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user