流程手册部署

This commit is contained in:
zhal 2022-07-12 17:38:45 +08:00
parent 2d7b10e410
commit a8ae0a267c
3 changed files with 21 additions and 9 deletions

View File

@ -709,6 +709,7 @@
} }
function initOutputFileLink() { function initOutputFileLink() {
if(taskId != "") { if(taskId != "") {
var html = ''; var html = '';
// 只包含手册的链接 // 只包含手册的链接
@ -736,6 +737,7 @@
//三员模式文件预览 //三员模式文件预览
function secOpenOutputFile(id) { function secOpenOutputFile(id) {
debugger;
if (taskId !="<#taskId>"){ if (taskId !="<#taskId>"){
openOutputFile(taskId); openOutputFile(taskId);
}else{ }else{

View File

@ -1575,6 +1575,16 @@ function initUpfileData(obj) {
} }
t += '</table>'; t += '</table>';
} }
//流程手册附件展示
t += '<table class="awsui-table">';
t += '<tr>';
t += '<td class="tableHeader">流程手册</td>';
t += '</tr>';
t += '<tr>';
t += '<td class="tableContent" style="padding-left:20px;"><a href="javascript:void(0);" onclick="openOutputFile(\''+ ruuid +'\')">'+ fileName +'</a></td>';
t += '</tr>';
t += '</table>';
var elements = Model.define.elements; var elements = Model.define.elements;
for(var e in elements) { for(var e in elements) {
var ele = elements[e]; var ele = elements[e];

View File

@ -4530,15 +4530,15 @@ var Designer = {
} }
if (jjj.showType == "text" || jjj.showType == "attr") { if (jjj.showType == "text" || jjj.showType == "attr") {
//判断如果岗位多个数据,...显示 by zhaolei //判断如果岗位多个数据,...显示 by zhaolei
if(jjj.value!=""){ if (jjj.value != "") {
var lenth=jjj.value.match(/,/g).length; var lenth = jjj.value.match(/,/g).length;
if(lenth>=2){ if (lenth >= 2) {
var index1=jjj.value.indexOf(","); var index1 = jjj.value.indexOf(",");
var index2=jjj.value.indexOf(",",index1+1); var index2 = jjj.value.indexOf(",", index1 + 1);
l+=jjj.value.substr(0,index2)+"..."; l += jjj.value.substr(0, index2) + "...";
}else{ } else {
l += jjj.value l += jjj.value
} }
} }
} else { } else {