From a8ae0a267cdfc1040d08959a021e354a3b9f1015 Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Tue, 12 Jul 2022 17:38:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E6=89=8B=E5=86=8C=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...pal.pl.repository.designer.view.portal.html | 2 ++ .../js/designer.extend.link.view.portal.js | 10 ++++++++++ .../scripts/diagraming/designer.core.js | 18 +++++++++--------- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html b/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html index 5bed1d1a..fdba7419 100755 --- a/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html +++ b/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html @@ -709,6 +709,7 @@ } function initOutputFileLink() { + if(taskId != "") { var html = ''; // 只包含手册的链接 @@ -736,6 +737,7 @@ //三员模式文件预览 function secOpenOutputFile(id) { + debugger; if (taskId !="<#taskId>"){ openOutputFile(taskId); }else{ diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js index d784cf29..9195a265 100755 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js @@ -1575,6 +1575,16 @@ function initUpfileData(obj) { } t += ''; } + //流程手册附件展示 + t += ''; + t += ''; + t += ''; + t += ''; + t += ''; + t += ''; + t += ''; + t += '
流程手册
'+ fileName +'
'; + var elements = Model.define.elements; for(var e in elements) { var ele = elements[e]; diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js index 255704f3..2ececac0 100755 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js @@ -4530,15 +4530,15 @@ var Designer = { } if (jjj.showType == "text" || jjj.showType == "attr") { //判断如果岗位多个数据,...显示 by zhaolei - if(jjj.value!=""){ - var lenth=jjj.value.match(/,/g).length; - if(lenth>=2){ - var index1=jjj.value.indexOf(","); - var index2=jjj.value.indexOf(",",index1+1); - l+=jjj.value.substr(0,index2)+"..."; - }else{ - l += jjj.value - } + if (jjj.value != "") { + var lenth = jjj.value.match(/,/g).length; + if (lenth >= 2) { + var index1 = jjj.value.indexOf(","); + var index2 = jjj.value.indexOf(",", index1 + 1); + l += jjj.value.substr(0, index2) + "..."; + } else { + l += jjj.value + } } } else {