移动端添加关联附件

This commit is contained in:
zhal 2022-09-28 19:57:42 +08:00
parent 94219d7cbd
commit 890282071a

View File

@ -230,6 +230,10 @@ function showlist(data, type, pageNumber, start){
for (var i = 0, s = start; i < pageLimit; i++, s++) {
var curr;
if ((curr = data[s - 1]) != undefined) {
var fileName = curr.publishFileName + ' V' + curr.fileVersion;
var outputName = getOutputName(curr.category, curr.methodId);
html +='<tr>';
@ -242,6 +246,25 @@ function showlist(data, type, pageNumber, start){
html +='<span class="form-grid-mobile-common-tap" onclick="openPortalPage(\'' + curr.publishFileId + '\', \'' + curr.taskId + '\')">' +'模型预览: '+ fileName+'</span>';
html +='</td>';
html +='</tr>';
//获取文件属性附件
var upFileId = curr.upfileId;
if(upFileId!=''&&upFileId!=undefined){
for(var i = 0; i < upFileId.length; i++){
var upFileJson = upFileId[i]
var json=JSON.parse(upFileJson);
var upName = json.upFileName;
var openUrl = json.openUrl;
html +='<td class="form-grid-mobile-common-row" width=100%>';
html +='<span class="form-grid-mobile-common-tap" onclick="openUrl(\'' + openUrl + '\')">' +'关联附件: '+ upName+'</span>';
html +='</td>';
}
}
}
}
$("#appendNewBody").empty().html(html);
@ -276,6 +299,23 @@ function showlist(data, type, pageNumber, start){
html +='</td>';
html +='</tr>';
var upFileId = curr.upfileId;
if(upFileId!=''&&upFileId!=undefined){
for(var i = 0; i < upFileId.length; i++){
var upFileJson = upFileId[i]
var json=JSON.parse(upFileJson);
var upName = json.upFileName;
var openUrl = json.openUrl;
html +='<tr>';
html +='<td class="form-grid-mobile-common-row" width=100%>';
html +='<span class="form-grid-mobile-common-tap" onclick="openUrl(\'' + openUrl + '\')">' +'关联附件: '+ upName+'</span>';
html +='</td>';
html +='</tr>';
}
}
}
}
$("#appendChangeBody").empty().html(html);
@ -306,7 +346,12 @@ function showlist(data, type, pageNumber, start){
}
//预览下载附件
function openUrl(url) {
//$.simpleAlert("文件正在处理", "loading");
var url = url;
window.location.href = url;
}
// 打开流程手册
function openReportFile(taskId,appendid) {